1 2004-11-30 Andrew Cagney <cagney@gnu.org>
3 * config/nm-gnu.h: Delete file.
4 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
6 * config/nm-sysv4.h: Delete file.
7 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
8 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
9 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
10 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
11 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
13 2004-11-29 Andrew Cagney <cagney@gnu.org>
15 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
16 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
17 as can-commit architecture developers.
19 2004-11-29 Mark Kettenis <kettenis@gnu.org>
21 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
22 (sparc32_skip_prologue): Skip instructions that store arguments in
23 registers into their corresponding stack slots.
25 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
27 * config/m68k/obsd.mh (NAT_FILE): Likewise.
29 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
30 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
31 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
32 sparc32nbsd_elf_init_abi. Remove duplicate code.
34 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
35 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
36 * config/sparc/nm-nbsd.h: Remove file.
37 * config/sparc/nm-nbsdaout.h: Remove file.
39 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
40 (sparc_xfer_partial): New function.
41 (sparc_target): Save value of to_xfer_partial from ptrace vector.
44 * fork-child.c (fork_inferior): Fork instead of vfork if
45 PRE_TRACE_FUN is non-null.
47 2004-11-24 Fred Fish <fnf@specifixinc.com>
49 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
50 compiler generated function calls made as part of a prologue.
52 2004-11-23 Mark Kettenis <kettenis@gnu.org>
54 * inf-ttrace.c: New file.
55 * inf-ttrace.h: New file.
56 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
57 Include "inf-ttrace.h".
58 (ss_mpsfu_high): Define to ss_tlsp if necessary.
59 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
60 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
62 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
63 instead of inf_ptrace_target.
64 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
65 * Makefile.in (inf_ttrace_h): New variable.
66 (hppa-hpux-nat.o): Update dependency.
67 (inf-ttrace.o): New dependency.
68 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
70 2004-11-23 Randolph Chung <tausq@debian.org>
72 * arch-utils.c (generic_instruction_nullified): New.
73 * arch-utils.h (generic_instruction_nullified): New.
74 * gdbarch.sh (instruction_nullified): New method.
75 * gdbarch.c: Regenerate.
76 * gdbarch.h: Regenerate.
77 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
78 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
80 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
81 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
82 static. Rewrite to work directly off the passed regcache.
83 (hppa_gdbarch_init): Set instruction_nullified method.
85 2004-11-23 Joel Brobecker <brobecker@gnat.com>
87 * sparc-tdep.c (sparc_is_unimp_insn): New function.
88 (sparc32_frame_cache): For functions where there is no debugging
89 information to help us determine whether it's a struct-return
90 function or not, fallback on checking whether the instruction
91 at the return address is an "unimp" instruction or not.
93 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
95 * MAINTAINERS: Add myself to write after approval section.
97 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
98 hpux-thread.c to suppress children from running.
99 (hppa_hpux_child_can_run): New function.
100 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
101 * hpux-thread.c: Include string.h and hppa-tdep.h.
102 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
103 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
104 (hpux_thread_store_registers): Replace deprecated_registers with
105 calls to regcache_raw_read.
106 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
108 2004-11-21 Mark Kettenis <kettenis@gnu.org>
110 * sparc64fbsd-nat.c: Update copyright year.
111 (_initialize_sparc64fbsd_nat): Construct and add target vector.
112 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
115 2004-11-21 Daniel Jacobowitz <dan@debian.org>
117 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
119 2004-11-21 Daniel Jacobowitz <dan@debian.org>
121 * linux-nat.c (my_waitpid): New function.
122 (linux_test_for_tracefork): Make more robust and verbose. Take
123 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
124 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
125 argument. Update calls to linux_test_for_tracefork.
126 (linux_enable_event_reporting, child_follow_fork)
127 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
128 (child_insert_exec_catchpoint): Update calls to
129 linux_supports_tracefork and linux_supports_tracevforkdone.
131 2004-11-21 Daniel Jacobowitz <dan@debian.org>
133 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
134 (value_subscripted_rvalue): Likewise.
135 * valops.c (search_struct_field, value_slice): Likewise.
137 2004-11-21 Mark Kettenis <kettenis@gnu.org>
139 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
140 Reorder includes a bit. Fix comment.
141 * Makefile.in (inf-ptrace.o): Update dependencies.
143 2004-11-21 Andreas Schwab <schwab@suse.de>
145 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
146 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
147 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
148 to glibc_skip_solib_resolver.
149 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
151 * Makefile.in (m68klinux-tdep.o): Update dependencies.
153 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
155 * infttrace.h (ttrace_write_reg_64): Add prototype.
156 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
158 (store_inferior_registers): Correct formatting. Replace uses of
159 deprecated_registers with calls to regcache_raw_read,
160 regcache_raw_write_part and regcache_raw_read_part.
162 2004-11-21 Mark Kettenis <kettenis@gnu.org>
164 * config/pa/hppahpux.mh: Remove file.
165 * config/pa/hpux1020.mh: Remove file.
167 2004-11-20 Andreas Schwab <schwab@suse.de>
169 * configure.host: Set host floatformat for m68k.
171 2004-11-20 Eli Zaretskii <eliz@gnu.org>
173 * config/djgpp/fnchange.lst: Resolve file-name clash between
174 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
176 2004-11-20 Mark Kettenis <kettenis@gnu.org>
178 * hppa-hpux-nat.c: New file.
179 * config/pa/hpux.mh (NATDEPFILES): New file.
180 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
181 (hppa-hpux-nat.o): New dependency.
182 * configure.host: Remove hppa*-*-hpux10.20.
183 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
185 * inf-ptrace.c: Fix coding style.
187 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
188 * infptrace.c (call_ptrace): Simply call ptrace with four
191 * dbxread.c (process_one_symbol): Fix a few coding standard
192 issues. Improve code formatting.
194 * dbxread.c: Include "gdb_string.h".
195 (record_minimal_symbol, read_ofile_symtab): Replace
196 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
197 * Makefile.in (dbxread.o): Update dependencies.
199 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
200 of bytes read for aligned LEB128 encodings.
202 2004-11-19 Mark Kettenis <kettenis@gnu.org>
204 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
205 parse_and_eval_address to u_long before converting it to a pointer
207 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
208 ps_strings from int to u_long.
209 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
210 u_long instead of CORE_ADDR.
212 2004-11-18 Mark Kettenis <kettenis@gnu.org>
214 * dbxread.c (process_one_symbol): Do not adjust address of first
215 N_SLINE stab for a function for code generated by non-GCC
218 2004-11-18 Kevin Buettner <kevinb@redhat.com>
220 * solib-null.c: New file.
222 2004-11-17 Andrew Cagney <cagney@gnu.org>
224 * MAINTAINERS: Drop MIPS and remote.
226 2004-11-15 Andrew Cagney <cagney@gnu.org>
228 * findvar.c (value_of_register): Set the frame ID.
229 * value.c (value_primitive_field): Copy the frame ID.
230 * valops.c (value_assign): Simplify lval_register case, there's
233 2004-11-14 Daniel Jacobowitz <dan@debian.org>
235 * Makefile.in (mips-linux-tdep.o): Update dependencies.
236 * mips-linux-tdep.c: Include "regcache.h".
237 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
239 2004-11-14 Daniel Jacobowitz <dan@debian.org>
241 * Makefile.in (linux-thread-db.o): Fix typo in last change.
243 2004-11-14 Daniel Jacobowitz <dan@debian.org>
245 * linux-thread-db.c: New file, renamed from thread-db.c.
246 * thread-db.c: Remove.
247 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
248 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
249 to linux-thread-db.o.
250 * config/arm/linux.mh (NATDEPFILES): Likewise.
251 * config/i386/linux.mh (NATDEPFILES): Likewise.
252 * config/i386/linux64.mh (NATDEPFILES): Likewise.
253 * config/ia64/linux.mh (NATDEPFILES): Likewise.
254 * config/m32r/linux.mh (NATDEPFILES): Likewise.
255 * config/m68k/linux.mh (NATDEPFILES): Likewise.
256 * config/mips/linux.mh (NATDEPFILES): Likewise.
257 * config/pa/linux.mh (NATDEPFILES): Likewise.
258 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
259 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
260 * config/s390/s390.mh (NATDEPFILES): Likewise.
261 * config/sparc/linux.mh (NATDEPFILES): Likewise.
262 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
264 2004-11-13 Andrew Cagney <cagney@gnu.org>
266 * config/i386/i386lynx.mh: Delete file.
267 * config/i386/i386lynx.mt: Delete file.
268 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
269 * i386ly-tdep.c: Delete.
271 * config/tm-lynx.h: Delete, inline contents ...
272 * config/rs6000/tm-rs6000ly.h: ... here.
274 * config/tm-sysv4.h: Delete file, inlining contents.
275 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
276 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
277 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
279 * regcache.h (deprecated_register_valid): Delete.
280 (deprecated_registers): Delete.
281 * regcache.c (deprecated_register_valid): Delete.
282 (deprecated_registers): Delete.
283 (deprecated_read_register_byte, _initialize_regcache)
284 (deprecated_write_register_bytes, build_regcache): Update.
285 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
287 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
288 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
290 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
291 v850-*-* under removed.
292 * configure.host: Delete ns32k-*-netbsd*.
293 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
294 ns32k-*-netbsd*, and v850*-*-*.
295 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
297 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
298 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
299 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
300 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
301 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
302 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
303 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
304 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
305 * v850-tdep.c: Delete.
307 2004-11-13 Joel Brobecker <brobecker@gnat.com>
309 * irix5-nat.c (fetch_core_registers): Replace use of
310 deprecated_registers by equivalent code.
312 2004-11-13 Joel Brobecker <brobecker@gnat.com>
314 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
315 with equivalent code.
316 (fill_fpregset): Likewise.
318 2004-11-13 Andrew Cagney <cagney@gnu.org>
320 * MAINTAINERS: Do not list "Deleted" architectures.
322 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
323 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
325 * NEWS: Mention that vxworks was deleted.
326 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
327 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
328 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
329 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
330 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
331 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
332 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
333 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
334 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
335 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
336 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
337 * remote-vxmips.c, remote-vx.c: Delete.
338 * remote-vx68.c: Delete.
339 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
340 * config/m68k/os68k.mt, ada-lang.h: Ditto.
341 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
342 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
344 2004-11-13 Eli Zaretskii <eliz@gnu.org>
346 * config/i386/xm-go32.h: Don't include fopen-bin.h.
347 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
349 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
350 branch that doesn't define CRLF_SOURCE_FILES; always use
352 (print_source_lines_base, forward_search_command)
353 (reverse_search_command): Enable the code that accepts DOS-style
354 CRLF line endings on all platforms (this removes the need for
357 * defs.h: Fix wording of the comment before FOPEN_RB.
358 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
360 * config/djgpp/fnchange.lst: Group renames for opcode directory
363 * config/djgpp/djconfig.sh: Replace file names that don't exist
364 anymore with existing files, for checking the unpacked
367 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
368 Export pre-cooked values in configure-* targets that begin with
369 "@test -f stage_last".
371 2004-11-12 Andrew Cagney <cagney@gnu.org>
373 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
374 * value.h (struct value): Update comment.
375 * valops.c (value_assign): Fold lval_reg_fame_relative into
377 * findvar.c (value_from_register, locate_var_value): Ditto.
379 2004-11-12 Randolph Chung <tausq@debian.org>
381 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
382 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
383 (write_exp_msymbol): Remove conditional check for symbols starting
384 with $. Update comments.
386 2004-11-12 Randolph Chung <tausq@debian.org>
388 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
389 so_lib_thread_start_addr.
390 * pa64solib.h (so_list): Forward declare.
391 (pa64_solib_thread_start_addr): Prototype.
392 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
393 (no_shared_libraries): Remove.
394 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
395 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
396 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
397 the elf solib handler to find the start address.
399 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
400 files to the target makefile.
401 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
402 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
403 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
405 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
406 files for symbol reading and shared library handling here.
407 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
408 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
409 without bringing in 64-bit support.
411 2004-11-12 Andrew Cagney <cagney@gnu.org>
413 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
414 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
415 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
416 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
417 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
418 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
419 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
421 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
422 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
423 (VALUE_REGNUM): Define.
424 (struct value): Delete location.regnum, rename "regno" to
426 * value.c, valops.c, valarith.c, findvar.c: Update.
428 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
429 (VALUE_BITPOS): Delete.
430 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
431 * value.c (value_type, value_offset, value_bitpos)
432 (value_bitsize): New functions. Update references.
433 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
434 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
435 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
436 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
437 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
438 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
439 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
440 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
441 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
443 2004-11-12 Andrew Cagney <cagney@gnu.org>
445 * cris-tdep.c (cris_register_offset): Delete, never called.
446 (cris_spec_reg_applicable): Delete cris_ver_sim.
447 * MAINTAINERS: List d10v as OBSOLETE.
448 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
449 FOPEN_WB et.al., defined by "fopen-bin.h".
451 2004-11-12 Randolph Chung <tausq@debian.org>
453 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
454 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
455 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
456 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
458 2004-11-12 Mark Kettenis <kettenis@jive.nl>
460 * tui/tui-io.c: Don't include "terminal.h".
461 * Makefile.in (tui-io.o): Update dependencies.
463 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
465 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
466 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
467 set_gdbarch_regset_from_core_section for core file support.
468 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
471 2004-11-11 Randolph Chung <tausq@debian.org>
473 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
474 stop_after_branch parameter and use it to determine if we should look
475 at the delay slot of the first branch insn to find prologue insns.
476 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
477 (hppa_frame_cache): Likewise.
479 2004-11-11 Randolph Chung <tausq@debian.org>
481 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
482 register so that it can be unwound from anywhere in the prologue.
484 2004-11-10 msnyder <msnyder@redhat.com>
486 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
487 must invalidate lr_reg (so we don't try to save it again).
488 Ditto for cr_offset and cr_reg.
490 2004-11-05 Jon Beniston <jon@beniston.com>
492 Committed by Andrew Cagney.
493 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
494 when an unexpected packet is received, as the target stubs
495 continually retransmit the same packet until ACKed.
497 2004-11-10 Randolph Chung <tausq@debian.org>
499 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
502 2004-11-10 Randolph Chung <tausq@debian.org>
504 * blockframe.c (inside_entry_func): Move to .....
505 * frame.c (inside_entry_func): ... here, and make static.
506 (backtrace_past_entry): New flag.
507 (get_prev_frame): Stop backtrace at the entry function if enabled
508 by flag. Update comments.
509 (_initialize_frame): Add command to set backtrace_past_entry flag.
510 * defs.h (inside_entry_func): Remove prototype.
512 2004-11-10 Mark Kettenis <kettenis@gnu.org>
514 * dwarf2read.c: Fix formatting.
516 2004-11-10 Andrew Cagney <cagney@gnu.org>
518 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
519 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
520 macros with function declarations.
521 * value.c (coerce_ref, coerce_array, coerce_number)
522 (coerce_enum): New functions.
523 (value_as_long, value_as_address): Update.
524 * ada-lang.c (ada_coerce_ref, ada_value_binop)
525 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
526 * jv-lang.c (evaluate_subexp_java): Update.
527 * valarith.c (value_less, value_neg, value_complement)
528 (value_binop, value_add, value_subscript, value_x_binop)
529 (value_logical_not, value_sub): Update.
530 * valops.c (check_field, value_struct_elt, value_ind)
531 (value_find_oload_method_list, value_cast, value_assign): Update.
532 * eval.c (evaluate_subexp_standard): Update.
534 2004-11-10 Mark Kettenis <kettenis@gnu.org>
536 * mips-tdep.c (mips32_relative_offset): Change return type to
537 LONGEST, change argument type to ULONGEST. Fix sign-extension.
539 2004-11-10 Randolph Chung <tausq@debian.org>
541 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
542 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
543 (hppa_fetch_pointer_argument): Likewise.
544 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
545 deprecated_read_memory_nobpt.
546 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
547 add_set_cmd sequence with add_setshow_boolean_cmd.
549 2004-11-09 Andrew Cagney <cagney@gnu.org>
551 GDB 6.3 released from GDB 6.3 branch.
553 2004-11-09 Andrew Cagney <cagney@gnu.org>
555 * values.c: Rename to ...
556 * value.c: ..., new file.
557 * Makefile.in: Update.
559 2004-11-09 Daniel Jacobowitz <dan@debian.org>
561 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
564 2004-11-09 Andrew Cagney <cagney@gnu.org>
568 * value.h (struct value): Delete field bfd_section.
569 (VALUE_BFD_SECTION): Delete macro.
570 (COERCE_REF): Update.
571 (value_at, value_at_lazy): Delete asection parameter.
572 * printcmd.c (print_formatted, x_command): Update.
573 (do_examine): Delete asection parameter.
574 (next_section): Delete variable.
575 * valops.c (value_cast, value_at, value_at_lazy)
576 (value_coerce_function, value_addr, value_ind, value_string)
577 (find_rt_vbase_offset, value_full_object): Update.
578 * hpacc-abi.c (hpacc_virtual_fn_field)
579 (hpacc_value_rtti_type): Update.
580 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
581 (gnuv3_baseclass_offset): Update.
582 * f-valprint.c (f_val_print): Update.
583 * c-valprint.c (c_val_print): Update.
584 * p-valprint.c (pascal_val_print): Update.
585 * jv-valprint.c (java_value_print): Update.
586 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
587 * ada-lang.c (ada_value_primitive_packed_val)
588 (ada_evaluate_subexp): Update.
589 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
590 * expprint.c (print_subexp_standard): Update.
591 * infcall.c (call_function_by_hand): Update.
592 * valarith.c (value_add): Update.
593 * eval.c (evaluate_subexp_standard): Update.
594 * values.c (allocate_value, value_copy, value_static_field): Update.
595 * findvar.c (read_var_value, locate_var_value): Update.
597 2004-11-09 Andrew Cagney <cagney@gnu.org>
599 * i386-linux-tdep.c: Include "dwarf2-frame.h".
600 * Makefile.in: Update all dependencies.
602 2004-11-08 Andrew Cagney <cagney@gnu.org>
604 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
605 (sentinel_frame_unwinder): Add the prev_pc method.
606 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
607 available. Do not handle the sentinel-frame case.
608 * frame-unwind.h (frame_prev_register_ftype): Define.
609 (struct frame_unwind): Add prev_pc;
611 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
613 * configure.in: Check for ncurses/term.h.
614 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
615 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
616 * tui/tui.c: Don't include term.h.
617 * configure, config.in: Rebuilt.
619 2004-11-08 Mark Kettenis <kettenis@gnu.org>
621 * m68kbsd-nat.c: Include "inf-ptrace.h".
622 (_initialize_m68kbsd_nat): Fix pasto.
623 * Makefile.in (m68kbsd-nat.o): Update dependencies.
625 2004-11-08 Randolph Chung <tausq@debian.org>
627 * infrun.c (debug_infrun): New variable.
628 (resume, proceed, wait_for_inferior): Annotate with debug messages.
629 (handle_inferior_event, keep_going): Likewise.
630 (_initialize_infrun): Register "set debug infrun" command.
632 2004-11-08 Andreas Schwab <schwab@suse.de>
634 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
635 PTRACE_EVENT_VFORKDONE.
636 (child_follow_fork): Adjust.
638 2004-11-08 Andrew Cagney <cagney@gnu.org>
640 * README: Refer to 6.3, not 6.2, update directory listing droppng
641 references to intl/ and mmalloc/.
642 * PROBLEMS: Refer to 6.3 not 6.2.
644 * PROBLEMS: Delete no-longer applicable problems.
646 2004-11-07 Andrew Cagney <cagney@redhat.com>
647 Daniel Jacobowitz <dan@debian.org>
648 Roland McGrath <roland@redhat.com>
650 * Makefile.in (symfile-mem.o): Update dependencies.
651 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
652 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
653 * inf-ptrace.c (inf_ptrace_attach): Call
654 observer_notify_inferior_created.
655 * inftarg.c (child_attach): Likewise.
656 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
657 (symbol_file_add_from_memory): Take NAME argument. Use it for
658 the new BFD's filename.
659 (add_symbol_file_from_memory_command): Update call to
660 symbol_file_add_from_memory.
661 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
662 (symbol_file_add_from_memory_wrapper): New.
663 (_initialize_symfile_mem): Register add_vsyscall_page as an
664 inferior_created observer.
666 2004-11-07 Mark Kettenis <kettenis@gnu.org>
668 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
669 fetch_inferior_registers. Make static.
670 (m68kbsd_store_inferior_registers): Rename from
671 store_inferior_registers. Make static.
672 (_initialize_m68kbsd_nat): Construct and add target vector.
673 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
674 inftarg.o. Add inf-ptrace.o.
675 (NAT_FILE): Set to tm-solib.h.
676 (LOADLIBES): New variable.
677 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
678 inftarg.o. Add inf-ptrace.o.
679 (NAT_FILE): Delete variable.
680 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
681 inftarg.o. Add inf-ptrace.o.
682 (NAT_FILE): Set to tm-solib.h.
683 * config/m68k/nm-nbsdaout.h: Remove file.
685 2004-11-07 Daniel Jacobowitz <dan@debian.org>
687 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
688 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
689 (dwarf2_signal_frame_unwind): New.
690 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
691 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
693 2004-11-07 Mark Kettenis <kettenis@gnu.org>
695 * Makefile.in (mips64obsd-tdep.o): Fix typo.
697 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
698 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
699 to only include the structure members we actually need.
700 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
701 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
702 only include the structure members we actually need.
703 (mipsnbsd_init_abi): Update.
705 * mips64obsd-nat.c: Include "mips-tdep.h".
706 (MIPS64OBSD_NUM_REGS): Remove define.
707 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
708 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
709 floating-point registers correctly.
710 * Makefile.in (mips64obsd-nat.o): Update dependencies.
712 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
714 (mips64obsd_sigframe_init): New function.
715 (mips64obsd_sigframe): New variable.
716 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
718 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
720 2004-11-06 Joel Brobecker <brobecker@gnat.com>
722 * alpha-mdebug-tdep.c: #include mdebugread.h.
723 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
724 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
726 2004-11-05 Andrew Cagney <cagney@gnu.org>
728 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
729 CFI and the init_reg method leave the register unspecified.
730 Include the register name in the "Incomplete CFI data" complaint.
731 Supress leading zeros in the address.
733 2004-11-05 Mark Kettenis <kettenis@gnu.org>
735 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
736 skipping a personality routine in a CIE augmentation.
738 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
740 * defs.h (fatal, vfatal): New function prototypes.
741 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
743 (backtrace_command): Change to call backtrace_command_stub via
744 catch_errors instead of calling backtrace_command_1 directly.
745 (backtrace_full_command): Ditto.
746 * utils.c (error_stream_1): New static function.
747 (verror): Change to call error_stream_1 instead of error_stream.
748 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
749 (vfatal, fatal): New functions.
751 2004-11-05 Andrew Cagney <cagney@gnu.org>
753 * stack.c (parse_frame_specification_1): Clear selected_frame_p
754 when not using selected frame.
756 2004-11-05 Mark Kettenis <kettenis@jive.nl>
758 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
759 personality routine in a CIE augmentation.
761 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
763 * stack.c (set_current_sal_from_frame): New function.
764 (print_args_stub): Use it.
765 (print_frame_info): Don't set sal here.
767 2004-11-04 Mark Kettenis <kettenis@gnu.org>
769 * dwarf2-frame.c (read_encoded_value): Change type of third
770 argument to `unsigned char *'. Add support for LEB128 encodings.
772 2004-11-04 Jim Blandy <jimb@redhat.com>
774 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
775 prevent cross-objfile references.
776 (make_cv_type): Doc fix. Don't create cross-objfile references,
778 (replace_type): Add assertion to prevent cross-objfile references.
779 (check_typedef): Never resolve a stub type by copying over a type
782 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
784 * Makefile.in (m32r-tdep.o): Update dependencies.
785 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
786 ABI-specific overrides.
788 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
790 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
791 unnecessary parallel execution bit.
792 (m32r_memory_remove_breakpoint): Ditto.
793 (m32r_breakpoint_from_pc): Update.
795 2004-11-03 Randolph Chung <tausq@debian.org>
797 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
798 frame_func_unwind to locate the unwind entry.
799 (hppa_frame_this_id): Likewise.
801 2004-11-03 Andrew Cagney <cagney@gnu.org>
803 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
804 packet, obsolete configurations, end-of-life deprecated_registers.
806 2004-11-02 Mark Kettenis <kettenis@gnu.org>
808 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
809 encodings as well as unsigned encodings.
811 2004-11-02 Andrew Cagney <cagney@gnu.org>
813 * value.h (COERCE_VARYING_ARRAY): Delete.
814 * valops.c (value_cast, value_slice): Delete use.
815 * valarith.c (value_subscript, value_concat): Delete use.
817 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
819 * NEWS: GDB understands GNAT Ada.
821 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
823 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
824 (amd64-sol2-tdep.o): Add dependencies.
825 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
826 config/i386/sol2-64.mt: New files.
827 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
828 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
829 (supply_gregset): Correct order of arguments to
830 amd64_supply_native_gregset.
831 (fill_gregset): Correct order of arguments to
832 amd64_collect_native_gregset.
833 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
834 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
835 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
836 for definition of NEW_PROC_API.
837 * configure: Regenerate.
839 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
841 * MAINTAINERS (Write After Approval): Add myself.
843 2004-11-01 Andrew Cagney <cagney@gnu.org>
845 * configure.tgt: Mark d10v-*-* as obsolete.
846 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
848 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
850 * values.c (modify_field): Correct handling of bit-fields that
851 don't fit in 32 bits. Use unsigned operations throughout and
852 simplify the code a bit. Document preconditions.
854 2004-10-31 Andrew Cagney <cagney@gnu.org>
856 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
857 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
858 (in_plt_section): Delete.
860 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
861 (mips_gdbarch_init): Do not set same.
863 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
864 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
866 * gdbarch.sh (in_solib_call_trampoline): Delete.
867 * gdbarch.h, gdbarch.c: Re-generate.
869 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
870 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
871 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
872 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
873 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
875 2004-10-31 Mark Kettenis <kettenis@gnu.org>
877 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
878 (mipsnbsd_fetch_inferior_registers): Rename from
879 fetch_inferior_registers. Make static.
880 (mipsnbsd_store_inferior_registers): Rename from
881 store_inferior_registers. Make static.
882 (_initialize_mipsnbsd_nat): New function and prototype.
883 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
884 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
885 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
888 2004-10-31 Andrew Cagney <cagney@gnu.org>
890 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
891 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
892 delete corresponding unused function.
893 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
894 in_solib_call_trampoline.
895 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
896 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
897 * config/mips/tm-nbsd.h: Ditto.
898 * config/arm/tm-linux.h: Ditto.
899 * config/mips/tm-linux.h: Ditto.
901 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
902 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
903 in_solib_call_trampoline, delete corresponding unused function.
904 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
905 (vaxnbsd_aout_init_abi): Ditto.
906 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
907 (sparc32nbsd_aout_init_abi): Ditto.
908 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
909 (ppc_linux_init_abi): Ditto.
910 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
911 (ns32knbsd_init_abi_aout): Ditto.
912 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
913 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
914 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
915 (m68kbsd_aout_init_abi): Ditto.
916 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
917 (i386_cygwin_init_abi): Ditto.
918 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
919 (i386bsd_init_abi): Ditto.
921 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
922 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
923 isn't used by this architecture.
924 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
925 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
926 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
927 * s390-tdep.c (s390_gdbarch_init): Ditto.
928 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
929 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
930 * i386-tdep.c (i386_svr4_init_abi): Ditto.
931 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
932 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
933 * amd64-tdep.c (amd64_init_abi): Ditto.
935 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
936 in_solib_call_trampoline to its default value of
937 generic_in_solib_call_trampoline.
938 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
939 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
940 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
941 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
942 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
943 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
945 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
947 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
949 * config/mips/tm-mips.h: Delete file.
950 * remote-mips.c: Delete tm-mips.h from comment.
951 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
952 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
953 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
954 * config/mips/tm-linux.h: Don't include tm-mips.h.
955 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
956 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
957 * config/mips/tm-wince.h: Don't include.
959 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
960 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
961 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
962 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
964 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
965 * mdebugread.c (ecoff_relocate_efi): Delete function.
966 * objfiles.c (objfile_relocate): Delete #ifdef
967 MDEBUG_EFI_SYMBOL_NAME code.
969 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
970 Andrew Cagney <cagney@gnu.org>
972 * gdbarch.sh (single_step_through_delay): Add.
973 * gdbarch.h, gdbarch.c: Re-generate.
974 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
975 (mips_step_skips_delay): Delete.
976 * mips-tdep.c (mips_single_step_through_delay): Replace
977 mips_step_skips_delay.
978 (mips_gdbarch_init): Set single_step_through_delay.
979 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
981 2004-10-31 Mark Kettenis <kettenis@gnu.org>
983 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
984 from TRAMP_FRAME frame type.
986 2004-10-31 Andrew Cagney <cagney@gnu.org>
988 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
990 * mips-tdep.c (mips_ignore_helper): Delete.
991 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
992 * infrun.c (handle_inferior_event): Delete #ifdef
993 DEPRECATED_IGNORE_HELPER_CALL code.
995 * config/mips/tm-mips.h (RA_REGNUM): Delete.
997 2004-10-31 Mark Kettenis <kettenis@gnu.org>
999 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1000 (fill_fpregset): Do not compile for 64-bit systems.
1001 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1002 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1003 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1005 2004-10-30 Andrew Cagney <cagney@gnu.org>
1007 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1008 (struct mdebug_extra_func_info): Define.
1009 * config/alpha/tm-alpha.h: Delete same.
1010 * config/mips/tm-mips.h: Delete same.
1011 * mdebugread.c: Delete same.
1012 * Makefile.in: Update dependencies.
1013 * mips-mdebug-tdep.c: Include "mdebugread.h".
1015 * objfiles.c: Include "mdebugread.h".
1016 * mdebugread.c: Include "mdebugread.h".
1017 (ecoff_relocate_cfi): Delete.
1018 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1019 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1020 * mdebugread.h (ecoff_relocate_efi): New file.
1021 * Makefile.in: Update dependencies.
1023 * mips-tdep.c (struct frame_extra_info): Delete.
1024 (temp_proc_desc): Delete.
1026 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1027 MIPS_EFI_SYMBOL_NAME.
1028 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1029 (struct mdebug_extra_func_info): Replace struct
1030 alpha_extra_func_info and alpha_extra_func_info_t.
1031 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1032 MIPS_EFI_SYMBOL_NAME.
1033 (struct mdebug_extra_func_info): Replace struct
1034 alpha_extra_func_info and alpha_extra_func_info_t.
1035 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1036 * mdebugread.c, alpha-mdebug-tdep.c:
1038 Suggested by Mark Kettenis.
1039 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1040 fields frame_adjust and high_addr.
1041 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1042 (non_heuristic_proc_desc): Delete references.
1044 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1045 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1046 * mips-tdep.c: Update.
1048 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1049 (MIPS_LAST_EMBED_REGNUM): Add.
1050 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1051 (LAST_EMBED_REGNUM): Delete.
1052 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1054 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1055 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1056 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1057 * mips-linux-nat.c: Update.
1059 * mips-tdep.h: Add comments on registers.
1060 (MIPS_UNUSED_REGNUM): Define.
1061 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1062 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1063 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1064 * mips-linux-nat.c, remote-mips.c: Update.
1066 * config/mips/tm-mips.h (t_insn): Delete.
1067 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1068 Replace t_insn with ULONGEST.
1070 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1072 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1073 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1074 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1075 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1076 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1077 (mipsnbsd_core_osabi_sniffer): New function.
1078 (mipsnbsd_init_abi): Set regset_from_core_section.
1079 (_initialize_mipsnbsd_tdep): Remove calls to
1080 deprecated_add_core_fns.
1081 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1082 (mipsnbsd_regset_from_core_section): New functions.
1083 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1084 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1086 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1087 Remove optimization for DEPRECATED_FP_REGNUM.
1089 2004-10-30 Andrew Cagney <cagney@gnu.org>
1091 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1092 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1093 (alpha_setup_arbitrary_frame): Delete.
1094 * mips-tdep.c (setup_arbitrary_frame): Delete.
1095 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1096 (setup_arbitrary_frame): Delete.
1097 * stack.c (parse_frame_specification_1): When specified, call
1098 create_new_frame with two parameters. Delete #ifdef
1099 SETUP_ARBITRARY_FRAME.
1101 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1102 (MIPS_INSTLEN): Delete.
1103 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1104 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1105 * remote-mips.c, mips-tdep.c: Update.
1107 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1108 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1109 * mips-tdep.c (mips_mdebug_frame_cache)
1110 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1111 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1112 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1113 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1114 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1115 (mips_gdbarch_init): Do not append mdebug sniffers.
1116 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1117 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1118 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1119 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1120 * Makefile.in: Update dependencies.
1122 * mips-tdep.h (mips_abi_regsize): Declare.
1123 * mips-tdep.c (mips_abi_regsize): Make non-static.
1125 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1126 (make_mips16_addr): Delete.
1128 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1130 * i386-sol2-nat.c: New file.
1131 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1133 (i386-sol2-nat.o): Update dependencies.
1134 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1137 2004-10-30 Andrew Cagney <cagney@gnu.org>
1139 Total breakage identified by Joel Brobecker.
1140 * mips-tdep.c (after_prologue): Delete.
1141 (mips_skip_prologue): Use skip_prologue_using_sal.
1142 (heuristic_proc_desc): Delete, unused.
1144 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1146 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1147 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1148 Cleanup coding style.
1150 2004-10-30 Andrew Cagney <cagney@gnu.org>
1152 * mips-tdep.h (mips_pc_is_mips16): Declare.
1153 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1154 non-static. Update calls.
1156 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1157 * command.h (add_setshow_enum_cmd): Declare.
1158 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1160 * mips-tdep.c (_initialize_mips_tdep): Use
1161 add_setshow_zinteger_cmd.
1163 * mips-tdep.c (mips_eabi_extract_return_value)
1164 (mips_o64_extract_return_value, mips_o64_store_return_value)
1165 (return_value_location, mips_eabi_reg_struct_has_addr)
1166 (mips_eabi_use_struct_convention)
1167 (mips_eabi_store_return_value): Delete.
1168 (mips_eabi_store_return_value): New function.
1169 (mips_eabi_return_value): New function.
1170 (mips_gdbarch_init): For O64 and EABI, delete
1171 extract_return_value, store_return_value, use_struct_convention
1172 and reg_struct_has_addr, add return_value.
1174 * mips-tdep.c (read_signed_register): Use
1175 regcache_cooked_read_signed.
1177 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1179 * mipsread.c: Cleanup coding style.
1180 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1181 (mipscoff_symfile_finish): Remove prototypes.
1183 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1185 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1186 (mips_mdebug_frame_cache, mips16_scan_prologue)
1187 (mips32_scan_prologue, mips_stub_frame_cache)
1188 (heuristic_proc_start, heuristic_proc_desc)
1189 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1190 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1191 (mips_o32_return_value, mips_o64_push_dummy_call)
1192 (mips_step_skips_delay, mips_skip_trampoline_code)
1193 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1194 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1195 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1196 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1197 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1198 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1199 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1200 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1201 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1202 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1204 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1205 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1207 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1209 * mipsnbsd-nat.c: Include "mips-tdep.h".
1210 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1211 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1213 2004-10-29 Andrew Cagney <cagney@gnu.org>
1215 * stack.c (parse_frame_specification_1): New function based on
1216 parse_frame_specification. Add message and selected_frame_p
1217 paramters. Truely always return non-NULL.
1218 (parse_frame_specification): Call parse_frame_specification_1.
1219 (frame_info): Update. Eliminate target_has_stack check.
1220 (select_frame_command): Update.
1222 2004-10-29 Andrew Cagney <cagney@gnu.org>
1224 * frame.h (get_selected_frame): Add message parameter.
1225 * frame.c (get_selected_frame): Add and use message parameter.
1226 * stack.c (current_frame_command, return_command, locals_info)
1227 (catch_info, args_info, up_silently_base, down_silently_base): Use
1228 get_selected_frame with an explicit message.
1229 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1230 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1231 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1232 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1233 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1234 * breakpoint.c: Update.
1236 2004-10-29 Andrew Cagney <cagney@gnu.org>
1238 * trad-frame.c (trad_frame_get_prev_register): Use
1239 frame_unwind_register instead of frame_register_unwind, do not
1240 recurse the register's location.
1241 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1242 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1243 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1244 * sh-tdep.c (sh_frame_prev_register): Ditto.
1245 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1246 * i386-tdep.c (i386_frame_prev_register): Ditto.
1247 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1248 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1250 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1252 * proc-events.c: Fix several coding-style issues. Consistently
1253 use #ifdef instead of #if defined().
1254 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1256 (_initialize_proc_events): New prototype.
1258 * proc-why.c: Fix several coding-style issues.
1259 (proc_prettyfprint_why): Use ARRAY_SIZE.
1261 2004-10-27 Jim Blandy <jimb@redhat.com>
1263 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1264 manner independent of the host byte order.
1266 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1268 * mips-tdep.c (id_delayed): Remove prototype.
1270 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1272 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1273 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1274 to enum with register numbers.
1275 (enum mips_insn_size): New enum.
1277 2004-10-26 Andrew Cagney <cagney@gnu.org>
1279 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1280 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1281 (mips_gdbarch_init): Update.
1282 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1284 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1285 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1286 IN_SOLIB_RETURN_TRAMPOLINE.
1287 * mips-tdep.c (mips_dump_tdep): Do not print
1288 IN_SOLIB_RETURN_TRAMPOLINE.
1289 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1290 (mips_gdbarch_init): Update.
1292 * mips-tdep.h (mips_software_single_step): Move to here ...
1293 * config/mips/tm-mips.h: ... from here.
1294 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1295 (SOFTWARE_SINGLE_STEP): Delete.
1296 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1298 2004-10-25 Andrew Cagney <cagney@gnu.org>
1300 * NEWS: Add Changes since GDB 6.3 section.
1302 2004-10-23 Andreas Schwab <schwab@suse.de>
1304 * ada-lang.c (grow_vect): Return the new array instead of
1305 expecting pointer to pointer to avoid violation of aliasing rules.
1306 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1308 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1310 * s390-tdep.c (enum pv_boolean): Remove.
1311 (pv_is_array_ref): Remove.
1312 (s390_on_stack): Remove.
1313 (S390_NUM_SPILL_SLOTS): Remove.
1314 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1315 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1316 (s390_store): Track all stores of orginal incoming registers to the
1317 stack constant offsets relative to the CFA, instead of only tracking
1318 stores into specific spill slots.
1319 (s390_load): Likewise.
1320 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1321 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1322 defined as call-saved by the ABI.
1323 (s390_push_dummy_call): Use bottom of dummy call argument save area
1324 as return value, not the top. Do not store to the called function's
1326 (s390_unwind_dummy_id): Adapt accordingly.
1328 2004-10-23 Andrew Cagney <cagney@gnu.org>
1330 * objfiles.h (struct objfile): Rename obj_private to
1331 deprecated_obj_private, sym_private to deprecated_sym_private, and
1332 sym_stab_info to deprecated_sym_stab_info.
1333 * gdb-stabs.h: Update.
1334 * elfread.c: Update.
1335 * dbxread.c: Update.
1336 * coffread.c: Update.
1337 * xcoffread.c: Update.
1338 * symfile.c: Update.
1339 * somread.c: Update.
1340 * nlmread.c: Update.
1341 * mdebugread.c: Update.
1343 * coffread.c: Update.
1345 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1347 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1348 * configure.host: Add mips64*-*-openbsd*.
1349 * configure.tgt: Add mips64*-*-openbsd*.
1350 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1352 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1353 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1355 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1357 * symtab.c (symbol_search_name): Minor reformatting.
1359 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1361 * symtab.h: Fix typo in comment.
1363 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1365 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1366 (dwarf_decode_line_header): Likewise.
1368 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1370 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1372 2004-10-19 Andrew Cagney <cagney@gnu.org>
1374 GDB 6.3 branch created.
1375 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1377 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1379 * dwarf2read.c (set_cu_language): Set language to Ada for
1380 DW_LANG_Ada83 and DW_LANG_Ada95.
1382 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1384 From Andreas Schwab <schwab@suse.de>:
1385 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1386 for xmalloc and xrealloc.
1388 2004-10-15 Andrew Cagney <cagney@gnu.org>
1390 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1391 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1392 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1393 Update dependencies.
1395 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1397 * ada-lang.c (ada_lookup_symbol): Correct comment.
1398 (ada_evaluate_subexp): Change error message for
1399 OP_FUNCALL case so as not to indicate an internal error.
1401 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1403 Committed by Paul Hilfinger.
1404 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1405 type sizes in XVE/XVU types, and emit a warning when that happens,
1406 instead of rounding up the size of the resulting type.
1407 Some minor reformatting.
1408 (ada_is_aligner_type): Do not consider a type as an aligner type
1409 if there is a corresponding XVS type as well.
1410 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1411 have several levels of pointer indirection to the array.
1413 2004-10-15 Jerome Guitton <guitton@gnat.com>
1415 Committed by Paul Hilfinger.
1416 * ada-lang.c (check_size): New function.
1417 (coerce_unspec_val_to_type): call check_size to make sure
1418 that the object size is reasonable.
1419 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1420 Implements the case when we get a reference when we evaluate
1421 the expression of one of the bounds of the slice.
1422 (ada_value_struct_elt): when a packed array field is
1423 a reference, use ada_coerce_ref to dereference it; use
1424 ada_value_ind only if it is a pointer.
1426 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1428 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1429 a bit to avoid the necessity of an advance declaration. Remove
1431 (set_reg_offset): Move implemenation up.
1432 (mips16_get_imm): Likewise.
1433 (mips16_scan_prologue): Likewise.
1434 (reset_saved_regs): Likewise.
1435 (mips32_scan_prologue): Likewise.
1437 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1439 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1440 Remove sp as a parameter, compute it internally instead. Move
1441 prologue scanning limit from heuristic_proc_desc to here.
1442 (mips16_scan_prologue): Likewise.
1443 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1444 by call to mips16_scan_prologue.
1445 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1446 by call to mips32_scan_prologue.
1447 (heuristic_proc_desc): Remove code that's no longer necessary.
1448 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1449 (mips_skip_prologue): Update calls to mips16_scan_prologue
1450 and mips32_scan_prologue.
1452 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1454 * mips-tdep.c (mips16_scan_prologue): Merge code from
1455 mips16_skip_prologue. Now return the address of the first
1456 instruction past the function prologue.
1457 (mips16_skip_prologue): Remove, no longer necessary.
1458 (mips_skip_prologue): Replace call to mips16_skip_prologue
1459 by call to mips16_scan_prologue.
1461 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1463 * mips-tdep.c (mips32_scan_prologue): Merge code from
1464 mips32_skip_prologue. Now return the address of the first
1465 instruction past the function prologue.
1466 (mips32_skip_prologue): Remove. No longer necessary.
1467 (mips16_skip_prologue): Add parameter end_pc instead of
1469 (mips_skip_prologue): Compute the upper limit for the
1470 prologue scanning. Update call to mips16_skip_prologue.
1471 Replace call to mips32_skip_prologue by call to
1472 mips32_scan_prologue.
1474 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1476 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1477 NetBSD system call stubs that store %rp in the ERP slot of the
1480 * source.c: Always define O_BINARY to 0 if not defined already.
1481 (openp): Unconditionally use O_BINARY.
1483 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1484 * event-top.c (gdb_readline2): Likewise.
1486 2004-10-14 Orjan Friberg <orjanf@axis.com>
1488 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1489 deprecated_add_core_fns which was removed by mistake.
1491 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1493 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1494 references to deprecated_registers[] with equivalent code.
1496 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1498 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1499 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1500 instead of explicit test and print statement.
1502 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1504 * sparc-nat.c: Include "inf-ptrace.h".
1505 (sparc_target): New function.
1506 * sparc-nat.h: Update copyright year.
1507 (sparc_target): New prototype.
1508 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1509 (_initialize_sparcnbsd_nat): Construct and add target vector.
1510 * sparc64nbsd-nat.c: Include "target.h".
1511 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1512 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1513 Update dependencies.
1514 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1515 inftarg.o, add inf-ptrace.o.
1516 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1517 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1518 (NAT_FILE): Set to nm-bsd.h.
1519 (LOADLIBES): New variable.
1520 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1521 infarg.o, add inf-ptrace.o.
1522 * config/sparc/nm-nbsdaout.h: Remove file.
1523 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1524 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1525 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1527 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1528 "fopen-same.h". Update comment.
1530 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1532 * i386gnu-nat.c: Include "gdb_string.h".
1533 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1534 registers when the floating-point state isn't initialized.
1535 * Makefile.in (i386gnu-nat.o): Update dependencies.
1537 2004-10-11 David Anderson <davea@sgi.com>
1539 * regcache.c (regcache_raw_read): Comment was missing "to".
1540 Extraneous ' removed.
1541 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1542 comment now describes use.
1544 2004-10-11 Orjan Friberg <orjanf@axis.com>
1546 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1547 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1548 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1549 (cris_sigtramp_frame_sniffer): New functions.
1550 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1551 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1552 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1553 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1554 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1556 (cris_version_update): Remove, replace with ...
1557 (set_cris_version): New function.
1558 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1559 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1560 (_initialize_cris_tdep): Remove CRIS mode command.
1561 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1562 cris-fpless-backtrace command.
1563 (cris_scan_prologue): Fix prologue scanning limit.
1564 (cris_register_type): Update to reflect actual registers.
1565 (cris_register_bytes_ok) Remove.
1566 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1567 Remove set_gdbarch_deprecated_register_size,
1568 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1570 2004-10-10 Andrew Cagney <cagney@gnu.org>
1572 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1575 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1577 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1579 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1581 * mips-tdep.c (mips16_scan_prologue): Renames
1582 mips16_heuristic_proc_desc. Update comment.
1583 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1584 (heuristic_proc_desc): Update calls to the 2 functions above.
1586 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1588 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1589 Update comments. Also immediately return empty cache when the start
1590 address of our function could not be found.
1591 (mips_insn32_frame_cache): Likewise.
1593 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1595 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1596 (mips_insn16_frame_cache): Pass frame cache in call to
1597 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1598 Remove code that became redundant as a consequence.
1599 (mips32_heuristic_proc_desc): No longer compute a fake
1600 procedure descriptor. Compute the full frame cache instead.
1601 Some minor comment reformatting.
1603 2004-10-10 Jim Blandy <jimb@redhat.com>
1605 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1606 reader, tracing bytecode stuff): Remove self.
1608 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1610 * sparc64-linux-tdep.c: Update copyright year. Don't include
1612 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1613 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1614 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1616 * sparc-linux-tdep.c: Update copyright year.
1617 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1618 to struct frame_info *. Use safe_frame_unwind_memory instead of
1619 deprecated_read_memory_nobpt.
1620 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1621 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1622 changed signature of sparc_linux_sigtramp_start.
1623 (sparc32_linux_pc_in_sigtramp): Remove function.
1624 (sparc32_linux_sigtramp_p): New function.
1625 (sparc32_linux_sigtramp_frame_sniffer): Use
1626 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1628 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1630 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1632 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1633 (decode_packed_array_type, value_subscript_packed)
1634 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1635 argument in call to lim_warning.
1637 * configure.in: Really disable the TUI if an enhanced curses
1638 library isn't found.
1639 * configure: Regenerate.
1641 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1643 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1644 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1645 * config/i386/nm-nbsdaout.h: Remove file.
1646 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1647 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1648 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1649 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1650 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1651 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1652 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1653 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1654 (ldd, ld_un, ld_2): Remove defines.
1655 * config/i386/nm-obsd.h: Likewise.
1657 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1659 * ada-lex.l: Remove useless rule whose right-context clause
1660 causes unreferenced static function warning for yyrealloc.
1661 (ada_flex_use): Remove the artificial reference to yyrealloc.
1663 2004-10-08 Andrew Cagney <cagney@gnu.org>
1665 * target.h (struct target_ops): Rename to_xfer_memory to
1666 deprecated_xfer_memory.
1668 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1670 * win32-nat.c: Update.
1671 * v850ice.c: Update.
1672 * uw-thread.c: Update.
1673 * thread-db.c: Update.
1674 * sol-thread.c: Update.
1676 * remote-vx.c: Update.
1677 * remote-st.c: Update.
1678 * remote-sim.c: Update.
1679 * remote-sds.c: Update.
1680 * remote-rdp.c: Update.
1681 * remote-rdi.c: Update.
1682 * remote-mips.c: Update.
1683 * remote-m32r-sdi.c: Update.
1684 * remote-e7000.c: Update.
1686 * ppc-bdm.c: Update.
1687 * nto-procfs.c: Update.
1688 * monitor.c: Update.
1689 * linux-nat.c: Update.
1690 * inftarg.c: Update.
1691 * hpux-thread.c: Update.
1692 * go32-nat.c: Update.
1693 * gnu-nat.c: Update.
1695 * corelow.c: Update.
1696 * bsd-kvm.c: Update.
1697 * aix-thread.c: Update.
1699 2004-10-08 Andrew Cagney <cagney@gnu.org>
1701 * target.c (debug_target): Move to near start of file.
1702 (target_stopped_data_address_p): Re-org logic, add casts.
1704 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1706 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1707 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1708 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1709 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1712 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1714 * target.h (to_stopped_data_address): Change prototype to
1715 take a CORE_ADDR pointer and return an int.
1716 * target.c (update_current_target): Change to_stopped_data_address
1717 to match new prototype.
1718 (debug_to_stopped_data_address): Change appropriately.
1719 * breakpoint.c (bpstat_stop_status): Change call to
1720 target_stopped_data_address to use new prototype.
1721 * frv-tdep.c (frv_have_stopped_data_address): New function.
1722 (frv_stopped_data_address): Change to new prototype and
1724 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1725 prototype and functionality.
1726 (ia64_stopped_by_watchpoint): New function.
1727 * i386-nat.c (i386_stopped_data_address): Change to new
1728 prototype and functionality.
1729 (i386_stopped_by_watchpoint): New function.
1730 * remote.c (remote_stopped_data_address): Change to new prototype
1732 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1733 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1734 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1735 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1736 new i386_stopped_by_watchpoint function.
1737 (i386_stopped_by_watchpoint): New prototype.
1738 (i386_stoppped_data_address): Change to new prototype.
1739 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1740 new ia64_stopped_by_watchpoint function.
1741 (ia64_stopped_by_watchpoint): New prototype.
1742 (ia64_stopped_data_address): Ditto.
1744 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1746 * ada-typeprint.c (ada_print_type): Use int_string for printing
1747 modulus of modular type.
1748 * ada-lang.h (ada_modulus): Change return type to unsigned.
1749 * ada-lang.c (ada_language_arch_info): Correct type of
1751 (ada_modulus): Return unsigned result.
1752 (ada_lookup_symbol): Remove user disambiguation and modify comment
1755 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1757 Committed by Paul Hilfinger.
1758 * ada-lang.c (decode_packed_array): On big-endian targets,
1759 left-justify the value if it comes with a modular type.
1761 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1763 Committed by Paul Hilfinger.
1764 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1765 (is_name_suffix): Add support for "___JM" suffixes.
1766 (ada_check_typedef): Renames ada_completed_type.
1767 Update all users of CHECK_TYPEDEF, check_typedef, and
1768 ada_complete_type to call ada_check_typedef.
1769 * ada-typeprint.c: Likewise.
1770 * ada-valprint.c: Likewise.
1772 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1774 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1776 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1778 * MAINTAINERS: Update e-mail address.
1780 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1782 From Maciej W. Rozycki <macro@mips.com>:
1783 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1784 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1786 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1788 * m32r-tdep.c (decode_prologue): Support functions written
1789 in assembler language. Recognize trap instructions as the
1791 (m32r_frame_unwind_cache): Ditto.
1792 (m32r_skip_prologue): Extend search limit. Quit analyzing
1793 prologue if pc's location is not readable.
1795 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1797 * Makefile.in (.l.c): Do conversions of names of alloc and free
1798 functions that are done for .y.c files, plus special one
1799 for yy_flex_realloc. Also, correct missing-file tests here.
1800 * ada-lex.l (malloc, free): Remove macros.
1801 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1803 (ada_flex_use): Dummy definition to remove warnings about unused
1805 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1806 to suppress warning.
1808 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1810 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1812 (sh_return_value_fpu): Ditto for CPUs with FPU.
1813 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1814 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1815 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1816 RETURN_VALUE functions.
1818 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1820 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1821 (sh_pseudo_register_write): Ditto.
1823 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1825 * sh-tdep.c (IS_MACL_STS): New define.
1827 (IS_MACL_LDS): Ditto.
1828 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1829 instructions in prologue.
1830 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1831 instructions in epilogue.
1833 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1835 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1836 (sh_sh_register_name): Add eight empty register names.
1837 (sh_sh3_register_name): Ditto.
1838 (sh_sh3e_register_name): Ditto.
1839 (sh_sh2e_register_name): Ditto.
1840 (sh_sh2a_register_name): New function, defining SH2A register set.
1841 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1843 (sh_sh_dsp_register_name): Add eight empty register names.
1844 (sh_sh3_dsp_register_name): Ditto.
1845 (sh_sh4_register_name): Ditto.
1846 (sh_sh4_nofpu_register_name): Ditto.
1847 (sh_sh4al_dsp_register_name): Ditto.
1848 (sh2a_show_regs): New function.
1849 (sh2a_nofpu_show_regs): New function.
1850 (sh_sh2a_register_type): New function.
1851 (do_bank_register_info): New function.
1852 (sh_print_pseudo_register): Call do_bank_register_info.
1853 Call sh_print_pseudo_register for valid "bank" register.
1854 (sh_sh2a_register_sim_regno): New function.
1855 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1856 Increment pseudo register count by one for all sh variants with
1857 pseudo registers to accomodate pseudo bank register.
1858 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1859 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1860 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1861 Increment pseudo register numbers.
1863 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1865 * dwarf2read.c (read_subroutine_type): Call make_function_type
1866 instead of lookup_function_type.
1868 2004-10-05 Jim Blandy <jimb@redhat.com>
1870 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1871 (Previous change missed some uses.)
1873 2004-10-05 Andrew Cagney <cagney@gnu.org>
1875 * target.h (deprecated_child_ops): Rename child_ops.
1876 * wince.c: Update copyright. Rename child_ops.
1877 * win32-nat.c: Rename child_ops.
1878 * target.c: Rename child_ops.
1879 * rs6000-nat.c: Rename child_ops.
1880 * linux-nat.c: Rename child_ops.
1881 * infttrace.c: Rename child_ops.
1882 * inftarg.c: Rename child_ops.
1883 * infptrace.c: Rename child_ops.
1884 * hppah-nat.c: Update copyright. Rename child_ops.
1885 * hpux-thread.c: Update copyright. Rename child_ops.
1887 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1889 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1891 2004-10-05 Andrew Cagney <cagney@gnu.org>
1893 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1895 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1897 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1898 (die_ref_table): Remove.
1899 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1900 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1901 the usage of this type.
1902 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1903 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1904 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1905 (dwarf2_create_include_psymtab): Update comment.
1906 (find_partial_die): Remove third argument. Remove unreachable call
1908 (dwarf2_find_containing_comp_unit): Update comments. Change one
1909 assertion to an error. Remove an unreachable error.
1910 (dwarf2_find_comp_unit): Update comments.
1911 (type_at_offset): Remove dead code.
1912 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1913 (store_in_ref_table): Add CU argument.
1914 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1915 inter-compilation-unit references.
1916 (load_full_comp_unit, process_full_comp_unit): New functions, based
1917 on psymtab_to_symtab_1.
1918 (psymtab_to_symtab_1): Use them.
1919 (dwarf2_add_dependence): New function.
1920 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1921 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1922 (partial_die_parent_scope, guess_structure_name): Update for changes
1923 to find_partial_die.
1924 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1925 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1926 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1927 (read_die_and_children): Update call to store_in_ref_table.
1928 (do_free_die_list_cleanup): Remove.
1929 (fixup_partial_die): Update for changes to find_partial_die.
1930 (read_full_die): Handle queueing absolute references.
1931 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1932 (dwarf2_attr, die_specification, die_type)
1933 (die_containing_type, dwarf2_extension): Update calls to
1935 (dump_die): Update DW_FORM_ref* handling.
1936 (dwarf2_get_ref_die_offset): Likewise.
1937 (free_one_comp_unit): Release the dies list.
1938 (dwarf2_mark_helper): New function.
1939 (dwarf2_mark): Use it.
1941 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1943 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1944 when writing to memory.
1946 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1948 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1949 (m32r_extract_struct_value_address): Delete function.
1950 (m32r_return_value): New function.
1951 (m32r_gdbarch_init): Instead of store_return_value,
1952 extract_return_value, deprecated_extract_struct_value_address
1953 and deprecated_use_struct_convention, set return_value.
1955 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1957 * dwarf2read.c (read_subrange_type): Add comment for variable
1960 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1962 * Makefile.in (.l.c): Modify rule for compatibility with recent
1963 versions of flex, and remove most command-line options.
1964 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1967 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1969 Turn on initial Ada support (mainly expression evaluation).
1971 * Makefile.in (SFILES): Remove ada-tasks.c.
1972 (HFILES_NO_SRCDIR): Add ada-lang.h.
1973 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1974 (YYOBJ): Add ada-exp.o.
1975 (rule .l.c): Generalize to not mention ada.
1976 * symtab.c: Include ada-lang.h.
1977 (symbol_natural_name, symbol_demangled_name)
1978 (symbol_search_name): Add Ada case.
1980 2004-10-01 Andrew Cagney <cagney@gnu.org>
1982 * Makefile.in (COMMON_OBS): Add inf-child.o.
1983 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1984 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1985 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1986 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1987 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1988 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1989 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1990 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1991 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1992 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1993 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1994 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1995 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1997 * target.c (xfer_using_stratum): Change return type to LONGEST.
1998 On each iteration offset, readbuf and writebuf.
1999 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2000 partial_length, and read/modify/write predicate, update comments.
2001 Pass buffer.word to ptrace write.
2003 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2005 * symfile.c (init_filename_language_table): Add extensions for
2007 * defs.h (enum language): Add language_ada.
2008 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2009 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2010 (add_symbols_from_enclosing_procs): Make a no-op for now.
2011 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2012 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2013 (find_line_in_linetable, find_next_line_in_linetable)
2014 (read_all_symtabs, is_plausible_func_for_line)
2015 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2016 (is_runtime_sym_defined, check_size): Remove declaration.
2017 (function_name_from_pc, ada_translate_error_message)
2018 (ada_lookup_minimal_symbol): Remove definition.
2019 (ada_add_block_symbols): Remove useless label.
2020 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2021 useless declaration.
2022 (ada_is_exception_sym): Likewise.
2024 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2026 Add m32r-linux support.
2027 * configure.tgt: Add m32r*-*-linux*.
2028 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2029 and m32r-linux-tdep.c.
2030 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2031 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2032 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2034 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2035 config/m32r/linux.mh, config/m32r/linux.mt,
2036 config/m32r/nm-linux.h: New files.
2038 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2040 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2041 (mips32_fetch_instruction): Remove, unused.
2043 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2045 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2046 conditions that will always be true.
2048 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2050 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2051 (vaxbsd_fetch_inferior_registers): Rename from
2052 fetch_inferior_registers. Make static.
2053 (vaxbsd_store_inferior_registers): Rename from
2054 store_inferior_registers. Make static.
2055 (_initialize_vaxbsd_nat): Construct and add target vector.
2056 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2057 inftarg.o. Add inf-child.o and inf-ptrace.o.
2058 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2059 inftarg.o. Add inf-child.o and inf-ptrace.o.
2061 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2062 inftarg.o. Add inf-child.o and inf-ptrace.o.
2064 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2066 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2067 (m88kbsd_fetch_inferior_registers): Rename from
2068 fetch_inferior_registers. Make static.
2069 (m88kbsd_store_inferior_registers): Rename from
2070 store_inferior_registers. Make static.
2071 (_initialize_m88kbsd_nat): New prototype and function.
2072 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2073 inftarg.o. Add inf-child.o and inf-ptrace.o.
2075 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2077 2004-09-30 Andrew Cagney <cagney@gnu.org>
2079 * target.c (target_xfer_partial): New function.
2080 (target_read_memory_partial, target_write_memory_partial)
2081 (default_xfer_partial, target_read_partial, target_write_partial)
2082 (xfer_using_stratum): Use.
2083 (debug_to_xfer_partial): Delete function.
2084 (setup_target_debug): Do not override to_xfer_partial.
2086 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2088 * fork-child.c: Update copyright year. Fix coding style.
2090 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2092 * defs.h (msavestring, mstrsave): Remove prototypes.
2093 * utils.c (msavestring, mstrsave): Remove functions.
2094 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2095 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2097 * source.c (find_and_open_source): Use xstrdup instead of
2100 2004-09-30 Andrew Cagney <cagney@gnu.org>
2102 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2103 (inf_ptrace_xfer_memory): Delete.
2104 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2105 (target_read_memory, target_write_memory): Use xfer_using_stratum
2106 when target_xfer_partial_p.
2107 (debug_target): Move to start of file.
2108 (target_read_memory_partial, target_write_memory_partial): Use
2109 to_xfer_partial when target_xfer_partial_p.
2111 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2112 inf_ptrace_xfer_memory with equivalent code.
2113 * inftarg.c (child_xfer_partial): When performing a write, pass
2114 writebuf to child_xfer_memory.
2116 * target.c (target_read_string): Use target_read_memory instead of
2119 2004-09-29 Andrew Cagney <cagney@gnu.org>
2121 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2122 the address of status.
2124 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2125 (kill_inferior): Inline ptrace_wait call.
2126 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2127 * inftarg.c (child_wait): Inline ptrace_wait call.
2129 * target.h (struct target_ops): Delete field to_post_wait.
2130 (target_post_wait): Delete macro.
2131 (child_post_wait): Delete declaration.
2132 * target.c (update_current_target, update_current_target)
2133 (debug_to_post_wait, setup_target_debug): Delete functions and
2135 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2136 * inftarg.c (child_post_wait): Delete.
2137 (init_child_ops): Do not set to_post_wait.
2138 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2139 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2140 * inf-child.c (inf_child_post_wait): Delete.
2141 (inf_child_target): Do not set to_post_wait.
2142 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2143 (inf_ptrace_target): Do not set to_post_wait.
2145 * wince.c (child_ops): Delete.
2146 * win32-nat.c (child_ops): Delete.
2148 * inftarg.c (inftarg_set_find_memory_regions)
2149 (inftarg_set_make_corefile_notes): Delete functions.
2150 (_initialize_linux_nat): Inline calls.
2152 * target.h (child_ops): Declare.
2153 * inftarg.c (child_ops): Move from here ...
2154 * target.c (child_ops): ... to here.
2155 * wince.c (child_ops): Delete extern declaration.
2156 * win32-nat.c (child_ops): Delete extern declaration.
2157 * linux-nat.c (child_ops): Delete extern declaration.
2158 * hpux-thread.c (child_ops): Delete extern declaration.
2160 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2162 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2164 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2166 * configure.in: Only set host_makefile_frag when building a native
2168 * configure: Regenerate.
2170 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2173 2004-09-28 Andrew Cagney <cagney@gnu.org>
2175 Problem identified by Paul Hilfinger.
2176 * Makefile.in (ada_lex_c): Define.
2177 (ada-lex.o): Delete rule.
2179 * linux-proc.c: Delete file.
2180 * Makefile.in: Update.
2181 * config/sparc/linux64.mh (NATDEPFILES):
2182 * config/sparc/linux.mh (NATDEPFILES): Update.
2183 * config/s390/s390.mh (NATDEPFILES): Update.
2184 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2185 * config/powerpc/linux.mh (NATDEPFILES): Update.
2186 * config/pa/linux.mh (NATDEPFILES): Update.
2187 * config/mips/linux.mh (NATDEPFILES): Update.
2188 * config/m68k/linux.mh (NATDEPFILES): Update.
2189 * config/ia64/linux.mh (NATDEPFILES): Update.
2190 * config/i386/linux64.mh (NATDEPFILES): Update.
2191 * config/i386/linux.mh (NATDEPFILES): Update.
2192 * config/arm/linux.mh (NATDEPFILES): Update.
2193 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2194 * linux-nat.c: Update copyright. Include <sys/param.h>,
2195 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2196 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2197 (O_LARGEFILE): Possibly define.
2198 (_initialize_linux_nat, linux_proc_pending_signals)
2199 (add_line_to_sigset, linux_proc_xfer_memory)
2200 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2201 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2202 (struct linux_corefile_thread_data)
2203 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2204 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2206 2004-09-16 Andrew Cagney <cagney@gnu.org>
2208 * lin-lwp.c: Delete file.
2209 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2210 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2211 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2212 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2213 (linux_nat_attach, detach_callback, linux_nat_detach)
2214 (resume_callback, resume_clear_callback, linux_nat_resume)
2215 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2216 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2217 (status_callback, running_callback, count_events_callback)
2218 (select_singlestep_lwp_callback, select_event_lwp_callback)
2219 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2220 (child_wait, stop_and_resume_callback, linux_nat_wait)
2221 (kill_callback, kill_wait_callback, linux_nat_kill)
2222 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2223 (linux_nat_xfer_memory, linux_nat_thread_alive)
2224 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2225 (_initialize_linux_nat): New functions.
2226 * Makefile.in: Update all dependencies.
2227 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2228 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2229 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2230 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2231 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2232 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2233 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2234 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2235 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2236 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2237 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2238 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2239 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2241 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2243 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2244 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2246 * configure.in: Don't comment out NATDEPFILES in the generated
2247 Makefile if NAT_FILE is unset.
2248 * configure: Regenerate.
2250 2004-09-27 Andrew Cagney <cagney@gnu.org>
2252 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2253 (insert_step_resume_breakpoint): Delete.
2254 (insert_step_resume_breakpoint_at_frame): New function.
2255 (insert_step_resume_breakpoint_at_sal): New function.
2256 (handle_inferior_event, step_into_function)
2257 (insert_step_resume_breakpoint): Simplify by using same.
2259 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2261 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2263 * fbsd-proc.c: Remove file.
2264 * Makefile.in (fbsd-proc.o): Remove dependency.
2266 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2269 * config/i386/nm-fbsd64.h: Remove file.
2270 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2272 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2274 * amd64-nat.h: Update copyright year.
2275 (amd64bsd_target): New prototype.
2276 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2277 (amd64bsd_target): New function.
2278 (amd64bsd_fetch_inferior_registers): Rename from
2279 fetch_inferior_registers. Make static.
2280 (amd64bsd_store_inferior_registers): Rename from
2281 store_inferior_registers. Make static.
2282 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2283 (_initialize_amd64fbsd_nat): Construct and add target vector.
2284 * amd64nbsd-nat.o: Include "target.h".
2285 (_initialize_amd64nbsd_nat): Construct and add target vector.
2286 * amd64obsd-nat.c: Include "target.h".
2287 (_initialize_amd64obsd_nat): Construct and add target vector.
2288 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2289 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2290 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2292 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2293 Remove infptrace.o and inftarg.o. Add inf-child.o and
2295 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2296 (amd64obsd-nat.o): Update dependencies.
2298 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2300 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2301 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2302 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2303 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2304 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2306 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2308 (inf_ptrace_detach): Inline detach call.
2310 * configure.in: Check for waddstr instead of mvwaddstr when
2311 searching for curses library. Check for wborder.
2312 * configure, config.in: Regenerate.
2313 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2316 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2318 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2320 Committed by Andrew Cagney.
2321 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2322 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2324 (fetch_register_using_p): Implement 'p' packet. Based on code by
2326 (remote_fetch_registers): Call fetch_register_using_p.
2327 (init_all_packet_configs, show_remote_cmd)
2328 (_initialize_remote): Add p-packet.
2330 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2332 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2333 instead of call_ptrace. Call wait directly instead of
2335 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2336 (inf_ptrace_wait): Inline ptrace_wait call.
2338 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2340 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2341 rolled back instead.
2343 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2345 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2346 the new argument order.
2348 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2350 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2351 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2352 (struct gdbarch_tdep): Remove.
2353 (struct xstormy16_frame_cache): New frame cache structure.
2354 (xstormy16_register_byte, xstormy16_register_raw_size)
2355 (xstormy16_reg_virtual_type, xstormy16_register_type)
2356 (xstormy16_push_arguments, xstormy16_push_return_address)
2357 (xstormy16_pop_frame, xstormy16_store_struct_return)
2358 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2359 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2360 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2361 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2362 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2363 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2364 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2365 (xstormy16_extract_return_value, xstormy16_store_return_value):
2366 Regcachify. Drop useless struct convention handling.
2367 (xstormy16_register_type, xstormy16_return_value)
2368 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2369 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2370 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2371 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2372 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2373 (xstormy16_unwind_dummy_id) : New functions.
2374 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2375 of xstormy16_scan_prologue.
2376 (xstormy16_frame_unwind): New frame_unwind structure.
2377 (xstormy16_frame_base): New frame_base structure.
2378 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2379 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2381 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2383 * language.c (language_gdbarch_post_init): Fix off-by one error.
2385 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2387 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2388 (struct dwarf2_offset_and_type): New.
2389 (set_die_type, reset_die_and_siblings_types, get_die_type)
2390 (offset_and_type_hash, offset_and_type_eq): New functions.
2391 (read_structure_type, read_enumeration_type, read_array_type)
2392 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2393 (read_tag_reference_type, read_tag_const_type)
2394 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2395 (read_typedef, read_base_type, read_subrange_type): Use
2398 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2400 * Makefile.in (dwarf2read.o): Update dependencies.
2401 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2402 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2404 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2405 mark, and has_form_ref_addr.
2406 (struct dwarf2_per_cu_data): New.
2407 (dwarf2_max_cache_age): New.
2408 (dwarf2_build_psymtabs_hard): Free cached compilation units
2409 after loading. Create and manage the list of compilation units.
2410 Remove unnecessary NULL initialization. Fix indentation.
2411 (psymtab_to_symtab_1): Initialize all of CU.
2412 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2413 (find_partial_die): Use dwarf2_find_containing_comp_unit
2415 (free_stack_comp_unit): Update comments. Clear the per-cu
2416 pointer. Handle aging.
2417 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2418 (age_cached_comp_units, free_one_cached_comp_unit)
2419 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2420 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2421 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2422 (show_dwarf2_cmd): New.
2423 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2424 and "maint show dwarf2 max-cache-age".
2425 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2427 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2430 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2432 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2433 and dwarf2_cu struct pointer as arguments. Change function to use
2434 obstack if provided and use dwarf2_cu to determine language-specific
2436 (partial_die_parent_scope): Change comment to include java. Use
2437 new version of typename_concat instead of obconcat.
2438 (partial_die_full_name): Use typename_concat.
2439 (read_namespace): Ditto.
2440 (read_enumeration_type): Use typename_concat instead of obconcat.
2441 (new_symbol): Ditto.
2442 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2443 (guess_structure_name): Ditto.
2444 (read_subroutine_type): Ditto.
2445 (read_structure_type): Ditto.
2446 (is_vtable_name): Add Java support.
2447 (determine_class_name): Switch to new typename_concat call.
2448 (determine_prefix): Switch to new typename_concat call.
2449 * jv-exp.y (FuncStart): New pattern.
2450 (MethodInvocation): Add support for simple function calls. Change
2451 warning message for other forms of inferior call currently not
2453 * valarith.c (value_subscript): Treat an array with upper-bound
2454 of -1 as unknown size.
2456 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2458 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2459 (lookup_partial_symtab): Use symtab_to_fullname.
2461 2004-09-19 Jim Blandy <jimb@redhat.com>
2463 * minsyms.c (lookup_minimal_symbol): Doc fix.
2465 2004-09-20 Andrew Cagney <cagney@gnu.org>
2467 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2469 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2470 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2472 * infptrace.c: Update.
2474 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2476 * symtab.c (output_source_filename): Mark first argument as const.
2477 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2478 for "info sources" output.
2480 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2482 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2483 <machine/vmparam.h>.
2484 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2485 (register_u_addr): Remove prototype.
2487 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2489 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2490 (i386bsd_fetch_inferior_registers): Rename from
2491 fetch_inferior_registers. Make static.
2492 (i386bsd_store_inferior_registers): Rename from
2493 store_inferior_registers. Make static.
2494 (i386bsd_target): New function.
2495 * i386bsd-nat.h: New file.
2496 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2498 (i386fbsd_resume): Rename from child_resume. Make static.
2499 (_initialize_i386fbsd_nat): Construct and add target vector.
2500 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2501 (_initialize_i386nbsd_nat): Construct and add target vector.
2502 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2504 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2505 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2506 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2507 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2508 (LOADLIBES): New variable.
2509 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2510 inf-ptrace.o. Remove inftarg.o.
2511 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2512 inf-ptrace.o. Remove inftarg.o.
2513 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2514 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2515 (LOADLIBES): New variable.
2516 * Makefile.in (i386bsd_nat_h): New variable.
2517 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2520 * sparc64nbsd-tdep.c: Include "objfiles.h".
2521 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2522 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2523 svr4_lp64_fetch_link_map_offsets.
2524 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2526 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2527 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2528 svr4_lp64_fetch_link_map_offsets.
2529 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2532 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2533 * fbsd-nat.h: New file.
2534 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2535 (fbsd_nat_h): New variable.
2536 (fbsd-nat.o): New dependency.
2538 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2539 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2541 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2544 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2546 * ada-exp.y (type_int): New function to add layer of abstraction
2547 around references to expression types.
2549 (type_long_long): Ditto.
2550 (type_float): Ditto.
2551 (type_double): Ditto.
2552 (type_long_double): Ditto.
2554 (type_system_address): Ditto.
2555 (simple_exp): Use type_* functions in place of builtin_*
2558 (write_var_from_name): Ditto.
2559 (write_object_renaming): Ditto.
2560 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2562 (build_ada_types): Remove, replacing with...
2563 (ada_language_arch_info): New function to initialize primitive
2564 type vector in language_arch_info.
2565 (ada_array_length): Remove use of builtin_type_ada_int.
2566 (value_pos_atr): Ditto.
2567 (ada_evaluate_subexp): Ditto.
2568 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2569 builtin_type_ada_long_long, builtin_type_ada_char,
2570 builtin_type_ada_float, builtin_type_ada_double,
2571 builtin_type_ada_long_double, builtin_type_ada_natural,
2572 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2573 (ada_builtin_types): Remove.
2574 (ada_language_defn): Remove entries for la_builtin_type_vector and
2575 string_char_type and use ada_language_arch_info.
2576 (_initialize_ada_language): Do type-vector initialization along
2577 the lines of c-lang.c.
2578 (ada_create_fundamental_type): Break up line.
2579 (ada_dump_symtab): Remove unused function.
2580 (enum ada_primitive_types): Define.
2581 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2582 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2583 builtin_type_ada_float, builtin_type_ada_double,
2584 builtin_type_ada_long_double, builtin_type_ada_natural,
2585 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2586 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2587 (processInt): Ditto.
2588 (processReal): Ditto.
2589 (name_lookup): Ditto.
2590 * ada-typeprint.c (print_range): Use builtin_type_int, not
2591 builtin_type_ada_int.
2593 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2595 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2597 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2598 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2599 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2600 * configure.in: Improve checks for curses library by checking for
2601 mvwaddstr instead of initscr. Drop HP curses in favour of
2602 standard curses on HP-UX.
2603 * configure: Regenerated.
2605 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2607 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2608 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2609 Minor formatting changes.
2610 (empty_array): Slight rewrite for formatting.
2611 (emit_char,parse,ada_language_defn,build_ada_types,
2612 ada_is_exception_sym, _initialize_ada_language): Move
2614 (ada_dump_symtab): Remove unused definition.
2615 (ada_maybe_exception_partial_symbol): Remove unused definition.
2617 2004-09-16 Andrew Cagney <cagney@gnu.org>
2619 * inf-child.c: Include "gdb_string.h".
2620 (inf_child_core_file_to_sym_file): Delete.
2621 (inf_child_target): Set to_fetch_registers and to_store_registers.
2622 * inf-ptrace.c: Include "gdb_string.h".
2623 * Makefile.in: Update all dependencies.
2625 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2628 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2630 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2631 call to heuristic_proc_desc. Remove code that became redundant
2633 (read_next_frame_reg): Remove special case for SP_REGNUM.
2634 (set_reg_offset): Fix small typo.
2635 (reset_saved_regs): New procedure.
2636 (mips32_heuristic_proc_desc): No longer compute a fake
2637 procedure descriptor. Compute the full frame cache instead.
2638 Some minor comment reformatting.
2640 2004-09-14 Andrew Cagney <cagney@gnu.org>
2642 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2645 * thread-db.c (thread_db_new_objfile): Assume that there is a
2648 2004-09-13 Jim Blandy <jimb@redhat.com>
2650 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2651 so that its storage isn't referenced after its lifetime ends.
2653 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2654 and never assigned to. Delete it, and the 'if (use_buffer)'
2655 clauses. Delete 'raw_buffer', since it is now unused.
2657 2004-09-13 Andrew Cagney <cagney@gnu.org>
2659 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2660 * configure: Re-generate.
2661 * nlm/Makefile.in (TAGS): Update.
2662 * Makefile.in (TAGS): Update.
2663 * config/vax/nbsd.mt (TM_FILE): Update.
2664 * config/sparc/vxworks.mt (TM_FILE): Update.
2665 * config/sparc/sol2.mt (TM_FILE): Update.
2666 * config/sparc/sol2-64.mt (TM_FILE): Update.
2667 * config/sparc/obsd64.mt (TM_FILE): Update.
2668 * config/sparc/obsd.mt (TM_FILE): Update.
2669 * config/sparc/nbsd64.mt (TM_FILE): Update.
2670 * config/sparc/nbsd.mt (TM_FILE): Update.
2671 * config/sparc/linux64.mt (TM_FILE): Update.
2672 * config/sparc/linux.mt (TM_FILE): Update.
2673 * config/sparc/fbsd.mt (TM_FILE): Update.
2674 * config/sh/wince.mt (TM_FILE): Update.
2675 * config/sh/nbsd.mt (TM_FILE): Update.
2676 * config/sh/linux.mt (TM_FILE): Update.
2677 * config/sh/embed.mt (TM_FILE): Update.
2678 * config/s390/s390.mt (TM_FILE): Update.
2679 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2680 * config/rs6000/rs6000.mt (TM_FILE): Update.
2681 * config/rs6000/aix4.mt (TM_FILE): Update.
2682 * config/powerpc/vxworks.mt (TM_FILE): Update.
2683 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2684 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2685 * config/powerpc/obsd.mt (TM_FILE): Update.
2686 * config/powerpc/nbsd.mt (TM_FILE): Update.
2687 * config/powerpc/linux.mt (TM_FILE): Update.
2688 * config/powerpc/aix.mt (TM_FILE): Update.
2689 * config/pa/obsd.mt (TM_FILE): Update.
2690 * config/pa/linux.mt (TM_FILE): Update.
2691 * config/pa/hppahpux.mt (TM_FILE): Update.
2692 * config/pa/hppa64.mt (TM_FILE): Update.
2693 * config/pa/hppa.mt (TM_FILE): Update.
2694 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2695 * config/mips/wince.mt (TM_FILE): Update.
2696 * config/mips/vxmips.mt (TM_FILE): Update.
2697 * config/mips/nbsd.mt (TM_FILE): Update.
2698 * config/mips/linux.mt (TM_FILE): Update.
2699 * config/mips/irix6.mt (TM_FILE): Update.
2700 * config/mips/irix5.mt (TM_FILE): Update.
2701 * config/mips/embed.mt (TM_FILE): Update.
2702 * config/m68k/vxworks68.mt (TM_FILE): Update.
2703 * config/m68k/st2000.mt (TM_FILE): Update.
2704 * config/m68k/os68k.mt (TM_FILE): Update.
2705 * config/m68k/obsd.mt (TM_FILE): Update.
2706 * config/m68k/nbsd.mt (TM_FILE): Update.
2707 * config/m68k/monitor.mt (TM_FILE): Update.
2708 * config/m68k/linux.mt (TM_FILE): Update.
2709 * config/m68k/cisco.mt (TM_FILE): Update.
2710 * config/ia64/linux.mt (TM_FILE): Update.
2711 * config/ia64/aix.mt (TM_FILE): Update.
2712 * config/ia64/ia64.mt (TM_FILE): Update.
2713 * config/i386/vxworks.mt (TM_FILE): Update.
2714 * config/i386/obsd64.mt (TM_FILE): Update.
2715 * config/i386/obsd.mt (TM_FILE): Update.
2716 * config/i386/nto.mt (TM_FILE): Update.
2717 * config/i386/nbsd64.mt (TM_FILE): Update.
2718 * config/i386/nbsd.mt (TM_FILE): Update.
2719 * config/i386/linux64.mt (TM_FILE): Update.
2720 * config/i386/linux.mt (TM_FILE): Update.
2721 * config/i386/i386sol2.mt (TM_FILE): Update.
2722 * config/i386/i386lynx.mt (TM_FILE): Update.
2723 * config/i386/fbsd64.mt (TM_FILE): Update.
2724 * config/i386/fbsd.mt (TM_FILE): Update.
2725 * config/i386/cygwin.mt (TM_FILE): Update.
2726 * config/h8300/h8300.mt (TM_FILE): Update.
2727 * config/frv/frv.mt (TM_FILE): Update.
2728 * config/cris/cris.mt (TM_FILE): Update.
2729 * config/arm/wince.mt (TM_FILE): Update.
2730 * config/arm/nbsd.mt (TM_FILE): Update.
2731 * config/arm/linux.mt (TM_FILE): Update.
2732 * config/arm/embed.mt (TM_FILE): Update.
2733 * config/alpha/nbsd.mt (TM_FILE): Update.
2734 * config/alpha/fbsd.mt (TM_FILE): Update.
2735 * config/alpha/alpha.mt (TM_FILE): Update.
2736 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2737 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2739 Eliminate event_loop_p, always has the value 1.
2740 * defs.h (event_loop_p): Delete macro.
2741 * breakpoint.c (until_break_command): Simplify.
2742 * utils.c (prompt_for_continue): Simplify.
2743 * tracepoint.c (read_actions): Simplify.
2744 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2745 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2746 (set_prompt, init_main): Simplify.
2747 (init_signals, disconnect): Delete, unused.
2748 * remote.c (remote_async_resume)
2749 (extended_remote_async_create_inferior): Simplify.
2750 * mi/mi-interp.c (mi_input): Delete, unused.
2751 (mi_interpreter_resume, mi_command_loop): Simplify.
2752 * interps.c (current_interp_command_loop): Simplify.
2753 * infrun.c (proceed): Simplify.
2754 * infcmd.c (run_command, continue_command, step_1, jump_command)
2755 (until_command, advance_command, finish_command)
2756 (interrupt_target_command): Simplify.
2757 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2759 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2760 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2761 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2762 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2763 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2764 * mips-tdep.c (mips_dump_tdep): Do not print same.
2766 2004-09-12 Andrew Cagney <cagney@gnu.org>
2768 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2770 * Makefile.in (valprint.o): Delete explict rule.
2772 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2773 reported by Dave Anderson.
2775 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2777 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2779 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2780 Andrew Cagney <cagney@gnu.org>
2782 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2783 (mi_cmd_data_list_register_values)
2784 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2785 the register number computation.
2787 2004-09-12 Andrew Cagney <cagney@gnu.org>
2789 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2790 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2791 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2792 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2794 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2795 inf-ptrace.o and inf-child.o.
2796 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2797 * Makefile.in: Update dependencies.
2799 2004-09-11 Andrew Cagney <cagney@gnu.org>
2801 * language.c (hex_string, hex_string_custom): Move from here ...
2802 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2803 (CELLSIZE): Increase to 50.
2804 * language.h (hex_string, hex_string_custom): Move from here ...
2805 * defs.h: ... to here.
2806 * Makefile.in: Update all dependencies.
2808 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2810 * language.c (local_hex_format_custom): Remove.
2811 (local_hex_string): Rename to hex_string, use C format, and move to
2813 (local_hex_string_custom): Rename to hex_string_custom and change
2814 interface. Now uses C format. Move to utils.c
2815 (local_octal_format_custom): Remove.
2816 (local_decimal_format_custom): Remove.
2817 (unknown_language_defn): Remove language-specific number
2819 (auto_language_defn): Ditto.
2820 (local_language_defn): Ditto.
2821 * language.h (struct language_format_info): Delete declaration.
2822 (struct language_defn): Remove language_format_info fields
2823 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2824 (local_binary_format): Remove macro.
2825 (local_binary_format_prefix): Remove macro.
2826 (local_binary_format_specifier): Remove macro.
2827 (local_binary_format_suffix): Remove macro.
2828 (local_octal_format): Remove macro.
2829 (local_octal_format_prefix): Remove macro.
2830 (local_octal_format_specifier): Remove macro.
2831 (local_octal_format_suffix): Remove macro.
2832 (local_decimal_format): Remove macro.
2833 (local_decimal_format_prefix): Remove macro.
2834 (local_decimal_format_specifier): Remove macro.
2835 (local_decimal_format_suffix): Remove macro.
2836 (local_hex_format): Remove macro.
2837 (local_hex_format_prefix): Remove macro.
2838 (local_hex_format_specifier): Remove macro.
2839 (local_hex_format_suffix): Remove macro.
2840 (local_decimal_format_custom): Remove.
2841 (local_octal_format_custom): Remove.
2842 (local_hex_format_custom): Remove.
2843 (local_hex_string): Rename to hex_string and move to defs.h.
2844 (local_hex_string_custom): Rename to hex_string_custom, change
2845 interface, and move to defs.h.
2846 * utils.c: (int_string): New function.
2847 (hex_string): New function (from language.c).
2848 (hex_string_custom): New function (from language.c).
2849 (octal2str): New function.
2850 (decimal2str): Add width parameter.
2851 (paddr_u): Use new decimal2str interface.
2853 * defs.h (hex_string): Declare.
2854 (hex_string_custom): Declare.
2855 (int_string): Declare.
2856 * printcmd.c (print_scalar_formatted): Remove localized binary
2858 * valprint.c (print_longest): Use int_string.
2859 (print_floating): Use C hex format.
2860 (print_hex_chars): Ditto.
2861 (print_binary_chars): Remove language-specific formatting.
2862 (print_octal_chars): Use C octal format.
2863 (print_decimal_chars): Delocalize format.
2864 (print_decimal): Remove.
2865 * ada-lang.c (ada_language_defn): Remove language-specific number
2867 * p-lang.c (pascal_language_defn): Ditto.
2868 * c-lang.c (c_language_defn): Ditto.
2869 (cplus_language_defn): Ditto.
2870 (asm_language_defn): Ditto.
2871 (minimal_language_defn): Ditto.
2872 * f-lang.c (f_language_defn): Ditto.
2873 * jv-lang.c (java_language_defn): Ditto.
2874 * m2-lang.c (m2_language_defn): Ditto.
2875 * scm-lang.c (scm_language_defn): Ditto.
2876 * objc-lang.c (objc_language_defn): Ditto.
2877 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2879 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2880 * ui-out.c (ui_out_field_core_addr): Ditto.
2881 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2882 * exec.c (print_section_info): Ditto.
2883 * i387-tdep.c (print_i387_status_word): Ditto.
2884 (print_i387_control_word): Ditto.
2885 (i387_print_float_info): Ditto.
2886 * maint.c (maint_print_section_info): Ditto.
2887 * solib.c (info_sharedlibrary_command): Ditto.
2888 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2889 * symtab.c (print_msymbol_info): Ditto.
2890 * tracepoint.c (tracepoints_info): Ditto.
2891 * solib-frv.c (lm_base): Ditto.
2892 (frv_current_sos): Ditto.
2893 (enable_break2): Ditto.
2894 (enable_break): Ditto.
2895 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2896 (process_one_symbol): Ditto.
2897 * infcmd.c (program_info): Ditto.
2898 * mdebugread.c (parse_partial_symbols): Ditto.
2899 * symfile.c (add_symbol_file_command): Ditto.
2900 * cli/cli-cmds.c (edit_command): Ditto.
2901 (list_command): Ditto.
2902 * infcall.c (call_function_by_hand): Ditto.
2903 * remote-vx.c (vx_run_files_info): Ditto.
2908 * aix-thread.c (pdc_symbol_addrs): Ditto.
2909 (pdc_read_regs): Ditto.
2910 (pdc_write_regs): Ditto.
2911 (pdc_read_data): Ditto.
2912 (pdc_write_data): Ditto.
2913 * d10v-tdep.c (display_trace): Ditto.
2914 * rs6000-nat.c (find_toc_address): Ditto.
2915 * aix-thread.c: Don't include language.h.
2916 * buildsym.c: Ditto.
2918 * mdebugread.c: Ditto.
2919 * rs6000-nat.c: Ditto.
2920 * buildsym.c (make_blockvector): Use renamed hex_string.
2922 2004-09-10 Jason Molenda (jmolenda@apple.com)
2924 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2925 chars after 'if' or 'while' commands in user-defined commands.
2927 2004-09-08 Jim Blandy <jimb@redhat.com>
2929 Fix bug reported and analyzed by Olivier Crete:
2930 * symfile.c (copy_section_addr_info): New function.
2931 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2932 original set of address arguments, instead of handwritten code
2933 that uses one length to allocate and a different length to
2934 initialize. Use make_cleanup_free_section_addr_info.
2935 * symfile.h (copy_section_addr_info): New declaration.
2936 * utils.c: #include "symfile.h".
2937 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2939 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2940 * Makefile.in (utils.o): Update dependencies.
2942 2004-09-08 Andrew Cagney <cagney@gnu.org>
2944 * thread-db.c (keep_thread_db): Delete.
2945 (thread_db_new_objfile, thread_db_create_inferior)
2946 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2948 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2950 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2951 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2952 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2953 (i386_frameless_signal_p): Remove prototype.
2954 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2955 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2957 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2958 instead of FP0_REGNUM.
2959 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2960 of FP0_REGNUM and FPC_REGNUM.
2962 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2963 (sunos_solib_create_inferior_hook): Don't call
2964 sunos_relocate_main_executable.
2966 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2967 solib_svr4_fetch_link_map_offsets to
2968 svr4_ilp32_fetch_link_map_offsets.
2969 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2970 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2971 svr4_ilp32_fetch_link_map_offsets.
2972 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2974 2004-09-07 Jim Blandy <jimb@redhat.com>
2976 * frame.h (frame_register): Doc fix.
2978 2004-09-07 Andrew Cagney <cagney@gnu.org>
2980 * vx-share/wait.h: Delete #ifdef USG.
2981 * utils.c (request_quit): Ditto.
2982 * tui/tui.c (tui_reset): Ditto.
2984 * remote-sds.c: Ditto.
2985 * remote-rdi.c: Ditto.
2986 * mdebugread.c: Ditto.
2987 * m68klinux-nat.c: Ditto.
2988 * infttrace.c: Ditto.
2989 * infptrace.c: Ditto.
2990 * i386v-nat.c: Ditto.
2993 * core-aout.c: Ditto.
2995 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2997 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2998 heuristic_proc_desc.
2999 (mips_insn32_frame_cache): Likewise.
3001 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3003 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3004 left behind by error.
3006 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3008 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3009 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3011 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3013 * config/rs6000/xm-aix4.h: Remove this file.
3014 * config/rs6000/aix4.mh (XM_FILE): Delete.
3016 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3018 * config/rs6000/xm-rs6000.h: Remove this file.
3019 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3021 2004-09-03 Andrew Cagney <cagney@gnu.org>
3023 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3024 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3027 * mips-tdep.c (temp_saved_regs): Delete.
3028 (set_reg_offset): Replace saved_regs parameter with this_cache.
3029 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3030 (mips32_heuristic_proc_desc): Add this_cache parameter.
3031 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3032 (after_prologue): Pass a NULL this_cache.
3034 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3035 non-kernel trap prologues.
3037 * mips-tdep.c (find_proc_desc): Delete function.
3038 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3040 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3041 mips_insn32_frame_cache.
3043 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3044 Simplify as NEXT_FRAME is NULL.
3045 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3047 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3049 (mips_skip_prologue): Update.
3051 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3052 "cur_frame" parameter.
3053 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3054 (mips_insn32_frame_cache, find_proc_desc): Update
3056 * config/vax/nm-obsd.h: Delete file.
3057 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3058 * config/vax/nm-nbsd.h: Delete file.
3059 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3060 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3061 * config/sh/nm-nbsd.h: Delete file.
3062 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3063 * config/rs6000/nm-rs6000ly.h: Delete file.
3064 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3065 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3066 * config/powerpc/nm-obsd.h: Delete file.
3067 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3068 * config/powerpc/nm-nbsd.h: Delete file.
3069 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3070 * config/pa/nm-obsd.h: Delete file.
3071 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3072 * config/mips/nm-nbsd.h: Delete file.
3073 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3074 * config/m88k/nm-obsd.h: Delete file.
3075 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3076 * config/m68k/nm-nbsd.h: Delete file.
3077 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3078 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3079 * config/i386/nm-nbsd.h: Delete file.
3080 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3081 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3082 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3083 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3084 * config/i386/nm-i386lynx.h: Delete file.
3085 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3086 * config/arm/nm-nbsd.h: Delete file.
3087 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3088 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3090 * config/i386/tm-fbsd.h: Delete file.
3091 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3092 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3094 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3095 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3096 * config/rs6000/aix4.mt (TM_FILE): Set to
3097 config/rs6000/tm-rs6000.h.
3098 * config/powerpc/tm-ppc-aix.h: Delete file.
3099 * config/powerpc/aix.mt (TM_FILE): Set to
3100 config/rs6000/tm-rs6000.h.
3101 * config/m68k/tm-linux.h: Delete file.
3102 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3103 * config/i386/tm-linux64.h: Delete file.
3104 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3105 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3107 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3108 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3109 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3110 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3111 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3112 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3113 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3114 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3115 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3117 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3120 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3122 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3123 Minor reformatting. Some code factoring.
3125 2004-09-02 Andrew Cagney <cagney@gnu.org>
3127 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3128 * config/vax/tm-nbsd.h: Delete file.
3129 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3130 * config/sparc/tm-vxworks.h: Delete file.
3131 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3132 * config/sparc/tm-nbsd.h: Delete file.
3133 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3134 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3135 * config/sparc/tm-linux.h: Delete file.
3136 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3137 * config/s390/tm-linux.h: Delete file.
3138 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3139 * config/pa/tm-bsd.h: Delete file.
3140 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3141 * config/m68k/tm-obsd.h: Delete file.
3142 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3143 * config/m68k/tm-nbsd.h: Delete file.
3144 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3145 * config/i386/tm-vxworks.h: Delete file.
3146 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3147 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3148 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3149 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3150 * config/i386/tm-nbsd.h: Delete file.
3151 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3152 * config/i386/tm-i386lynx.h: Delete file.
3153 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3154 * config/cris/tm-cris.h: Delete file.
3156 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3157 * configure: Re-generate.
3158 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3159 * config/arm/tm-nbsd.h: Delete file.
3161 * config/powerpc/tm-ppcle-sim.h: Delete.
3162 * config/powerpc/tm-ppcle-eabi.h: Delete.
3163 * config/powerpc/tm-nbsd.h: Delete.
3164 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3165 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3168 * config/i386/nto.mh (NAT_FILE): Delete.
3169 * config/i386/nm-nto.h: Delete.
3171 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3172 * config/m68k/tm-os68k.h: Ditto.
3173 * config/m68k/tm-monitor.h: Ditto.
3174 * config/m68k/tm-cisco.h: Ditto.
3175 * config/m68k/st2000.mt (TM_FILE): Delete.
3176 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3177 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3178 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3179 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3181 * config/m68k/tm-st2000.h: Delete.
3182 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3183 * config/sparc/fbsd.mt (TM_FILE): Delete.
3184 * config/sparc/tm-fbsd.h: Delete.
3186 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3187 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3188 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3190 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3191 GDB_TM_FILE and GDB_XM_FILE.
3192 * gdbarch.c: Re-generate.
3193 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3194 quotes in macro definition.
3195 * configure.in: Re-generate.
3197 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3198 validating architecture methods.
3199 * gdbarch.c: Re-generate.
3201 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3202 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3203 GDB_MULTI_ARCH_PARTIAL.
3204 * gdbarch.h: Re-generate.
3206 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3207 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3208 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3209 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3210 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3211 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3212 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3213 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3214 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3215 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3216 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3217 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3219 2004-09-01 Andrew Cagney <cagney@gnu.org>
3221 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3222 and main_func_highpc.
3223 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3224 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3225 * nlmread.c (nlm_symfile_read): Update.
3227 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3229 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3230 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3231 (find_proc_desc): Remove dead code.
3233 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3235 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3237 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3239 * observer.sh: Add struct so_list declaration.
3240 * Makefile.in: Add dependencies on observer.h for solib.c and
3242 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3244 (_initialize_breakpoint): Register
3245 disable_breakpoints_in_unloaded_shlib as an observer of the
3246 "solib unloaded" observation event.
3247 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3248 call decode_line_1 so unfound breakpoint errors are silent.
3249 * solib.c (update_solib_list): When a solib is discovered to have
3250 been unloaded by the program, notify all observers of the
3251 "solib unloaded" observation event.
3253 2004-09-01 Andrew Cagney <cagney@gnu.org>
3255 * frame.c: Include "objfiles.h".
3256 (inside_main_func): New function.
3257 (get_prev_frame): Use new inside_main_func.
3258 * Makefile.in (frame.o): Update dependencies.
3259 * defs.h (inside_main_func): Delete declaration.
3260 * blockframe.c (inside_main_func): Delete function.
3262 2004-08-31 Jim Blandy <jimb@redhat.com>
3264 * dwarf2read.c (is_vtable_name): New function, based on logic from
3265 read_structure_type, but passing the correct length to strncmp,
3266 and using 'sizeof' instead of 'strlen'.
3267 (read_structure_type): Call it.
3269 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3271 * config/powerpc/aix.mh: Add comment.
3273 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3275 * MAINTAINERS: Add self to Write-After-Approval.
3277 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3279 * MAINTAINERS: Add self to Write-After-Approval.
3281 2004-08-30 Andrew Cagney <cagney@gnu.org>
3283 Fix PR breakpoints/1757.
3284 * infrun.c (struct execution_control_state): Replace
3285 remove_breakpoints_on_following_step with
3286 step_after_step_resume_breakpoint.
3287 (init_execution_control_state): Update.
3288 (handle_inferior_event): For signals, when stepping off a
3289 breakpoint, set step_after_step_resume_breakpoint. When
3290 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3291 (keep_going): Delete code handling
3292 remove_breakpoints_on_following_step.
3294 2004-08-29 David Lecomber <david@streamline-computing.com>
3297 * language.h (enum array_ordering): New enum.
3298 * language.h (struct language_defn): New la_array_ordering
3300 * language.c (unknown_language_defn, auto_language_defn)
3301 (local_language_defn): Ditto.
3302 * ada-lang.c (ada_language_defn): Ditto.
3303 * c-lang.c (c_language_defn, cplus_language_defn)
3304 (asm_language_defn, minimal_language_defn): Ditto.
3305 * f-lang.c (f_language_defn): Ditto.
3306 * jv-lang.c (java_language_defn): Ditto.
3307 * m2-lang.c (f_language_defn): Ditto.
3308 * objc-lang.c (objc_language_defn): Ditto.
3309 * p-lang.c (pascal_language_defn): Ditto.
3310 * scm-lang.c (scm_language_defn): Ditto.
3311 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3312 oriented large to small in type structure.
3313 * dwarf2read.c (read_array_order): New function.
3314 (read_array_type): Use read_array_order to check row/column
3317 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3319 * target.c (target_resize_to_sections): Check
3320 current_target.to_sections for an old value when updating.
3322 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3324 * procfs.c (dbx_link_bpt_addr): New static global variable.
3325 (dbx_link_shadow_contents): New static global variable.
3326 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3327 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3329 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3330 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3332 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3333 after the inferior has been forked.
3334 (remove_dbx_link_breakpoint): New function.
3335 (dbx_link_addr): New function.
3336 (insert_dbx_link_bpt_in_file): New function.
3337 (insert_dbx_link_bpt_in_region): New function.
3338 (insert_dbx_link_breakpoint): New function.
3339 (proc_trace_syscalls_1): New function, extracted from
3340 proc_trace_syscalls.
3341 (proc_trace_syscalls): Replace extract code by call to
3342 proc_trace_syscalls_1.
3343 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3346 2004-08-25 Jim Blandy <jimb@redhat.com>
3348 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3350 2004-08-25 Andrew Cagney <cagney@gnu.org>
3352 * infrun.c (struct execution_control_state): Delete field
3353 "stepping_through_sigtramp".
3354 (init_execution_control_state): Do not set same.
3355 (context_switch): Do not pass same to save_infrun_state and
3357 * gdbthread.h (struct thread_info): Delete field
3358 stepping_through_sigtramp.
3359 (save_infrun_state, load_infrun_state): Delete parameter
3360 stepping_through_sigtramp.
3361 * thread.c (load_infrun_state, save_infrun_state): Update.
3363 * infrun.c: Re-indent. Move expression operators to the beginning
3364 of the line. Remove long disabled #if 0 code.
3366 2004-08-24 Andrew Cagney <cagney@gnu.org>
3368 * doublest.h (floatformat_ieee_quad): Rename
3369 floatformat_ia64_quad.
3370 * doublest.c (floatformat_ieee_quad): Rename
3371 floatformat_ia64_quad.
3372 (_initialize_doublest): Update.
3374 2004-08-24 Jim Blandy <jimb@redhat.com>
3376 * dwarf2expr.h (struct dwarf_expr_context): New members
3377 'num_pieces' and 'pieces', for returning the result of an
3378 expression that uses DW_OP_piece.
3379 (struct dwarf_expr_piece): New struct type.
3380 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3382 (free_dwarf_expr_context): Free pieces, if any.
3383 (add_piece): New function.
3384 (execute_stack_op): Implement DW_OP_piece.
3385 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3386 expression is a list of pieces, print an error message.
3387 (dwarf2_loc_desc_needs_frame): If the expression yields
3388 pieces, and any piece is in a register, then we need a frame.
3390 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3391 the stack until we've decided what sort of result the evaluation
3392 has produced. Use separate variables, with more specific names.
3394 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3396 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3397 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3398 (arm_netbsd_init_abi_common): Register them.
3400 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3402 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3404 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3405 safe_frame_unwind_memory instead of target_read_memory.
3407 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3409 (fetch_register, store_register): Remove prototypes.
3410 (child_resume): Reorganize code and comments such that it is
3411 grouped a bit more logically.
3412 (attach): Explicitly compare errno against 0.
3413 (detach): Likewise. Use perror_with_name instead of
3415 * Makefile.in (infptrace.o): Update dependencies.
3417 * ia64-linux-nat.c: Update copyright year.
3418 (fetch_debug_register, store_debug_register)
3419 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3421 * config/ia64/nm-linux.h: Update copyright year.
3422 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3424 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3425 from CORE_ADDR to struct frame_info *. Use
3426 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3427 (amd64_linux_sigtramp_p): Adjust for changed signature of
3428 and64_linux_sigtramp_start
3430 * gdb_ptrace.h: GNU/Linux.
3432 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3435 * infptrace.c: Include "gdb_assert.h".
3436 (PTRACE_XFER_TYPE): Remove define.
3437 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3438 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3440 (fetch_inferior_registers, store_inferior_registers): Remove
3441 redundant culry braces. Tweak comment. s/regno/regnum.
3442 * Makefile.in (infptrace.o): Update dependencies.
3444 * configure.in: Change test for return type of ptrace to default
3445 to `long' instead of `int'.
3446 * configure: Regenerate.
3448 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3450 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3452 * configure.in: Check for ttrace function.
3453 * configure, config.in: Regenerate.
3455 * gdb_ptrace.h: New file.
3456 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3458 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3459 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3460 (attach): Don't define PT_ATTACH.
3461 (detach): Don't define PT_DETACH.
3462 * Makefile.in (gdb_ptrace_h): New variable.
3463 (infptrace.o): Update dependencies.
3465 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3467 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3468 instead of `int' if not already defined.
3469 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3471 * infptrace.c (call_ptrace): Revert change that replaced
3472 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3474 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3476 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3479 * linux-nat.c (kill_inferior): Add missing third and fourth
3480 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3482 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3485 * proc-why.c (proc_prettyfprint_why): Fix format string.
3487 * solib-osf.c (osf_current_sos): Remove unsused label.
3489 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3491 * configure, config.in: Regenerate.
3492 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3493 <ncurses/ncurses.h>.
3495 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3496 * config/nm-nbsd.h: Update copyright year.
3497 (PTRACE_ARG3_TYPE): Remove define.
3499 * sparc-nat.c (fetch_inferior_registers)
3500 (store_inferior_registers, sparc_xfer_wcookie):
3501 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3503 * alphabsd-nat.c (fetch_inferior_registers):
3504 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3506 * amd64bsd-nat.c (fetch_inferior_registers)
3507 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3509 * armnbsd-nat.c: Update copyright year.
3510 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3511 (store_register, store_regs, store_fp_register, store_fp_regs):
3512 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3513 * hppabsd-nat.c (fetch_inferior_registers)
3514 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3516 * i386bsd-nat.c (fetch_inferior_registers)
3517 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3518 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3519 * m68kbsd-nat.c (fetch_inferior_registers)
3520 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3522 * m88kbsd-nat.c (fetch_inferior_registers)
3523 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3525 * mipsnbsd-nat.c: Update copyright year.
3526 (fetch_inferior_registers, store_inferior_registers):
3527 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3528 * ns32knbsd-nat.c: Update copyright year.
3529 (fetch_inferior_registers, store_inferior_registers):
3530 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3531 * ppcnbsd-nat.c (fetch_inferior_registers):
3532 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3534 * ppcobsd-nat.c (fetch_inferior_registers):
3535 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3537 * shnbsd-nat.c: Update copyright year.
3538 (fetch_inferior_registers, store_inferior_registers):
3539 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3540 * vaxbsd-nat.c (fetch_inferior_registers)
3541 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3544 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3546 * infptrace.c (call_ptrace, child_resume, attach, detach)
3547 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3548 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3549 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3552 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3554 * defs.h: Remove out-of-date comment.
3555 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3556 [!GETENV_PROVIDED] (getenv): Remove prototype.
3558 * standalone.c: Remove file.
3559 * Makefile.in (standalone.o): Remove dependency.
3561 * i386-linux-nat.c (dummy_sse_values): Remove function and
3563 (i386_linux_dr_get): Fix typo in comment.
3564 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3566 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3568 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3570 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3573 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3575 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3576 parenthesis in definition.
3577 * configure: Regenerated.
3579 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3581 * PROBLEMS: Mention build/1411.
3583 2004-08-09 Robert Millan <robertmh@gnu.org>
3585 Committed by Nathanael Nerode.
3586 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3587 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3589 2004-08-12 Andrew Cagney <cagney@gnu.org>
3591 * NEWS: Mention fixes in GDB 6.2.1.
3592 * PROBLEMS: Remove mention of mips-irix.
3594 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3596 * config/powerpc/xm-aix.h: Delete.
3597 * config/powerpc/aix.mh (MH_FILE): Remove.
3598 * config/powerpc/aix432.mh (MH_FILE): Remove.
3600 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3602 * config/powerpc/aix.mh: Remove obsolete comment.
3603 * config/powerpc/aix432.mh: Likewise.
3605 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3607 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3609 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3611 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3612 this file is now empty.
3613 * config/xm-aix4.h: Remove, this file is no longer included
3616 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3618 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3619 that file is now empty.
3620 (termdef): Remove prototype, function no longer used.
3622 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3624 * doc/gdbint.texinfo (Host Definition): Remove documentation
3625 for USE_O_NOCTTY, no longer used.
3626 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3627 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3629 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3631 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3632 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3633 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3635 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3637 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3638 instead of FIVE_ARG_PTRACE.
3640 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3641 (new_tty): Use O_NOCTTY unconditionally.
3643 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3645 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3646 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3649 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3651 * xcoff_symfile_finish: Replace last call to xmfree by call
3654 2004-08-10 Andrew Cagney <cagney@gnu.org>
3656 * main.c (captured_main): Delete call to init_malloc.
3657 * defs.h (init_malloc): Delete declaration.
3658 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3659 (init_malloc): Delete functions.
3661 * defs.h (xmfree): Delete.
3662 * utils.c (xmfree): Delete function.
3663 (xfree): Inline calls to xmfree and mfree.
3664 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3665 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3666 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3667 * somread.c (som_symfile_finish): Ditto.
3668 * objfiles.c (allocate_objfile, free_objfile):
3669 * nlmread.c (nlm_symfile_finish): Ditto.
3670 * hpread.c (hpread_symfile_finish): Ditto.
3671 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3672 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3673 * coffread.c (coff_symfile_finish): Ditto.
3675 * defs.h (xmcalloc): Delete declaration.
3676 * utils.c (xmcalloc): Delete.
3677 (xcalloc): Inline calls to xmcalloc and mcalloc.
3678 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3680 * symtab.c (create_demangled_names_hash): Ditto.
3682 * defs.h (xmrealloc): Delete.
3683 * utils.c (xmrealloc): Delete.
3684 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3685 * symmisc.c (extend_psymbol_list): Use xrealloc.
3686 * source.c (find_source_lines): Ditto.
3687 * hpread.c (hpread_lookup_type): Ditto.
3688 * dbxread.c (add_bincl_to_list): Ditto.
3690 * utils.c (xmmalloc): Delete.
3691 (xmalloc): Inline xmmalloc and mmalloc calls.
3692 (msavestring): Use xmalloc.
3693 * defs.h (xmmalloc): Delete declaration.
3694 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3696 * symmisc.c (extend_psymbol_list): Ditto.
3697 * symfile.c (init_psymbol_list): Ditto.
3698 * source.c (find_source_lines): Ditto.
3699 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3700 * elfread.c (elf_symtab_read): Ditto.
3701 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3702 * coffread.c (coff_symfile_init): Ditto.
3704 2004-08-10 David Carlton <carlton@bactrian.org>
3706 * MAINTAINERS: Remove David Carlton from c++ testsuite
3709 2004-08-10 Jerome Guitton <guitton@gnat.com>
3711 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3712 print a line feed before the prompt.
3714 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3716 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3718 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3720 General cleanup of the AIX xm include file:
3721 * config/xm-aix4.h (fd_set): Remove undefine.
3722 Remove include of <sys/select.h>.
3723 (HAVE_TERMIO): Remove define.
3725 (NULL): Remove redefine.
3726 (alloca): Remove #pragma.
3727 (vfork): Remove define.
3729 (SIGWINCH_HANDLER): Remove.
3730 (SIGWINCH_HANDLER_BODY): Remove.
3732 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3734 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3735 GDB_OSABI_OPENBSD_ELF.
3737 2004-08-07 Robert Millan <robertmh@gnu.org>
3739 * bsd-kvm.c: Check for nlist.h before including it.
3741 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3743 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3744 sigcontext' offset consistency checks for ancient BSD.
3746 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3748 * configure.in: Check for <sys/types.h>. Check return and
3749 argument types of ptrace.
3750 * configure, config.in: Regenerate.
3752 2004-08-09 Jim Blandy <jimb@redhat.com>
3754 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3755 rs6000_register_sim_regno): Doc fixes.
3757 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3759 * mips-tdep.c: Include "floatformat.h".
3760 (n32n64_floatformat_always_valid): New function.
3761 (floatformat_n32n64_long_double_big): New constant.
3762 (mips_gdbarch_init): Set size and format of long double
3763 for N32 and N64 ABIs.
3764 * Makefile.in (mips-tdep.o): Update dependencies.
3766 2004-08-08 Andrew Cagney <cagney@gnu.org>
3768 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3769 print. Improve script's error messages.
3770 * gdbarch.h: Re-generate.
3772 * gdbarch.sh (pformat): New function.
3773 (float_format, double_format, long_double_format): List with bit
3774 members. Use pformat when printing.
3775 * gdbarch.c, gdbarch.h: Re-generate.
3777 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3779 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3780 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3781 (ppcnbsd_supply_pcb): New function.
3782 (_initialize_ppcnbsd_nat): New prototype and function.
3783 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3784 (LOADLIBES): New variable.
3785 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3787 2004-08-08 Andrew Cagney <cagney@gnu.org>
3789 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3790 (builtin_type_ieee_double, builtin_type_ia64_quad)
3791 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3792 BE/LE floating-point types.
3793 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3794 (builtin_type_ieee_double, builtin_type_ia64_quad)
3795 (builtin_type_ia64_spill): Declare.
3796 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3797 (floatformat_ieee_double, floatformat_arm_ext)
3798 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3799 of LE/BE floatformats.
3800 * doublest.h: (struct floatformat, floatformat_ieee_single)
3801 (floatformat_ieee_double, floatformat_arm_ext)
3802 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3804 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3806 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3808 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3809 instead of regcache_raw_supply when storing the registers.
3811 * i386gnu-nat.c: Update copyright year.
3812 (gnu_store_registers): Don't use deprecated_registers and
3813 deprecated_registers_valid. Use regcache_valid_p and
3814 regcache_raw_supply instead.
3816 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3819 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3820 variables. Incapitalized "process".
3822 * configure.in: Add cursesX to the list of possible curses libs.
3823 Add cursesX.h to the list of possible curses headers.
3824 * configure, config.in: Regenerate.
3826 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3828 * configure.in: Test for struct lwp in <sys/lwp.h>.
3829 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3830 the offset of l_addr in struct lwp.
3832 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3834 * bsd-kvm.c: Include "gdbcore.h"
3835 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3837 2004-08-07 Andrew Cagney <cagney@gnu.org>
3839 * gdbtypes.c (build_flt, build_complex): New functions.
3840 (gdbtypes_post_init): Use.
3842 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3844 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3845 through to builtin_type_uint128.
3847 * c-exp.y: Use builtin_type function to obtain builtin types.
3849 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3851 * gdbtypes.c (gdbtypes_post_init): Update.
3852 (build_gdbtypes): Move initialization of builtin_type_int0
3853 through to builtin_type_uint128 from here ...
3854 (_initialize_gdbtypes): ... to here.
3855 * d10v-tdep.c (d10v_register_type): Update.
3857 * doublest.c: Update copyright.
3858 (floatformat_from_length): Call error when floatformat is NULL.
3859 (extract_floating_by_length): Remove NULL fmt check.
3860 (store_floating_by_length): Ditto.
3862 2004-08-07 Andrew Cagney <cagney@gnu.org>
3864 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3865 that the register is valid.
3867 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3869 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3870 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3871 struct frame_info *. Use safe_frame_unwind_memory instead of
3872 deprecated_read_memory_nobpt.
3873 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3874 changed signature of i386_linux_sigtramp_start and
3875 i386_linux_rt_sigtramp_start.
3877 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3878 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3879 instead of deprecated_read_memory_nobpt.
3880 (i386nbsd_sigtramp_p): Adjust for changed signature of
3881 i386nbsd_sigtramp_offset.
3883 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3884 safe_frame_unwind_memory instead of target_read_memory.
3886 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3888 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3889 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3890 (_initialize_kernel_u_addr): Remove prototype and function.
3891 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3893 * xcoffread.c: Likewise.
3895 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3897 * vax-nat.c: New file.
3898 * vaxbsd-nat.c: Tweak comment.
3899 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3901 (vax-nat.o): New dependency.
3902 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3903 (vax-*-ultrix2*): Remove.
3904 * config/vax/vax.mh: New file.
3905 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3906 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3907 (vax_register_u_addr): New prototype.
3908 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3909 * config/vax/vaxult2.mh: Remove file.
3910 * config/vax/vaxult.mh: Remove file.
3911 * config/vax/vaxbsd.mh: Remove file.
3912 * config/vax/vax.mt (TM_FILE): Remove.
3913 * config/vax/tm-vaxbsd.h: Remove file.
3915 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3917 * aix-thread.c (get_signaled_thread): New function.
3918 (iter_trap): Delete, no longer used.
3919 (iter_tid): New function.
3920 (pd_update): Find the thread that received the SIGTRAP signal
3921 by first locating the kernel thread, and then finding its
3924 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3926 * lin-lwp.c (child_wait): Continue inferior after processing
3927 PTRACE_EVENT_CLONE event.
3929 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3931 * MAINTAINERS: Add self to Write-After-Approval.
3933 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3935 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3936 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3938 2004-08-05 Andrew Cagney <cagney@gnu.org>
3940 * config/xm-sysv4.h: Delete file.
3941 * config/mips/xm-irix5.h: Delete file.
3942 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3943 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3944 * config/ia64/xm-aix.h: Delete file.
3945 * config/ia64/aix.mh (XM_FILE): Delete.
3946 * config/pa/xm-hppah.h: Delete file.
3947 * config/pa/hpux11w.mh (XM_FILE): Delete.
3948 * config/pa/hpux11.mh (XM_FILE): Delete.
3949 * config/pa/hpux1020.mh (XM_FILE): Delete.
3950 * config/pa/hppahpux.mh (XM_FILE): Delete.
3952 * config/alpha/xm-alphalinux.h: Delete file.
3953 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3954 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3955 * config/alpha/xm-alphaosf.h: Delete file.
3956 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3957 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3958 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3959 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3961 * config/i386/xm-i386v.h: Delete file.
3962 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3963 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3964 * config/i386/xm-i386sco.h: Delete file.
3965 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3966 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3967 * config/i386/xm-i386v4.h: Delete file.
3968 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3969 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3970 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3971 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3973 * config/vax/xm-vax.h: Delete file.
3974 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3975 * config/vax/xm-vaxult2.h: Delete file.
3976 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3977 * config/vax/vaxult2.mh (XM_FILE): Delete.
3978 * config/vax/xm-vaxult.h: Delete file.
3979 * config/vax/vaxult.mh (XM_FILE): Delete.
3980 * config/vax/xm-vaxbsd.h: Delete file.
3981 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3983 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3984 * gdbarch.h, gdbarch.c: Re-generate.
3985 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3986 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3987 * frame.h: Delete deprecated_read_fp from comments.
3988 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3989 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3991 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3993 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3994 trampoline in OpenBSD 3.5-current.
3996 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3999 * Makefile.in: Remove embedded page breaks.
4001 2004-08-04 Jim Blandy <jimb@redhat.com>
4003 * regcache.c (regcache_raw_read): Assert that, after calling
4004 target_fetch_registers, the register we're reading is cached.
4006 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4007 a call to 'internal_error', with a more helpful error message.
4008 * rs6000-tdep.c (e500_pseudo_register_read,
4009 e500_pseudo_register_write, rs6000_store_return_value): Same.
4011 2004-08-04 Andrew Cagney <cagney@gnu.org>
4013 * Makefile.in: Update dependencies.
4015 2004-08-04 Jim Blandy <jimb@redhat.com>
4017 Change the layout of the PowerPC E500 raw register cache to allow
4018 the lower 32-bit halves of the GPRS to be their own raw registers,
4019 not pseudoregisters.
4020 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4021 add ppc_ev0_upper_regnum flag.
4022 * rs6000-tdep.c: #include "reggroups.h".
4023 (spe_register_p): Recognize the ev upper half registers as SPE
4025 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4027 (e500_move_ev_register): New function.
4028 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4029 vector registers are the pseudo-registers now, formed by splicing
4030 together the gprs and the upper-half registers.
4031 (e500_register_reggroup_p): New function.
4033 (P8, A4): New macro.
4034 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4035 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4037 (registers_e500): Rearrange register set so that the raw register
4038 set contains 32-bit GPRs and upper-half registers, and the SPE
4039 vector registers become pseudo-registers.
4040 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4041 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4042 register numbers are now the same for the E500 as they are for
4043 other PowerPC variants. Register e500_register_reggroup_p as the
4044 register group function for the E500.
4045 * Makefile.in (rs6000-tdep.o): Update dependencies.
4047 Adapt PPC E500 native support to the new raw regcache layout.
4048 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4049 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4050 (fetch_spe_register, store_spe_register): Handle fetching/storing
4051 all the SPE registers at once, if regno == -1. These now take
4052 over the job of fetch_spe_registers and store_spe_registers.
4053 (fetch_spe_registers, store_spe_registers): Deleted.
4054 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4055 unconditionally; they're always raw. Fetch/store SPE upper half
4056 registers, if present, instead of ev registers.
4057 (fetch_register, store_register): Remove sanity checks: gprs are
4058 never pseudo-registers now, so we never need to even mention any
4059 registers that are ever pseudoregisters.
4061 Use a fixed register numbering when communicating with the PowerPC
4063 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4064 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4065 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4067 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4068 init_sim_regno_table.
4069 * Makefile.in (gdb_sim_ppc_h): New variable.
4070 (rs6000-tdep.o): Update dependencies.
4072 2004-08-02 Andrew Cagney <cagney@gnu.org>
4074 * cris-tdep.c (cris_register_size): Restore function, still used
4077 * gdbarch.sh (deprecated_target_read_fp)
4078 (deprecated_frame_locals_address, deprecated_frame_args_address)
4079 (deprecated_frame_chain_valid, deprecated_frame_chain)
4080 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4081 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4082 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4083 * gdbarch.h, gdbarch.c: Re-generate.
4084 * regcache.c (deprecated_read_fp): Do not call
4085 DEPRECATED_TARGET_READ_FP_P.
4086 * infcmd.c (default_print_registers_info): Do not call
4087 DEPRECATED_DO_REGISTERS_INFO.
4088 * frame-base.c (default_frame_locals_address): Do not call
4089 DEPRECATED_FRAME_LOCALS_ADDRESS.
4090 (default_frame_args_address): Do not call
4091 DEPRECATED_FRAME_ARGS_ADDRESS.
4093 * gdbarch.sh (deprecated_register_raw_size)
4094 (deprecated_register_virtual_size:int): Delete.
4095 * gdbarch.h, gdbarch.c: Re-generate.
4096 * cris-tdep.c (cris_register_size): Delete.
4097 (cris_gdbarch_init): Update.
4098 * alpha-tdep.c (alpha_register_raw_size)
4099 (alpha_register_virtual_size): Delete.
4100 (alpha_gdbarch_init): Update.
4102 * gdbarch.sh (deprecated_register_virtual_type)
4103 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4104 (deprecated_dummy_write_sp): Delete.
4105 * gdbarch.h, gdbarch.c: Re-generate.
4107 * gdbarch.sh (deprecated_register_bytes): Delete.
4108 * gdbarch.h, gdbarch.c: Re-generate.
4109 * regcache.c (deprecated_register_bytes): New function.
4110 * regcache.h (deprecated_register_bytes): Declare.
4111 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4112 * v850-tdep.c (v850_gdbarch_init): Update.
4113 * sh64-tdep.c (sh64_gdbarch_init): Update.
4114 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4115 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4116 * mcore-tdep.c (mcore_gdbarch_init): Update.
4117 * cris-tdep.c (cris_gdbarch_init): Update.
4118 * arm-tdep.c (arm_gdbarch_init): Update.
4119 * remote.c (init_remote_state): Update.
4120 * remote-vx.c (vx_prepare_to_store): Update.
4121 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4122 * irix5-nat.c (fetch_core_registers): Update.
4123 * cris-tdep.c (cris_register_bytes_ok): Update.
4124 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4126 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4127 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4128 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4129 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4130 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4131 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4132 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4133 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4134 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4135 with mips_insn16 and mips_insn32.
4137 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4138 * rs6000-tdep.c (rs6000_push_dummy_call)
4139 (rs6000_extract_return_value): Use register_size.
4140 * xstormy16-tdep.c (xstormy16_get_saved_register)
4141 (xstormy16_extract_return_value): Ditto.
4142 * valops.c (value_assign): Ditto.
4143 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4144 * v850-tdep.c (v850_extract_return_value): Ditto.
4145 * tracepoint.c (collect_symbol): Ditto.
4146 * target.c (debug_print_register): Ditto.
4147 * stack.c (frame_info): Ditto.
4148 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4149 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4150 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4151 (store_register_using_P): Ditto.
4152 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4153 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4154 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4155 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4156 * regcache.c (deprecated_read_register_bytes)
4157 (deprecated_write_register_bytes, read_register)
4158 (write_register): Ditto.
4159 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4160 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4161 * monitor.c (monitor_supply_register, monitor_fetch_register)
4162 (monitor_store_register): Ditto.
4163 * mn10300-tdep.c (mn10300_pop_frame_regular)
4164 (mn10300_print_register): Ditto.
4165 * mipsv4-nat.c (fill_fpregset): Ditto.
4166 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4167 (mips64_fill_fpregset): Ditto.
4168 * mi/mi-main.c (register_changed_p, get_register)
4169 (mi_cmd_data_write_register_values): Ditto.
4170 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4171 * irix5-nat.c (fill_gregset, fetch_core_registers):
4172 * infrun.c (write_inferior_status_register): Ditto.
4173 * infptrace.c (fetch_register, store_register): Ditto.
4174 * infcmd.c (default_print_registers_info): Ditto.
4175 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4176 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4177 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4178 * hpux-thread.c (hpux_thread_fetch_registers)
4179 (hpux_thread_store_registers): Ditto.
4180 * hppah-nat.c (store_inferior_registers, fetch_register):
4181 * findvar.c (value_from_register): Ditto.
4182 * dve3900-rom.c (fetch_bitmapped_register):
4183 * cris-tdep.c (cris_gdbarch_init): Ditto.
4184 * alpha-tdep.h: Ditto.
4185 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4187 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4188 DEPRECATED_REGISTER_RAW_SIZE from comments.
4189 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4190 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4191 DEPRECATED_REGISTER_RAW_SIZE.
4192 * findvar.c (value_of_register): Simplify by assuming that the
4193 registers raw and virtual sizes are identical.
4194 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4196 * arch-utils.c (generic_register_size): Simplify by assuming
4199 * regcache.c (legacy_read_register_gen, real_register)
4200 (legacy_write_register_gen): Delete, not used.
4202 * regcache.c (struct regcache_descr): Delete legacy_p.
4203 (init_legacy_regcache_descr): Delete function.
4204 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4205 Do not use deprecated register functions.
4206 (regcache_raw_read, deprecated_write_register_gen):
4207 (deprecated_read_register_gen, regcache_raw_write): Delete code
4208 predicated on legacy_p.
4209 (register_size): Delete check against register raw size.
4211 * cris-tdep.c (cris_register_type): Replace
4212 cris_register_virtual_type.
4213 (cris_gdbarch_init): Update, set register_type.
4215 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4216 * gdbarch.h, gdbarch.c: Re-generate.
4217 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4218 (arm_gdbarch_init) Do not set frameless function invocation.
4219 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4220 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4221 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4222 (frv_gdbarch_init): Do not set frameless function invocation.
4223 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4224 * sh-tdep.c (sh_gdbarch_init): Ditto.
4225 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4226 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4227 * avr-tdep.c (avr_gdbarch_init): Ditto.
4229 * blockframe.c (legacy_frame_chain_valid): Delete function.
4231 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4232 and pc. Update comments.
4233 (pc_in_dummy_frame): Delete function.
4234 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4236 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4237 call_hi, top and pc, use the id.
4238 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4240 * dummy-frame.c: Include "gdb_string.h".
4241 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4242 (generic_save_dummy_frame_tos): Delete.
4243 (dummy_frame_push): New function, replaces above.
4244 * dummy-frame.h: Update copyright.
4245 (dummy_frame_push): Declare.
4246 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4247 (generic_save_call_dummy_addr): Delete declarations.
4248 * infcall.c: Include "dummy-frame.h".
4249 (call_function_by_hand): Add locals caller_regcache,
4250 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4251 with call to frame_save_as_regcache plus cleanup. Delete calls to
4252 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4253 Move clear_proceed_status to just before the resume, add call to
4254 dummy_frame_push (discard cleanup).
4255 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4256 (dummy-frame.o): Add $(gdb_string_h).
4258 2004-08-01 Andrew Cagney <cagney@gnu.org>
4260 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4261 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4262 * dummy-frame.c (find_dummy_frame): Delete.
4263 (struct dummy_frame_cache, dummy_frame_sniffer)
4264 (dummy_frame_prev_register, dummy_frame_this_id)
4265 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4266 frame unwinder using a dummy_frame_cache.
4268 2004-08-01 Andrew Cagney <cagney@gnu.org>
4270 * frame.h (frame_save_as_regcache): Declare.
4271 * frame.c (frame_save_as_regcache): New function.
4272 (do_frame_read_register): Replace do_frame_unwind_register.
4273 (frame_pop): Use frame_save_as_regcache.
4274 * dummy-frame.c (generic_push_dummy_frame): Use
4275 frame_save_as_regcache.
4277 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4279 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4280 file as included until we record the first line in the linetable.
4282 2004-08-01 Andrew Cagney <cagney@gnu.org>
4284 * frame.h (deprecated_pop_dummy_frame)
4285 (deprecated_read_register_dummy)
4286 (deprecated_generic_find_dummy_frame): Delete.
4287 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4288 (deprecated_read_register_dummy)
4289 (deprecated_find_dummy_frame_regcache)
4290 (discard_innermost_dummy)
4291 (deprecated_pop_dummy_frame): Delete.
4292 (dummy_frame_this_id): Simplify.
4293 (struct dummy_frame): Delete "fp" and "sp".
4294 (find_dummy_frame): Simplify.
4295 (generic_push_dummy_frame): Do not set "fp" or "sp".
4296 (fprint_dummy_frames): Do not print "fp" and "sp"
4298 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4300 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4301 (struct i386_insn): New structure.
4302 (i386_match_insn): New function.
4303 (i386_frame_setup_skip_insns): New variable.
4304 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4305 array i386_frame_setup_insns of instructions that should be
4306 skipped inside the frame setup sequence.
4308 2004-08-01 Andrew Cagney <cagney@gnu.org>
4310 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4311 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4312 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4313 * stack.c (frame_info): Delete references to
4314 DEPRECATED_FRAME_INIT_SAVED_REGS and
4315 deprecated_get_frame_saved_regs.
4316 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4317 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4318 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4319 (frame_unwind_register_signed)
4320 (frame_unwind_register_unsigned)
4321 (frame_unwind_unsigned_register): Use register_size.
4322 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4323 (deprecated_frame_xmalloc_with_cleanup)
4324 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4325 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4327 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4328 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4329 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4330 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4332 * infcall.c (call_function_by_hand): Do not use
4333 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4334 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4335 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4336 DEPRECATED_STACK_ALIGN.
4338 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4340 Committed by Andrew Cagney.
4341 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4343 2004-08-01 Andrew Cagney <cagney@gnu.org>
4345 * mips-tdep.c (mips16_frame_cache)
4346 (mips16_frame_this_id, mips16_frame_prev_register)
4347 (mips16_frame_unwind, mips16_frame_sniffer)
4348 (mips16_frame_base_address, mips16_frame_base)
4349 (mips16_frame_base_sniffer, mips32_frame_cache)
4350 (mips32_frame_this_id, mips32_frame_prev_register)
4351 (mips32_frame_unwind, mips32_frame_sniffer)
4352 (mips32_frame_base_address, mips32_frame_base)
4353 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4354 separate heuristic mips16 and mips32 unwinders.
4355 (mips_stub_frame_cache, mips_stub_frame_this_id)
4356 (mips_stub_frame_prev_register)
4357 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4358 (mips_stub_frame_base_address, mips_stub_frame_base)
4359 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4360 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4361 match true mdebug frames.
4362 (non_heuristic_proc_desc): Add forward declaration.
4364 2004-08-01 Andrew Cagney <cagney@gnu.org>
4366 * config/mips/tm-irix6.h: Delete file.
4367 * config/mips/tm-irix5.h: Delete file.
4368 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4369 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4371 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4372 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4373 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4374 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4375 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4376 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4377 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4378 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4379 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4380 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4381 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4382 (TARGET_SIGNAL_RAW_VALUES): Delete.
4383 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4385 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4386 (TARGET_HW_WATCH_LIMIT): Delete.
4387 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4388 * minimon.h: Delete file.
4390 * trad-frame.c (trad_frame_get_this_base)
4391 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4393 * trad-frame.h (trad_frame_set_this_base)
4394 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4396 2004-07-31 Andrew Cagney <cagney@gnu.org>
4398 * trad-frame.c (trad_frame_get_prev_register): Rename
4399 trad_frame_get_prev_register.
4400 * vax-tdep.c (vax_frame_prev_register): Update.
4401 * trad-frame.h: Update.
4402 * trad-frame.c (trad_frame_get_register): Update.
4403 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4404 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4406 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4407 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4409 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4411 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4413 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4415 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4417 * s390-tdep.c (s390_frame_prev_register)
4418 (s390_stub_frame_prev_register)
4419 (s390_sigtramp_frame_prev_register): Update.
4420 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4421 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4422 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4423 * m88k-tdep.c (m88k_frame_prev_register)
4424 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4425 * m32r-tdep.c (m32r_frame_prev_register): Update.
4426 * hppa-tdep.c (hppa_frame_prev_register_helper)
4427 * frv-tdep.c (frv_frame_prev_register): Update.
4428 * d10v-tdep.c (d10v_frame_prev_register): Update.
4429 * cris-tdep.c (cris_frame_prev_register): Update.
4430 * avr-tdep.c (avr_frame_prev_register): Update.
4431 * arm-tdep.c (arm_prologue_prev_register)
4432 (arm_sigtramp_prev_register): Update.
4434 2004-07-31 Andrew Cagney <cagney@gnu.org>
4436 * frame.h (legacy_saved_regs_unwind)
4437 (legacy_frame_chain_valid, legacy_frame_p)
4438 (enum frame_type): Delete UNKNOWN_FRAME.
4439 * dummy-frame.c (dummy_frame_this_id): Simplify.
4440 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4441 * frame.c (struct frame_info): Delete the field "type".
4442 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4443 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4444 (legacy_saved_regs_unwind, legacy_frame_p)
4445 (frame_type_from_pc): Delete.
4446 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4447 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4449 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4451 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4454 * mips-nat.c: Remove file.
4455 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4456 (mips-nat.o): Remove dependency.
4458 * infptrace.c: Update copyright year.
4459 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4460 explicitly setting the buffer to all zeroes.
4462 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4463 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4465 2004-07-30 Andrew Cagney <cagney@gnu.org>
4467 * GDB 6.2 released from gdb_6_2-branch.
4469 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4471 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4473 * exec.c (exec_file_attach):
4474 * nto-tdep.c (nto_find_and_open_solib):
4475 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4476 * solib.c (solib_open):
4477 * somsolib.c (som_solib_sizeof_symbol_table):
4478 * source.c (is_regular_file, openp, open_source_file):
4479 * symfile.c (symfile_bfd_open):
4480 * wince.c (upload_to_device): Differentiate between the search for
4481 binary and source files.
4483 2004-07-30 Andrew Cagney <cagney@gnu.org>
4485 * complaints.c (_initialize_complaints): Pass NULL to
4486 add_setshow_zinteger_cmd for help_doc.
4487 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4489 2004-07-30 Andrew Cagney <cagney@gnu.org>
4492 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4493 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4494 $(PACKAGE).pot and update-po.
4495 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4496 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4497 (update-po): New rules.
4498 (localedir): Define using autoconf.
4499 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4500 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4501 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4502 * configure.in: Generate CATALOGS and LINGUAS from contents of
4503 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4504 * configure: Re-generate.
4505 * po/gdbtext: New file
4507 2004-07-30 Jerome Guitton <guitton@gnat.com>
4509 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4512 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4514 * dwarf2read.c (read_file_scope): Set producer if attribute
4516 (struct dwarf2_cu): Added new member producer.
4518 2004-07-30 Jerome Guitton <guitton@gnat.com>
4520 * inflow.c (kill_command): release file handles in BFD.
4521 * exec.c (exec_file_attach): Ditto.
4522 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4524 2004-07-29 Andrew Cagney <cagney@gnu.org>
4526 * PROBLEMS (mips-irix): Note that it is broken.
4528 2004-07-29 Andrew Cagney <cagney@gnu.org>
4530 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4531 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4533 * config/xm-nbsd.h: Delete file.
4534 * config/arm/xm-nbsd.h: Delete file.
4535 * config/i386/xm-nbsd.h: Delete file.
4536 * config/ns32k/xm-nbsd.h: Delete file.
4537 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4538 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4539 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4540 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4541 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4543 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4544 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4545 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4546 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4547 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4548 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4550 * config/powerpc/xm-linux.h: Delete empty file.
4551 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4552 * config/powerpc/linux.mh (XM_FILE): Delete.
4553 * config/m68k/xm-linux.h: Delete empty file.
4554 * config/m68k/linux.mh (XM_FILE): Delete.
4555 * config/ia64/xm-linux.h: Delete empty file.
4556 * config/ia64/linux.mh (XM_FILE): Delete.
4557 * config/arm/xm-linux.h: Delete empty file.
4558 * config/arm/linux.mh (XM_FILE): Delete.
4560 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4561 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4562 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4563 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4564 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4565 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4566 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4567 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4569 * config/m68k/xm-m68k.h: Delete file.
4570 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4572 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4573 * config/pa/xm-linux.h: Delete empty file.
4574 * config/pa/linux.mh (XM_FILE): Delete.
4575 * config/i386/xm-i386.h: Delete empty file.
4576 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4578 * config/i386/obsdaout.mh (XM_FILE): Delete.
4579 * config/i386/obsd64.mh (XM_FILE): Delete.
4580 * config/i386/fbsd64.mh (XM_FILE): Delete.
4581 * config/i386/nto.mh (XM_FILE): Delete.
4582 * config/i386/obsd.mh (XM_FILE): Delete.
4583 * config/i386/linux64.mh (XM_FILE): Delete.
4584 * config/i386/linux.mh (XM_FILE): Delete.
4585 * config/i386/i386sol2.mh (XM_FILE): Delete.
4586 * config/i386/i386gnu.mh (XM_FILE): Delete.
4587 * config/i386/fbsd.mh (XM_FILE): Delete.
4588 * config/i386/nbsd64.mh (XM_FILE): Delete.
4590 2004-07-29 Andrew Cagney <cagney@gnu.org>
4592 * config/pa/xm-linux.h: Do not include "floatformat.h".
4593 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4594 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4595 * config/i386/xm-i386.h: Do not include "floatformat.h".
4596 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4597 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4598 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4599 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4600 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4601 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4602 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4603 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4604 * configure, config.in: Regenerate.
4605 * configure.host (gdb_host_float_format, gdb_host_double_format)
4606 (gdb_host_long_double_format): Set according to the host.
4608 2004-07-29 Andrew Cagney <cagney@gnu.org>
4610 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4612 2004-07-28 Andrew Cagney <cagney@gnu.org>
4614 * PROBLEMS: Mention threads/1650.
4615 * NEWS: Mention the NPTL fix.
4617 2004-07-28 Andrew Cagney <cagney@gnu.org>
4619 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4620 (add_setshow_cmd_full): Make static.
4621 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4622 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4623 * cli/cli-decode.c (add_setshow_filename_cmd)
4624 (add_setshow_string_cmd): New functions.
4625 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4626 * mips-tdep.c (_initialize_mips_tdep): Update.
4627 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4628 * cli/cli-logging.c (_initialize_cli_logging): Update.
4629 * complaints.c (_initialize_complaints): Update.
4630 * remote.c (_initialize_remote): Update.
4632 2004-07-28 Andrew Cagney <cagney@gnu.org>
4634 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4635 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4636 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4637 print parameters. Make string parameters constant.
4638 * command.h: Update. Update copyright.
4639 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4640 * observer.c (_initialize_observer): Ditto.
4641 * frame.c (_initialize_frame): Ditto.
4642 * complaints.c (_initialize_complaints): Ditto.
4643 * maint.c (_initialize_maint_cmds): Ditto.
4644 * target.c (initialize_targets): Ditto.
4645 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4646 * infcall.c (_initialize_infcall): Ditto.
4647 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4648 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4649 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4650 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4651 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4653 2004-07-28 Andrew Cagney <cagney@gnu.org>
4655 * gdbtypes.c (lookup_primitive_typename): Delete function.
4656 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4657 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4658 * gdbtypes.c (lookup_typename): Ditto.
4659 * f-exp.y (yylex): Ditto.
4660 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4662 * scm-lang.c (c_builtin_types): Delete extern declaration.
4663 (scm_language_defn): Replace
4664 string_char_type and primitive_type_vector with
4665 la_language_arch_info.
4666 * jv-lang.c (java_language_defn): Replace
4667 string_char_type and primitive_type_vector with
4668 la_language_arch_info.
4669 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4670 c_builtin_types in comment.
4671 * c-lang.h (struct language_arch_info): Declare opaque.
4672 (c_language_arch_info): Declare.
4673 (c_builtin_types): Delete declaration.
4674 * c-lang.c (c_language_arch_info): Set string_char_type to
4675 builtin_char, not builtin_true_char. Make global.
4676 (c_builtin_types): Delete array.
4677 (asm_language_defn, minimal_language_defn): Replace
4678 string_char_type and primitive_type_vector with
4679 la_language_arch_info.
4681 2004-07-28 Andrew Cagney <cagney@gnu.org>
4683 * gdbtypes.h (struct builtin_type): Rename true_char to
4685 * gdbtypes.c (gdbtypes_post_init): Update.
4686 * c-lang.c (arch_info): New function.
4687 (enum c_primitive_types): New enum.
4688 (c_language_defn): Instead of string_char_type and
4689 primitive_type_vector set la_language_arch_info.
4691 2004-07-28 Andrew Cagney <cagney@gnu.org>
4693 * language.h (struct language_arch_info): Fix typo
4694 s/primative/primitive/.
4695 * gdbtypes.c (lookup_primitive_typename): Ditto.
4696 * language.c (language_lookup_primitive_type_by_name)
4697 (unknown_language_arch_info): Ditto.
4699 2004-07-27 Andrew Cagney <cagney@gnu.org>
4701 * defs.h (enum language): Add nr_languages.
4702 * language.h (struct language_arch_info): Define.
4703 (struct language_defn): Add la_language_arch_info.
4704 (language_lookup_primative_type_by_name): Declare.
4705 (language_string_char_type): Declare.
4706 * language.c (_initialize_language, language_gdbarch_post_init)
4707 (struct language_gdbarch, language_gdbarch_data): Implement
4708 per-architecture language information.
4709 (unknown_language_arch_info, language_string_char_type)
4710 (language_lookup_primative_type_by_name): New functions.
4711 (unknown_language_defn, auto_language_defn)
4712 (local_language_defn): Set la_language_arch_info to
4713 unknown_language_arch_info.
4714 (unknown_builtin_types): Delete.
4715 * gdbtypes.c (lookup_primitive_typename): Use
4716 language_lookup_primative_type_by_name.
4717 (create_string_type): Use language_string_char_type.
4718 * values.c (value_from_string): Use language_string_char_type.
4719 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4720 * p-lang.c (pascal_language_defn): Ditto.
4721 * m2-lang.c (m2_language_defn): Ditto.
4722 * jv-lang.c (java_language_defn): Ditto.
4723 * objc-lang.c (objc_language_defn): Ditto.
4724 * f-lang.c (f_language_defn): Ditto.
4725 * c-lang.c (c_language_defn, cplus_language_defn)
4726 (asm_language_defn, minimal_language_defn): Ditto.
4728 2004-07-27 Andrew Cagney <cagney@gnu.org>
4730 * gdbtypes.h (struct builtin_type): Declare.
4731 (builtin_type): Declare.
4732 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4733 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4734 (gdbtypes_post_init): New function.
4735 (builtin_type): New function.
4737 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4739 * remote-m32r-sdi.c: Fix breakpoint bug.
4740 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4741 recv_char_data, recv_long_data): New functions to replace communication
4744 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4746 Document PR threads/1650.
4747 * PROBLEMS (Threads): Document problem with many threads
4749 2004-07-26 Andrew Cagney <cagney@gnu.org>
4751 * gdb-mi.el: Move from here ...
4752 * mi/gdb-mi.el: ... to here.
4754 2004-07-26 Andrew Cagney <cagney@gnu.org>
4756 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4757 * main.c (captured_main): When in batch mode always detach.
4759 2004-07-26 Andrew Cagney <cagney@gnu.org>
4761 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4762 and h8300 as broken.
4763 * NEWS: END-OF-LIFE frame compatibility module.
4764 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4767 2004-07-26 Andrew Cagney <cagney@gnu.org>
4769 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4770 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4771 * wince.c (_initialize_wince): Update.
4772 * win32-nat.c (_initialize_win32_nat): Update.
4773 * varobj.c (_initialize_varobj): Update.
4774 * valops.c (_initialize_valops): Update.
4775 * utils.c (initialize_utils, initialize_utils): Update.
4776 * tui/tui-win.c (_initialize_tui_win): Update.
4777 * top.c (init_main): Update.
4778 * symfile.c (_initialize_symfile): Update.
4779 * source.c (_initialize_source): Update.
4780 * somsolib.c (_initialize_som_solib): Update.
4781 * solib.c (_initialize_solib): Update.
4782 * solib-frv.c (_initialize_frv_solib): Update.
4783 * serial.c (_initialize_serial): Update.
4784 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4785 * remote.c (_initialize_remote, _initialize_remote): Update.
4786 * remote-vx.c (_initialize_vx): Update.
4787 * remote-utils.c (_initialize_sr_support): Update.
4788 * remote-sds.c (_initialize_remote_sds): Update.
4789 * remote-mips.c (_initialize_remote_mips): Update.
4790 * remote-e7000.c (_initialize_remote_e7000): Update.
4791 * proc-api.c (_initialize_proc_api): Update.
4792 * printcmd.c: Update.
4793 * parse.c (_initialize_parse): Update.
4794 * pa64solib.c (_initialize_pa64_solib): Update.
4795 * p-valprint.c (_initialize_pascal_valprint): Update.
4796 * monitor.c (_initialize_remote_monitors): Update.
4797 * mips-tdep.c (_initialize_mips_tdep): Update.
4798 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4799 * maint.c (_initialize_maint_cmds): Update.
4800 * lin-lwp.c (_initialize_lin_lwp): Update.
4801 * language.c (_initialize_language): Update.
4802 * kod.c (_initialize_kod): Update.
4803 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4804 * i386-tdep.c (_initialize_i386_tdep): Update.
4805 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4806 * gdbarch.sh: Update.
4807 * gdbarch.c: Re-generate.
4808 * gdb-events.sh: Update.
4809 * gdb-events.c: Re-generate.
4810 * frame.c (_initialize_frame): Update.
4812 * demangle.c (_initialize_demangler): Update.
4813 * dcache.c (_initialize_dcache): Update.
4814 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4815 * cp-valprint.c (_initialize_cp_valprint): Update.
4816 * corefile.c (_initialize_core): Update.
4817 * command.h: Update.
4818 * cli/cli-decode.h: Update.
4819 * cli/cli-cmds.c (init_cli_cmds): Update.
4820 * charset.c (_initialize_charset): Update.
4821 * breakpoint.c (_initialize_breakpoint): Update.
4822 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4823 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4824 * aix-thread.c (_initialize_aix_thread): Update.
4826 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4828 Partial fix for PR backtrace/1718.
4829 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4830 that GCC migrates into the prolugue. Don't handle any
4831 instructions that clobber %ebx.
4833 2004-07-23 Andrew Cagney <cagney@gnu.org>
4835 Use regcache_raw_collect instead of regcache_collect.
4836 * regcache.h (regcache_collect): Delete declaration.
4837 * regcache.c (regcache_colect): Delete function.
4838 * win32-nat.c (do_child_store_inferior_registers): Update.
4839 * sol-thread.c (sol_thread_store_registers): Update.
4840 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4841 * rs6000-nat.c (store_register): Update.
4842 * remote.c (store_register_using_P, remote_store_registers): Update.
4843 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4844 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4845 (fill_vrregset, store_spe_registers, fill_gregset)
4846 (fill_gregset): Update.
4847 * nto-procfs.c (procfs_store_registers): Update.
4848 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4849 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4850 * m68klinux-nat.c (store_register, fill_gregset): Update.
4851 * m68k-tdep.c (fill_gregset): Update.
4852 * infptrace.c (store_register): Update.
4853 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4854 * i386-linux-nat.c (store_register, fill_gregset): Update.
4855 * hppa-linux-nat.c (fill_gregset): Update.
4856 * go32-nat.c (store_register): Update.
4857 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4858 (store_fp_regs): Update.
4859 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4860 (store_nwfpe_extended, store_fpregister, store_fpregs)
4861 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4862 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4863 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4864 (store_regs_user_thread, store_regs_kernel_thread): Update.
4866 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4868 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4869 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4871 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4872 member of `struct comp_unit'.
4874 2004-07-23 Andrew Cagney <cagney@gnu.org>
4876 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4877 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4879 2004-07-23 Martin Hunt <hunt@redhat.com>
4880 Kevin Buettner <kevinb@redhat.com>
4882 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4883 alignment was being added to the offset instead of multiplied.
4885 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4887 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4888 changed signal trampoline in OpenBSD 3.5-current.
4890 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4891 <machine/pcb.h> and "bsd-kvm.h".
4892 (sparc64nbsd_supply_pcb): New function.
4893 (_initialize_sparc64nbsd_nat): Renamed from
4894 _initialize_sparcnbsd_nat. Enable libkvm interface.
4895 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4896 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4897 (LOADLIBES): New variable.
4899 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4901 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4903 2004-07-21 Andrew Cagney <cagney@gnu.org>
4905 Use regcache_raw_supply instead of supply_register.
4906 * regcache.h (supply_register): Delete declaration.
4907 * regcache.c (supply_register): Delete function.
4908 * wince.c (do_child_fetch_inferior_registers): Update.
4909 * win32-nat.c (do_child_fetch_inferior_registers)
4910 (fetch_elf_core_registers): Update.
4911 * v850ice.c (v850ice_fetch_registers): Update.
4912 * thread-db.c (thread_db_store_registers): Update.
4913 * sol-thread.c (sol_thread_store_registers): Update.
4914 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4915 * rs6000-nat.c (fetch_register): Update.
4916 * rom68k-rom.c (rom68k_supply_one_register): Update.
4917 * remote.c (remote_wait, remote_async_wait): Update.
4918 * remote-st.c (get_hex_regs): Update.
4919 * remote-sim.c (gdbsim_fetch_register): Update.
4920 * remote-sds.c (sds_fetch_registers): Update.
4921 * remote-rdp.c (remote_rdp_fetch_register): Update.
4922 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4923 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4924 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4925 * remote-hms.c (init_hms_cmds): Update.
4926 * remote-est.c (init_est_cmds): Update.
4927 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4928 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4929 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4930 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4931 (fetch_register, supply_vrregset, supply_vrregset)
4932 (fetch_spe_registers): Update.
4933 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4934 * monitor.c (monitor_supply_register): Update.
4935 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4936 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4937 (mipsnbsd_supply_fpreg): Update.
4938 * mips-nat.c (fetch_inferior_registers)
4939 (fetch_core_registers): Update.
4940 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4941 (supply_fpregset, mips64_supply_gregset)
4942 (mips64_supply_fpregset): Update.
4943 * m68klinux-nat.c (fetch_register, supply_gregset)
4944 (supply_fpregset): Update.
4945 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4946 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4947 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4948 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4949 * infptrace.c (fetch_register): Update.
4950 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4951 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4952 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4953 (gnu_fetch_registers, gnu_store_registers): Update.
4954 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4955 * i386-linux-nat.c (fetch_register, supply_gregset)
4956 (dummy_sse_values): Update.
4957 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4958 * hppah-nat.c (fetch_register): Update.
4959 * hppa-linux-nat.c (fetch_register, supply_gregset)
4960 (supply_fpregset): Update.
4961 * go32-nat.c (fetch_register): Update.
4962 * dve3900-rom.c (fetch_bitmapped_register)
4963 (_initialize_r3900_rom): Update.
4964 * cris-tdep.c (supply_gregset): Update.
4965 * abug-rom.c (init_abug_cmds): Update.
4966 * core-aout.c (fetch_core_registers): Update.
4967 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4968 (fetch_register, fetch_fp_register): Update.
4969 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4970 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4971 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4972 * alphanbsd-tdep.c (fetch_core_registers): Update.
4973 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4974 * alpha-nat.c (fetch_osf_core_registers)
4975 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4976 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4977 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4979 2004-07-21 Andrew Cagney <cagney@gnu.org>
4981 * PROBLEMS: Mention breakpoints/1702.
4982 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4983 that is known to work.
4985 2004-07-21 Andrew Cagney <cagney@gnu.org>
4987 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4988 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4989 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4990 (handle_inferior_event): Wrap call to deprecated
4991 IGNORE_HELPER_CALL in #ifdef.
4992 * config/mips/tm-nbsd.h: Update.
4994 2004-07-20 Jim Blandy <jimb@redhat.com>
4996 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4997 bfd_mach_ppc has no segment registers.
4999 Include PowerPC SPR numbers for special-purpose registers.
5000 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5001 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5002 new member in initializer.
5003 (S, S4, SN4, S64): New macros for defining special-purpose
5005 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5006 registers_403, registers_403GC, registers_505, registers_860,
5007 registers_601, registers_602, registers_603, registers_604,
5008 registers_750, registers_e500): Use them.
5010 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5011 replace references with expression used to initialize variable.
5013 2004-07-20 Andrew Cagney <cagney@gnu.org>
5015 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5017 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5018 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5019 (s390_sigtramp_frame_sniffer): Update.
5020 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5021 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5022 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5023 (mips32_fetch_instruction): Update.
5024 * mcore-tdep.c (get_insn): Update.
5025 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5026 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5027 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5028 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5029 (i386_linux_rt_sigtramp_start): Update.
5030 * i386-linux-nat.c (child_resume): Update.
5031 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5032 * hppa-linux-tdep.c (insns_match_pattern): Update.
5033 * gdbcore.h: Update.
5034 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5035 * frame.c (safe_frame_unwind_memory): Update.
5036 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5037 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5038 * alpha-tdep.c (alpha_read_insn): Update.
5040 2004-07-20 Andrew Cagney <cagney@gnu.org>
5042 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5043 containing both bytes and mask. Add "frame_type".
5044 * tramp-frame.c (tramp_frame_start): Update.
5045 (tramp_frame_prepend_unwinder): Update.
5046 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5047 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5048 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5049 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5051 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5053 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5054 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5055 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5056 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5058 2004-07-17 Andrew Cagney <cagney@gnu.org>
5060 * NEWS, PROBLEMS: Update for 6.2.
5062 * README: Update to 6.2.
5064 * utils.c (xvasprintf): Call xstrvprintf.
5066 * parse.c: Update copyright.
5067 (null_post_parser): Eliminate ARGSUSED.
5069 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5070 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5071 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5073 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5074 * ppc-linux-nat.c: Use "Linux kernel".
5075 * hppa-linux-tdep.c: Use GNU/Linux.
5076 * hppa-linux-nat.c: Use GNU/Linux.
5077 * dwarfread.c: Add [sic] to use of Linux.
5079 * hppa-linux-nat.c: Do not include <string.h>.
5080 (supply_fpregset): Remove "register" attribute.
5082 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5084 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5086 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5087 * configure, config.in: Regenerated.
5089 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5091 (vaxbsd_supply_pcb): New function.
5092 (_initialize_vaxbsd_nat): New prototype and function.
5093 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5095 (LOADLIBES): New variable.
5096 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5097 (LOADLIBES): New variable.
5098 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5099 (LOADLIBES): New variable.
5100 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5102 2004-07-16 Andrew Cagney <cagney@gnu.org>
5104 * defs.h (event_loop_p): Replace variable declaration with macro,
5106 * main.c (captured_main): Delete options "-async" and "-noasync".
5107 (event_loop_p): Delete variable.
5108 * NEWS: Mention that "-async" and "-noasync" were removed.
5110 2004-07-16 Andrew Cagney <cagney@gnu.org>
5112 * remote-m32r-sdi.c: Re-indent.
5114 2004-07-16 Jim Blandy <jimb@redhat.com>
5116 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5117 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5118 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5119 missing MPC823 SPRs.
5120 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5121 incorrect. (This was corrected in GDB's register name tables on
5124 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5125 should be "esasrr" ("ESA Save and Restore Register").
5127 2004-07-16 Andrew Cagney <cagney@gnu.org>
5129 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5130 calls, no longer applicable. Update comments and rename parameter
5131 "step_frame" to "return_frame".
5133 2004-07-16 Andrew Cagney <cagney@gnu.org>
5135 * frame.c (fprint_field): New function.
5136 (fprint_frame_id): Use fprint_field.
5138 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5140 * ada-lang.c (ada_language_defn): Remove commented out code.
5142 2004-07-15 Jim Blandy <jimb@redhat.com>
5144 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5145 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5147 2004-07-14 Jim Blandy <jimb@redhat.com>
5149 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5151 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5153 * ppc-tdep.h (ppc_num_srs): New enum constant.
5155 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5156 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5157 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5158 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5159 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5160 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5161 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5162 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5163 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5164 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5165 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5166 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5167 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5168 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5169 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5170 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5171 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5172 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5173 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5174 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5175 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5176 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5177 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5178 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5179 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5180 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5181 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5182 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5183 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5184 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5185 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5186 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5187 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5188 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5189 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5190 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5191 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5192 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5193 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5194 special-purpose register numbers.
5196 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5197 manual mentions 'md_twb', but many mention 'm_twb', and at that
5198 point in the register list.)
5200 2004-07-14 Andrew Cagney <cagney@gnu.org>
5202 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5203 instead of "internal-error".
5205 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5207 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5208 that was inserted inside a comment.
5210 2004-07-10 Randolph Chung <tausq@debian.org>
5212 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5214 (hppa_hpux_push_dummy_code): New function.
5215 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5216 Set find_global_pointer method.
5218 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5220 * NEWS: Mention BSD libkvm interface.
5222 2004-07-10 Michael Snyder <msnyder@redhat.com>
5224 * symfile.c (generic_load): Comment typo.
5225 * stack.c (get_selected_block): Ditto.
5226 * regcache.c (regcache_cooked_read): Ditto.
5227 * monitor.c (monitor_debug): Ditto.
5228 * mips-tdep.c (mips_read_pc): Ditto.
5229 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5230 * gdb_mbuild.sh: Ditto.
5231 * gdbarch.sh: Ditto.
5234 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5236 * ada-tasks.c: Remove file.
5238 Remove ARI problems:
5240 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5243 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5245 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5246 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5247 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5248 (UMIN_OF_SIZE): Remove.
5249 (max_of_type): New function to replace orphan macro in gdbtypes.h
5250 (min_of_type): Ditto.
5251 (discrete_type_high_bound): Use max_of_type.
5252 (discrete_type_low_bound): Use min_of_type.
5253 (possible_user_operator_p): Move operator to beginning of line.
5254 (ada_is_variant_part): Ditto.
5255 (ensure_lval): Rewrite to avoid deprecated operations.
5256 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5257 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5258 (ada_enum_name): Remove assignments in 'if' statements.
5259 (build_ada_types): Add gdbarch parameter.
5260 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5261 with gdbarch_data_register_post_init.
5262 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5265 * ada-valprint.c (inspect_it): Remove declaration.
5266 (repeat_count_threshold): Remove declaration.
5267 (ada_print_floating): Remove assignments in 'if' statements.
5268 (print_str): Move operator to beginning of line.
5270 2004-07-08 Jim Blandy <jimb@redhat.com>
5272 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5274 2004-07-08 Bob Rossi <bob@brasko.net>
5276 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5278 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5280 * language.h (struct_language_defn): Add new function pointer:
5281 la_class_name_from_physname. Also add new prototype for
5282 language_class_name_from_physname.
5283 * language.c (language_class_name_from_physname): New function.
5284 (unk_lang_class_name): Ditto.
5285 (unknown_language_defn, auto_language_defn): Change
5286 to add unk_lang_class_name function pointer for
5287 la_class_name_from_physname.
5288 (local_language_defn): Ditto.
5289 * dwarf2read.c (guess_structure_name): Change to call
5290 language_class_name_from_physname.
5291 (determine_class_name): Ditto.
5292 * cp-support.c (class_name_from_physname): Renamed.
5293 (cp_class_name_from_physname): New name of function.
5294 * cp-support.h: Ditto.
5295 * c-lang.c (c_language_defn): Change to add NULL
5296 for class_name_from_physname function pointer.
5297 (cplus_language_defn): Change to add cp_class_name_from_physname.
5298 * jv-lang.c (java_class_name_physname): New function.
5299 (java_find_last_component): New static routine.
5300 (java_language_defn): Add java_class_name_from_physname pointer.
5301 * ada-lang.c (ada_language_defn): Change to add NULL
5302 for class_name_from_physname function pointer.
5303 * f-lang.c (f_language_defn): Ditto.
5304 * m2-lang.c (m2_language_defn): Ditto.
5305 * objc-lang.c (objc_language_defn): Ditto.
5306 * p-lang.c (pascal_language_defn): Ditto.
5307 * scm-lang.c (scm_language_defn): Ditto.
5309 2004-07-06 Andrew Cagney <cagney@gnu.org>
5311 Patch from Bart Robinson.
5312 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5313 (O_LARGEFILE): Define to 0, if not defined.
5315 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5317 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5318 <machine/pcb.h> and "bsd-kvm.h".
5319 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5320 (m68kbsd_supply_pcb): New function.
5321 (_initialize_m68kbsd_nat): New prototype and function.
5322 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5323 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5324 (LOADLIBES): New variable.
5325 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5326 (LOADLIBES): New variable.
5328 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5330 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5332 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5334 (bsd_kvm_cmdlist): New variable.
5335 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5336 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5337 command and "kvm proc" command.
5338 * Makefile.in (bsd-kvm.o): Update dependencies.
5340 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5342 * osabi.c: Update copyright year.
5343 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5344 notes if EI_OSABI is set to ELFOSABI_HPUX.
5346 2004-07-01 Michael Snyder <msnyder@redhat.com>
5348 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5349 that seems to have gotten whacked out of line.
5351 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5353 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5356 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5358 * ada-lang.c (decode_packed_array): Minor change to comment.
5359 (ada_value_slice_ptr): New function.
5360 (ada_value_slice): New function.
5361 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5362 test. Don't know why it is there.
5363 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5364 to avoid dereferencing huge arrays from which one is slicing.
5365 (empty_array): Correct to return an array rather than
5367 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5368 on empty arrays (let'em use 'FIRST instead).
5370 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5372 Address complaints from gdb_ari.sh:
5374 * ada-exp.y: Include gdb_string.h rather than string.h.
5375 (convert_char_literal): Reformat declaration.
5376 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5377 * ada-lex.l: Change use of free to xfree (the macro would do so
5378 anyway, but this is harmless).
5379 Include gdb_string.h rather than string.h.
5380 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5382 * ada-lang.c (parse): Remove K&Rism in parameter list.
5383 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5385 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5387 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5390 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5392 * alphabsd-nat.c: Update copyright year.
5393 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5395 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5397 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5398 (i386_cygwin_in_solib_call_trampoline): New function.
5399 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5400 and skip_trampoline_code gdbarch methods.
5402 2004-06-29 Jim Blandy <jimb@redhat.com>
5404 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5405 name actually used in the dependency lists.
5407 2004-06-29 Randolph Chung <tausq@debian.org>
5409 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5411 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5413 * win32-nat.c (child_pid_to_exec_file): New function.
5414 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5417 2004-06-28 Andrew Cagney <cagney@gnu.org>
5419 * defs.h (xstrvprintf): Declare.
5420 * utils.c (xstrvprintf): New function.
5421 (internal_vproblem, xstrprintf, xasprintf)
5422 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5423 * serial.c (serial_printf): Ditto.
5424 * complaints.c (vcomplaint): Ditto.
5426 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5428 * infcmd.c (attach_command): Move call to target_terminal_inferior
5429 behind loading symbol table.
5431 2004-06-28 Andrew Cagney <cagney@gnu.org>
5433 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5434 change - add back extern deprecated_ui_loop_hook declaration.
5436 2004-06-28 Andrew Cagney <cagney@gnu.org>
5438 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5440 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5441 (c_value_of_variable): Ditto.
5442 * utils.c (internal_vproblem): Ditto.
5443 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5444 * remote.c (add_packet_config_cmd): Ditto.
5445 * remote-rdp.c (rdp_set_command_line): Ditto.
5446 * regcache.c (regcache_dump): Ditto.
5447 * frv-tdep.c (new_variant, new_variant): Ditto.
5448 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5449 (fbsd_find_memory_regions): Ditto.
5450 * breakpoint.c (create_thread_event_breakpoint)
5451 (create_breakpoints): Ditto.
5452 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5453 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5455 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5457 * ada-lang.c: Re-indent file, with some massaging to help indent
5458 a bit when the result is otherwise really too ugly.
5460 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5462 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5463 code_addr_p and special_addr_p to 'unsigned int'.
5465 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5467 * i386v4-nat.c: Update copyright year and tweak comment.
5468 (regmap): Remove trailing comma.
5469 (supply_gregset): Rename local variable i to regnum. Call
5470 regcache_raw_supply instead of supply_register.
5471 (fill_gregset): Rename argument regno to regnum. Call
5472 regcache_raw_collect instead of regcache_collect.
5474 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5476 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5478 (frame_id_build, frame_id_build_special): Update comments.
5479 (frame_id_build_wild): New prototype.
5480 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5481 struct frame_id fields.
5482 (frame_id_build_wild): New function.
5483 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5485 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5487 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5490 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5492 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5494 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5496 * ada-lang.c: Re-indent file.
5498 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5500 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5501 (no_symtab_msg): Likewise.
5503 2004-06-27 Andreas Schwab <schwab@suse.de>
5505 * source.c: Fix whitespace.
5507 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5509 * configure.in: Include <sys/param.h> for td_pcb test.
5510 * configure: Regenerated.
5512 * i386nbsd-nat.c: New file.
5513 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5514 i386obsd-nat.c and i386obsd-tdep.c.
5515 (i386nbsd-nat.o): New dependency.
5516 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5518 (LOADLIBES): New variable.
5519 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5521 (LOADLIBES): New variable.
5523 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5524 (LOADLIBES): New variable.
5526 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5527 fetching from BSD_KVM_PADDR. Correctly lookup address for
5530 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5532 (amd64fbsd_supply_pcb): New funcion.
5533 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5535 2004-06-27 <david@streamline-computing.com>
5537 Partial fix for PR cli/1056.
5538 * valarith.c: Check for zero in division and remainder
5541 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5543 * i387-tdep.c: Remove excessive whitespace.
5545 2004-06-26 Andrew Cagney <cagney@gnu.org>
5547 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5548 * gdb-events.h, gdb-events.c: Re-generate.
5549 * tui/tui-hooks.c (tui_install_hooks): Update.
5550 (tui_remove_hooks): Update.
5551 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5553 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5555 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5556 (gregset_t, fpregset_t): Remove typedefs.
5557 (REG_OFFSET): Rename argument.
5558 (amd64bsd_r_reg_offset): Rename from reg_offset.
5559 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5561 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5563 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5565 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5567 * vax-tdep.c: Tweak comment.
5569 Add OpenBSD/hppa support.
5570 * NEWS (New native configurations): Mention OpenBSD/hppa.
5571 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5572 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5574 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5575 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5576 * configure.host: Add hppa*-*-openbsd*.
5577 * configure.tgt: Add hppa*-*-openbsd*.
5579 2004-06-25 Andrew Cagney <cagney@gnu.org>
5581 * defs.h (deprecated_ui_loop_hook): Deprecated.
5582 * wince.c (child_wait): Update.
5583 * win32-nat.c (child_wait): Update.
5584 * v850ice.c (v850ice_wait): Update.
5585 * top.c (deprecated_ui_loop_hook): Update.
5587 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5588 (do_unix_readchar): Update.
5589 * ser-tcp.c (net_open): Update.
5590 * remote-sim.c (gdb_os_poll_quit): Update.
5591 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5593 2004-06-24 Andrew Cagney <cagney@gnu.org>
5595 * defs.h (deprecated_pre_add_symbol_hook)
5596 (deprecated_post_add_symbol_hook): Deprecated.
5597 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5598 (symbol_file_add_with_addrs_or_offsets): Update references.
5600 2004-06-24 Andrew Cagney <cagney@gnu.org>
5602 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5603 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5604 * wince.c (ui_loop_hook): Delete extern declaration.
5605 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5606 * v850ice.c (ui_loop_hook): Delete extern declaration..
5607 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5608 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5609 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5610 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5611 ui_loop_hook declaration.
5613 2004-06-24 Andrew Cagney <cagney@gnu.org>
5615 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5616 entry_func_highpc fields.
5617 * objfiles.c (init_entry_point_info): Do not clear
5618 entry_func_lowpc and entry_func_highpc.
5619 (objfile_relocate): Do not relocate entry_func_lowpc and
5621 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5623 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5625 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5626 entry_func_lowpc and entry_func_highpc with call to
5629 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5631 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5632 quad-precision floating point arguments in registers.
5634 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5636 From Michael Mueller <m.mueller99@kay-mueller.de>:
5637 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5640 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5642 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5644 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5645 untriggered watchpoints to a separate if clause. Update function
5646 comment regarding STOPPED_BY_WATCHPOINT argument.
5648 2004-06-22 Jim Blandy <jimb@redhat.com>
5650 * gdbarch.sh: Doc fix.
5652 2004-06-21 Martin Hunt <hunt@redhat.com>
5653 Kevin Buettner <kevinb@redhat.com>
5655 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5656 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5657 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5658 to set_gdbarch_sp_regnum(). Use cooked register number.
5659 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5661 2004-06-21 Andrew Cagney <cagney@gnu.org>
5663 * gdbarch.sh: When the macro field is empty, do not generate a
5664 macro definition. When the macro field is "=", generate the macro
5665 name from the upper-case function name.
5666 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5667 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5668 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5669 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5670 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5671 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5672 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5673 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5674 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5675 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5676 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5677 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5678 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5679 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5680 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5681 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5682 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5683 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5684 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5685 (DEPRECATED_USE_STRUCT_CONVENTION)
5686 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5687 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5688 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5689 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5690 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5691 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5692 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5693 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5694 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5695 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5696 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5697 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5698 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5699 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5700 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5701 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5702 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5703 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5705 2004-06-21 Andrew Cagney <cagney@gnu.org>
5707 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5708 macro name, and the function rather than macro value. Only wrap
5709 macro print statements in #ifdef. Move format logic to where it
5711 * gdbarch.c: Re-generate.
5713 * gdbarch.sh (read): Delete "print_p" and "description", add
5714 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5715 Delete references to print_p.
5716 (TARGET_ARCHITECTURE): Delete print predicate.
5717 * gdbarch.c: Re-generate.
5719 * gdbarch.sh: Check that multi-arch methods do not provide a
5721 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5722 (print_registers_info, print_float_info, print_vector_info)
5723 (adjust_breakpoint_address, remote_translate_xfer_address)
5724 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5725 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5726 name from the multi-arch definition.
5728 2004-06-20 Andrew Cagney <cagney@gnu.org>
5730 * gdbarch.sh: Sort by the function, instead of macro name.
5731 * gdbarch.c: Re-generate.
5733 2004-06-20 Andrew Cagney <cagney@gnu.org>
5735 * gdbarch.sh: Use the function, instead of macro name in
5736 errors and the log file.
5737 (return_value): Remove stray ":" in spec.
5739 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5740 * gdbarch.h, gdbarch.c: Re-generate.
5741 * Makefile.in (arch-utils.o): Update dependencies.
5742 * values.c (using_struct_return): Move code calling
5743 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5744 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5745 to legacy_return_value, simplify.
5746 * infcmd.c (print_return_value): Move code calling
5747 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5748 to legacy_return_value, simplify.
5749 * infcall.c (call_function_by_hand): Move code calling
5750 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5751 * arch-utils.c: Update copyright. Include "gdbcore.h".
5752 (legacy_return_value): New function.
5753 * arch-utils.h: Update copyright.
5754 (legacy_return_value): Declare.
5756 2004-06-20 Andrew Cagney <cagney@gnu.org>
5758 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5759 * gdbarch.h, gdbarch.c: Re-generate.
5760 * values.c (using_struct_return): Update call.
5761 * mcore-tdep.c: Update comment.
5762 * infcall.c (call_function_by_hand): Update comment.
5763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5764 * arch-utils.h (always_use_struct_convention): Update.
5765 * v850-tdep.c (v850_gdbarch_init): Update.
5766 * sh64-tdep.c (sh64_gdbarch_init): Update.
5767 * sh-tdep.c (sh_gdbarch_init): Update.
5768 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5769 * mips-tdep.c (mips_gdbarch_init): Update.
5770 * mcore-tdep.c (mcore_gdbarch_init): Update.
5771 * m32r-tdep.c (m32r_gdbarch_init): Update.
5772 * ia64-tdep.c (ia64_gdbarch_init): Update.
5773 * h8300-tdep.c (h8300_gdbarch_init): Update.
5774 * frv-tdep.c (frv_gdbarch_init): Update.
5775 * cris-tdep.c (cris_gdbarch_init): Update.
5776 * arm-tdep.c (arm_gdbarch_init): Update.
5777 * alpha-tdep.c (alpha_gdbarch_init): Update.
5779 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5781 * PROBLEMS: Add more specific information, and a work-around,
5784 2004-06-18 Andrew Cagney <cagney@gnu.org>
5786 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5787 * gdbarch.h, gdbarch.c: Re-generate.
5788 * ada-lang.c (ada_finish_decode_line_1): Update.
5789 * infrun.c (handle_inferior_event): Update.
5790 * infcall.c (find_function_addr): Update.
5791 * linespec.c (minsym_found): Update.
5792 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5794 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5795 * cli/cli-cmds.c (disassemble_command): Update.
5796 * vax-tdep.c (vax_gdbarch_init): Update.
5798 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5800 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5802 2004-06-17 Andrew Cagney <cagney@gnu.org>
5804 GDB 6.1.1 released from the GDB 6.1 branch.
5805 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5808 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5811 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5812 operation as a uleb128. Found by Michael Coulter.
5814 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5816 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5818 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5819 to ada-lang.h; this is needed to be able to implement the kill command
5822 (task_entry): Ditto.
5824 (ada_build_task_list): Ditto.
5826 * ada-lang.c: Conditionalize routines and data structures related
5827 to breakpoints, exceptions, completion, and symbol caching on
5828 GNAT_GDB, since these are not yet used in the submitted public sources.
5829 (ada_main_name): Editorial: Move definition out of exception-related
5832 2004-06-15 Andrew Cagney <cagney@gnu.org>
5834 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5835 deprecated_pc_in_call_dummy.
5837 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5839 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5840 bfd_get_section_size_before_reloc or _raw_size.
5841 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5842 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5843 (dwarf2_read_section): Likewise.
5844 * elfread.c (elf_locate_sections): Likewise.
5845 * gcore.c (derive_heap_segment): Likewise.
5846 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5847 * remote-e7000.c (e7000_load): Likewise.
5848 * remote-m32r-sdi.c (m32r_load): Likewise.
5849 * remote-mips.c (mips_load_srec): Likewise.
5850 (pmon_load_fast): Likewise.
5851 * remote.c (compare_sections_command): Likewise.
5852 * symfile.c (add_section_size_callback): Likewise.
5853 (load_section_callback): Likewise.
5854 (pc_in_unmapped_range): Likewise.
5855 (pc_in_mapped_range): Likewise.
5856 (sections_overlap): Likewise.
5857 (list_overlays_command): Likewise.
5858 (simple_overlay_update_1): Likewise.
5859 (simple_overlay_update): Likewise.
5860 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5861 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5863 2004-06-14 Randolph Chung <tausq@debian.org>
5865 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5866 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5868 (hppa_hpux_inferior_created): New function.
5869 (hppa_hpux_init_abi): Register observer.
5870 * symfile.c (hp_cxx_exception_support_initialized)
5871 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5872 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5874 2004-06-14 Randolph Chung <tausq@debian.org>
5876 * MAINTAINERS (Write After Approval): Alphabetize my entry
5879 2004-06-14 Andrew Cagney <cagney@gnu.org>
5881 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5882 testsuite maintainer.
5884 2004-06-13 Andrew Cagney <cagney@gnu.org>
5886 * infcmd.c (print_return_value): Fix logic, allow
5887 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5889 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5890 defining any macros.
5891 * gdbarch.h: Re-generate.
5893 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5894 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5895 * gdbarch.h: Re-generate.
5897 * values.c (generic_use_struct_convention): Don't check gcc_p.
5899 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5900 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5901 * gdbarch.h, gdbarch.c: Regenerate.
5902 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5903 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5904 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5905 deprecated_max_register_raw_size and
5906 deprecated_max_register_virtual_size.
5907 * v850-tdep.c (v850_gdbarch_init): Ditto.
5908 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5909 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5910 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5911 * cris-tdep.c (cris_gdbarch_init): Ditto.
5913 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5914 * gdbarch.h, gdbarch.c: Re-generate.
5915 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5916 (m68hc11_use_struct_convention): Delete function.
5917 (m68hc11_extract_struct_value_address): Delete function.
5918 (m68hc11_return_value): New function.
5919 (m68hc11_gdbarch_init): Instead of store_return_value,
5920 extract_return_value, return_value_on_stack,
5921 deprecated_extract_struct_value_address and use_struct_convention,
5923 * values.c (using_struct_return): Do not call
5924 RETURN_VALUE_ON_STACK.
5925 * arch-utils.h (generic_return_value_on_stack_not): Delete
5927 * arch-utils.c (generic_return_value_on_stack_not): Delete
5930 2004-06-12 Andrew Cagney <cagney@gnu.org>
5932 * values.c (register_value_being_returned): Delete function.
5933 * infcmd.c (legacy_return_value): Delete function.
5934 * infcall.c (call_function_by_hand): Inline
5935 "register_value_being_returned", simplify.
5936 * values.c (using_struct_return): Update comment, refer to
5937 print_return_value instead of register_value_being_returned.
5938 * infcmd.c (print_return_value): Inline calls to
5939 register_value_being_returned and legacy_return_value. Simplify.
5941 2004-06-11 Randolph Chung <tausq@debian.org>
5943 * somread.c (som_symtab_read): Exclude gcc local symbols.
5945 2004-06-11 Randolph Chung <tausq@debian.org>
5947 * infrun.c (handle_inferior_event): Handle the case when a
5948 trampoline ends up in the runtime resolver, and if the trampoline
5949 has no name. Rearrange the code so that all the trampoline
5950 processing happens before other step-out-of-range handling.
5952 2004-06-11 Martin Hunt <hunt@redhat.com>
5954 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5957 2004-06-10 Andrew Cagney <cagney@gnu.org>
5959 * blockframe.c (legacy_inside_entry_func): Delete.
5960 (legacy_frame_chain_valid): Inline call to
5961 legacy_inside_entry_func, simplify.
5963 2004-06-10 Bob Rossi <bob@brasko.net>
5965 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5966 * dwarf2read.c (partial_die_info): Add dirname field.
5967 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5968 (read_partial_die): Save away DW_AT_comp_dir.
5969 * defs.h (symtab_to_filename): Removed.
5970 * source.c (find_and_open_source): Added.
5971 (open_source_file): Just calls find_and_open_source.
5972 (symtab_to_filename): Removed.
5973 (symtab_to_fullname, psymtab_to_fullname): Added.
5974 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5975 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5977 * symtab.h (partial_symtab): Add dirname field.
5978 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5979 (mi_cmd_file_list_exec_source_file): Call new function
5980 symtab_to_fullname to find fullname.
5981 (mi_cmd_file_list_exec_source_files): Added.
5982 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5983 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5985 2004-06-10 Andrew Cagney <cagney@gnu.org>
5987 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5988 to generic_use_struct_convention, the default value.
5990 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5993 * ns32k-tdep.c (ns32k_push_arguments): New function.
5994 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5995 * infcall.c (call_function_by_hand): Call error instead of
5996 legacy_push_arguments.
5997 * value.h (legacy_push_arguments): Delete declaration.
5998 * valops.c (legacy_push_arguments): Delete function.
5999 (value_push): Delete function.
6001 2004-06-10 Brian Ford <ford@vss.fsi.com>
6003 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6004 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6006 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6008 2004-06-10 Andrew Cagney <cagney@gnu.org>
6010 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6011 * gdbarch.h, gdbarch.c: Re-generate.
6012 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6014 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6015 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6016 deprecated_pc_in_call_dummy instead of
6017 DEPRECATED_PC_IN_CALL_DUMMY.
6018 (arm_skip_prologue): Ditto.
6019 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6020 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6021 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6022 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6024 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6025 (sh64_init_extra_frame_info, sh64_get_saved_register)
6026 (sh64_pop_frame): Ditto.
6027 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6028 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6029 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6030 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6031 (h8300_pop_frame): Ditto.
6032 * blockframe.c (legacy_inside_entry_func)
6033 (legacy_frame_chain_valid): Ditto.
6034 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6035 to deprecated_pc_in_call_dummy.
6037 2004-06-09 Andrew Cagney <cagney@gnu.org>
6039 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6040 provide a default value.
6041 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6042 * gdbarch.h, gdbarch.c: Re-generate.
6043 * arch-utils.c (generic_convert_register_p): Rename
6044 legacy_convert_register_p
6045 (legacy_register_to_value, legacy_value_to_register): Delete
6047 * arch-utils.h (generic_convert_register_p): Rename
6048 legacy_convert_register_p.
6049 (legacy_register_to_value, legacy_value_to_register): Delete
6052 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6053 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6054 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6055 * gdbarch.h, gdbarch.c: Re-generate.
6056 * infcmd.c (default_print_registers_info): Simplify.
6057 * findvar.c (value_of_register): Simplify.
6058 * mi/mi-main.c (get_register): Simplify.
6059 * arch-utils.c (legacy_convert_register_p): Always return 0.
6060 (legacy_register_to_value, legacy_value_to_register): Always call
6063 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6064 #ifdef CLEAR_INSN_CACHE code.
6065 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6066 Delete #ifdef CLEAR_DEFERRED_STORES code.
6068 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6070 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6072 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6074 * config/mips/mipsv4.mh: Delete file.
6076 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6078 (hpread_adjust_stack_address): Delete declaration.
6080 2004-06-08 Andrew Cagney <cagney@gnu.org>
6082 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6083 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6084 PTRACE_ATTACH / PTRACE_DETACH available call error.
6085 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6086 * infttrace.c (update_thread_state_after_attach, attach, detach):
6087 Remove #ifdef wrappers.
6088 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6089 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6090 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6091 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6092 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6093 * config/nm-linux.h (ATTACH_DETACH): Delete.
6094 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6095 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6096 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6097 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6098 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6100 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6102 * configure.in: Set $configdir to the right OS specific value.
6103 Use value when setting $tcldir and $tkdir.
6104 * configure: Regenerate.
6106 2004-06-06 Paul Brook <paul@codesourcery.com>
6108 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6111 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6113 * ada-lang.c (lookup_symbol_in_language): New function to allow
6114 re-use of another language's symbol lookup code. (Placed here
6115 temporarily while Ada support is being integrated into the public
6117 (restore_language): New auxiliary function for
6118 lookup_symbol_in_language.
6119 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6120 temporarily while Ada support is being integrated into the public
6123 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6125 * Makefile.in (check//%): New.
6127 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6128 (mn10300_store_return_value): Rewrite.
6129 (mn10300_type_align): New.
6130 (mn10300_use_struct_convention): Rewrite.
6131 (mn10300_return_value): New, using all of the above.
6132 (mn10300_pop_frame_regular): Add saved_regs_size.
6133 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6135 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6136 regs if PC is on movm.
6138 2004-06-07 Jim Blandy <jimb@redhat.com>
6140 Add native Linux support for the PowerPC E500.
6141 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6142 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6143 all architectures except the E500.
6144 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6146 (struct gdb_evrregset_t): New type.
6147 (have_ptrace_getsetevrregs): New variable.
6148 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6149 fetch_spe_registers): New functions.
6150 (fetch_register): Call fetch_spe_register as appropriate.
6151 Assert that we're only passed raw register numbers.
6152 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6153 Don't fetch gprs if they're pseudoregisters.
6154 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6155 store_spe_registers): New functions.
6156 (store_register): Call store_spe_register as appropriate.
6157 Assert that we're only passed raw register numbers.
6158 (store_ppc_registers): Call store_spe_registers as appropriate.
6159 Don't store gprs if they're pseudoregisters.
6161 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6163 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6164 struct if one exists, even if we are dealing with a zombie thread.
6166 2004-06-07 Andrew Cagney <cagney@gnu.org>
6168 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6169 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6170 Rename PC_REQUIRES_RUN_BEFORE_USE.
6171 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6174 2004-06-07 Randolph Chung <tausq@debian.org>
6176 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6177 unwinding after sp has been saved to the stack but before the end
6178 of the prologue, and after the fp has been modified but before it has
6179 been saved to the stack.
6180 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6181 Remove superfluous definitions.
6182 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6184 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6186 Committed by Randolph Chung.
6187 * hppa-linux-nat.c: Include the correct version of the header file
6188 depending on the kernel version.
6190 2004-06-06 Randolph Chung <tausq@debian.org>
6192 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6193 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6195 2004-06-06 Randolph Chung <tausq@debian.org>
6197 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6198 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6199 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6200 * hppa-tdep.c (hppa_symbol_address): New function definition.
6201 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6203 2004-06-06 Randolph Chung <tausq@debian.org>
6205 * hppa-tdep.h (struct value): Forward declaration.
6206 (gdbarch_tdep): Define tdep find_global_pointer method.
6207 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6208 associated with the function we are trying to call, and write it
6210 (hppa32_convert_from_funct_ptr_addr): New function.
6211 (hppa_find_global_pointer): New function.
6212 (hppa_gdbarch_init): Set default find_global_pointer method; set
6213 convert_from_func_ptr_addr method.
6214 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6215 (hppa_linux_init_abi): Set find_global_pointer method.
6216 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6218 2004-06-06 Randolph Chung <tausq@debian.org>
6220 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6221 to struct value *function.
6222 * gdbarch.c: Regenerate.
6223 * gdbarch.h: Likewise.
6224 * infcall.c (call_function_by_hand): Pass entire function value
6227 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6228 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6229 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6230 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6231 * arm-tdep.c (arm_push_dummy_call): Likewise.
6232 * avr-tdep.c (avr_push_dummy_call): Likewise.
6233 * cris-tdep.c (cris_push_dummy_call): Likewise.
6234 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6235 * frv-tdep.c (frv_push_dummy_call): Likewise.
6236 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6237 * hppa-tdep.c (hppa32_push_dummy_call)
6238 (hppa64_push_dummy_call): Likewise.
6239 * i386-tdep.c (i386_push_dummy_call): Likewise.
6240 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6241 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6242 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6243 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6244 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6245 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6246 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6247 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6248 (ppc64_sysv_abi_push_dummy_call): Likewise.
6249 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6250 (ppc64_sysv_abi_push_dummy_call): Likewise.
6251 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6252 * s390-tdep.c (s390_push_dummy_call): Likewise.
6253 * sh-tdep.c (sh_push_dummy_call_fpu)
6254 (sh_push_dummy_call_nofpu): Likewise.
6255 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6256 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6257 * vax-tdep.c (vax_push_dummy_call): Likewise.
6259 2004-06-04 Jim Blandy <jimb@redhat.com>
6261 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6262 gdbarch argument to register_size.
6264 * rs6000-tdep.c (rs6000_store_return_value): Use
6265 regcache_cooked_write_part instead of
6266 deprecated_write_register_bytes.
6267 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6268 not gdbarch_deprecated_store_return_value.
6270 * ppc-linux-nat.c (store_register, fetch_register): Remove
6271 incorrect assertions. Simplify and generalize handling of
6272 transfers whose sizes are not multiples of, or less than, sizeof
6275 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6277 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6278 as a new thread event.
6279 * thread-db.c (thread_get_info_callback): If the thread is a
6280 zombie, return TD_THR_ZOMBIE.
6281 (thread_from_lwp): If thread_get_info_callback returns
6282 TD_THR_ZOMBIE, check if the thread is still on the thread list
6283 and return a -1 ptid if not found.
6284 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6285 change the status to TARGET_WAITKIND_SPURIOUS.
6287 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6289 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6290 double values in little endian mode.
6292 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6294 Committed by Andrew Cagney.
6295 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6296 after last enum constant to avoid error from IBM C
6299 2004-06-02 Jim Blandy <jimb@redhat.com>
6301 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6302 to 'message', and make it local to the lone block that uses it.
6304 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6306 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6308 * ada-exp.y: Update copyright notice.
6311 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6312 SPECIAL_VARIABLE and unify the treatment of these cases.
6314 (write_attribute_call0): Remove.
6315 (write_attribute_call1): Remove.
6316 (write_attribute_calln): Remove.
6317 (save_qualifier): Add missing semicolon.
6319 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6320 temporarily disabled to allow compilation with FSF head version.
6322 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6323 use individual operators (OP_*) for all attributes.
6324 (exp syntax): Use write_int.
6325 Handle STRING literals with OP_STRING.
6326 (variable syntax): Add limit parameter to calls to
6327 write_object_renaming.
6329 (temp_parse_space): New definition to hold entities that need
6330 only live until the next call to ada_parse.
6331 (string_to_operator): Rename fields of ada_opname_table entries.
6333 (write_var_from_sym): Record block.
6334 (write_var_from_name): Minor reformatting.
6335 Make sure saved name is properly encoded in the case of multiple
6336 matches, and set its language to Ada.
6338 Modify to indicate unresolved name as symbol in the UNRESOLVED
6339 namespace, allocated in temp_parse_space.
6340 (write_int): New function.
6342 (write_object_renaming): Add max_depth parameter to limit
6343 chains of object renamings.
6344 Handle case where root of renaming expression is itself a renaming.
6345 Use temp_parse_space for temporary name buffer.
6346 Handle renamings to dereferenced pointers (___XEXA suffices).
6348 (ada_parse, yyerror, string_to_operator,
6349 write_var_from_sym, write_var_from_name, write_attribute_call0,
6350 write_attribute_call1, write_attribute_calln,
6351 write_object_renaming): Protoize.
6353 (_initialize_ada_exp): New function.
6355 * ada-lang.c: Update copyright notice.
6356 General terminology change to conform to GNAT compiler usage:
6357 mangle => encode, demangle => decode
6358 Include gdb_obstack.h.
6367 (ADA_RETAIN_DOTS): Make sure this is defined.
6368 (TRUNCATION_TOWARDS_ZERO): Define.
6369 (struct string_vector): Define.
6370 (unresolved_names): Remove definition.
6371 (xnew_string_vector): New function.
6372 (string_vector_append): New function.
6373 (extract_string): Make static.
6374 (ada_unqualified_name): New function.
6375 (add_angle_brackets): New function.
6376 (function_name_from_pc): New function.
6377 (place_on_stack): Rename to ensure_lval.
6379 (ensure_lval): Renamed from place_on_stack.
6380 Make identity on lvals.
6382 (is_nonfunction): New interface.
6383 Only symbols in LOC_CONST class can be enumerals.
6384 (fill_in_ada_prototype): Remove; now independent of language.
6385 (add_defn_to_vec): Add obstack and symtab arguments.
6386 Use obstack to hold collected definitions.
6387 (num_defns_collected): New function.
6388 (defns_collected): New function.
6389 (ada_resolve_subexp): Rename to resolve_subexp.
6390 (resolve_subexp): Renamed from ada_resolve_subexp.
6391 (ada_op_name): Return non-const result.
6392 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6395 (to_fixed_array_type): Add declaration.
6396 (coerce_unspec_val_to_type): Remove offset parameter.
6397 (find_sal_from_funcs_and_line): New interface.
6398 (find_line_in_linetable): Ditto.
6400 (all_sals_for_line): Rename to ada_sals_for_line and make
6402 Add new parameter. When set, do not ask the user to choose the
6403 instance, but use the first one found instead.
6404 Use given line number in returned sals.
6406 Skip the prologue if funfirstline is set.
6407 Correct for memory leak when 0 lines found.
6409 (value_pos_atr): Use pos_atr.
6410 (pos_atr): New function.
6411 (standard_lookup): Add block parameter.
6413 (makeTimeStart): Remove declaration and uses.
6414 (makeTimeStop): Remove declaration and uses.
6416 (ada_completer_word_break_characters): Allow for VMS.
6417 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6418 (raise_sym_name): New constant.
6419 (raise_unhandled_sym_name): New constant.
6420 (raise_assert_sym_name): New constant.
6421 (process_raise_exception_name): New constant.
6422 (longest_exception_template): New constant.
6423 (warning_limit): New variable to limit warnings during expression
6425 (warnings_issued): New variable to keep track of warnings issued.
6426 (known_runtime_file_name_patterns): New constant.
6427 (known_auxiliary_function_name_patterns): New constant.
6428 (symbol_list_obstack): New variable.
6430 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6431 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6432 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6433 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6434 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6435 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6436 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6437 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6440 (ada_get_field_index): New function.
6441 (lim_warning): New function.
6442 (ada_translate_error_message): New function.
6443 (MAX_OF_SIZE): New function.
6444 (MIN_OF_SIZE): New function.
6445 (UMAX_OF_SIZE): New function.
6446 (UMIN_OF_SIZE): New function.
6447 (discrete_type_high_bound): New function.
6448 (discrete_type_low_bound): New function.
6449 (base_type): New function.
6450 (do_command): Remove.
6452 (ada_update_initial_language): Use language_ada, not language_unknown.
6453 (ada_encode): Renamed from ada_mangle.
6454 Obey ADA_RETAIN_DOTS.
6455 (ada_decode): Renamed from ada_demangle.
6456 Update coding conventions.
6457 (decoded_names_store): New hash table.
6458 (ada_decode_symbol): New function.
6459 (ada_la_decode): New function.
6461 (modify_general_field): Correct computations of offset and bit
6463 (desc_base_type): Handle ref types, too.
6464 (ada_is_direct_array_type): New function.
6466 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6467 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6468 (ada_is_bogus_array_descriptor,ada_type_of_array,
6469 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6470 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6471 ada_is_array_descriptor_type.
6473 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6474 (ada_is_packed_array_type): Handle pointers or
6475 references to packed arrays as well.
6476 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6477 (decode_packed_array_type): Search for the packed array type
6478 symbol in the currently selected block and associated
6480 Use lookup_symbol again.
6482 (decode_packed_array): Handle pointers and references.
6483 Update call to coerce_unspec_val_to_type.
6484 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6485 (ada_value_primitive_packed_val): Improve comment.
6487 (ada_index_type): Substitute int type for "undefined".
6488 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6489 ada_array_langth, ada_is_string_type): Use renamed
6490 ada_is_simple_array_type.
6491 (empty_array): New function.
6493 (ada_resolve): Rename to resolve.
6494 (resolve): Make static.
6495 Call renamed resolve_subexp.
6497 (ada_resolve_subexp): Rename to resolve_subexp.
6498 (resolve_subexp): Update comment.
6499 Decomment disabled code.
6500 Add LOC_COMPUTED* cases.
6501 Modify to use temporary struct symbols (marked as being in
6502 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6503 OP_UNRESOLVED_VALUE.
6504 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6507 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6508 Use new ada_lookup_symbol_list interface.
6509 Use new ada_resolve_function interface.
6510 Remove OP_TYPE case.
6512 (ada_args_match): Idiot proof against null actuals.
6513 Use intermediate variables to clarify.
6514 (ada_resolve_function): Update comment and interface.
6515 (mangled_ordered_before): Rename to encoded_ordered_before and
6517 (sort_choices): Update comment and interface.
6518 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6519 (user_select_syms): New interface.
6520 Use new sort_choices interface.
6521 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6522 (possible_user_operator_p): Idiot-proof against null values.
6523 (ada_simple_renamed_entity): Don't make cleanup; rely on
6524 caller to free result string.
6525 Remove const from return type.
6526 (make_array_descriptor): Rename uses of place_on_stack to
6528 Make sure that arrays are on stack.
6530 (HASH_SIZE): Define.
6531 (struct cache_entry): Define.
6532 (cache_space): Define.
6534 (clear_ada_sym_cache): New function.
6535 (find_entry): New function.
6536 (lookup_cached_symbol): New function.
6537 (defn_vector_size): Define.
6538 (cache_symbol): New function.
6539 (defn_symbols): Remove.
6541 (standard_lookup): Use lookup_symbol_in_language to get effect of
6545 (symbol_completion_match): New function.
6546 (symbol_completion_add): New function.
6547 (ada_make_symbol_completion_list): New function.
6549 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6550 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6551 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6552 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6554 (ada_lookup_simple_minsym): New function.
6555 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6557 (add_symbols_from_enclosing_procs): New interface.
6558 Conditionalize more helpfully.
6559 Don't bother if program isn't running.
6560 Use new interface to get_frame_block.
6561 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6563 (remove_extra_symbols): New interface.
6564 (xget_renaming_scope): New function.
6565 (is_package_name): New function.
6566 (renaming_is_visible): New function.
6567 (remove_out_of_scope_renamings): New function.
6569 (ada_lookup_symbol_list): New interface.
6570 Properly reinitialize the symbol list obstack.
6571 Don't call add_symbols_from_enclosing_procs if we start from a
6572 static or global block.
6573 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6574 add_symbols_from_enclosing_procs.
6575 Add symtab data to cached entries.
6576 Handle symbols prefixed with
6577 "standard__" specially; strip prefix and don't look in local symbols.
6578 Do not include out of scope renaming symbols in list of
6580 Add const to block parameter.
6581 Move check for non-local, non-global symbols earlier.
6582 Remove timing stuff.
6583 (ada_lookup_symbol): New interface.
6584 Find symtab as well.
6585 (ada_lookup_symbol_nonlocal): New function.
6587 (is_name_suffix): Enhance suffix detection to recognize
6588 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6589 (is_dot_digits_suffix): New function.
6590 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6592 (ada_add_block_symbols): New interface. Use obstack to return results
6593 in a vector of struct ada_symbol_infos. Add symtab argument.
6594 Use new interface to add_defn_to_vec.
6595 Remove calls to fill_in_ada_prototype.
6596 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6598 (ada_finish_decode_line_1): Add const qualification to local to fix
6600 Start looking in static block for functions to avoid attempts
6601 to search frame chain for up-level variables.
6602 Adapt to new ada_sals_for_line interface.
6603 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6604 Handle quoting of the function name inside the spec string.
6605 Skip prologue when funfirstline is set and update the
6606 function documentation to that effect.
6608 (debug_print_lines, debug_print_block, debug_print_blocks,
6609 debug_print_symtab): Remove.
6611 (ada_main_name): New function.
6612 (ada_exception_breakpoint_type): New function.
6613 (is_known_support_routine): New function.
6614 (ada_find_printable_frame): Renamed from find_printable_frame and made
6616 Remove level parameter.
6617 Use new interface to select_frame.
6619 (begin_command): Remove.
6620 (ada_adjust_exception_stop): New function.
6621 (ada_print_exception_stop): New function.
6622 (exception_name_from_cond): New function.
6623 (ada_report_exception_break): Replace disabled code with
6624 conditionalization on GNAT_GDB.
6625 Get the exception name from the condition string.
6626 Remove and move functionality into new functions
6627 ada_print_exception_breakpoint_task and
6628 ada_print_exception_breakpoint_nontask.
6629 (error_breakpoint_runtime_sym_not_found): New function.
6630 (is_runtime_sym_defined): New function.
6631 (ada_breakpoint_rewrite): Uncomment suppressed code.
6632 Use symbolic error-message and runtime-symbol names.
6633 Surround runtime symbol names in quotes.
6634 Allow non-specific breakpoints on exceptions and assertions before
6637 (ada_is_tagged_type): Add parameter.
6638 (ada_is_tag_type): New function.
6639 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6640 (ada_variant_discrim_type): Ditto.
6641 (value_tag_from_contents_and_address): New function.
6642 (type_from_tag): New function.
6643 (struct tag_args): New structure used to communicate with
6645 (ada_tag_name_1): New function.
6646 (ada_tag_name): New function.
6648 (ada_scan_number): Update comment.
6649 (find_struct_field): New function.
6650 (ada_search_struct_field): Make static.
6651 (ada_value_struct_elt): New version that returns references when
6652 given pointers or references to structs.
6653 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6654 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6656 (ada_value_ind): Use new ada_to_fixed_value interface.
6657 (ada_coerce_ref): Ditto.
6658 (field_offset): Remove.
6660 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6661 (ada_find_renaming_symbol): New function.
6662 (ada_prefer_type): Prefer named types over unnamed ones.
6663 (variant_field_index): New function.
6664 (contains_variant_part): Removed: subsumed by variant_field_index.
6665 (ada_template_to_fixed_record_type): New function, mostly from
6666 template_to_fixed_record_type.
6667 (template_to_fixed_record_type):
6668 Do not scan the type fields beyond the last one; prevents a
6670 Handle case where variant field is listed BEFORE discriminant it
6672 Fix calculation of record length when bit length is
6673 not evenly divisible by char length.
6674 Move code to ada_template_to_fixed_record_type and call it.
6676 (template_to_static_fixed_type): Revise comment.
6677 Modify to work on ordinary record types as well as templates,
6678 so as to handle fields that use ___XVE or ___XVU encodings.
6679 (to_record_with_fixed_variant_part): Fill out comment.
6680 Initialize C++ stuff in right type.
6681 Allow case where DVAL is null.
6682 Handle case where variant field is not last.
6683 Fix typo concerning record length.
6684 (to_fixed_record_type): Decomment disabled code.
6685 (to_fixed_record_type): Use variant_field_index instead of
6686 contains_variant_part.
6687 (to_fixed_variant_branch_type): Ditto.
6688 (to_fixed_array_type): Decomment disabled code.
6689 (ada_to_fixed_type): Convert tagged types to the specific type.
6690 Deactivate the size-check for array types in order to avoid
6691 some false size alarms.
6692 (to_static_fixed_type): Decomment disabled code.
6693 Modify to call template_to_static_fixed_type
6694 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6695 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6696 Remove valaddr argument, as it is never really used.
6697 (ada_to_fixed_value): Change interface to act on single struct value*
6699 (adjust_pc_past_prologue): New function.
6700 (ada_attribute_name): Modify to take enum exp_opcode argument.
6702 (ada_enum_name): Recognize new homonym-distinguishing convention.
6703 Adjust local variable's type to remove compiler warning.
6704 Fix a small problem in the part that unqualifies the enumeration name.
6705 (ada_value_binop): New function.
6706 (ada_value_equal): New function.
6708 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6709 Don't give error message when not doing normal evaluation
6710 and a tagged type doesn't seem to contain a structure member.
6711 Give error message for packed arrays.
6712 For indexing arrays, handle pointers to packed arrays correctly.
6713 Handle case of 'first and 'last attributes of bare integral type
6714 without encoded subtype info.
6715 Remove some unnecessary casts.
6716 Fix uninitialized value of type in computing 'first, 'last, or 'length
6718 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6719 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6721 Attributes are now exp_opcode values.
6722 Correct treatment of 'modulus.
6723 Better error message for taking 'length of wrong kind of type;
6725 Change EVAL_NORMAL to noside for consistency.
6726 Use ada_value_binop for DIV, MOD, REM.
6727 Make special case out of array of length 0, since an argument
6728 of 0 upsets some platforms' malloc.
6729 Use OP_STRING instead of OP_ARRAY.
6730 For slice, add check that we have an array type before extracting
6731 a slice out of it. Avoids a SEGV.
6732 When evaluating an array slice, if the array type is a reference to
6733 an aligner type, then replace the aligner type by the actual type.
6734 Decomment disabled code.
6735 Remove some dead code.
6736 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6737 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6738 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6739 and UNOP_MBR to UNOP_IN_RANGE.
6740 If an array type has a parallel ___XVE type, then use it.
6741 Turn arrays into pointers for lvalue arrays.
6742 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6743 bounds error and handle 0-length slices.
6745 When selecting fields, apply ada_to_fixed_value (because the fields
6746 might have ___XVU or ___XVE encodings even if not dynamic.)
6747 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6748 (ada_is_system_address_type): New function.
6750 (get_var_value): Use new interface to ada_lookup_symbol_list.
6751 (get_int_var_value): New interface.
6752 (to_fixed_range_type): Allow unknown bound, with warning.
6753 (ada_is_modular_type): Decomment disabled code.
6754 (ADA_OPERATORS): New definition.
6755 (ada_operator_length): New function.
6756 (ada_expr_op_name): New function.
6757 (ada_forward_operator_length): New function.
6758 (ada_dump_subexp_body): New function.
6759 (ada_print_subexp): New function.
6760 (ada_exp_descriptor): New constant.
6761 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6762 (ada_language_defn): Add ada_exp_descriptor entry.
6763 Change ada_parse => parse.
6764 Add post-parser entry.
6765 Use ada-specific non-local symbol lookup.
6766 Don't use C-style arrays.
6767 String lower-bound is 1.
6768 Decomment disabled code.
6769 (parse): New function.
6770 New fields ada_translate_error_message, ada_lookup_symbol,
6771 ada_lookup_minimal_symbol.
6773 * ada-lang.h: Update copyright dates.
6774 Replace the mangle/demangle terminology throughout by the
6775 more appropriate encode/decode one.
6776 Include breakpoint.h.
6777 Forward declare struct partial_symbol, struct block.
6778 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6779 (EXTRACT_ADDRESS): Remove.
6780 (EXTRACT_INT): Remove.
6781 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6782 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6783 (MAX_RENAMING_CHAIN_LENGTH): Define.
6784 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6786 (enum task_states): Remove.
6787 ada_task_states: Remove.
6788 (fat_string): Remove.
6789 (struct entry_call): Remove.
6790 (struct task_fields): Remove.
6791 (struct task_entry): Remove.
6793 (struct ada_symbol_info): Define.
6794 (enum ada_attribute): Remove.
6795 (enum ada_operator): Define.
6797 (ada_get_field_index): Declare.
6798 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6799 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6800 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6801 (ada_lookup_symbol_list): New interface.
6802 (ada_decode_symbol): Declare.
6803 (ada_decode): Declare.
6804 (ada_lookup_symbol): New interface.
6805 (ada_update_initial_language): Declare.
6806 (ada_lookup_simple_minsym): Declare.
6807 (user_select_syms): New interface.
6808 (ada_sals_for_line): Declare.
6809 (ada_is_tagged_type): New interface.
6810 (ada_tag_name): Declare.
6811 (ada_lookup_struct_elt_type): Remove declaration.
6812 (ada_search_struct_field): Remove declaration.
6813 (ada_attribute_name): New interface.
6814 (ada_is_system_address_type): Declare.
6815 (ada_to_fixed_value): Remove declaration.
6816 (ada_template_to_fixed_record_type_1): Declare.
6817 (get_int_var_value): New interface.
6818 (ada_find_any_symbol): Declare.
6819 (ada_find_renaming_symbol): Declare.
6820 (ada_mangle): Rename to ada_encode.
6821 (ada_simple_renamed_entity): Remove const.
6822 (ada_main_name): Declare.
6823 (get_current_task): Rename to ada_get_current_task.
6824 (get_entry_number): Remove declaration.
6825 (ada_report_exception_break): Remove declaration.
6826 (ada_print_exception_breakpoint_nontask): Declare.
6827 (ada_print_exception_breakpoint_task): Declare.
6828 (ada_find_printable_frame): Declare.
6830 * ada-lex.l: Update copyright notices.
6831 Use xmalloc and xfree instead of malloc and free.
6832 Use new interface to name_lookup.
6833 Use new interface to
6834 ada_mangle=>ada_encode.
6835 Redo handling of '$...' variable to parallel current treatment
6837 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6838 digit_to_int, strtoulst, processInt, processReal, processId,
6839 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6842 (processInt): Use cast to remove harmless warning.
6843 (processReal): Modify to get rid of compiler warning on scan formats.
6845 (processId): Replace xmalloc with obstack_alloc for name and remove
6846 call to ada_name_string_cleanup.
6847 Remove obsolete disabled code.
6848 (name_lookup): Ditto.
6850 Use obsavestring on temp_parse_space instead of savestring
6851 on name, and remove call to ada_name_string_cleanup.
6852 Free string returned from ada_simple_renamed_entity.
6853 Use new interface to ada_lookup_symbol_list.
6854 Decomment disabled code.
6855 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6857 When a type name lookup succeeds as a result of
6858 lookup_primitive_typename, check for regular type entry that has not
6860 Limit length of chain of renamed symbols we are willing to follow.
6861 Do not break names beginning with "standard__" into segments.
6862 (block_lookup): Use new interface to ada_lookup_symbol_list.
6864 * ada-typeprint.c: Update copyright notice.
6865 (demangled_type_name): Rename to decoded_type_name.
6866 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6867 (print_range_bound): Correct handling of negative
6868 bounds that make the index type looked unsigned under STABS.
6869 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6870 (print_range_type_named): Use the builtin int type if no type
6871 corresponding to the given type name could be found.
6872 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6873 Add some bullet-proofing.
6874 (print_variant_clauses): Allow for variant branches with ___XVU
6875 encodings that are not dynamic fields.
6876 Use new interface to ada_is_tagged_type.
6877 (print_record_type): Allow for fields with ___XVE encodings that
6878 are not dynamic fields.
6879 Use new interface to ada_is_tagged_type.
6880 (ada_print_type): ada_is_array_descriptor =>
6881 ada_is_array_descriptor_type.
6883 * ada-valprint.c: Update copyright notice.
6884 Include gdb_string.h
6886 (ui_memcpy): New function.
6887 (ada_print_floating): New function.
6888 (ada_print_str): Order arguments correctly.
6889 Correct handling of empty arrays and arrays of 0-length items.
6890 ada_is_array_descriptor => ada_is_array_descriptor_type
6891 Print values of type System.Address in hexadecimal format.
6892 Use ada_print_floating to print floating-point numbers in Ada format.
6893 Print class tag values with type names.
6894 No longer print the address of reference values. Avoids
6895 a potential confusion.
6896 (ada_value_print): Stop printing the object type for reference
6897 values, but preserve that behavior for access types. Avoids
6898 a potential confusion.
6899 Simplify one conditional expression, as the first part is now
6901 ada_is_array_descriptor => ada_is_array_descriptor_type
6902 Add check for arrays for null records, and print them by hand.
6904 2004-06-01 Jim Blandy <jimb@redhat.com>
6906 * ppc-tdep.h: Delete unused 'regoff' member.
6907 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6909 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6912 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6913 (hpread_read_struct_type): Likewise.
6915 2004-06-01 Andrew Cagney <cagney@gnu.org>
6917 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6918 instead of xasprintf.
6919 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6920 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6921 (mi_cmd_data_list_register_names)
6922 (mi_cmd_data_list_changed_registers)
6923 (mi_cmd_data_list_register_values)
6924 (get_register, mi_cmd_data_write_register_values)
6925 (mi_cmd_data_write_register_values)
6926 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6927 (mi_cmd_target_download, mi_cmd_target_select)
6928 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6929 (mi_execute_cli_command, mi_execute_async_cli_command)
6930 (mi_execute_async_cli_command): Ditto.
6931 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6932 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6934 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6935 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6936 error_last_message instead of mi_error_last_message.
6937 * mi/mi-main.c (mi_error_last_message): Delete function.
6939 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6940 "invalid number of columns" error. Delete redundant "out of
6943 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6945 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6946 (gregset_t, fpregset_t): Remove typedefs.
6947 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6948 (REG_OFFSET): Rename argument.
6949 (i386bsd_r_reg_offset): Rename from reg_offset.
6950 (REG_ADDR): Remove macro.
6951 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6953 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6954 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6955 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6956 instead of supply_gregset.
6957 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6958 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6959 instead of fill_gregset.
6960 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6962 * i386bsd-nat.c: Don't include "gregset.h".
6963 (supply_gregset, fill_gregset): Make static.
6964 (supply_fpregset, fill_fpregset): Remove.
6965 * Makefile.in (i386bsd-nat.o): Update dependencies.
6967 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6969 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6970 "gdb_assert.h". Con't include "gregset.h".
6971 (fbsd_make_corefile_notes): Use regset-based core file support
6972 instead off fill_gregset and fill_fpregset.
6973 * Makefile.in (fbsd-proc.o): Update dependencies.
6975 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6977 (m88k_frame_prev_register): Simplify code a bit.
6979 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6980 (amd64_collect_fpregset): New function.
6981 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6983 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6985 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6986 (i386_collect_gregset): New function.
6987 (i386_supply_fpregset): Adjust comment.
6988 (i386_collect_fpregset): New function.
6989 (i386_regset_from_core_section): Use i386_collect_gregset and
6990 i386_collect_fpregset.
6992 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6993 handle VALUEP being null.
6995 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6997 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6999 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7001 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7002 assembler in OpenBSD 3.5-current.
7003 (amd64obsd_sigcontext_addr): Likewise.
7005 2004-05-28 Jim Blandy <jimb@redhat.com>
7007 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7008 register set, so our regcache isn't declared "legacy" and our E500
7009 pseudoregister read and write functions aren't ignored.
7010 (rs6000_register_byte, rs6000_register_raw_size,
7011 rs6000_register_virtual_type, rs6000_register_convertible,
7012 rs6000_register_convert_to_virtual,
7013 rs6000_register_convert_to_raw): Deleted.
7014 (rs6000_register_type, rs6000_convert_register_p,
7015 rs6000_register_to_value, rs6000_value_to_register): New
7017 (rs6000_gdbarch_init): Don't register
7018 gdbarch_deprecated_register_size,
7019 gdbarch_deprecated_register_bytes,
7020 gdbarch_deprecated_register_byte,
7021 gdbarch_deprecated_register_raw_size,
7022 gdbarch_deprecated_register_virtual_type,
7023 gdbarch_deprecated_register_convertible,
7024 gdbarch_deprecated_register_convert_to_virtual, or
7025 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7026 register gdbarch_register_type, gdbarch_convert_register_p,
7027 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7029 2004-05-26 Jim Blandy <jimb@redhat.com>
7031 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7032 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7033 functions, updated to match the register numberings used in GCC.
7034 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7035 rs6000_dwarf2_reg_to_regnum as register number conversions
7036 functions for STABS and Dwarf2.
7038 2004-05-26 Randolph Chung <tausq@debian.org>
7040 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7043 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7045 * NEWS: Document new "start" command.
7047 2004-05-25 Randolph Chung <tausq@debian.org>
7049 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7052 2004-05-25 Randolph Chung <tausq@debian.org>
7054 * hppa-hpux-tdep.c (offsetof): Define.
7055 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7056 (hppa32_hpux_frame_base_before_sigtramp)
7057 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7058 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7059 (hppa64_hpux_frame_base_before_sigtramp)
7060 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7062 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7063 (hppa_hpux_sigtramp_frame_unwind_cache)
7064 (hppa_hpux_sigtramp_frame_this_id)
7065 (hppa_hpux_sigtramp_frame_prev_register)
7066 (hppa_hpux_sigtramp_frame_unwind)
7067 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7068 (hppa_hpux_init_abi): Register sigtramp unwinder.
7069 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7071 2004-05-25 Randolph Chung <tausq@debian.org>
7073 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7074 and multiple stack unwinds.
7075 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7077 2004-05-25 Andrew Cagney <cagney@gnu.org>
7079 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7080 * symfile-mem.h: Delete file.
7081 * symfile-mem.c: Do not include "symfile-mem.h".
7082 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7083 "struct bfd_section". When an error do not bother returning NULL.
7084 (add_symbol_file_from_memory_command): Use "struct bfd" and
7085 "struct bfd_section".
7086 * Makefile.in (symfile_mem_h): Delete.
7087 (symfile-mem.o): Update dependencies.
7089 2004-05-25 Nick Roberts <nickrob@gnu.org>
7091 * gdb-mi.el: New file.
7093 2004-05-25 Andrew Cagney <cagney@gnu.org>
7095 * inftarg.c: Include "observer.h".
7096 (child_attach, child_create_inferior): Notify inferior_created.
7097 * corelow.c: Include "observer.h".
7098 (core_open): Notify inferior_created.
7099 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7101 2004-05-25 Andrew Cagney <cagney@gnu.org>
7103 * target.h (struct target_ops): Add from_tty to
7105 (target_create_inferior, find_default_create_inferior): Update.
7106 * infcmd.c (run_command): Update.
7107 * wince.c (child_create_inferior): Update.
7108 * win32-nat.c (child_create_inferior): Update.
7109 * uw-thread.c (uw_thread_create_inferior): Update.
7110 * thread-db.c (thread_db_create_inferior): Update.
7111 * target.c (debug_to_create_inferior)
7112 (find_default_create_inferior): Update.
7113 (maybe_kill_then_create_inferior): Update.
7114 * sol-thread.c (sol_thread_create_inferior): Update.
7115 * remote.c (extended_remote_async_create_inferior)
7116 (extended_remote_create_inferior): Update.
7117 * remote-vx.c (vx_create_inferior): Update.
7118 * remote-st.c (st2000_create_inferior): Update.
7119 * remote-sim.c (gdbsim_create_inferior): Update.
7120 * remote-sds.c (sds_create_inferior): Update.
7121 * remote-rdp.c (remote_rdp_create_inferior): Update.
7122 * remote-rdi.c (arm_rdi_create_inferior): Update.
7123 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7124 * remote-e7000.c (e7000_create_inferior): Update.
7125 * procfs.c (procfs_create_inferior): Update.
7126 * ocd.c (ocd_create_inferior): Update.
7127 * ocd.h (ocd_create_inferior): Update.
7128 * nto-procfs.c (procfs_create_inferior): Update.
7129 * monitor.c (monitor_create_inferior): Update.
7130 * lin-lwp.c (lin_lwp_create_inferior): Update.
7131 * inftarg.c (child_create_inferior): Update.
7132 * hpux-thread.c (hpux_thread_create_inferior): Update.
7133 * gnu-nat.c (gnu_create_inferior): Update.
7135 2004-05-25 Andrew Cagney <cagney@gnu.com>
7137 * MAINTAINERS: Update e-mail address.
7139 2004-05-24 Randolph Chung <tausq@debian.org>
7141 * thread.c (info_threads_command, thread_apply_all_command)
7142 (thread_apply_command, thread_command, do_captured_thread_select):
7143 Remove HPUXHPPA-specific code.
7145 2004-05-24 Randolph Chung <tausq@debian.org>
7147 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7149 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7152 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7154 * infcmd.c (kill_if_already_running): New function, extracted
7156 (run_command): Replace extracted code by call to
7157 kill_if_already_running().
7158 (start_command): New function.
7159 (_initialize_infcmd): Add "start" command.
7161 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7163 Add OpenBSD/m88k support.
7164 * NEWS (New native configurations): Mention OpenBSD/m88k.
7165 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7166 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7167 * Makefile.in (m88k_tdep_h): New variable.
7168 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7169 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7170 * configure.host: Add m88*-*-openbsd*.
7171 * configure.tgt: Add m88*-*-openbsd*.
7173 2004-05-24 Jim Blandy <jimb@redhat.com>
7175 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7178 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7180 * symtab.c (fixup_section): Search section table when lookup by
7183 2004-05-24 Randolph Chung <tausq@debian.org>
7185 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7188 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7190 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7191 register number in regcache_raw_collect call.
7192 (m68kbsd_collect_fpregset): Likewise.
7193 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7195 * regset.h (struct regset): Add back `regset' member.
7197 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7199 * configure.in: Check for td_pcb in `struct thread'.
7200 * configure, config.in: Regenerated.
7202 * dpx2-nat.c: Remove file.
7203 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7204 (dpx2-nat.o): Remove dependencies.
7206 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7207 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7208 (amd64obsd_supply_pcb): New function.
7209 (_initialize_amd64obsd_nat): Enable libkvm interface.
7210 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7211 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7212 (LOADLIBES): New variable.
7214 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7215 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7216 (sparc32nbsd_supply_pcb): New function.
7217 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7218 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7219 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7220 (LOADLIBES): New variable.
7222 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7224 * bsd-kvm.c, bsd-kvm.h: New files.
7225 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7227 (i386fbsd_supply_pcb): New function.
7228 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7229 (i386fbsd-nat.o): Update dependencies.
7230 (bsd_kvm_h): New variable.
7231 (bsd-kvm.o): New dependency.
7232 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7233 (LOADLIBES): New variable.
7235 * regset.c: Tweak comment.
7236 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7238 * regset.h: Update copyright year.
7239 (struct regset): Remove `descr' member, add `gdbarch' member.
7240 (regset_alloc): Adjust prototype and comment.
7241 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7242 (i386_supply_fpregset): Likewise.
7243 (i386_regset_from_core_section): Update call to regset_alloc.
7244 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7246 (i386obsd_aout_regset_from_core_section): Update call to
7248 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7250 (i386nbsd_aout_regset_from_core_section): Update call to
7252 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7254 (amd64_regset_from_core_section): Update call to regset_alloc.
7255 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7257 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7258 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7259 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7260 (sparc32nbsd_init_abi): Update call to regset_alloc.
7261 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7262 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7263 (sparc64obsd_init_abi): Update call to regset_alloc.
7264 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7265 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7266 (sparc64nbsd_init_abi): Update call to regset_alloc.
7267 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7268 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7269 (sparc64fbsd_init_abi): Update call to regset_alloc.
7271 2004-05-22 Jim Blandy <jimb@redhat.com>
7273 * ppc-tdep.h (spe_register_p): New declaration.
7274 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7276 * rs6000-tdep.c (spe_register_p): New function.
7277 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7279 (rs6000_gdbarch_init): Initialize the new members of the tdep
7282 2004-05-21 Jim Blandy <jimb@redhat.com>
7284 * ppc-linux-nat.c (fetch_register): Move code back to be next
7285 to the comment that describes it. (Moved code, instead of
7286 comment, for symmetry with store_register.)
7288 Allocate regset structures in the gdbarch's obstack, not using
7290 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7291 Add 'arch' argument. Allocate the regset on arch's obstack, not
7293 * regset.h (regset_alloc): Update declaration.
7294 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7296 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7297 * i386-tdep.c (i386_regset_from_core_section): Same.
7298 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7299 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7300 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7301 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7302 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7303 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7305 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7307 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7309 2004-05-21 Jim Blandy <jimb@redhat.com>
7311 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7312 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7314 2004-05-20 Jim Blandy <jimb@redhat.com>
7316 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7318 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7320 * regset.h: Make prototype const-correct.
7321 * regset.c (regset_xmalloc): Make const-correct.
7323 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7325 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7326 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7327 (symbol_search_name): Declare.
7329 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7330 (iter_name_next_hashed): Ditto.
7331 (iter_name_next_linear): Ditto.
7332 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7334 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7335 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7336 (symbol_search_name): New function.
7338 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7340 * minsyms.c (build_minimal_symbol_hash_tables): Change
7341 test for adding to demangled hash table to check for difference
7342 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7344 2004-05-19 Jim Blandy <jimb@redhat.com>
7346 Use a constructor function to create regset structures.
7347 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7348 (struct regset): Use supply_regset_ftype. Add new
7349 'collect_regset' member.
7350 (regset_xmalloc): New declaration.
7351 * regset.c: New file.
7352 * am64-tdep.c (amd64_regset_from_core_section): Use
7353 regset_xmalloc to construct regset structures.
7354 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7355 * i386-tdep.c (i386_regset_from_core_section): Same.
7356 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7357 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7358 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7359 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7360 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7361 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7362 * Makefile.in (COMMON_OBS): Add regset.o.
7363 (regset.o): New rule.
7365 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7367 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7368 and pthread_cond_wait.c.
7370 2004-05-18 Jim Blandy <jimb@redhat.com>
7372 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7373 before the mach-specific switch, and then let the individual cases
7374 override the defaults, rather than leaving them uninitialized
7375 until the switch and then setting them in each case.
7377 2004-05-18 Randolph Chung <tausq@debian.org>
7379 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7380 millicode functions.
7382 2004-05-18 Randolph Chung <tausq@debian.org>
7384 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7385 references to dld_flags_buffer consistent.
7387 2004-05-18 Randolph Chung <tausq@debian.org>
7389 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7390 it for unwinding the stack.
7392 2004-05-18 Randolph Chung <tausq@debian.org>
7394 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7395 Undefine these so we can overide them using gdbarch.
7397 2004-05-18 Randolph Chung <tausq@debian.org>
7399 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7400 handling for 64-bit HPUX (elf).
7402 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7404 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7406 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7407 * ia64-tdep.c (examine_prologue): Likewise.
7408 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7409 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7411 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7413 * vax-tdep.c (vax_return_value): Implement
7414 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7416 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7418 * vax-tdep.c (vax_return_value): Fix typo.
7420 2004-05-17 Andrew Cagney <cagney@redhat.com>
7422 * MAINTAINERS: Mark Salter was also responsible for
7425 * NEWS: Mention signal fixes.
7427 2004-05-17 Randolph Chung <tausq@debian.org>
7429 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7430 check to see if we are unwinding an export stub. Export stubs clobber
7431 the %rp in the call path and stores the original rp in a stack slot.
7433 2004-05-17 Jim Blandy <jimb@redhat.com>
7435 * MAINTAINERS: Update address for J.T. Conklin.
7437 2004-05-17 Randolph Chung <tausq@debian.org>
7439 * hppa-tdep.c: Remove superfluous #include's.
7440 * Makefile.in (hppa-tdep.o): Update dependencies.
7442 2004-05-17 Randolph Chung <tausq@debian.org>
7444 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7445 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7446 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7447 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7448 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7449 Remove static function declarations.
7451 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7453 * alphabsd-nat.c: Update copyright year.
7454 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7456 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7459 * m68k-tdep.c (m68k_svr4_return_value): Implement
7460 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7462 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7464 * sol-thread.c Update copyright year. Fix various coding
7465 standards violations. Tweak a few comments.
7466 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7469 2004-05-15 Randolph Chung <tausq@debian.org>
7471 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7472 as pointer instead of array reference since HPUX compiler does
7473 not accept unsized array arguments.
7474 * somsolib.c (dld_flags_buffer): Use constant array size.
7476 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7478 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7479 offset with decimal offset.
7480 (amd64obsd_sigcontext_addr): Return correct address for entire
7483 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7484 instead of get_frame_base.
7486 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7487 (fill_gregset): Use regcache_raw_collect.
7489 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7492 * config/sparc/tm-nbsd64.h: Remove file.
7493 * config/tm-sunos.h: Remove file.
7495 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7497 * rs6000-tdep.c (store_param_on_stack_p): New function,
7498 an improved version of some code extracted from skip_prologue().
7499 (skip_prologue): Use store_param_on_stack_p() to detect
7500 instructions saving a parameter on the stack. Detect when r0
7501 is used to save a parameter.
7502 Do not mark "li rx, SIMM" instructions as part of the prologue,
7503 unless the following instruction is also part of the prologue.
7505 2004-05-14 Andrew Cagney <cagney@redhat.com>
7507 * infrun.c (handle_inferior_event): Simplify
7508 STEP_OVER_UNDEBUGGABLE.
7510 * infrun.c (handle_step_into_function): Delete function.
7511 (handle_inferior_event): Inline calls to
7512 handle_step_into_function.
7514 2004-05-14 Jerome Guitton <guitton@gnat.com>
7516 * rs6000-nat.c: Fix a comment.
7518 2004-05-12 David Anderson <davea@sgi.com>
7520 Committed by Jim Blandy <jimb@redhat.com>:
7521 * regcache.c (struct regcache_descr): fix comment spelling.
7523 2004-05-13 J. Brobecker <brobecker@gnat.com>
7525 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7526 Fixes a link link failure.
7528 2004-05-13 J. Brobecker <brobecker@gnat.com>
7530 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7531 error that was causing the build to fail.
7533 2004-05-13 J. Brobecker <brobecker@gnat.com>
7535 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7536 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7538 2004-05-13 Andrew Cagney <cagney@redhat.com>
7540 * infrun.c (handle_inferior_event): Check for
7541 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7542 calls. Update comments.
7544 2004-05-13 Jim Blandy <jimb@redhat.com>
7546 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7547 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7548 (store_regs_user_thread, store_regs_kernel_thread): Use
7549 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7550 * ppc-linux-nat.c (fill_gregset): Same.
7551 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7552 (ppc_linux_sigtramp_cache): Same.
7553 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7554 (ppcnbsd_sigtramp_cache_init): Same.
7555 * rs6000-nat.c (fetch_core_registers): Same.
7556 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7557 (rs6000_frame_cache): Same.
7559 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7560 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7561 of assuming that the gprs are numbered starting with zero.
7562 * ppc-linux-nat.c (fill_gregset): Same.
7563 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7564 * ppcnbsd-nat.c (getregs_supplies): Same.
7565 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7566 * rs6000-nat.c (fetch_core_registers): Same.
7567 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7569 2004-05-07 Michael Snyder <msnyder@redhat.com>
7571 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7572 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7574 2004-05-13 Andrew Cagney <cagney@redhat.com>
7576 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7578 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7580 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7581 base_address for shared libraries.
7583 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7585 * MAINTAINERS (write after approval): Add myself.
7587 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7589 * breakpoint.c (bpstat_stop_status): Add new argument
7590 STOPPED_BY_WATCHPOINT. Use it instead of testing
7591 target_stopped_data_address agaist 0 to check whether
7592 or not we stopped due to a hardware watchpoint.
7593 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7594 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7597 2004-05-12 Jim Blandy <jimb@redhat.com>
7599 * configure.in: When checking whether we should use the -bbigtoc
7600 option, don't forget to restore the original value of LDFLAGS.
7601 * configure: Regenerated.
7603 2004-05-12 Andrew Cagney <cagney@redhat.com>
7605 * thread.c (load_infrun_state): Delete step_sp.
7606 * infrun.c (context_switch): Ditto.
7607 * inferior.h (step_sp): Ditto.
7608 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7609 * gdbthread.h (struct thread_info, save_infrun_state)
7610 (restore_infrun_state): Ditto.
7612 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7614 * MAINTAINERS (write after approval): Add myself.
7616 2004-05-12 Andrew Cagney <cagney@redhat.com>
7618 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7619 eliminate reference to step_sp.
7620 (struct execution_control_state, init_execution_control_state)
7621 (handle_inferior_event, keep_going): Delete update_step_sp and
7623 * infcmd.c (step_sp): Note that variable is unused.
7625 2004-05-11 Andrew Cagney <cagney@redhat.com>
7627 * infrun.c (step_over_function): Delete function.
7628 (handle_step_into_function): Use insert_step_resume_breakpoint.
7629 (insert_step_resume_breakpoint): Fix assertion.
7631 2004-05-11 Nick Roberts <nickrob@gnu.org>
7633 * utils.c (defaulted_query): Just use the normal query input type
7634 when printing the annotations.
7636 2004-05-11 Andrew Cagney <cagney@redhat.com>
7638 * infrun.c (handle_inferior_event): Simplify code handling
7639 step-into or return-from a signal trampoline.
7641 2004-05-11 Andrew Cagney <cagney@redhat.com>
7643 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7644 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7646 2004-05-10 Jim Blandy <jimb@redhat.com>
7648 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7649 with a call to internal_error.
7651 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7652 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7653 processor variant lacks those registers.
7654 (ppc_floating_point_unit_p): Change description to make it clear
7655 that this returns info about the ISA, not the ABI.
7656 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7657 return true or false by checking tdep->ppc_fp0_regnum and
7658 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7659 arch/mach switching done in rs6000_gdbarch_init; it's better to
7660 keep that logic there, and just check the results here.
7661 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7662 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7663 floating-point registers.
7664 (ppc_supply_fpregset, ppc_collect_fpregset)
7665 (rs6000_push_dummy_call, rs6000_extract_return_value)
7666 (rs6000_store_return_value): Assert that we have floating-point
7668 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7669 (rs6000_frame_cache): Don't note the locations at which
7670 floating-point registers were saved if we have no fprs.
7671 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7673 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7674 (store_regs_user_thread, store_regs_kernel_thread): Only call
7675 supply_fprs / fill_fprs if we actually have floating-point
7677 (special_register_p): Check ppc_fpscr_regnum before matching
7679 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7680 supply / collect fpscr if we don't have it.
7681 * ppc-bdm.c: #include "gdb_assert.h".
7682 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7683 have floating-point registers, since I can't test this code on
7684 FP-free systems to adapt it.
7685 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7686 fpscr and floating point register numbers if they don't exist.
7687 (fetch_register): Assert that we have floating-point registers
7688 before we reach the code that handles them.
7689 (store_register): Same. And use tdep instead of calling
7691 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7693 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7694 fprs and fpscr if we don't have them.
7695 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7697 * ppcnbsd-nat.c: #include "gdb_assert.h".
7698 (getfpregs_supplies): Assert that we have floating-point registers.
7699 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7700 * ppcobsd-tdep.c: #include "gdb_assert.h".
7701 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7702 have floating-point registers.
7703 * rs6000-nat.c (regmap): Don't match against the fpscr and
7704 floating point register numbers if they don't exist.
7705 (fetch_inferior_registers, store_inferior_registers,
7706 fetch_core_registers): Only fetch / store / supply the
7707 floating-point registers and the fpscr if we have them.
7708 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7709 (ppcobsd-tdep.o): Update dependencies.
7711 2004-05-10 Andrew Cagney <cagney@redhat.com>
7713 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7714 (context_switch): Do not switch through_sigtramp_breakpoint.
7715 * gdbthread.h (save_infrun_state, load_infrun_state)
7716 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7717 and structure member.
7718 * thread.c (load_infrun_state, save_infrun_state): Update.
7720 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7722 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7724 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7726 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7728 * aclocal.m4: Regenerate.
7730 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7732 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7734 2004-05-10 Andrew Cagney <cagney@redhat.com>
7736 * infrun.c (check_sigtramp2): Delete function.
7737 (handle_inferior_event): When single stepping, and taking a
7738 signal, set a breakpoint at the signal return address. Delete
7739 redundant calls to check_sigtramp2.
7740 (insert_step_resume_breakpoint): New function.
7741 (through_sigtramp_breakpoint, handle_inferior_event)
7742 (follow_exec, wait_for_inferior, fetch_inferior_event)
7743 (currently_stepping, keep_going): Delete most uses of
7744 through_sigtramp_breakpoint, not that it should be deleted.
7745 (delete_breakpoint_current_contents): Delete function.
7747 2004-05-10 Randolph Chung <tausq@debian.org>
7749 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7751 * config/pa/tm-linux.h: New file.
7753 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7755 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7756 of prefixes. Don't print the prefix twice in the CLI.
7758 2004-05-10 Jim Blandy <jimb@redhat.com>
7760 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7761 collect all the gprs.
7763 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7764 loop collecting gprs.
7766 2004-05-09 Andrew Cagney <cagney@redhat.com>
7768 * remote-vx.c (net_step): Delete step-range code.
7769 * remote.c (remote_resume, init_all_packet_configs)
7770 (set_remote_protocol_E_packet_cmd)
7771 (show_remote_protocol_E_packet_cmd)
7772 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7773 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7774 (show_remote_protocol_e_packet_cmd): Ditto.
7776 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7778 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7780 * hppa-tdep.h: Update copyright year.
7781 (struct trad_frame_saved_reg): Add opaque declaration.
7783 * amd64-tdep.c (amd64_return_value): Implement
7784 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7786 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7787 (m68k_value_to_register): New functions.
7788 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7791 * defs.h (enum return_value_convention): Add
7792 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7793 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7794 * infcmd.c (legacy_return_value): New function.
7795 (print_return_value): Rwerite to implement
7796 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7797 * values.c (using_struct_return): Check for inequality to
7798 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7799 RETURN_VALUE_STRUCT_CONVENTION.
7800 * i386-tdep.c (i386_return_value): Implement
7801 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7803 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7804 include "symtab.h", "opcode/vax.h" and "inferior.h".
7805 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7806 to read_memory_unsigned_integer.
7807 (vax_gdbarch_init): Reorder.
7808 (_initialize_vax_tdep): Spell out prototype.
7809 * Makefile.in (vax-tdep.o): Update dependencies.
7811 2004-05-08 Andrew Cagney <cagney@redhat.com>
7813 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7814 * target.c (target_detach, target_disconnect): Ditto.
7816 * infcall.c (call_function_by_hand): When no
7817 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7818 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7819 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7820 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7821 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7823 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7824 * gdbarch.h, gdbarch.c: Re-generate.
7825 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7826 deprecated_fix_call_dummy.
7827 * v850-tdep.c (v850_gdbarch_init): Ditto.
7828 * infcall.c (call_function_by_hand): Do not call
7829 DEPRECATED_FIX_CALL_DUMMY.
7831 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7832 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7833 * gdbarch.h, gdbarch.c: Re-generate.
7834 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7835 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7836 deprecated_sizeof_call_dummy_words.
7837 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7838 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7839 * v850-tdep.c (v850_gdbarch_init): Ditto.
7840 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7841 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7842 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7843 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7844 * arch-utils.h (legacy_call_dummy_words)
7845 (legacy_sizeof_call_dummy_words): Delete declarations.
7846 * arch-utils.c (legacy_call_dummy_words)
7847 (legacy_sizeof_call_dummy_words): Delete variables.
7849 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7850 * gdbarch.h, gdbarch.c: Re-generate.
7851 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7852 * infcall.c (call_function_by_hand): Eliminate call to
7853 DEPRECATED_PUSH_DUMMY_FRAME.
7854 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7856 (ns32k_push_dummy_frame): Delete function.
7858 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7859 deprecated_call_dummy_breakpoint_offset or
7860 deprecated_call_dummy_start_offset.
7861 * dummy-frame.c, arm-tdep.c: Update comments.
7862 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7863 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7864 * gdbarch.h, gdbarch.c: Re-generate.
7866 * infcall.c (legacy_push_dummy_code): Delete function.
7867 (push_dummy_code): Delete call.
7869 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7870 * gdbarch.h, gdbarch.c: Re-generate.
7871 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7872 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7873 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7874 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7876 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7877 (struct frame_info): Delete opaque declaration.
7878 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7879 * frame.c (get_frame_type): Delete call.
7881 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7883 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7884 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7886 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7888 * alphanbsd-tdep.c: Include "gdb_string.h".
7889 * armnbsd-tdep.c: Update copyright year.
7890 Include "gdb_string.h".
7891 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7894 * delta68-nat.c: Remove file.
7895 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7896 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7897 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7898 (delta68-nat.o): Remove dependency.
7900 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7902 (m68k_gdbarch_init): Don't set
7903 deprecated_frameless_function_invocation.
7905 2004-05-07 Randolph Chung <tausq@debian.org>
7907 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7908 read_memory_nobpt for code reading when doing frame unwinding.
7909 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7911 2004-05-07 Randolph Chung <tausq@debian.org>
7913 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7914 instead of sp, handle sigaltstack case.
7915 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7916 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7917 signal handler and not that of the caller.
7918 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7919 hppa_linux_sigtramp_find_sigcontext.
7921 2004-05-07 Randolph Chung <tausq@debian.org>
7923 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7925 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7926 * hppa-linux-nat.c (fetch_register, store_register): Define.
7927 (fetch_inferior_registers, store_inferior_registers): Define.
7928 (supply_gregset): Add comment and clean up some unneeded code.
7929 (fill_gregset): Add comment and fix so that it saves registers in
7930 the right place in the gregset.
7931 (fill_fpregset): Fix buffer overrun problem.
7932 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7934 2004-05-07 Randolph Chung <tausq@debian.org>
7936 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7937 do common handling of the pcoqt register.
7938 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7939 to use helper function.
7940 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7941 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7942 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7943 generic fallback unwinder when all else fails.
7944 (hppa_gdbarch_init): Add fallback sniffer.
7945 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7946 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7947 to use helper function.
7949 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7951 * config/djgpp/fnchange.lst: Add translation rules for
7952 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7954 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7956 * frame.c (get_prev_frame_1): Work around GCC bug.
7957 * frame.h: Add comment about GCC bug.
7959 2004-05-07 Andrew Cagney <cagney@redhat.com>
7961 * observer.c: Include "commands.h" and "gdbcmd.h".
7962 (observer_debug, _initialize_observer): Add the
7963 command "set/show debug observer".
7964 * observer.sh: When observer debugging, log notify calls.
7965 * Makefile.in (observer.o): Update dependencies.
7967 2004-05-07 Jason Molenda (jmolenda@apple.com)
7969 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7971 2004-05-07 Jim Blandy <jimb@redhat.com>
7973 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7974 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7975 to recognize gpr regnums, instead of assuming that
7976 tdep->ppc_fp0_regnum marks the end of the general-purpose
7979 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7980 the given architecture has floating-point registers.
7982 2004-05-07 Andrew Cagney <cagney@redhat.com>
7984 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7986 * gdbarch.h, gdbarch.c: Re-generate.
7987 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7988 deprecated_use_generic_dummy_frames.
7990 2004-05-07 Brian Ford <ford@vss.fsi.com>
7992 * NEWS: Mention Cygwin DWARF 2 support.
7994 2004-05-07 Andrew Cagney <cagney@redhat.com>
7996 * objfiles.h (struct entry_info): Delete unused fields
7997 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7998 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7999 * mipsread.c (mipscoff_symfile_read): Update.
8000 * mdebugread.c (parse_partial_symbols): Update.
8001 * dwarfread.c (read_file_scope): Update.
8002 * dwarf2read.c (read_file_scope): Update.
8003 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8004 * coffread.c (complete_symtab): Update.
8006 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8008 * infcall.c (_initialize_infcall): Fix typo.
8010 2004-05-07 Andrew Cagney <cagney@redhat.com>
8012 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8013 * command.h (add_setshow_zinteger_cmd): Declare.
8015 2004-05-06 Randolph Chung <tausq@debian.org>
8017 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8018 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8019 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8020 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8021 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8022 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8023 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8025 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8026 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8027 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8028 (hppa64_hpux_frame_find_saved_regs_in_sig)
8029 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8030 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8031 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8032 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8033 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8034 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8035 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8036 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8037 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8038 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8039 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8040 (hppa32_register_type, hppa_cannot_store_register)
8041 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8042 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8043 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8044 * pa64solib.c (pa64_solib_have_load_event)
8045 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8046 (pa64_solib_unloaded_library_pathname): Likewise.
8047 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8048 (som_solib_library_pathname): Likewise.
8050 2004-05-05 Jim Ingham <jingham@apple.com>
8052 * breakpoint.c (create_breakpoints): Copy the ignore count and
8053 thread id over from the pended breakpoint to the actual
8056 2004-05-05 Andrew Cagney <cagney@redhat.com>
8058 * gdbarch.sh (PARM_BOUNDARY): Delete.
8059 gdbarch.h, gdbarch.c: Re-generate.
8060 * valops.c (PARM_BOUNDARY): Delete macro.
8061 (value_push): Delete PARM_BOUNDARY code.
8062 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8064 2004-05-04 Jim Blandy <jimb@redhat.com>
8066 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8067 Don't assume that the gprs, fprs, and UISA sprs are
8068 contiguous, start at register number zero, and end with fpscr.
8069 Instead, use the numbers from the tdep structure.
8071 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8072 should no longer be used in code specific to the RS6000 and its
8074 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8075 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8076 tdep->ppc_fp0_regnum.
8077 (ppc_supply_fpregset, ppc_collect_fpregset)
8078 (rs6000_push_dummy_call, rs6000_extract_return_value)
8079 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8080 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8082 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8083 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8085 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8086 bdm_ppc_store_registers): Same.
8087 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8088 (store_register, fill_fpregset): Same.
8089 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8090 (ppc_linux_supply_fpregset): Same.
8091 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8092 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8094 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8095 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8096 ppc64_sysv_abi_return_value): Same.
8097 * rs6000-nat.c (regmap, fetch_inferior_registers)
8098 (store_inferior_registers, fetch_core_registers): Same.
8100 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8102 * m68knbsd-nat.c: Remove file.
8103 * m68knbsd-tdep.c: Remove file.
8104 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8106 * configure.host: Add m68k-*-netbsdelf*.
8107 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8108 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8109 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8111 * config/m68k/nbsdelf.mh: New file.
8112 * config/m68k/nbsd.mt: New file.
8113 * config/m68k/nbsdaout.mt: Remove file.
8114 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8115 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8116 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8117 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8118 (use_struct_convention): Remove prototype.
8119 (USE_STRUCT_CONVENTION): Remove define.
8120 * config/m68k/xm-nbsd.h: Remove file.
8122 2004-05-04 Michael Snyder <msnyder@redhat.com>
8124 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8125 reg_struct_return method (as gcc usually does for cross targets).
8127 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8129 Committed by Andrew Cagney.
8130 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8131 alignment padding when accessing ucontext struct members.
8133 2004-05-04 Jim Blandy <jimb@redhat.com>
8135 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8136 'ppc_gplast_regnum' member.
8137 (ppc_num_gprs): New enum constant.
8138 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8139 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8140 * rs6000-nat.c (regmap, fetch_inferior_registers,
8141 store_inferior_registers): Same.
8142 * rs6000-tdep.c (e500_pseudo_register_read)
8143 (e500_pseudo_register_write): Same.
8144 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8146 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8147 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8148 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8149 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8151 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8153 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8154 * rs6000-nat.c (regmap, fetch_inferior_registers)
8155 (store_inferior_registers): Same.
8157 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8160 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8162 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8163 failure detected by recent versions of GCC.
8164 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8165 to be consistent with the usage in dwarf2_create_include_psymtab.
8167 2004-05-03 Michael Snyder <msnyder@redhat.com>
8169 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8170 (heuristic_proc_start): Whitespace cleanup.
8172 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8174 * sun3-nat.c: Remove file.
8175 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8177 (ALLDEPFILES): Remove sun3-nat.c.
8178 (sun3-nat.o): Remove dependencies.
8180 * i386-interix-nat.c, i386-interix-tdep.c,
8181 config/i386/nm-interix.h, config/i386/interix.mh,
8182 config/i386/interix.mt: Remove files.
8183 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8186 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8188 * m68k-tdep.h (struct gdbarch_tdep): Add member
8189 struct_value_regnum.
8190 (m68k_svr4_init_abi): New prototype.
8191 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8192 different calling conventions.
8193 (m68k_extract_return_value): Remove code dealing with single-field
8195 (m68k_store_return_value): Remove code dealing with single-field
8196 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8197 (m68k_extract_struct_value_address): Remove function.
8198 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8199 (m68k_reg_struct_return_p, m68k_return_value)
8200 (m68k_svr4_return_value): New functions.
8201 (m68k_use_struct_convention): Remove function.
8202 (m68k_push_dummy_call): Use new struct_value_regnum member of
8203 `struct gdbarch_tdep' instead of hardcoded register number to
8205 (m68k_svr4_init_abi): New function.
8206 (m68k_gdbarch_init): Don't set extract_return_value,
8207 store_return_values, deprecated_extract_struct_value_address and
8208 use_struct_convention. Set return_value instead. Initialize new
8209 struct_value_regnum member of `struct gdbarch_tdep'.
8210 * m68klinux-tdep.c: Update copyright year.
8211 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8212 (m68k_linux_extract_struct_value_address): Remove function.
8213 (m68k_linux_init_abi): Don't set extract_return_value,
8214 store_return_values, deprecated_extract_struct_value_address and
8215 use_struct_convention. Call m68k_svr4_init_abi but override the
8216 new struct_value_regnum member of `struct gdbarch_tdep'.
8217 * Makefile.in (m68k-tdep.o): Update dependencies.
8219 2004-05-03 J. Brobecker <brobecker@gnat.com>
8221 * dwarf2read.c (line_header): Add new included_p field in
8223 (partial_die_info): New field has_stmt_list. New field line_offset.
8224 (dwarf2_create_include_psymtab): New function.
8225 (dwarf2_build_include_psymtabs): New function.
8226 (add_file_name): Add forward declaration. Initialize new field.
8227 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8228 to be able to determine the list of files included by the
8229 given unit, and build their associated psymtabs.
8230 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8232 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8233 (read_file_scope): Update call to dwarf_decode_lines.
8234 (read_partial_die): Handle DW_AT_stmt_list attributes.
8236 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8239 * configure.in: Revert special case for osf5.*.
8240 * configure: Regenerate.
8242 2004-05-02 Jim Blandy <jimb@redhat.com>
8244 Move the symbol-file-from-memory functions into their own file.
8245 * symfile-mem.c, symfile-mem.h: New files.
8246 * symfile.c (symbol_file_add_from_bfd): New function.
8247 (symbol_file_add): Call symbol_file_add_from_bfd.
8248 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8249 Moved to symfile-mem.c.
8250 (_initialize_symfile): Move definition of
8251 add-symbol-file-from-memory command to symfile-mem.c.
8252 * symfile.h (symbol_file_add_from_bfd): New declaration.
8253 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8254 * config/powerpc/linux.mt (TDEPFILES): Same.
8255 * Makefile.in (SFILES): Add symfile-mem.c.
8256 (symfile_mem_h): New variable.
8257 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8258 (symfile-mem.o): New rule.
8260 2004-05-01 Andrew Cagney <cagney@redhat.com>
8262 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8263 frame_find_by_id instead of frame_relative_level.
8264 (do_enable_breakpoint): Ditto.
8265 * thread.c: Update copyright.
8266 (info_threads_command): Ditto, simplify.
8268 * frame.c (deprecated_generic_get_saved_register): Delete
8269 function, moved to "xstormy16-tdep.c".
8270 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8271 deprecated_generic_get_saved_register from "frame.c".
8272 (xstormy16_frame_saved_register): Call
8273 xstormy16_get_saved_register.
8274 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8276 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8277 * frame.h (deprecated_generic_get_saved_register): Delete.
8279 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8281 * dwarfread.c: Update documentation on the state of dwarf-1.
8283 2004-05-01 Andrew Cagney <cagney@redhat.com>
8285 * stack.c (select_frame_command): Delete call to
8286 frame_relative_level.
8287 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8289 (frame_info): Do not print FRAMELESS.
8290 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8291 (catch_info): Delete #if0 code.
8293 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8294 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8295 of frame_relative_level.
8296 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8298 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8299 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8300 frame_relative_level.
8302 * frame.h (deprecated_set_frame_type): Delete declaration.
8303 * frame.c (deprecated_set_frame_type): Delete function, update
8306 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8307 * gdbarch.h, gdbarch.c: Re-generate.
8308 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8309 (shnbsd_pc_in_sigtramp): Delete.
8310 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8312 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8314 * frame.h: Update comments.
8315 * ppc-linux-tdep.c: Update comments.
8316 * breakpoint.c (bpstat_what): Update comments.
8318 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8319 m68klinux-tdep.o's dependencies, were previously added to
8322 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8323 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8324 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8325 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8326 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8328 * Makefile.in (m68klinux-nat.o): Update dependencies.
8329 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8330 (m68k_linux_sigtramp_frame_cache)
8331 (m68k_linux_sigtramp_frame_this_id)
8332 (m68k_linux_sigtramp_frame_prev_register)
8333 (m68k_linux_sigtramp_frame_unwind)
8334 (m68k_linux_sigtramp_frame_sniffer)
8335 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8336 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8337 names, use trad-frame.h.
8338 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8339 (struct m68k_sigtramp_info): Delete.
8340 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8341 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8342 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8343 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8346 * infrun.c (check_sigtramp2): Delete check for
8347 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8349 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8351 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8353 2004-05-01 Andrew Cagney <cagney@redhat.com>
8355 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8356 (frv_linux_sigtramp_frame_cache)
8357 (frv_linux_sigtramp_frame_this_id)
8358 (frv_linux_sigtramp_frame_prev_register)
8359 (frv_linux_sigtramp_frame_unwind)
8360 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8361 include "linux" in function and variable names, directly call
8362 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8363 the latest trad-frame code.
8364 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8365 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8366 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8367 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8368 * frv-tdep.c (frv_sigtramp_frame_cache)
8369 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8370 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8372 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8373 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8374 (frv_set_sigcontext_reg_addr): Delete function.
8376 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8377 (DEPRECATED_SIGTRAMP_END): Delete.
8378 * gdbarch.h, gdbarch.c: Re-generate.
8379 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8380 * config/vax/tm-vaxbsd.h: Update copyright.
8381 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8382 (DEPRECATED_IN_SIGTRAMP): Define.
8383 * config/m68k/tm-nbsd.h: Update copyright.
8384 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8385 (DEPRECATED_IN_SIGTRAMP): Define.
8387 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8389 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8390 encondings. Fixes PR gdb/1628.
8392 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8393 DW_CFA_restore state without a matching DW_CFA_remember_state
8394 instead of aborting. Fixes PR backtrace/1589.
8396 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8398 * MAINTAINERS: Add self as AIX maintainer.
8399 Update my e-mail address in write-after-approval section.
8401 2004-04-30 Andrew Cagney <cagney@redhat.com>
8403 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8404 (legacy_get_prev_frame): Ditto.
8406 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8407 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8408 * mipsread.c (sigtramp_address): Delete extern variable.
8409 (mipscoff_new_init): Delete reference.
8410 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8411 (fixup_sigtramp): Delete function.
8412 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8413 (fixup_sigtramp): Delete declarations.
8415 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8416 deprecated_pc_in_sigtramp.
8417 (ppcnbsd_pc_in_sigtramp): Delete function.
8419 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8421 * config/m68k/nm-nbsd.h: Tweak comments.
8422 * config/m68k/nm-nbsdaout.h: Likewise.
8424 2004-04-30 Andrew Cagney <cagney@redhat.com>
8426 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8427 legacy_pc_in_sigtramp.
8428 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8430 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8432 Add OpenBSD/m68k support.
8433 * NEWS (New native configurations): Mention OpenBSD/m68k.
8434 * m68kbsd-tdep.c: New file.
8435 * m68kbsd-nat.c: New file.
8436 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8437 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8438 * configure.host: Add m68k-*-openbsd.
8439 * configure.tgt: Add m68k-*-openbsd.
8440 * config/m68k/tm-obsd.h: New file.
8441 * config/m68k/obsd.mt: New file.
8442 * config/m68k/obsd.mh: New file.
8443 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8446 2004-04-30 Andrew Cagney <cagney@redhat.com>
8448 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8449 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8451 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8453 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8454 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8456 2004-04-30 Brian Ford <ford@vss.fsi.com>
8458 Revert 2004-04-16 change.
8459 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8460 (i386_coff_init_abi): Remove.
8461 * i386-tdep.h (i386_coff_init_abi): Remove.
8462 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8464 2004-04-30 Andrew Cagney <cagney@redhat.com>
8466 * blockframe.c (find_pc_partial_function): Delete use of
8467 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8468 DEPRECATED_SIGTRAMP_END.
8470 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8471 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8472 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8473 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8474 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8476 * defs.h (deprecated_inside_entry_file): Delete declaration.
8477 * blockframe.c (deprecated_inside_entry_file): Delete function.
8478 (legacy_frame_chain_valid): Delete call.
8479 * sh64-tdep.c (sh64_frame_chain): Delete call.
8480 * objfiles.h: Update comments.
8481 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8483 * frame.c (get_prev_frame): Delete call, update comments.
8485 2004-04-30 Brian Ford <ford@vss.fsi.com>
8487 * MAINTAINERS (Write After Approval): Add myself.
8489 2004-04-30 Andrew Cagney <cagney@redhat.com>
8491 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8492 * gdbarch.h, gdbarch.c: Re-generate.
8493 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8496 2004-04-30 Andrew Cagney <cagney@redhat.com>
8498 * gdb-events.sh (selected_thread_changed)
8499 (selected_frame_level_changed, target_changed): Delete.
8500 * gdb-events.h, gdb-events.c: Re-generate.
8501 * valops.c (value_assign): Update.
8502 * stack.c (select_frame_command, up_silently_base)
8503 (down_silently_base): Update.
8505 2004-04-29 Andrew Cagney <cagney@redhat.com>
8507 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8508 registers correctly.
8509 (print_gp_register_row, mips32_heuristic_proc_desc)
8510 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8511 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8512 references to mips_isa_regsize.
8514 2004-04-29 Andrew Cagney <cagney@redhat.com>
8516 * mips-tdep.c (struct gdbarch_tdep): Delete
8517 mips_fp_register_double.
8518 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8520 (mips_gdbarch_init): Do not set mips_fp_register_double.
8521 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8523 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8525 Committed by Andrew Cagney.
8526 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8529 2004-04-29 Andrew Cagney <cagney@redhat.com>
8531 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8532 gdbarch, use mips_abi, update callers.
8533 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8534 mips_abi_regsize, update callers.
8535 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8536 mips_default_abi_regsize.
8537 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8538 mips_default_abi_regsize.
8540 2004-04-29 Andrew Cagney <cagney@redhat.com>
8542 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8543 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8544 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8545 mips_default_abi_regsize.
8546 (mips_isa_regsize): Rename mips_regisze.
8547 * mipsnbsd-tdep.c: Update.
8548 * mips-linux-tdep.c: Update.
8549 * irix5-nat.c: Update.
8550 * mips-tdep.h (mips_isa_regsize): Update.
8552 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8553 Delete all disabled code.
8554 * gdb-events.h, gdb-events.c: Re-generate.
8556 2004-04-19 Jerome Guitton <guitton@gnat.com>
8557 Mark Kettenis <kettenis@gnu.org>
8559 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8560 the function begins with a branch instruction.
8562 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8564 * i386-tdep.c: Fix spelling mistakes.
8566 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8567 Andrew Cagney <cagney@redhat.com>
8569 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8571 * acconfig.h: Provide default _KMEMUSER value.
8572 * config.in, configure: Re-generate.
8573 * NEWS: Mention fix.
8575 2004-04-24 Randolph Chung <tausq@debian.org>
8577 * configure.host (hppa*-*-linux*): New target.
8578 * configure.tgt (hppa*-*-linux*): Likewise.
8579 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8580 gdbarch_init_osabi() call earlier so that osabi-specific frame
8581 unwinders can be registered first.
8582 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8584 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8585 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8586 * config/pa/linux.mh: New file.
8587 * config/pa/linux.mt: New file.
8588 * config/pa/nm-linux.h: New file.
8589 * config/pa/xm-linux.h: New file.
8590 * hppa-linux-nat.c: New file.
8591 * hppa-linux-tdep.c: New file.
8593 2004-04-28 Randolph Chung <tausq@debian.org>
8595 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8597 (hppa32_push_dummy_call): Fix small struct and floating point argument
8598 passing, and make sure the stack frame is properly aligned.
8600 2004-04-28 Andrew Cagney <cagney@redhat.com>
8602 * stack.c (print_stack_frame): Fix description.
8604 * NEWS: Mention gdb/gdbserver/configure execute permission
8605 changed. PR server/519.
8607 2004-04-28 Andrew Cagney <cagney@redhat.com>
8609 * stack.c (print_stack_frame_stub): Delete declaration.
8610 (struct print_stack_frame_args, print_stack_frame)
8611 (print_frame_info, print_frame): Replace "source" with print what.
8612 Replace "print" with "print_level". Replace "args" with
8614 * frame.h (show_and_print_stack_frame, print_stack_frame)
8615 (print_frame_info): Update declarations.
8616 * stack.c (select_and_print_frame, frame_command)
8617 (current_frame_command, up_command, down_command): Update calls -
8618 use get_selected_frame, pass "enum print_what" for source, do not
8619 call frame_relative_level.
8620 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8621 * remote-rdp.c (remote_rdp_open): Ditto.
8622 * remote-mips.c (common_open): Ditto.
8623 * remote-e7000.c (e7000_start_remote): Ditto.
8624 * ocd.c (ocd_start_remote): Ditto.
8625 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8626 * infrun.c (normal_stop): Ditto.
8627 * inflow.c (kill_command): Ditto.
8628 * infcmd.c (finish_command): Ditto.
8629 * corelow.c (core_open): Ditto.
8630 * tracepoint.c (finish_tfind_command): Ditto.
8631 * thread.c (info_threads_command, info_threads_command)
8632 (restore_current_thread, do_captured_thread_select): Ditto.
8633 * ada-tasks.c (task_command): Ditto.
8635 2004-04-26 Orjan Friberg <orjanf@axis.com>
8637 * frame.c: Include "observer.h".
8638 (frame_observer_target_changed): New function.
8639 (_initialize_frame): Attach target_changed observer.
8640 * regcache.c: Include "observer.h".
8641 (regcache_observer_target_changed): New function.
8642 (_initialize_regcache): Attach target_changed observer.
8643 * valops.c: Include "observer.h".
8644 (value_assign): Notify target_changed event when modifying register.
8645 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8647 2004-04-26 Orjan Friberg <orjanf@axis.com>
8649 From Paul Koning <pkoning@equallogic.com>:
8650 * breakpoint.c (free_valchain): New function.
8651 (insert_bp_location, delete_breakpoint): Use free_valchain.
8652 (remove_breakpoint): Do not remove the valchain.
8653 (bpstat_stop_status): If not stopped by watchpoint, skip
8654 watchpoints when generating stop status list.
8655 * infrun.c (handle_inferior_event): Make
8656 stepped_after_stopped_by_watchpoint a global variable.
8657 * remote.c (remote_stopped_data_address): Return watch data
8658 address rather than zero if stepped_after_stopped_by_watchpoint is
8661 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8664 * configure.in: Check for curses after termcap.
8665 On osf5.*, do not check for ncurses.
8666 * configure: Regenerate.
8668 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8670 * ppcobsd-nat.c: Include "ppc-tdep.h".
8671 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8673 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8674 Fixes PR tdep/1623 and PR tdep/1624.
8676 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8678 * xmodem.h, xmodem.c: Remove files.
8679 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8681 2004-04-23 Randolph Chung <tausq@debian.org>
8683 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8684 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8685 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8686 for handling stackless frames.
8687 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8689 2004-04-23 Randolph Chung <tausq@debian.org>
8691 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8692 starts at a pc before the frame is created.
8694 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8696 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8698 2004-04-23 Jerome Guitton <guitton@gnat.com>
8700 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8701 use convert_typed_floating to get the appropriate format.
8703 2004-04-22 Randolph Chung <tausq@debian.org>
8705 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8706 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8707 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8708 (hppa_sign_extend): Add prototype.
8709 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8710 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8711 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8712 hppa targets will also use these functions.
8713 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8714 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8715 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8716 (hppa_gdbarch_init): Remove gdbarch setting of
8717 skip_trampoline_code, in_solib_call_trampoline and
8718 in_solib_return_trampoline.
8719 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8720 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8721 hppa_in_solib_call_trampoline.
8722 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8723 Moved from hppa-tdep.c.
8724 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8725 in_solib_call_trampoline and in_solib_return_trampoline.
8727 2004-04-22 Randolph Chung <tausq@debian.org>
8729 * hppa-tdep.c (hppa_debug): New variable.
8730 (find_unwind_entry, hppa_frame_cache): Add debug output.
8731 (_initialize_hppa_tdep): Add command to set debug flag.
8733 2004-04-22 Andrew Cagney <cagney@redhat.com>
8735 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8737 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8738 signal trampoline unwinder.
8739 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8741 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8743 Add OpenBSD/powerpc support.
8744 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8745 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8746 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8747 (ppc_collect_fpregset): New prototypes.
8748 * ppcobsd-nat.c: New file.
8749 * ppcobsd-tdep.c: New file.
8750 * ppcobsd-tdep.h: New file.
8751 * rs6000-tdep.c: Include "regset.h".
8752 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8753 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8755 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8756 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8757 (rs6000-tdep.o): Update dependencies.
8758 * configure.host: Add powerpc-*-openbsd.
8759 * configure.tgt: Add powerpc-*-openbsd.
8760 * config/powerpc/obsd.mh: New file.
8761 * config/powerpc/nm-obsd.h: New file.
8762 * config/powerpc/obsd.mt: New file.
8764 2004-04-22 Andrew Cagney <cagney@redhat.com>
8766 * frame.h (show_frame_info): Delete declaration.
8768 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8769 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8770 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8771 * frv-tdep.c (frv_frame_this_id): Ditto.
8772 * avr-tdep.c (avr_frame_this_id): Ditto.
8774 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8776 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8778 2004-04-22 Jim Blandy <jimb@redhat.com>
8780 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8781 register number zero.
8783 2004-04-21 Michael Snyder <msnyder@redhat.com>
8785 * mips-tdep.c (heuristic_proc_start):
8786 Warning() already prefixes "Warning: ".
8788 2004-04-21 Andrew Cagney <cagney@redhat.com>
8790 * annotate.h (deprecated_annotate_starting_hook)
8791 (deprecated_annotate_stopped_hook)
8792 (deprecated_annotate_exited_hook)
8793 (deprecated_annotate_signal_hook)
8794 (deprecated_annotate_signalled_hook): Deprecate.
8795 * tracepoint.h (deprecated_create_tracepoint_hook)
8796 (deprecated_delete_tracepoint_hook)
8797 (deprecated_modify_tracepoint_hook)
8798 (deprecated_trace_find_hook)
8799 (deprecated_trace_start_stop_hook): Deprecate.
8800 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8801 * remote.h (deprecated_target_resume_hook)
8802 (deprecated_target_wait_loop_hook): Deprecate.
8803 * gdbcore.h (deprecated_exec_file_display_hook)
8804 (deprecated_file_changed_hook): Deprecate.
8805 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8806 * defs.h (deprecated_modify_breakpoint_hook)
8807 (deprecated_command_loop_hook, deprecated_show_load_progress)
8808 (deprecated_print_frame_info_listing_hook)
8809 (deprecated_query_hook, deprecated_warning_hook)
8810 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8811 (deprecated_delete_breakpoint_hook)
8812 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8813 (deprecated_readline_begin_hook, deprecated_readline_hook)
8814 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8815 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8816 (deprecated_context_hook, deprecated_target_wait_hook)
8817 (deprecated_attach_hook, deprecated_detach_hook)
8818 (deprecated_call_command_hook, deprecated_set_hook)
8819 (deprecated_error_hook, deprecated_error_begin_hook)
8820 (deprecated_ui_load_progress_hook): Deprecate.
8821 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8822 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8823 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8824 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8825 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8826 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8827 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8828 * annotate.c, aix-thread.c: Update.
8830 2004-04-21 Andrew Cagney <cagney@redhat.com>
8832 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8833 * vaxnbsd-tdep.c: Include "gdb_string.h".
8835 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8836 (add_symbol_file_from_memory_command): #if 0 function body, call
8839 2004-04-21 Andrew Cagney <cagney@redhat.com>
8841 * gdbcore.h: Update copyright.
8842 (deprecated_add_core_fns): Rename add_core_fns.
8843 * win32-nat.c (_initialize_core_win32): Update.
8844 * sun3-nat.c (_initialize_core_sun3): Update.
8845 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8846 * rs6000-nat.c (_initialize_core_rs6000): Update.
8847 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8848 * nto-tdep.c (_initialize_nto_tdep): Update.
8849 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8850 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8851 * mips-nat.c (_initialize_core_mips): Update.
8852 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8853 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8854 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8855 * lynx-nat.c (_initialize_core_lynx): Update.
8856 * irix5-nat.c (_initialize_core_irix5): Update.
8857 * i386-interix-nat.c (_initialize_core_interix): Update.
8858 * cris-tdep.c (_initialize_cris_tdep): Update.
8859 * corelow.c (deprecated_add_core_fns): Update.
8860 * core-regset.c (_initialize_core_regset): Update.
8861 * core-aout.c (_initialize_core_aout): Update.
8862 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8863 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8864 * alpha-nat.c (_initialize_core_alpha): Update.
8866 2004-04-21 Jim Blandy <jimb@redhat.com>
8868 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8870 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8872 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8874 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8875 (read_attribute_value): Update calls to dwarf_alloc_block.
8876 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8878 (psymtab_to_symtab_1): Likewise. Clean up using
8879 free_stack_comp_unit.
8880 (add_to_cu_func_list): Use the comp_unit_obstack.
8882 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8884 * dwarf2read.c (dwarf2_flag_true_p): New function.
8885 (die_is_declaration): Use the function above. Add some comments.
8887 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8889 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8890 architecture when registering sparcnbsd_core_osabi_sniffer.
8893 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8895 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8898 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8899 * i386-tdep.c: Correct register numbering scheme comments
8901 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8902 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8903 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8904 (i386_gdb_arch_init): Likewise.
8906 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8907 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8910 * m68k-tdep.h: Tweak comments.
8911 * m68k-tdep.c: Tweak comment.
8913 2004-04-17 Randolph Chung <tausq@debian.org>
8915 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8916 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8917 (hppa_hpux_som_init_abi): Set is_elf to 0.
8918 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8919 * hppa-tdep.c (low_text_segment_address): Remove global.
8920 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8921 section offset to calculate segment address.
8922 (internalize_unwinds): Define low_text_segment_address as local and
8923 pass to record_text_segment_lowaddr for ELF targets.
8924 (hppa_gdbarch_init): Zero fill tdep structure.
8925 (hppa_dump_tdep): Print tdep structure.
8926 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8928 2004-04-17 Randolph Chung <tausq@debian.org>
8930 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8931 (hppa_gdbarch_init): Set pseudo_register_read.
8932 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8933 * regcache.c (supply_register): Remove check for
8934 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8936 2004-04-17 Randolph Chung <tausq@debian.org>
8938 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8939 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8940 (hpread_adjust_stack_address): Move to hpread.c.
8941 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8942 obj_private_struct): Move from tm-hppa.h.
8943 * hpread.c (hppa-tdep.h): Include.
8944 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8945 (hpread_read_function_type, hpread_read_doc_function_type)
8946 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8948 * pa64solib.c (hppa-tdep.h): Include.
8949 * somsolib.c (hppa-tdep.h): Include.
8950 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8951 inferior_status): Remove unused forward declarations.
8952 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8953 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8954 obj_private_struct): Move to hppa-tdep.h.
8955 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8957 2004-04-17 Randolph Chung <tausq@debian.org>
8959 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8960 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8961 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8962 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8963 Remove forward declaration and make static.
8964 (hppa_reg_struct_has_addr): Remove.
8966 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8968 * observer.sh: Move comments in sed command to first column.
8970 2004-04-16 Jason Molenda (jmolenda@apple.com)
8972 * frame.c: Minor typeo corrections in comments.
8974 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8976 * observer.c (observer_test_first_notification_function): Update
8978 (observer_test_second_notification_function): Likewise.
8979 (observer_test_third_notification_function): Likewise.
8981 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8983 From Brian Ford <ford@vss.fsi.com>:
8984 * i386-tdep.c (i386_coff_init_abi): New function.
8985 * i386-tdep.h (i386_coff_init_abi): New prototype.
8986 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8987 register number translation functions for DWARF and DWARF 2.
8989 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8991 * dwarf2read.c: Back out my previous change, it was incorrect.
8993 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8995 * dwarf2read.c: Include "hashtab.h".
8996 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8998 (struct partial_die_info): Add comments. Use bitfields to reduce
8999 memory footprint. Add scope, scope_set, has_specification,
9000 spec_offset, die_parent, die_child, and die_sibling.
9001 (peek_die_abbrev): Add prototype.
9002 (partial_read_comp_unit_head): New function, broken out from
9003 dwarf2_build_psymtabs_hard.
9004 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9005 Use partial_read_comp_unit_head. Initialize the CU and
9006 comp_unit_obstack. Update calls to read_partial_die and
9007 scan_partial_symbols. Use free_stack_comp_unit and
9009 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9010 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9011 Update calls to helper functions. Remove NAMESPACE argument.
9013 (partial_die_parent_scope, partial_die_full_name): New functions.
9014 (add_partial_symbol): Remove namespace argument. Update call to
9015 pdi_needs_namespace. Use partial_die_full_name. Handle
9016 DW_TAG_namespace. Check has_namespace_info flag.
9017 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9018 tag. Handle namespaces.
9019 (add_partial_namespace, add_partial_enumeration): Simplify.
9020 (guess_structure_name): New function, derived from
9021 add_partial_structure.
9022 (add_partial_structure): Remove.
9023 (determine_class_name): Update comment.
9024 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9025 (is_type_tag_for_partial, load_partial_dies): New functions.
9026 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9027 Record specifications instead of following them immediately.
9028 (find_partial_die_in_comp_unit, find_partial_die)
9029 (fixup_partial_die, free_stack_comp_unit)
9030 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9031 (partial_die_hash, partial_die_eq): New functions.
9032 * Makefile.in (hashtab_h): Define.
9033 (dwarf2read.o): Update dependencies.
9034 (observer_inc, observer_h): Move to the correct section.
9036 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9038 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9039 (die_is_declaration): Use the function above. Add comment.
9041 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9043 * dwarf2read.c (read_structure_scope): Identify stub types
9044 using die_is_declaration() only.
9046 2004-04-15 Roland McGrath <roland@redhat.com>
9048 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9049 argument instead of NAME.
9050 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9051 in call to symbol_file_add_with_addrs_or_offsets.
9052 (build_addr_info): New function, helper for ...
9053 (symbol_file_add_from_memory): New function.
9054 (add_symbol_file_from_memory_command): New function using that.
9055 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9056 (pre_add_symbol_hook): Add const to argument type.
9057 * symfile.h (symbol_file_add_from_memory): Declare it.
9059 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9061 * NEWS (New native configurations): Mention OpenBSD/vax.
9062 * configure.host: Add vax-*-openbsd*.
9063 * config/vax/obsd.mh: New file.
9064 * config/vax/nm-obsd.h: New file.
9066 * vax-tdep.c: Include "regset.h".
9067 (vax_supply_gregset): New function.
9068 (vax_gregset): New variable.
9069 (vax_regset_from_core_section): New function.
9070 (vax_gdbarch_init): Set regset_from_core_section.
9071 * Makefile.in (vax-tdep.o): Update dependencies.
9073 2004-04-15 Andrew Cagney <cagney@redhat.com>
9075 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9076 (observer_normal_stop_notification_stub)
9077 (observer_attach_normal_stop, observer_detach_normal_stop):
9078 Delete, replaced by #include "observer.inc".
9079 * infrun.c (normal_stop): Pass "stop_bpstat" to
9080 observer_notify_normal_stop.
9081 * Makefile.in (observer_inc): Define.
9082 (observer.o): Update dependencies.
9083 (observer.h, observer.inc): New rules.
9084 * observer.h: Delete file.
9085 * observer.sh: New file.
9087 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9089 * vax-tdep.c (vax_frame_cache): Fix typo.
9091 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9093 * NEWS (New native configurations): Mention NetBSD/vax.
9094 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9095 * config/vax/nbsdelf.mh: New file.
9096 * config/vax/nbsdaout.mh: New file.
9097 * config/vax/nm-nbsd.h: New file.
9098 * config/vax/nm-nbsdaout.h: New file.
9100 * vaxnbsd-tdep.c: New file.
9101 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9102 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9103 * config/vax/nbsd.mt: New file.
9104 * config/vax/tm-nbsd.h: New file.
9106 * Makefile.in (vaxbsd-nat.o): New dependency.
9108 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9109 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9110 struct_addr arguments. Don't push return value address.
9111 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9112 arguments to vax_store_arguments. Store return value address in
9114 (vax_store_struct_return, vax_extract_return_value)
9115 (vax_store_return_value): Remove functions.
9116 (vax_return_value): New function.
9117 (vax_gdbarch_init): Set return value. Don't set
9118 deprecated_store_struct_return, deprecated_extract_struct_return
9119 and deprecated_store_return_value.
9121 2004-04-14 Andreas Schwab <schwab@suse.de>
9123 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9125 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9127 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9129 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9130 (vax_unwind_dummy_id): New functions.
9131 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9132 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9134 (vax_fix_call_dummy): Remove function.
9135 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9136 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9137 call_dummy_location, deprecated_call_dummy_words,
9138 deprecated_sizeof_call_dummy_words,
9139 deprecated_call_dummy_breakpoint_offset,
9140 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9141 and deprecated_dummy_write_sp.
9143 2004-04-13 David Carlton <carlton@kealia.com>
9145 * MAINTAINERS: Move myself to "paper trail" section.
9147 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9149 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9151 (vax_frame_init_saved_regs): Remove function.
9152 (vax_sigtramp_saved_pc): Remove function.
9153 (vax_frame_saved_pc): Remove function.
9154 (vax_frame_args_address): Remove function.
9155 (vax_frame_num_args): Rewrite.
9156 (vax_frame_chain): Remove function.
9157 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9159 (vax_pop_frame): Likewise.
9160 (vax_saved_pc_after_call): Remove function.
9161 (struct vax_frame_cache): New structure.
9162 (vax_frame_cache): New function.
9163 (vax_frame_this_id): New function.
9164 (vax_frame_prev_register): New function.
9165 (vax_frame_unwind): New variable.
9166 (vax_frame_sniffer): New function.
9167 (vax_frame_base_address): New function.
9168 (vax_frame_args_address): New function.
9169 (vax_frame_base): New variable.
9170 (vax_unwind_pc): New function.
9171 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9172 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9173 deprecated_frame_chain, deprecated_frame_saved_pc,
9174 deprecated_frame_args_address and
9175 deprecated_frame_init_saved_regs.
9176 * Makefile.in (vax-tdep.o): Update dependencies.
9178 * vaxbsd-nat.c: New file.
9180 * vax-tdep.h: Update copyright year. Adjust comments.
9181 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9182 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9183 (vax_regnum): New enum. Replacing...
9184 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9185 (VAX_PS_REGNUM): ... these removed macros.
9186 * vax-tdep.c (vax_register_name): Remove prototype.
9187 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9188 (vax_register_byte, vax_register_raw_size,
9189 vax_register_virtual_size, vax_register_virtual_type): Remove
9191 (vax_register_type): New function.
9192 (vax_breakpoint_from_pc): Reorganize.
9193 (vax_gdbarch_init): Set register_type. Don't set
9194 deprecated_register_size, deprecated_register_bytes,
9195 deprecated_register_byte, deprecated_register_raw_size,
9196 deprecated_max_register_raw_size,
9197 deprecated_register_virtual_size,
9198 deprecated_max_register_virtual_size and
9199 deprecated_register_virtual_type. Add comment on stack direction.
9201 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9203 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9204 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9205 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9207 2004-04-10 Randolph Chung <tausq@debian.org>
9209 * MAINTAINERS (write after approval): Add myself.
9211 2004-04-07 Randolph Chung <tausq@debian.org>
9213 * hppa-tdep.c (hppa_inner_than): Remove.
9214 (is_pa_2): Remove unused static variable.
9215 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9217 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9219 * language.h (language_defn): Add new la_post_parser field.
9220 * parser-defs.h (null_post_parser): New declaration (default for
9223 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9224 insert call to that function.
9225 (parse_exp_in_context): New function, including code formerly in
9226 parse_exp_1. Calls language-dependent post-parser after
9228 (parse_expression_in_context): New exported function.
9229 (null_post_parser): New definition.
9230 * expression.h (parse_expression_in_context): Add declaration.
9232 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9233 * c-lang.c (c_language_defn): Ditto.
9234 (cplus_language_defn): Ditto.
9235 (asm_language_defn): Ditto.
9236 (minimal_language_defn): Ditto.
9237 * f-lang.c (f_language_defn): Ditto.
9238 * jv-lang.c (java_language_defn): Ditto.
9239 * language.c (unknown_language_defn): Ditto.
9240 (auto_language_defn): Ditto.
9241 (local_language_defn): Ditto.
9242 * m2-lang.c (m2_language_defn): Ditto.
9243 * scm-lang.c (scm_language_defn): Ditto.
9244 * obj-lang.c (objc_language_defn): Ditto.
9246 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9248 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9249 (amd64nbsd_mcontext_addr): New function.
9250 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9251 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9252 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9254 * corelow.c (core_xfer_partial): Fix coding standards violation.
9255 Add support for TARGET_OBJECT_WCOOKIE.
9257 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9258 deprecated_pc_in_sigtramp.
9259 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9260 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9261 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9262 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9263 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9264 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9265 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9267 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9268 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9271 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9272 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9273 (amd64_collect_fxsave): Likewise.
9275 * i386-sol2-tdep.c: Include "gdb_string.h".
9276 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9278 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9280 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9282 * i386-sol2-tdep.c: Include "solib-svr4.h".
9283 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9284 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9285 * config/i386/tm-i386sol2.h: Include :solib.h".
9286 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9287 solib-svr4.o and solib-legacy.o.
9288 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9291 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9293 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9294 whether a register is supplied by PTRACE_GETFPREGS.
9295 (store_inferior_registers): Likewise.
9296 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9297 whether a register is supplied by PT_GETFPREGS.
9298 (store_inferior_registers): Likewise.
9300 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9301 * config/i386/linux64.mt (TDEPFILES): Likewise.
9303 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9305 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9306 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9307 the program counter is in the range specified by `struct
9309 * amd64-linux-tdep.c: Include "symtab.h".
9310 (amd64_linux_pc_in_sigtramp): Remove function.
9311 (amd64_linux_sigtramp_p): New function.
9312 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9313 deprecated_pc_in_sigtramp.
9314 * amd64nbsd-tdep.c: Include "symtab.h".
9315 (amd64nbsd_sigtramp_p): New function.
9316 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9317 deprecated_pc_in_sigtramp.
9318 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9320 (amd64obsd_pc_in_sigtramp): Remove function.
9321 (amd64obsd_sigtramp_p): New function.
9322 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9323 deprecated_pc_in_sigtramp.
9324 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9325 (i386bsd_pc_ins_sigtramp): Remove prototype.
9326 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9327 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9328 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9329 the program counter is in the range specified by `struct
9331 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9332 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9333 (i386_go32_pc_in_sigtramp): Remove function.
9334 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9335 Initialize TDEP->sigtramp_p.
9336 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9337 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9338 deprecated_pc_in_sigtramp.
9339 * i386-linux-tdep.c: Adjust comments.
9340 (i386_linux_pc_in_sigtramp): Remove function.
9341 (i386_linux_sigtramp_p): New function.
9342 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9343 deprecated_pc_in_sigtramp.
9344 * i386-nto-tdep.c: Update copyright year.
9345 (i386nto_pc_in_sigtramp): Remove function.
9346 (i386nto_sigtramp_p): New function.
9347 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9349 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9350 deprecated_pc_in_sigtramp.
9351 * i386-sol2-tdep.c: Update copyright year.
9352 (i386_sol2_pc_in_sigtramp): Remove function.
9353 (i386_sol2_sigtramp_p): New function.
9354 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9355 deprecated_pc_in_sigtramp.
9356 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9357 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9358 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9359 deprecated_sigtramp_start and deprecated_sigtramp_end.
9360 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9361 (i386nbsd_pc_in_sigtramp): Remove function.
9362 (i386nbsd_sigtramp_p): New function.
9363 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9364 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9365 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9366 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9367 (i386obsd_pc_in_sigtramp): Remove function.
9368 (i386obsd_sigtramp_p): New function.
9369 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9371 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9372 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9374 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9375 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9378 * config/i386/i386aout.mt: Remove file.
9380 * configure.tgt: Remove i[34567]86-*-go32*,
9381 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9382 and i[34567]86-*-isc*. Set gdb_target to i386 for
9383 i[34567]86-*-netware* and i[34567]86-*-*.
9384 * config/i386/i386.mt: New file.
9385 * config/i386/embed.mt: Remove file.
9386 * config/i386/go32.mt: Remove file.
9387 * config/i386/i386nw.mt: Remove file.
9388 * config/i386/i386v.mt: Remove file.
9389 * config/i386/tm-go32.h: Remove file.
9391 * tui/tui-hooks.c: Include "readline/readline.h" after
9392 "gdb_curses.h" instead of before.
9393 * tui/tui-io.c: Likewise.
9395 * tui/tui.c: Fix typo in comment.
9397 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9399 2004-04-08 Andrew Cagney <cagney@redhat.com>
9401 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9402 (deprecated_exception_support_initialized): Declare.
9403 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9404 (initialize_hp_cxx_exception_support)
9405 (child_enable_exception_callback): Update.
9406 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9407 (deprecated_exception_support_initialized): Rename
9408 deprecated_exception_catchpoints_are_fragile and
9409 deprecated_exception_support_initialized.
9410 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9412 * symtab.c (deprecated_hp_som_som_object_present): Rename
9413 hp_som_som_object_present.
9414 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9415 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9416 Update. Delete extern declaration.
9417 * valops.c (hp_som_som_object_present): Ditto.
9418 * parse.c (deprecated_hp_som_som_object_present)
9419 (parse_nested_classes_for_hpacc): Ditto.
9420 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9421 * hppa-hpux-tdep.c (hp_som_som_object_present)
9422 (initialize_hp_cxx_exception_support): Ditto.
9423 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9424 * cp-valprint.c (hp_som_som_object_present)
9425 (cp_print_class_method): Ditto.
9426 * c-typeprint.c (hp_som_som_object_present):
9427 (c_type_print_base): Ditto.
9428 * c-exp.y (hp_som_som_object_present): Ditto.
9430 2004-04-08 Andrew Cagney <cagney@redhat.com>
9432 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9433 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9434 (frame_unwind_find_by_frame): Re-implement the unwind code so
9435 that it can both prepend and append sniffers. Replace
9436 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9437 * tramp-frame.c (tramp_frame_append): Use
9438 frame_unwind_prepend_unwinder.
9439 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9440 frame_unwind_register_unwinder.
9441 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9443 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9444 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9445 (mips_linux_init_abi): Update.
9447 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9449 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9450 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9453 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9455 * ia64-tdep.c (elf.h): Don't include.
9456 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9458 2004-04-07 Jason Molenda (jmolenda@apple.com)
9460 * frame.h: Typeo corrections in comments.
9462 2004-04-07 Jim Blandy <jimb@redhat.com>
9464 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9467 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9469 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9470 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9471 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9472 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9474 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9476 * config/sparc/tm-sol2.h: Update copyright year. Include
9479 * sparc-sol2-tdep.c: Update copyright year. Include
9481 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9482 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9483 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9484 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9487 2004-04-06 Andrew Cagney <cagney@redhat.com>
9489 * infttrace.c: Include "infttrace.h".
9490 * infttrace.h: Include "target.h".
9491 * Makefile.in (infttrace_h): Update.
9492 (infttrace.o): Update.
9494 2004-04-06 Andrew Cagney <cagney@redhat.com>
9496 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9497 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9498 move extern declarations from here ...
9499 * infttrace.h: ... to here.
9500 * Makefile.in (hppah-nat.o): Update dependencies.
9502 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9503 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9504 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9505 (hppa_breakpoint_from_pc): Delete.
9507 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9509 2004-04-05 Andrew Cagney <cagney@redhat.com>
9511 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9512 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9515 2004-04-06 Randolph Chung <tausq@debian.org>
9517 Committed by Andrew Cagney (mechanical change).
9518 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9519 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9520 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9521 child_enable_exception_callback, current_ex_event,
9522 null_symtab_and_line, child_get_current_exception_event,
9523 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9524 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9525 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9526 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9527 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9528 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9529 Move hpux-specific definitions ...
9530 * hppa-hpux-tdep.c: ... to here.
9532 2004-04-05 Andrew Cagney <cagney@redhat.com>
9534 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9535 skip_prologue_using_sal.
9537 2004-04-05 Andrew Cagney <cagney@redhat.com>
9539 * config/i386/tm-i386.h: Delete file.
9540 * config/i386/tm-vxworks.h: Update copyright, do not include
9542 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9543 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9544 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9545 * config/i386/ncr3000.mt (TM_FILE): Delete.
9546 * config/i386/interix.mt (TM_FILE): Delete.
9547 * config/i386/i386v.mt (TM_FILE): Delete.
9548 * config/i386/i386nw.mt (TM_FILE): Delete.
9549 * config/i386/i386gnu.mt (TM_FILE): Delete.
9550 * config/i386/i386aout.mt (TM_FILE): Delete.
9551 * config/i386/embed.mt (TM_FILE): Delete.
9553 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9555 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9556 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9557 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9558 (accg7_regnum): New constants.
9559 (last_spr_regnum, last_pseudo_regnum): Update.
9560 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9561 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9562 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9564 (frv_register_sim_regno): Update spr_map[].
9566 2004-04-04 Andrew Cagney <cagney@redhat.com>
9568 * config/mips/xm-riscos.h: Delete.
9569 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9570 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9571 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9572 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9573 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9574 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9575 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9576 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9577 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9578 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9579 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9580 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9581 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9582 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9583 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9584 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9585 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9586 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9587 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9588 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9589 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9590 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9591 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9592 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9593 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9594 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9596 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9597 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9598 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9599 * configure.host: Remove m680[01]0-sun-sunos3*,
9600 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9601 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9602 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9603 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9605 * NEWS: Mention removed systems.
9607 2004-04-04 Andrew Cagney <cagney@redhat.com>
9609 GDB 6.1 release created from 6.1 branch.
9611 2004-04-04 Andrew Cagney <cagney@redhat.com>
9613 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9614 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9615 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9617 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9618 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9619 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9621 2004-04-03 Jim Blandy <jimb@redhat.com>
9623 * MAINTAINERS: Chris Faylor has changed employers; add him to
9624 "paper trail" section, and update his E-mail address.
9626 2004-04-03 Andrew Cagney <cagney@redhat.com>
9628 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9629 generic dummy frames.
9630 * dummy-frame.c: Update copyright.
9631 (dummy_frame_sniffer): Delete check for generic dummy frames.
9633 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9634 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9635 (REG_PARM_STACK_SPACE): Delete.
9636 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9637 Inline reference to REG_PARM_STACK_SPACE.
9639 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9640 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9641 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9642 (FRAME_BASE_BEFORE_SIGTRAMP)
9643 (hppa32_hpux_frame_base_before_sigtramp)
9644 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9645 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9646 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9647 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9648 (FRAME_BASE_BEFORE_SIGTRAMP)
9649 (hppa64_hpux_frame_base_before_sigtramp)
9650 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9652 2004-04-03 Andrew Cagney <cagney@redhat.com>
9654 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9656 2004-04-02 Andrew Cagney <cagney@redhat.com>
9658 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9659 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9660 * dummy-frame.h: Delete out-of-date comments.
9661 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9662 * gdbarch.h, gdbarch.c: Re-generate.
9664 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9666 Committed by Andrew Cagney <cagney@redhat.com>.
9667 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9668 into account an instruction saving a register if we have already
9669 seen an earlier instruction saving that same register.
9671 2004-04-02 Andrew Cagney <cagney@redhat.com>
9673 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9674 * gdbarch.h, gdbarch.c: Re-generate.
9675 * frame.c (legacy_get_prev_frame): Delete references to
9676 DEPRECATED_INIT_FRAME_PC_FIRST.
9678 * infrun.c (pc_in_sigtramp): Delete function.
9679 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9682 2004-04-02 Andrew Cagney <cagney@redhat.com>
9684 * infrun.c (handle_step_into_function): Delete code conditional on
9686 (handle_inferior_event, step_over_function): Ditto.
9688 2004-04-02 Andrew Cagney <cagney@redhat.com>
9690 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9691 "previous frame inner to this frame" test.
9693 2004-04-02 Andrew Cagney <cagney@redhat.com>
9695 * frame.c (safe_frame_unwind_memory): New function.
9696 * frame.h (safe_frame_unwind_memory): Declare. Update description
9698 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9699 "next_frame". Use safe_frame_unwind_memory.
9700 (tramp_frame_sniffer): Update call to tramp_frame_start.
9702 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9704 * dwarf2read.c (dwarf2_objfile_data_key): New.
9705 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9706 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9707 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9708 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9709 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9710 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9711 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9713 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9714 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9715 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9716 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9717 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9718 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9720 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9722 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9723 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9724 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9725 (read_partial_die, read_full_die, read_indirect_string)
9726 (dwarf_decode_line_header, dwarf_decode_macros)
9727 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9728 Update uses of removed variables.
9729 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9731 (_initialize_dwarf2_read): New function.
9732 * symfile.h (dwarf2_has_info): Update prototype.
9733 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9734 * elfread.c (elf_symfile_read): Likewise.
9736 2004-04-01 Jim Blandy <jimb@redhat.com>
9738 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9739 function for register numbers on all the rs6000-derived targets.
9740 (rs6000_gdbarch_init): Don't register a separate
9741 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9742 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9745 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9748 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9750 * valarith.c: Update copyright notice.
9751 (value_add): Handle range types.
9753 (value_equal): Ditto.
9754 (value_less): Ditto.
9756 (value_complement): Ditto.
9757 (value_binop): Simplify slightly by using is_integral_type and
9758 eliminiating unnecessary COERCE_ENUMs.
9760 2004-03-31 Andrew Cagney <cagney@redhat.com>
9762 * frame.h (frame_unwind_id): Declare.
9763 * frame.c (frame_unwind_id): New function.
9764 (get_prev_frame_1): New function.
9765 (frame_debug_got_null_frame): New function.
9766 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9767 code proper to prev_frame, update description.
9768 * infrun.c (step_over_function): Use frame_unwind_id.
9770 2004-04-31 J. Brobecker <brobecker@gnat.com>
9772 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9773 (hppa64_push_dummy_call): Likewise.
9775 2004-03-30 Jim Blandy <jimb@redhat.com>
9777 From Ulrich Weigand:
9778 * utils.c (query): Do not use a va_list variable multiple times.
9780 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9782 * Makefile.in (linux_nat_h): Update dependencies.
9783 * configure.in: Check for <gnu/libc-version.h>.
9784 * configure: Regenerate.
9785 * config.in: Regenerate.
9786 * linux-nat.h: Include "target.h". Add waitstatus field to
9788 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9789 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9791 (lin_lwp_handle_extended): New function. Handle clone events.
9792 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9794 (child_wait): Handle clone events.
9795 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9796 * linux-nat.c (linux_enable_event_reporting): Turn on
9797 PTRACE_O_TRACECLONE.
9798 (linux_handle_extended_wait): Handle clone events.
9799 * thread-db.c: Include <gnu/libc-version.h>.
9800 (struct private_thread_info): Add dying flag.
9801 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9803 (attach_thread): Update comments. Handle dying threads.
9804 (detach_thread): Set the dying flag.
9805 (check_event): Always call attach_thread.
9807 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9809 * mips-tdep.c (mips_pdr_data): New.
9810 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9811 (_initialize_mips_tdep): Initialize mips_pdr_data.
9813 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9815 * minsyms.c (install_minimal_symbols): Move dropping leading
9816 char from linkage name from here...
9817 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9818 test for "__gnu_compiled*" symbols.
9820 2004-03-28 Jim Blandy <jimb@redhat.com>
9822 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9823 registers to temp register r0 and byte stores as prologue
9826 2004-03-28 Andrew Cagney <cagney@redhat.com>
9828 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9831 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9833 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9834 and switch the layout to force a display of register window.
9836 2004-02-26 J. Brobecker <brobecker@gnat.com>
9838 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9839 of the INTEGER class.
9841 2004-03-26 Jim Blandy <jimb@redhat.com>
9843 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9844 bytes long on PPC GNU/Linux.
9846 2004-03-26 David Carlton <carlton@kealia.com>
9848 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9850 2004-03-25 Andrew Cagney <cagney@redhat.com>
9852 * PROBLEMS: Add general section titles, remove references to
9855 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9857 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9859 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9860 FP_REGISTER_VIRTUAL_SIZE.
9861 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9862 of DEPRECATED_REGISTER_RAW_SIZE.
9863 (arm_register_type): Add gdbarch argument.
9864 (arm_register_raw_size, arm_register_virtual_size): Delete.
9865 (arm_register_byte, arm_extract_return_value)
9866 (arm_store_return_value, arm_get_longjmp_target): Update references
9867 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9868 (arm_gdbarch_init): Likewise. Don't set
9869 deprecated_register_raw_size, deprecated_register_virtual_size,
9870 deprecated_max_register_raw_size,
9871 deprecated_max_register_virtual_size, or
9872 deprecated_max_register_virtual_type. Do set register_type.
9873 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9874 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9875 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9876 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9877 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9878 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9880 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9881 (remote_rdp_store_register): Likewise.
9883 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9885 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9886 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9887 to after osabi initialization.
9888 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9889 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9891 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9892 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9894 (mips_linux_init_abi): Append signal trampoline unwinders.
9896 2004-03-24 Andrew Cagney <cagney@redhat.com>
9898 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9899 * tramp-frame.c: Include "gdb_assert.h".
9900 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9902 (tramp_frame_append): Validate the tramp frame's instructions.
9903 * Makefile.in (tramp-frame.o): Update dependencies.
9905 2004-03-23 Andrew Cagney <cagney@redhat.com>
9907 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9909 2004-03-23 Andrew Cagney <cagney@redhat.com>
9911 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9912 Nasser as past testsuite/lib/ (and other) maintainers.
9914 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9916 * infcmd.c (attach_command): Reread symbols if we already have
9919 2004-03-23 Andrew Cagney <cagney@redhat.com>
9921 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9923 2004-03-23 Andrew Cagney <cagney@redhat.com>
9925 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9926 * gdbarch.h, gdbarch.c: Re-generate.
9927 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9928 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9929 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9930 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9931 (DEPRECATED_SIGTRAMP_START): Update.
9932 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9933 (DEPRECATED_SIGTRAMP_START): Update.
9934 * blockframe.c (find_pc_sect_partial_function): Update.
9935 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9937 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9939 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9942 2004-03-23 Andrew Cagney <cagney@redhat.com>
9944 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9945 predicate, deprecate.
9946 * gdbarch.h, gdbarch.c: Re-generate.
9947 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9948 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9949 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9950 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9951 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9952 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9953 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9954 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9955 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9956 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9957 * blockframe.c (find_pc_partial_function): Update.
9958 * breakpoint.c (bpstat_what): Update.
9959 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9960 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9961 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9962 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9963 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9964 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9965 * i386-nto-tdep.c (i386nto_init_abi): Update.
9966 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9967 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9968 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9969 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9970 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9971 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9972 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9973 * infrun.c (pc_in_sigtramp): Update.
9974 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9975 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9976 * mips-tdep.c (mips_gdbarch_init): Update.
9977 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9978 * ppc-linux-tdep.c: Update comment.
9979 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9980 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9981 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9982 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9983 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9984 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9985 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9986 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9987 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9988 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9990 2004-03-23 Andrew Cagney <cagney@redhat.com>
9992 * tramp-frame.h, tramp-frame.h: New files.
9993 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9994 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9996 * Makefile.in: Update all dependencies.
9998 2004-03-23 Andrew Cagney <cagney@redhat.com>
10000 * Makefile.in (trad_frame_h): Add $(frame_h).
10001 * trad-frame.h: Update copyright. Include "frame.h".
10002 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10003 (trad_frame_set_id, trad_frame_get_id): Declare.
10004 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10005 * trad-frame.c: Update copyright.
10006 (struct trad_frame_cache): Define.
10007 (trad_frame_cache_zalloc): New function.
10008 (trad_frame_set_id, trad_frame_get_id): New functions.
10009 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10011 2004-03-22 Andrew Cagney <cagney@redhat.com>
10013 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10014 s390_pltstub_unwind_cache.
10015 (s390_stub_frame_unwind_cache): Rename
10016 s390_pltstub_frame_unwind_cache.
10017 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10018 (s390_stub_frame_prev_register): Rename
10019 s390_pltstub_frame_prev_register.
10020 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10021 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10023 From Ulrich Weigand:
10024 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10025 pointer calls like PLT calls.
10027 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10029 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10030 PC rather than the partial function start address. Use the start
10031 address to sanity check the found PDR.
10033 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10035 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10036 linux_handle_extended_wait.
10038 2004-03-22 Andrew Cagney <cagney@redhat.com>
10040 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10043 * frame.h (generic_pop_current_frame): Delete declaration.
10044 (deprecate_pop_dummy_frame): Deprecate
10045 generic_pop_dummy_frame.
10046 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10047 (generic_pop_current_frame): Delete function.
10048 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10049 generic_pop_current_frame.
10050 * v850-tdep.c (v850_pop_frame): Update.
10051 * mcore-tdep.c (mcore_pop_frame): Update.
10052 * sh64-tdep.c (sh64_pop_frame): Update.
10053 * h8300-tdep.c (h8300_pop_frame): Update.
10055 2004-03-22 Andrew Cagney <cagney@redhat.com>
10057 * frame.h (deprecated_pc_in_call_dummy): Rename
10058 generic_pc_in_call_dummy.
10059 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10060 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10061 generic_pc_in_call_dummy.
10062 (pc_in_dummy_frame): Make static.
10063 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10064 * gdbarch.h, gdbarch.c: Re-generate.
10065 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10066 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10067 (legacy_get_prev_frame): Ditto.
10068 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10071 2004-03-21 Andrew Cagney <cagney@redhat.com>
10073 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10074 declaration and out-of-date comment.
10075 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10077 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10078 deprecated_pc_in_call_dummy.
10080 * infrun.c (handle_inferior_event): For non legacy frames, use the
10081 frame ID and frame type to identify a signal trampoline. Update
10084 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10086 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10087 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10089 2004-03-21 Andrew Cagney <cagney@redhat.com>
10091 * frame-unwind.h: Update copyright.
10092 (struct frame_data): Add opaque declaration.
10093 (frame_sniffer_ftype): Declare.
10094 (struct frame_unwind): Add "unwind_data" and "sniffer".
10095 (frame_unwind_register_unwinder): Declare.
10096 (frame_unwind_find_by_frame): Add parameter "this_cache".
10097 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10098 (legacy_get_prev_frame, legacy_get_prev_frame)
10099 (get_frame_type): Pass the prologue_cache to
10100 frame_unwind_find_by_frame.
10101 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10103 (frame_unwind_register_unwinder): New function.
10104 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10106 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10108 * bcache.c (print_percentage): Use floating point to avoid
10109 incorrect results when portion*100 overflows.
10111 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10113 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10114 (ppc_linux_init_extra_frame_info)
10115 (ppc_linux_frameless_function_invocation)
10116 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10117 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10118 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10119 (rs6000_frame_chain): Delete declarations.
10120 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10121 (ppc_linux_init_extra_frame_info)
10122 (ppc_linux_frameless_function_invocation)
10123 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10124 (ppc_linux_init_abi): Remove registration of above deleted functions.
10125 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10126 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10127 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10128 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10129 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10130 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10131 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10132 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10133 frame management for all OSABIs.
10135 2004-03-19 Andrew Cagney <cagney@redhat.com>
10137 Committed by Kevin Buettner <kevinb@redhat.com>.
10139 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10141 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10142 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10143 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10144 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10145 unwinders. #ifdef legacy frame code.
10146 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10148 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10149 (struct rs6000_frame_cache, rs6000_frame_cache)
10150 (rs6000_frame_this_id, rs6000_frame_prev_register)
10151 (rs6000_frame_sniffer, rs6000_frame_unwind)
10152 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10153 (rs6000_frame_base): Implement a traditional frame unwinder.
10154 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10157 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10159 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10160 breakpoint address for watchpoints or the catch eventpoints.
10161 Add new paramter ``bptype''. Adjust all callers.
10163 2004-03-19 Andrew Cagney <cagney@redhat.com>
10165 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10167 * PROBLEMS: Delete note that ARM does not use frame code, problem
10170 2004-03-18 Andrew Cagney <cagney@redhat.com>
10172 * stack.c (return_command): Delete code wrapped in #ifdef
10173 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10175 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10177 2004-03-18 Andrew Cagney <cagney@redhat.com>
10179 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10180 DEPRECATED_IN_SIGTRAMP.
10181 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10182 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10183 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10184 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10185 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10186 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10187 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10188 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10189 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10190 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10192 2004-03-18 Andrew Cagney <cagney@redhat.com>
10194 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10195 (struct frame_base_table_entry): Define.
10196 (struct frame_base_table): Re-implement as a linked list.
10197 (frame_base_init): Re-implement.
10198 (frame_base_table): Delete function.
10199 (append_predicate): Delete function.
10200 (frame_base_append_sniffer): Update.
10201 (frame_base_set_default): Update.
10202 (frame_base_find_by_frame): Update.
10203 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10204 * Makefile.in (frame-base.o): Update dependencies.
10206 2004-03-17 Andrew Cagney <cagney@redhat.com>
10208 * frame.c (legacy_get_prev_frame): Pass correct frame to
10209 frame_unwind_find_by_frame.
10211 2004-03-17 David Carlton <carlton@kealia.com>
10213 * NEWS: Mention C++ nested types and namespaces
10215 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10217 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10218 and "Regressions since gdb 5.3.". Add known regressions since
10221 2004-03-16 David Carlton <carlton@kealia.com>
10223 * dwarf2read.c (process_structure_scope): Process children even
10224 when we're a declaration.
10226 2004-03-16 Andrew Cagney <cagney@redhat.com>
10228 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10229 * blockframe.c (find_pc_partial_function)
10230 (find_pc_sect_partial_function): Merge into a single
10231 find_pc_partial_function.
10233 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10235 * i386bsd-nat.c: s/regno/regnum/g.
10236 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10238 (store_inferior_registers): Likewise.
10240 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10242 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10243 of i387_fill_fsave.
10244 (store_inferior_registers): Call i387_collect_fsave and
10245 i387_collect_fxsave instead of i387_fill_fsave and
10248 2004-03-15 Andrew Cagney <cagney@redhat.com>
10250 * Makefile.in (frame-unwind.o): Update dependencies.
10251 * frame-unwind.c: Include "gdb_obstack.h".
10252 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10254 (append_predicate): Delete function.
10255 (struct frame_unwind_table_entry): New structure.
10256 (struct frame_unwind_table): Replace "sniffer" with "head" and
10258 (frame_unwind_append_sniffer): Update.
10259 (frame_unwind_find_by_frame): Update.
10260 (_initialize_frame_unwind): Registe frame_unwind_init using
10261 gdbarch_data_register_pre_init.
10263 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10265 * i386bsd-nat.c: Update copyright year.
10266 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10267 define unconditionally.
10269 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10271 * i387-tdep.h (i387_collect_fsave): New prototype.
10272 * i387-tdep.c (i387_collect_fsave): New function containing most
10273 of the code from i387_fill_fsave.
10274 (i387_fill_fsave): Call i387_collect_fsave.
10276 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10278 * i386-linux-tdep.c: Update copyright year.
10279 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10280 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10281 svr4_ilp32_link_map_offsets instead of
10282 i386_linux_svr4_fetch_link_map_offsets.
10284 2004-03-15 David Carlton <carlton@kealia.com>
10286 Fix for PR c++/1553:
10287 * dwarf2read.c (read_structure_type): Determine type name by
10288 calling determine_class_name.
10289 (determine_class_name): New.
10290 (determine_prefix): Look at TYPE_TAG_NAME and call
10291 determine_class_name when appropriate.
10292 (determine_prefix_aux, class_name): Delete.
10293 (read_namespace): Set die->type.
10295 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10297 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10298 unused macro definition. The definition in target.h (or perhaps
10299 elsewhere) takes precedence.
10301 2004-03-15 Andrew Cagney <cagney@redhat.com>
10303 * ppc-tdep.h: Update copyright.
10304 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10305 function signatures to match "regsets.h".
10306 * ppc-linux-tdep.c: Include "regset.h".
10307 (ELF_GREGSET_SIZE): Delete.
10308 (right_supply_register): New function.
10309 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10310 using right_supply_register.
10311 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10313 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10314 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10315 (_initialize_ppc_linux_tdep): Do not register
10316 ppc_linux_regset_core_fns.
10317 (ppc_linux_regset_from_core_section): Replace
10318 fetch_core_registers.
10319 (ppc_linux_regset_core_fns): Delete.
10320 * ppc-linux-nat.c: (right_fill_reg): New function.
10321 (supply_gregset): Update call to ppc_linux_supply_gregset.
10322 (fill_gregset): Clear the register set, use right_fill_reg.
10323 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10324 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10326 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10329 2004-03-15 Andrew Cagney <cagney@redhat.com>
10331 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10332 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10333 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10334 and register_gdbarch_data.
10335 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10336 (struct gdbarch_data): Replace "init" by "pre_init" and
10338 * gdbarch.h, gdbarch.c: Re-generate.
10339 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10340 with"obstack", use OBSTACK_ZALLOC.
10341 (dwarf2_frame_ops): Delete.
10342 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10343 (dwarf2_frame_init_reg): Use gdbarch_data.
10344 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10345 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10346 (_initialize_svr4_solib): Update.
10347 * user-regs.c (_initialize_user_regs): Update.
10348 * reggroups.c (_initialize_reggroup): Update.
10349 * regcache.c (_initialize_regcache): Update.
10350 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10351 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10352 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10353 * frame-unwind.c (_initialize_frame_unwind): Update.
10354 * frame-base.c (_initialize_frame_base): Update.
10355 * user-regs.c (user_reg_add): Update.
10356 * reggroups.c (reggroup_add): Update.
10357 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10358 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10359 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10360 * frame-base.c (frame_base_table): Update.
10361 * remote.c (_initialize_remote): Update.
10362 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10364 2004-03-15 Andrew Cagney <cagney@redhat.com>
10366 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10368 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10370 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10371 * frv-linux-tdep.c: New file.
10372 * frv-tdep.c (struct gdbarch_tdep): Add new field
10373 ``sigcontext_reg_addr''.
10374 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10375 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10376 (frv_sigramp_frame_sniffer): New functions.
10377 (frv_sigtramp_frame_unwind): New static global.
10378 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10380 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10381 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10383 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10385 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10386 but not via a call to error(), when unable to read memory.
10388 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10390 * frv-tdep.c (frv_call_dummy_words): Delete.
10391 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10393 2004-03-15 Andrew Cagney <cagney@redhat.com>
10395 * infrun.c (handle_step_into_function, step_over_function): Only
10396 update and use STEP_FRAME_ID when the system is using legacy
10397 frames. Update comments.
10399 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10401 * amd64-linux-tdep.h: Remove file.
10402 * amd64-linux-tdep.c: Don't include "inferior.h" and
10403 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10404 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10405 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10406 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10407 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10409 (user_to_gdb_regmap): Remove variable.
10410 (amd64_linux_gregset_reg_offset): New variable.
10411 (amd64_core_fns): Remove variable.
10412 (fetch_core_registers): Remove function.
10413 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10415 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10416 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10417 * Makefile.in (amd64_linux_tdep_h): Remove.
10418 (amd64-linux-nat.o): Update dependencies.
10419 (amd64-linux-tdep.o): Update dependencies.
10421 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10422 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10424 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10426 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10427 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10429 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10431 * dwarf2read.c (read_structure_type): Rename from
10432 read_structure_scope. Don't create a symbol or call process_die.
10433 Return immediately if die->type is set. Call read_type_die before
10434 dwarf2_add_member_fn.
10435 (process_structure_scope): New function.
10436 (read_enumeration_type, process_enumeration_scope): New functions,
10437 broken out from read_enumeration. Don't create the enumeration
10438 type if it has already been created.
10439 (read_enumeration): Removed.
10440 (process_die): Call read_structure_type, process_structure_scope,
10441 read_enumeration_type, and process_enumeration_scope. Just call
10442 new_symbol for base and subrange types. Add a comment about other
10444 (read_type_die): Call read_enumeration_type.
10445 (add_partial_structure, new_symbol): Update comments.
10447 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10449 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10451 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10453 * tui/tui-win.h (tui_get_cmd_list): Declare.
10454 * tui/tui-win.c (tui_command): New function.
10455 (tui_get_cmd_list): New function.
10456 (_initialize_tui_win): Moved initialization of tui command in
10459 * tui/tui-data.c (init_content_element): Setup new data members.
10460 (init_win_info): Likewise.
10461 (free_content_elements): Free it.
10462 * tui/tui-data.h (struct tui_data_element): Store the register
10464 (struct tui_data_info): Keep the current register group.
10466 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10468 * tui/tui-regs.h (tui_show_registers): Update prototype.
10469 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10470 (tui_resize_all): No need to calculate anything for register window.
10471 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10472 (tui_set_register_element, tui_set_general_regs_content): Remove.
10473 (tui_set_special_regs_content): Remove.
10474 (tui_set_general_and_special_regs_content): Remove.
10475 (tui_set_float_regs_content): Remove.
10476 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10477 (tui_set_regs_content): Remove.
10478 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10479 (tui_v_show_registers_command_support): Remove.
10480 (tui_show_registers): Use a reggroup to specify the registers to show.
10481 (tui_show_register_group): New function.
10482 (tui_display_registers_from): Compute the layout of register window
10483 and refresh with new API; be sure to delete old register windows.
10484 (tui_check_register_values): Update to use tui_get_register and
10486 (tui_display_register): Just refresh the register window part.
10487 (tui_register_format): Format registers and save in tui_data_element.
10488 (tui_get_register): New to combine tui_reg_value_has_changed and
10489 tui_get_register_raw_value; fix to use the new gdb API.
10490 (tui_show_float_command): Renamed tui_reg_float_command.
10491 (tui_show_general_command): Renamed tui_reg_general_command.
10492 (tui_show_special_command): Renamed tui_reg_system_command.
10493 (_initialize_tui_regs): Remove unused commands.
10495 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10497 * NEWS (New native configurations): Mention OpenBSD/amd64.
10499 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10500 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10502 * config/i386/nm-fbsd64.h: Likewise.
10503 * config/i386/nm-obsd.h: Likewise.
10504 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10505 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10507 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10509 * frv-tdep.c (set_variant_scratch_registers): New function.
10510 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10513 From Richard Sandiford <rsandifo@redhat.com>:
10514 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10516 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10518 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10519 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10520 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10521 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10522 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10523 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10524 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10525 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10526 definitions from frv-tdep.c to frv-tdep.h.
10528 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10530 Add shared library support for FR-V FDPIC ABI:
10531 * Makefile.in (solib-frv.o): Add dependencies.
10532 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10534 (frv_push_dummy_call): Add support for FDPIC ABI.
10535 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10537 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10538 (frv_fdpic_find_canonical_descriptor): Declare.
10539 * solib-frv.c: New file.
10540 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10541 * config/frv/tm-frv.h (solib.h): Include.
10543 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10545 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10546 (frv-tdep.o): Update dependencies.
10547 * frv-tdep.h: New file.
10548 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10549 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10551 (struct gdbarch_tdep): Add new member ``frv_abi''.
10552 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10554 (new_variant): Set ``frv_abi'' field.
10555 (gdb_arch_init): Detect FDPIC executables.
10557 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10559 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10562 2004-03-11 Andrew Cagney <cagney@redhat.com>
10564 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10566 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10568 * solist.h (master_so_list): New function.
10569 * solib.c (master_so_list): Likewise.
10570 * solib-svr4.c (enable_break): Iterate over so_list entries
10571 obtained from master list instead of entries obtained directly
10572 via svr4_current_sos().
10574 2004-03-10 Ben Elliston <bje@gnu.org>
10576 * MAINTAINERS: Update my mail address.
10578 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10580 * remote-m32r-sdi.c: Support hardware watchpoint.
10582 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10584 * user-regs.c: Update copyright years.
10585 (struct user_regs): Rename to gdb_user_regs.
10586 (append_user_reg, builtin_user_regs, user_regs_init)
10587 (user_reg_add, user_reg_map_name_to_regnum)
10588 (usernum_to_user_reg): Update.
10590 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10592 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10593 (skip_children): New functions.
10594 (locate_pdi_sibling): Call skip_children.
10596 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10598 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10599 * gdbtypes.c (check_typedef): Update comments.
10601 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10603 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10604 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10605 pointer. Update comment about comp_unit_head.
10606 (struct abbrev_info): Shorten two int flags.
10607 (dwarf_alloc_abbrev): Take a CU argument.
10608 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10609 each time through the loop. Update cleanup argument.
10610 (psymtab_to_symtab_1): Update cleanup call.
10611 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10613 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10614 Just call obstack_free and clear the pointer.
10616 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10618 * infrun.c (handle_inferior_event): Remove short-circuit code for
10619 events in a different thread.
10621 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10623 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10624 print the whole transfer.
10625 (initialize_targets): Update description of "set debug target".
10627 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10629 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10631 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10633 * MAINTAINERS (write after approval): Add myself.
10635 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10637 * sh-tdep.c (sh_print_registers_info): Use for loop.
10638 Don't skip multiple registers when a float register is encountered.
10640 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10643 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10644 to official SH documentation.
10646 2004-03-07 Andrew Cagney <cagney@redhat.com>
10648 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10651 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10653 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10654 (arm_get_next_pc): Handle BX and BLX.
10656 2004-03-07 Andrew Cagney <cagney@redhat.com>
10658 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10659 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10661 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10662 (hppa_target_read_fp): Delete.
10663 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10664 register_virtual_size, max_register_raw_size,
10665 max_register_virtual_size, register_byte, register_size,
10666 target_read_fp, fp_regnum, and register_bytes. Set register_type
10667 instead of register_virtual_type.
10668 (hppa32_register_type, hppa64_register_type): Replace
10669 hppa32_register_virtual_type and hppa64_register_virtual_type.
10670 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10671 (HPPA_FP_REGNUM): Define.
10673 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10675 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10676 (pa_do_registers_info): Delete.
10677 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10678 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10679 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10681 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10682 GDB_TARGET_IS_HPPA code.
10683 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10684 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10685 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10686 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10687 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10688 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10689 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10690 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10691 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10692 (hppa_frameless_function_invocation, hppa64_store_return_value)
10693 (hppa_store_struct_return, hppa64_extract_return_value)
10694 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10695 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10696 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10697 (find_proc_framesize, deposit_21, restore_pc_queue)
10698 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10699 (rp_saved, pc_in_linker_stub): Delete.
10701 Unconditionally enable 64-bit frame and ABI code.
10702 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10703 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10704 push_dummy_frame, fix_call_dummy, push_arguments,
10705 call_dummy_location, extract_return_value, use_struct_convention,
10706 store_return_value, store_struct_return, saved_pc_after_call,
10707 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10708 frame_chain, frame_chain_valid, frameless_function_invocation,
10709 frame_saved_pc, and pop_frame.
10711 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10712 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10713 (hppa_gdbarch_init): Do not set PC_REGNUM.
10715 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10717 * config/alpha/tm-fbsd.h: Remove file.
10718 * config/alpha/fbsd.mt: Tweak comment.
10719 (TM_FILE): Set to tm-alpha.h.
10721 2004-03-05 Andrew Cagney <cagney@redhat.com>
10723 * infrun.c (step_over_function): When non-legacy code, and no
10724 step_frame_id, use the unwinder to get the caller's frame ID.
10726 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10728 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10729 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10730 bfd_arch_unknown. Adjust comment.
10732 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10733 * i386obsd-tdep.c: Correct spelling in comment.
10734 * i386nbsd-tdep.c: Correct spelling in comment.
10735 * sparc-tdep.c: Correct spelling in comments.
10737 2004-03-05 David Carlton <carlton@kealia.com>
10739 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10742 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10744 * sparc-tdep.c: Fix typo in comment.
10746 2004-03-04 J. Brobecker <brobecker@gnat.com>
10748 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10750 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10752 * dwarf2read.c: Add comment describing memory lifetimes.
10753 (struct dwarf2_pinfo): Update comment.
10754 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10755 (read_enumeration, new_symbol): Don't use obsavestring.
10757 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10759 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10760 instead of amd64_fill_fxsave.
10761 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10762 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10764 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10765 Reorganize code a bit.
10767 2004-03-04 Orjan Friberg <orjanf@axis.com>
10769 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10770 when the frame pointer is pushed. Don't set the frame pointer's
10771 address on the stack unless it's actually located there.
10772 Set the SRP's address on the stack correctly when the PC is still in
10774 (cris_return_value): New function.
10775 (cris_gdbarch_init): Clear deprecated store_return_value,
10776 extract_return_value.
10778 2004-03-02 Jim Blandy <jimb@redhat.com>
10780 * stabsread.c (reg_value_complaint): The maximum register number
10781 is one less than the number of registers.
10783 2004-03-02 Andrew Cagney <cagney@redhat.com>
10785 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10786 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10787 trailing comma and redundant assignment of I386_ST0_REGNUM.
10788 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10789 32-bit segment registers.
10791 2004-03-01 Andrew Cagney <cagney@redhat.com>
10793 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10794 use frame_relative_level and get_next_frame.
10796 2004-02-29 Andrew Cagney <cagney@redhat.com>
10798 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10799 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10800 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10803 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10805 * inflow.c (terminal_inferior): Don't give up the terminal if we
10806 previously couldn't get the inferior's terminal state.
10808 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10810 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10813 2004-02-28 Andrew Cagney <cagney@redhat.com>
10815 * NEWS: Refer to GDB 6.1.
10816 * README: Refer to GDB 6.1.
10817 * PROBLEMS: Refer to GDB 6.1.
10819 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10821 * thread-db.c (disable_thread_signals): Remove unused function.
10823 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10825 * amd64-nat.c: Include "gdb_string.h".
10826 (amd64_collect_native_gregset): Zero-extend the 32-bit
10827 general-purpose registers and %eip.
10829 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10830 * amd64-tdep.c (amd64_collect_fxsave): New function.
10831 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10833 * i387-tdep.h: Update copyright year.
10834 (i387_collect_fxsave): New prototype.
10835 * i387-tdep.c: Update copyright year.
10836 (i387_collect_fxsave): New function containing most of the code
10837 from i387_fill_fxsave.
10838 (i387_fill_fxsave): Call i387_collect_fxsave.
10840 2004-02-28 Andrew Cagney <cagney@redhat.com>
10842 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10843 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10845 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10847 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10849 2004-02-28 Andrew Cagney <cagney@redhat.com>
10851 * utils.c: Use "", instead of <>, to include readline.
10852 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10853 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10854 * source.c, solib.c, exec.c, event-top.c: Ditto.
10855 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10856 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10857 * Makefile.in: Update all dependencies.
10858 (readline_tilde_h, readline_history_h): Define.
10859 (readline_headers): Delete.
10861 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10863 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10864 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10865 "config/i386/tm-lx64.h".
10867 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10868 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10869 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10871 2004-02-28 Andrew Cagney <cagney@redhat.com>
10873 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10875 * breakpoint.c (_initialize_breakpoint): Use
10876 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10877 Add help to show command.
10879 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10881 * i386-nat.c: Reformat to be closer to coding standards.
10882 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10883 `retval'. Make variables `align' and `size' local to while-loop.
10884 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10885 (_initialize_i386_nat): New prototype.
10887 * tui/tui.c: Include <readline/readline.h> instead of
10888 "readline/readline.h". Include it after <term.h> and
10891 2004-02-27 Andrew Cagney <cagney@redhat.com>
10893 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10894 the new frame unwind code.
10895 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10896 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10899 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10900 "return_value" and "push_dummy_call".
10901 (hppa32_use_struct_convention): Delete unused function.
10902 (hppa32_store_return_value): Delete unused function.
10903 (hppa32_extract_return_value): Delete unused function.
10904 (hppa32_stack_align): Delete function.
10906 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10908 * coffread.c (enter_linenos): Don't let rawptr reference memory
10909 outside linetab[]'s limits.
10911 2004-02-27 Andrew Cagney <cagney@redhat.com>
10913 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10914 inferior stack space - the stack needs to grow upwards.
10915 (hppa32_frame_align): New function.
10916 (hppa64_frame_align): Replace hppa_frame_align.
10917 (hppa_gdbarch_init): Update.
10919 2004-02-26 Orjan Friberg <orjanf@axis.com>
10921 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10922 (dwarf2-frame.h): Include.
10923 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10924 Remove static variables related to ABI setting.
10925 (struct gdbarch_tdep): Remove cris_abi member.
10926 (struct frame_extra_info): Remove.
10927 (cris_unwind_cache, stack_item): New structs.
10928 (cris_frame_unwind, cris_frame_base): New variables.
10929 (push_stack_item, pop_stack_item)
10930 (cris_frame_unwind_cache, cris_frame_this_id)
10931 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10932 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10933 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10934 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10935 (cris_reg_struct_has_addr): New functions.
10936 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10937 (cris_frame_saved_pc, cris_saved_pc_after_call,
10938 (cris_store_struct_return, cris_frameless_function_invocation)
10939 (cris_pop_frame, cris_skip_prologue_main)
10940 (cris_abi_original_store_return_value)
10941 (cris_abi_v2_store_return_value)
10942 (cris_abi_original_extract_return_value)
10943 (cris_abi_v2_extract_return_value)
10944 (cris_abi_original_reg_struct_has_addr)
10945 (cris_abi_v2_reg_struct_has_addr)
10946 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10947 (cris_push_return_address, cris_abi_update): Remove.
10948 (_initialize_cris_tdep): Remove ABI command.
10949 (cris_dump_tdep): Ditto.
10950 (cris_gdbarch_init): Remove ABI command.
10951 Set store_return_value, extract_return_value, push_dummy_code,
10952 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10953 frame_unwind_append_sniffer, frame_base_set_default.
10954 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10955 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10956 sizeof_call_dummy_words, get_saved_register, push_return_address,
10957 pop_frame, store_struct_return, frame_init_saved_regs,
10958 init_extra_frame_info, frameless_function_invocation, frame_chain,
10959 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10962 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10964 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10965 * valprint.c (print_hex_chars): Change from static to external.
10966 (print_char_chars): New function.
10967 * printcmd.c (print_scalar_formatted): For integer and enum types
10968 that are longer than LONGEST, perform processing via appropriate
10969 print_*_chars routines.
10971 2004-02-26 Andrew Cagney <cagney@redhat.com>
10973 * Makefile.in: Update dependencies.
10974 Changes from Ulrich Weigand,
10975 * s390-tdep.c: Include "dwarf2-frame.h".
10976 (s390_dwarf2_frame_init_reg): New function.
10977 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10978 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10980 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10982 * breakpoint.c (pending_break_support): New setting variable.
10983 (break_command_1): Account for pending_break_support setting
10984 when creating pending breakpoints.
10985 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10986 (_initialize_breakpoint): Add "set breakpoint pending" and
10987 "show breakpoint pending" commands.
10989 2004-02-26 Andrew Cagney <cagney@redhat.com>
10992 * charset.c (backslashable, backslashed, represented): Remove 'e'
10993 from list of escaped characters, not part of ISO-C.
10995 2004-02-25 J. Brobecker <brobecker@gnat.com>
10997 From Peter Schauer <schauer@pdf.de>:
10998 * tui/tui.c: Move system header includes after local includes.
10999 Fixes a build failure on solaris systems.
11001 2004-02-25 J. Brobecker <brobecker@gnat.com>
11003 * configure.in: Refine the previous change.
11004 * configure: Regenerate.
11006 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11008 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11009 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11010 "amd64-tdep.h" instead of "x86-64-tdep.h".
11011 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11012 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11013 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11014 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11015 and "x86-64-tdep.c".
11016 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11017 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11018 and "x86-64-tdep.c".
11019 * amd64bsd-nat.c: Update copyright year.
11020 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11021 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11023 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11025 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11027 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11029 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11031 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11033 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11034 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11035 * Makefile.in (amd64_linux_tdep_h): Renamed from
11036 x86_64_linux_tdep_h.
11037 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11038 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11039 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11040 (amd64obsd-tdep.o): Update dependencies.
11041 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11043 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11045 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11046 amd64-linux-nat.c amd64-linux-tdep.c.
11047 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11048 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11049 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11050 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11051 amd64-tdep.o and amd64-linux-tdep.o.
11052 (TM_FILE): Set to tm-linux64.h.
11053 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11054 (NAT_FILE): Set to nm-linux64.h.
11055 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11056 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11058 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11060 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11063 2004-02-25 Roland McGrath <roland@redhat.com>
11065 * remote.c (remote_protocol_qPart_auxv): New variable.
11066 (init_all_packet_configs): Initialize it.
11067 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11068 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11069 (show_remote_cmd): Call it.
11070 (_initialize_remote): Initialize commands.
11071 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11072 service TARGET_OBJECT_AUXV requests.
11074 2004-02-25 J. Brobecker <brobecker@gnat.com>
11076 * configure.in: Make sure that the wborder function is available.
11077 Otherwise, search for it in the cur_colr library.
11078 * configure: Regenerate.
11080 2004-02-25 Andrew Cagney <cagney@redhat.com>
11082 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11084 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11086 * config/i386/tm-x86-64linux.h: Tweak comments.
11088 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11090 * MAINTAINERS: Add self to write-after-approval list.
11092 2004-02-25 Andrew Cagney <cagney@redhat.com>
11094 PR cli/1566. Problem found, and fix suggested by David Allan.
11095 * cli/cli-script.c (execute_control_command): Unconditionally
11096 install a cleanup. Default "ret" to "invalid_control". Use
11097 "break" instead of "return" to escape from the switch.
11099 2004-02-24 J. Brobecker <brobecker@gnat.com>
11101 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11102 with the lines macro defined in term.h on AiX.
11103 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11104 a collision with the label_width macro defined in term.h on AiX.
11106 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11108 Committed by Kevin Buettner <kevinb@redhat.com>.
11110 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11111 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11112 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11113 instead of ia64_write_pc().
11114 * ia64-linux-tdep.c (regcache.h): Include.
11115 (ia64_linux_write_pc): New function.
11117 2004-02-23 Roland McGrath <roland@redhat.com>
11119 * auxv.c (info_auxv_command): Fix typos in error messages.
11121 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11123 * x86-64-tdep.h: Tweak comment.
11124 (enum amd64_regnum): New.
11125 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11126 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11127 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11128 (X86_64_XMM1_REGNUM): Removed.
11129 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11130 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11131 prototypes for renamed functions.
11132 * x86-64-tdep.c: Fix typo.
11133 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11135 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11136 Use constants from `enum amd64_regnum' for register numbers.
11137 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11138 (amd64_analyze_prologue, amd64_frame_cache,
11139 amd64_sigtramp_frame_cache): Use constants from `enum
11140 amd64_regnum' for register numbers.
11141 (amd64_supply_fpregset): Adjust for renamed functions.
11142 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11143 `enum amd64_regnum' for register numbers.
11144 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11145 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11146 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11147 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11148 (amd64_linux_fill_gregset): Adjust for renamed macros.
11149 (fetch_core_registers): Adjust for renamed functions.
11150 (amd64_linux_init_abi): Adjust for renamed functions.
11151 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11153 * amd64-nat.c: Adjust for renamed macros.
11154 * amd64bsd-nat.c (fetch_inferior_registers)
11155 (store_inferior_registers): Use constants from `enum amd64_regnum'
11156 for register numbers. Adjust for renamed variables.
11157 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11159 (_initialize_amd64fbsd_nat): Use constants from `enum
11160 amd64_regnum' for register numbers.
11161 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11162 `enum amd64_regnum' for register numbers.
11163 (amd64fbsd_init_abi): Adjust for renamed functions.
11164 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11165 `enum amd64_regnum' for register numbers.
11166 (amd64nbsd_init_abi): Adjust for renamed functions.
11167 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11168 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11169 `enum amd64_regnum' for register numbers.
11170 (amd64obsd_init_abi): Adjust for renamed functions.
11171 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11173 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11175 * breakpoint.c (print_one_breakpoint): Do not output spaces
11176 after printing <PENDING> for a pending breakpoint.
11178 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11180 * printcmd.c (print_scalar_formatted): Initialize val_long
11181 to remove compiler warning message.
11183 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11185 * defs.h (nquery, yquery): New prototypes.
11186 * breakpoint.c (break_command_1): Use new nquery interface.
11187 * utils.c (defaulted_query, nquery, yquery): New functions.
11189 2004-02-23 Andrew Cagney <cagney@redhat.com>
11191 * hppa-tdep.c (hppa_frame_align): New function.
11192 (hppa32_push_dummy_call): New function.
11193 (hppa64_push_dummy_call): New function.
11194 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11197 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11198 FIX_CALL_DUMMY when push_dummy_call is available.
11199 (call_function_by_hand, push_dummy_code): Ditto.
11201 2004-02-22 Andrew Cagney <cagney@redhat.com>
11203 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11204 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11205 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11206 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11207 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11208 call_dummy_location to ON_STACK.
11210 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11212 * x86-64-linux-tdep.c: Tweak comment.
11213 (amd64_linux_supply_gregset): Renamed from
11214 x86_64_linux_supply_gresget.
11215 (amd64_linux_fill_gregset): Renamed from
11216 x86_64_linux_fill_gregset.
11217 (fetch_core_registers): Adjust for renamed functions.
11218 (amd64_core_fns): Renamed from x86_64_core_fns.
11219 (amd64_linux_sigtramp_start): Renamed from
11220 x86_64_linux_sigtramp_start.
11221 (amd64_linux_pc_in_sigtramp): Renamed from
11222 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11223 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11224 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11225 (amd64_linux_sigcontext_addr): Renamed from
11226 x86_64_linux_sigcontext_addr.
11227 (amd64_linux_sc_reg_offset): Renamed from
11228 x86_64_linux_sc_reg_offset.
11229 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11230 Adjust for renamed functions and variables.
11231 (_initialize_amd64_linux_tdep): Renamed from
11232 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11234 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11235 Adjust for renamed functions.
11237 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11238 from x86_64_linux_gregset64_reg_offset.
11239 (amd64_linux_gregset32_reg_offset): Rename from
11240 x86_64_linux_gregset64_reg_offset.
11241 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11242 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11243 (amd64_linux_dr_set_control): Renamed from
11244 x86_64_linux_dr_set_control. Adjust for renamed functions.
11245 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11246 Adjust for renamed functions.
11247 (amd64_linux_dr_reset_addr): Renamed from
11248 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11249 (amd64_linux_dr_get_status): Renamed from
11250 x86_64_linux_dr_get_status. Adjust for renamed functions.
11251 (_initialize_amd64_linux_nat): Renamed from
11252 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11254 * config/i386/nm-x86-64linux.h: Update copyright year.
11255 Adjust for renamed functions.
11257 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11258 amd64fbsd_sigtramp_start.
11259 (amd64fbsd_sigtramp_end_addr): Renamed from
11260 amd64fbsd_sigtramp_end.
11261 (amd64fbsd_init_abi): Adjust for renamed variables.
11262 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11264 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11265 amd64fbsd_sigtramp_start.
11266 (amd64fbsd_sigtramp_end_addr): Renamed from
11267 amd64fbsd_sigtramp_end.
11269 2004-02-22 Andrew Cagney <cagney@redhat.com>
11271 * hppa-tdep.c (hppa32_return_value): New function.
11272 (hppa64_return_value): New function.
11273 (hppa_gdbarch_init): Set return_value; keep disabled.
11275 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11276 struct-return and inferior function call methods.
11278 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11280 (struct hppa_frame_cache): Define.
11281 (hppa_frame_cache, hppa_frame_this_id): New functions.
11282 (hppa_frame_prev_register): New function.
11283 (hppa_frame_unwind, hppa_frame_base): New variables.
11284 (hppa_frame_unwind_sniffer): New function.
11285 (hppa_frame_base_address, hppa_unwind_pc): New function.
11286 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11287 sniffer, and frame base sniffer; keep disabled.
11288 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11289 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11291 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11292 to predicates for "seriously old code".
11294 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11297 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11299 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11301 * config/pa/tm-hppa.h: Update copyright.
11302 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11303 (deprecated_init_frame_pc_default): Delete declaration.
11304 (hppa_frame_init_saved_regs): Delete declaration.
11305 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11306 * hppa-tdep.c: Include "arch-utils.h".
11307 (hppa_gdbarch_init): Set deprecated init_frame_pc
11308 and deprecated frame_init_saved_regs.
11309 (hppa_frame_init_saved_regs): Make static.
11311 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11313 Remove old 386BSD support.
11314 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11315 * configure.host: Remove i[34567]86-*-bsd*.
11316 * configure.tgt: Remove i[34567]86-*-bsd*.
11317 * i386b-nat.c: Removed.
11318 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11319 (i386b-nat.o): Remove dependencies.
11321 * config/i386/i386bsd.mh: Removed.
11322 * config/i386/i386bsd.mt: Removed.
11323 * config/i386/nm-i386bsd.h: Removed.
11324 * config/i386/tm-i386bsd.h: Removed.
11325 * config/i386/xm-i386bsd.h: Removed.
11327 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11329 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11330 (amd64fbsd_init_abi): Set link map offsets.
11331 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11332 (amd64nbsd_init_abi): Set link map offsets.
11333 * amd64obsd-tdep.c: Include "solib-svr4.h".
11334 (amd64obsd_init_abi): Set link map offsets.
11335 * i386fbsd-tdep.c: Include "solib-svr4.h".
11336 (i386fbsd_init_abi): Set link map offsets.
11337 * i386nbsd-tdep.c: Include "solib-svr4.h".
11338 (i386nbsdelf_init_abi): Set link map offsets.
11339 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11340 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11341 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11342 solib-legacy.o and core-aout.o. Reformat.
11343 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11344 solib-svr4.o, solib-legacy.o. Reformat.
11345 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11346 * config/i386/nbsdelf.mh: Reformat.
11347 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11348 solib-svr4.o, solib-legacy.o and corelow.o.
11349 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11350 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11351 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11352 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11353 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11354 (TM_FILE): Set to tm-fbsd.h.
11355 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11356 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11358 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11360 (TM_FILE): Set to nm-nbsd.h.
11361 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11362 Simplify shared library support. Don't include "elf/common.h".
11363 (SVR4_SHARED_LIBS): Don't define.
11364 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11366 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11367 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11368 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11369 Don't include "i386/tm-i386.h". Include "solib.h".
11370 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11371 Don't include "i386/tm-i386.h".
11372 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11373 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11374 Include "i386/xm-i386.h".
11375 (HOST_LONG_DOUBLE_FORMAT): Remove.
11377 Fix OpenBSD/i386 sigtramp recognition.
11378 * i386-tdep.h: Update copyright year.
11379 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11380 (i386bsd_sigtramp_end): New prototypes.
11381 (i386fbsd_sigtramp_start_addr): Renamed from
11382 i386fbsd_sigtramp_start.
11383 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11384 (i386obsd_sigtramp_start_addr): Renamed from
11385 i386obsd_sigtramp_start.
11386 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11387 * i386bsd-tdep.c: Update copyright year.
11388 (i386bsd_pc_in_sigtramp): Make public.
11389 * i386fbsd-nat.c: Update copyright year.
11390 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11391 * i386fbsd-tdep.c: Update copyright year.
11392 (i386fbsd_sigtramp_start_addr): Renamed from
11393 i386fbsd_sigtramp_start.
11394 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11395 (i386fbsdaout_init_abi): Adjust for renamed variables.
11396 * i386obsd-nat.c: Update copyright year.
11397 (_initialize_i386obsd_nat): Adjust for renamed variables.
11398 * i386obsd-tdep.c: Include "target.h".
11399 (i386obsd_page_size): New variable.
11400 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11401 (i386obsd_sigtramp_end): New functions.
11402 (i386obsd_sigtramp_start_addr): Renamed from
11403 i386obsd_sigtramp_start.
11404 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11405 (i386obsd_init_abi): Adjust for renamed variables. Set
11406 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11407 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11409 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11410 trampoline change in OpenBSD kernel.
11412 * amd64-nat.c: Update copyright year.
11413 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11414 architecture from REGCACHE.
11416 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11417 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11419 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11421 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11422 i[34567]86-*-openbsd3.[0-3].
11423 * config/i386/obsdaout.mh: New file.
11425 * config/i386/obsd.mh (MH_FLAGS): Remove.
11428 * i386obsd-tdep.c: Update copyright years. Include
11430 (i386obsd_init_abi): Don't set regset_from_core_section here.
11431 (i386obsd_aout_init_abi): New function. Set
11432 regset_from_core_section here.
11433 (i386obsd_elf_init_abi): New function.
11434 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11435 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11436 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11437 (TM_FILE): Set to tm-nbsd.h.
11439 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11442 * solib-svr4.h: Update copyright year.
11443 (svr4_ilp32_fetch_link_map_offsets)
11444 (svr4_lp64_fetch_link_map_offsets): New prototype.
11445 * solib-svr4.c: Update copyright year.
11446 (svr4_ilp32_fetch_link_map_offsets)
11447 (svr4_lp64_fetch_link_map_offsets): New function.
11449 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11451 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11452 to the partial symbol table.
11454 2004-02-20 J. brobecker <brobecker@gnat.com>
11456 * PROBLEMS: Add description of problem documented under gdb/1560.
11458 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11460 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11462 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11464 (amd64obsd_init_abi): Reorder initializations. Use
11465 amd64obsd_r_reg_offset to initialize the general-purpose register
11466 set details. Set regset_from_core_section.
11467 (_initialize_amd64obsd_tdep): Rename from
11468 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11469 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11470 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11472 * NEWS (New native configurations): Mention OpenBSD/alpha.
11473 * configure.tgt: Add alpha*-*-openbsd*.
11474 * configure.host: Add alpha*-*-openbsd*.
11475 * alphanbsd-tdep.c: Update copyright year.
11476 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11478 2004-02-20 Andrew Cagney <cagney@redhat.com>
11481 * configure.tgt: Delete target "none-*-*".
11482 * configure.host: Delete host "none-*-*".
11483 * config/none/none.mh: Delete file.
11484 * config/none/none.mt: Delete file.
11485 * config/none/xm-none.h: Delete file.
11486 * config/none/tm-none.h: Delete file.
11487 * config/none/nm-none.h: Delete file.
11489 2004-02-19 Fred Fish <fnf@redhat.com>
11491 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11492 cache->uses_fp prior to setting it.
11494 2004-02-19 Fred Fish <fnf@redhat.com>
11496 Fix for PR breakpoint/1558.
11497 * sh-tdep.c (IS_JSR): New macro.
11498 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11500 2004-02-19 Jim Blandy <jimb@redhat.com>
11502 * findvar.c (value_from_register): Doc fix.
11504 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11506 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11507 type being greater than sizeof of host's LONGEST. Always use
11508 unpack_long() unless format 'f' chosen.
11510 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11512 Committed by Elena Zannoni <ezannoni@redhat.com>
11514 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11515 contains a symbol wich is the best, non-exact match for the given
11516 pc. Update comments.
11518 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11520 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11521 macro, which was part of the now removed Mach 3 port.
11522 * utils.c (request_quit): Ditto.
11524 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11526 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11527 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11529 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11531 Committed by Mark Kettenis <kettenis@gnu.org>.
11533 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11536 2004-02-18 Andrew Cagney <cagney@redhat.com>
11538 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11539 CONFIG_INSTALL and CONFIG_UNINSTALL.
11540 * configure: Re-generate.
11541 * interps.h (INTERP_TUI): Define.
11542 * Makefile.in: Update dependencies.
11544 (tui-main.o): Specify dependencies.
11545 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11546 * tui/tui-main.c: New file.
11548 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11550 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11551 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11553 * configure.host: Add x86_64-*-openbsd*.
11554 * configure.tgt: Add x86_64-*-openbsd*.
11555 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11557 * tui/tui.c: Don't include <malloc.h>.
11559 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11560 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11563 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11564 static. Remove extraneous whitespace.
11565 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11568 2004-02-17 Jim Blandy <jimb@redhat.com>
11570 * findvar.c (value_from_register): Doc fix.
11572 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11574 Committed by Jim Blandy <jimb@redhat.com>.
11576 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11577 CORE_ADDR as type for selectors. Correct types for GNU run time
11578 message lookup function to use double indirection.
11579 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11580 * objc-lang.h (lookup_child_selector): Adapt prototype.
11582 * s390-nat.c (SUBOFF): New macro.
11583 (supply_gregset, fill_gregset): Use it to handle debugging
11584 of 32-bit exectuables running under a 64-bit kernel.
11585 * s390-tdep.c: Include "solib-svr4.h".
11586 (s390_svr4_fetch_link_map_offset): New function.
11587 (s390x_svr_fetch_link_map_offset): Likewise.
11588 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11589 * Makefile.in (s390-tdep.o): Update dependencies.
11591 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11593 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11594 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11595 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11596 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11597 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11598 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11599 S390_SIGNAL_FRAMESIZE,
11600 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11601 (struct frame_extra_info): Remove.
11602 (s390_memset_extra_info): Remove.
11603 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11604 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11605 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11606 (is_rse): Renamed to ...
11607 (is_rsy): ... this. Support long displacements.
11608 (is_rxe): Renamed to ...
11609 (is_rxy): ... this. Support long displacements.
11610 (compute_x_addr): Support long displacements.
11611 (struct s390_prologue_data): New data type.
11612 (s390_on_stack): Change API to use struct s390_prologue_data.
11613 (s390_store): Reimplement.
11614 (s390_load): New function.
11615 (s390_get_signal_frame_info): Remove.
11616 (s390_get_frame_info): Remove, replace by ...
11617 (s390_analyze_prolog): ... this new function.
11618 (s390_check_function_end): Remove.
11619 (s390_function_start): Remove.
11620 (s390_frameless_function_invokation): Remove.
11621 (s390_is_sigreturn): Remove.
11622 (s390_init_frame_pc_first): Remove.
11623 (s390_init_frame_extra_info): Remove.
11624 (s390_frame_init_saved_regs): Remove.
11625 (s390_frame_saved_pc_nofix): Remove.
11626 (s390_frame_saved_pc): Remove.
11627 (s390_frame_chain): Remove.
11628 (s390_fp_regnum, s390_read_fp): Remove.
11629 (s390_pop_frame_regular, s390_pop_frame): Remove.
11630 (s390_saved_pc_after_call): Remove.
11631 (s390_skip_prologue): Reimplement.
11632 (s390_in_function_epilogue_p): Support long displacements.
11633 (struct s390_unwind_cache): New data structure.
11634 (s390_frame_unwind_cache): New function.
11635 (s390_prologue_frame_unwind_cache): Likewise.
11636 (s390_backchain_frame_unwind_cache): Likewise.
11637 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11638 (s390_frame_unwind): Define.
11639 (s390_frame_sniffer): New function.
11640 (struct s390_pltstub_unwind_cache): New data structure.
11641 (s390_pltstub_frame_unwind_cache): New function.
11642 (s390_pltstub_frame_this_id): Likewise.
11643 (s390_pltstub_frame_prev_register): Likewise.
11644 (s390_pltstub_frame_unwind): Define.
11645 (s390_pltstub_frame_sniffer): New function.
11646 (struct s390_sigtramp_unwind_cache): New data structure.
11647 (s390_sigtramp_frame_unwind_cache): New function.
11648 (s390_sigtramp_frame_this_id): Likewise.
11649 (s390_sigtramp_frame_prev_register): Likewise.
11650 (s390_sigtramp_frame_unwind): Define.
11651 (s390_sigtramp_frame_sniffer): New function.
11652 (s390_frame_base_address, s390_local_base_address): New functions.
11653 (s390_frame_base): Define.
11654 (s390_unwind_pc, s390_unwind_sp): New function.
11655 (s390_push_dummy_call): Use new frame base location.
11656 (s390_unwind_dummy_id): Likewise.
11657 (s390_gdbarch_init): Remove calls to:
11658 set_gdbarch_frameless_function_invocation,
11659 set_gdbarch_deprecated_init_frame_pc,
11660 set_gdbarch_deprecated_frame_chain,
11661 set_gdbarch_deprecated_frame_init_saved_regs,
11662 set_gdbarch_deprecated_pop_frame,
11663 set_gdbarch_deprecated_init_extra_frame_info,
11664 set_gdbarch_deprecated_init_frame_pc_first,
11665 set_gdbarch_deprecated_target_read_fp,
11666 set_gdbarch_deprecated_frame_saved_pc,
11667 set_gdbarch_deprecated_saved_pc_after_call,
11668 set_gdbarch_deprecated_fp_regnum.
11670 set_gdbarch_in_solib_call_trampoline,
11671 frame_unwind_append_sniffer,
11672 frame_base_set_default,
11673 set_gdbarch_unwind_pc,
11674 set_gdbarch_unwind_sp.
11675 * Makefile.in (s390-tdep.o): Update dependencies.
11677 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11678 (S390_STACK_FRAME_OVERHEAD): Remove.
11679 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11680 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11681 (s390_promote_integer_argument): Remove.
11682 (s390_cannot_extract_struct_value_address): Remove.
11683 (s390_use_struct_convention, s390_store_struct_return): Remove.
11684 (s390_extract_return_value, s390_store_return_value): Remove.
11685 (s390_return_value_convention, s390_return_value): New functions.
11686 (is_float_singleton): Handle typedefs.
11687 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11688 Remove, replace by ...
11689 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11690 s390_function_arg_integer): ... these new functions.
11691 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11692 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11693 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11696 set_gdbarch_deprecated_store_struct_return,
11697 set_gdbarch_deprecated_extract_return_value,
11698 set_gdbarch_deprecated_store_return_value,
11699 set_gdbarch_use_struct_convention,
11700 set_gdbarch_extract_struct_value_address,
11701 set_gdbarch_deprecated_pc_in_call_dummy,
11702 set_gdbarch_deprecated_push_arguments,
11703 set_gdbarch_deprecated_save_dummy_frame_tos,
11704 set_gdbarch_deprecated_push_return_address,
11705 set_gdbarch_deprecated_sizeof_call_dummy_words,
11706 set_gdbarch_deprecated_call_dummy_words,
11707 set_gdbarch_deprecated_dummy_write_sp.
11709 set_gdbarch_push_dummy_call,
11710 set_gdbarch_unwind_dummy_id,
11711 set_gdbarch_return_value.
11713 * config/s390/nm-linux.h: Update comments.
11714 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11715 (STOPPED_BY_WATCHPOINT): Redefine.
11716 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11717 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11718 (s390_stopped_by_watchpoint): Likewise.
11719 (watch_area_cnt): Remove.
11720 * s390-nat.c: Update comments.
11721 (watch_area): Remove typedef.
11722 Global replace watch_area by struct watch_area.
11723 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11724 (s390_stopped_by_watchpoint): Remove pid argument,
11725 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11726 (s390_fix_watch_points): Remove pid argument,
11727 use s390_inferior_tid. Recompute area spanned by watchpoints.
11728 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11729 argument. Reimplement.
11731 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11732 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11733 (FETCH_INFERIOR_REGISTERS): Define.
11734 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11736 * config/s390/s390x.mt: Remove.
11737 * config/s390/tm-s390.h: Remove.
11738 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11739 (TARGET_ELF64): Remove.
11740 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11741 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11742 s390*-*-* case; always set gdb_target to s390.
11743 * regformats/reg-s390.dat: Remove control registers.
11744 * regformats/reg-s390x.dat: Likewise.
11745 * s390-tdep.h: New file.
11746 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11747 Include "inferior.h" and "s390-tdep.h".
11748 Remove private definition of offsetof.
11749 (s390_register_u_addr): Remove.
11750 (regmap_gregset, regmap_fpregset): Define.
11751 (supply_gregset, fill_gregset): Reimplement.
11752 (supply_fpregset, fill_fpregset): Likewise.
11753 (s390_inferior_tid): New function.
11754 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11755 (fetch_inferior_registers, store_inferior_registers): Likewise.
11756 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11757 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11758 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11759 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11760 (struct gdbarch_tdep): Define.
11761 (struct s390_register_info): Define.
11762 (s390_register_info): New variable.
11763 (s390_register_name): Reimplement.
11764 (s390_register_type): New function.
11765 (s390_register_raw_size, s390x_register_raw_size): Remove.
11766 (s390_cannot_fetch_register): Remove.
11767 (s390_register_byte): Remove.
11768 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11769 (s390_dwarf_regmap): New variable.
11770 (s390_dwarf_reg_to_regnum): New function.
11771 (s390_stab_reg_to_regnum): Remove.
11772 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11773 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11774 (s390_convert_register_p): Likewise.
11775 (s390_register_to_value, s390_value_to_register): Likewise.
11776 (s390_register_reggroup_p): Likewise.
11777 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11778 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11779 (s390_supply_regset, s390_regset_from_core_section): New functions.
11780 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11781 (S390_FPR_SIZE): Likewise.
11782 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11783 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11784 (S390_NUM_GPRS): Move here from tm-s390.h.
11785 (S390_NUM_FPRS): Likewise.
11786 (s390_in_function_epilogue_p): New function.
11787 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11788 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11789 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11790 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11791 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11793 set_gdbarch_deprecated_max_register_raw_size,
11794 set_gdbarch_deprecated_max_register_virtual_size,
11795 set_gdbarch_deprecated_register_byte,
11796 set_gdbarch_cannot_fetch_register,
11797 set_gdbarch_cannot_store_register,
11798 set_gdbarch_deprecated_register_size,
11799 set_gdbarch_deprecated_register_raw_size,
11800 set_gdbarch_deprecated_register_virtual_size,
11801 set_gdbarch_deprecated_register_virtual_type,
11802 set_gdbarch_deprecated_register_bytes.
11804 set_gdbarch_num_pseudo_regs,
11805 set_gdbarch_register_type,
11806 set_gdbarch_convert_register_p,
11807 set_gdbarch_register_to_value,
11808 set_gdbarch_value_to_register,
11809 set_gdbarch_register_reggroup_p,
11810 set_gdbarch_regset_from_core_section,
11811 set_gdbarch_pseudo_register_read,
11812 set_gdbarch_pseudo_register_write,
11813 set_gdbarch_in_function_epilogue_p.
11814 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11815 (s390_tdep_h): New variable.
11817 2004-02-17 Jim Blandy <jimb@redhat.com>
11819 * findvar.c (value_from_register): If the type has no length, just
11820 return an acceptable value --- don't report an internal error.
11822 * stabsread.c (read_type): If we find any type numbers that are
11823 forward references, complain if the references aren't resolved by
11824 the time we're finished reading.
11825 (cleanup_undefined_types): Make error message more appropriate for
11828 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11830 * Makefile.in (defs_h): Remove dependency on progress_h.
11831 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11833 * main.c (captured_main): Delete use of START_PROGRESS and
11836 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11838 * objfiles.c (terminate_minimal_symbol_table): Add back
11839 initialization of MSYMBOL_TYPE.
11841 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11843 Committed by Andrew Cagney.
11844 * Makefile.in (ia64_tdep_h): New macro.
11845 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11846 (ia64-tdep.o): Likewise.
11847 * ia64-tdep.h: New file.
11848 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11849 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11850 (ia64_aix_sigcontext_register_address): Likewise.
11851 (ia64_linux_getunwind_table): Delete declaration.
11852 * ia64-linux-tdep.c: Likewise.
11854 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11856 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11857 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11858 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11860 2004-02-17 Andrew Cagney <cagney@redhat.com>
11862 * symtab.c (skip_prologue_using_sal): New function.
11863 * symtab.h (skip_prologue_using_sal): Declare.
11864 * frv-tdep.c: Include "symtab.h".
11865 (skip_prologue_using_sal): Delete function.
11866 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11867 * rs6000-tdep.c (refine_prologue_limit): Mention
11868 skip_prologue_using_sal.
11869 * ia64-tdep.c (refine_prologue_limit): Ditto.
11870 * Makefile.in: Update dependencies.
11872 2004-02-16 Andrew Cagney <cagney@redhat.com>
11874 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11875 START_INFERIOR_TRAPS_EXPECTED.
11876 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11877 START_INFERIOR_TRAPS_EXPECTED.
11878 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11880 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11881 macro, moved to "nm-osf.h". Update copyright.
11882 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11885 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11886 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11887 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11888 frameless_look_for_prologue.
11889 * frame.h (legacy_frameless_look_for_prologue): Rename
11890 frameless_look_for_prologue.
11891 * gdbarch.h, gdbarch.c: Re-generate.
11892 * sh64-tdep.c (sh64_gdbarch_init): Update.
11893 * sh-tdep.c (sh_gdbarch_init): Update.
11894 * s390-tdep.c (s390_gdbarch_init): Update.
11895 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11896 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11897 * m68k-tdep.c (m68k_gdbarch_init): Update.
11898 (delta68_frame_args_address): Update.
11899 * m32r-tdep.c (m32r_gdbarch_init): Update.
11900 * hppa-tdep.c (hppa_gdbarch_init): Update.
11901 * h8300-tdep.c (h8300_gdbarch_init): Update.
11902 * frv-tdep.c (frv_gdbarch_init): Update.
11903 (frv_frameless_function_invocation): Update.
11904 * cris-tdep.c (cris_gdbarch_init): Update.
11905 (cris_frameless_function_invocation): Update.
11906 * avr-tdep.c (avr_gdbarch_init): Update.
11907 * arm-tdep.c (arm_gdbarch_init): Update.
11908 * stack.c (frame_info): Update, call predicate.
11909 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11910 * frame.c (legacy_get_prev_frame): Update, call predicate..
11911 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11912 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11913 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11915 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11916 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11917 * vax-tdep.c (vax_gdbarch_init): Ditto.
11919 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11922 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11924 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11927 2004-02-16 Andrew Cagney <cagney@redhat.com>
11929 * tui/tui-windata.c: Include "gdb_string.h".
11930 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11931 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11932 * Makefile.in: Update dependencies.
11934 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11936 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11937 * infrun.c: Include "gdb_assert.h".
11938 (singlestep_ptid, saved_singlestep_ptid)
11939 (stepping_past_singlestep_breakpoint): New variables.
11940 (resume): Set singlestep_ptid. Check for singlestep thread
11942 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11943 (handle_inferior_event): Handle singlestep thread hop.
11945 2004-02-16 Andrew Cagney <cagney@redhat.com>
11947 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11948 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11949 (dwarf2_frame_init_reg): Ditto.
11951 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11952 suggested by Joshua Neuheisel
11954 * configure.in: Always check for curses, including pdcurses.
11955 Warn, instead of error, when no curses are found. Enable TUI when
11956 curses is available.
11957 * configure: Re-generate.
11959 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11961 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11962 sh_sh4_register_convert_to_virtual.
11963 (sh_register_convert_to_raw): Rename from
11964 sh_sh4_register_convert_to_raw.
11965 (sh_pseudo_register_read): Accomodate above name change.
11966 (sh_pseudo_register_write): Ditto.
11968 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11970 * sh-tdep.c (sh_generic_register_name): Remove.
11971 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11973 2004-02-15 Andrew Cagney <cagney@redhat.com>
11975 * configure.in (build_warnings): Add -Wunused-function.
11976 * configure: Re-generate.
11978 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11979 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11981 * procfs.c (procfs_init_inferior): Assume that
11982 START_INFERIOR_TRAPS_EXPECTED is defined.
11983 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11984 * config/ns32k/tm-nbsd.h: Delete file,
11985 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11987 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11988 * config/vax/tm-vax.h: Delete file.
11990 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11991 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11992 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11993 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11994 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11995 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11996 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11998 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12000 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12001 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12002 (struct dwarf2_frame_ops): New.
12003 (dwarf2_frame_default_init_reg): New function, based on
12004 dwarf2_frame_init_reg.
12005 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12006 (dwarf2_frame_init_reg): Call architecture-specific function.
12007 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12008 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12009 instead of dwarf2_frame_data.
12010 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12011 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12013 2004-02-15 Andrew Cagney <cagney@redhat.com>
12015 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12016 register_gdbarch_swap.
12017 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12018 * f-lang.c (_initialize_f_language): Update, use
12019 DEPRECATED_REGISTER_GDBARCH_SWAP.
12020 * remote.c (_initialize_remote): Ditto.
12021 * regcache.c (_initialize_regcache): Ditto.
12022 * parse.c (_initialize_parse): Ditto.
12023 * infrun.c (_initialize_infrun): Ditto.
12024 * mi/mi-main.c (_initialize_mi_main): Ditto.
12025 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12027 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12028 poking .cacheable directly.
12029 * symfile.c (symfile_bfd_open): Ditto.
12031 * Makefile.in: Update all dependencies.
12033 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12034 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12035 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12036 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12037 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12039 2004-02-14 Andrew Cagney <cagney@redhat.com>
12041 * arch-utils.c (legacy_convert_register_p): Check
12042 DEPRECATED_REGISTER_CONVERTIBLE_P.
12043 * findvar.c (value_of_register): Ditto.
12045 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12046 * gdbarch.h, gdbarch.c: Re-generate.
12047 * arch-utils.c (deprecated_register_convertible_not): Delete.
12048 * arch-utils.h (deprecated_register_convertible_not): Delete.
12049 * mi/mi-main.c (get_register): Update. Update copyright.
12050 * infcmd.c (default_print_registers_info): Update.
12052 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12053 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12054 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12055 * gdbarch.h, gdbarch.c: Re-generate.
12056 * frame.c (deprecated_get_next_frame_hack): Delete function.
12057 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12058 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12060 * infcall.c (call_function_by_hand): Update.
12062 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12064 * symfile.c (init_entry_point_info, entry_point_address): Move
12066 * objfiles.c (init_entry_point_info, entry_point_address):..to
12068 * symfile.h (init_entry_point_info, entry_point_address): Remove
12070 * objfiles.h (init_entry_point_info, entry_point_address):Add
12072 * cris-tdep.c: Remove include of symfile.h. Add include of
12074 * infcall.c: Ditto.
12075 * mcore-tdep.c: Ditto.
12076 * mn10300-tdep.c: Ditto.
12077 * sh64-tdep.c: Ditto.
12078 * v850-tdep.c: Ditto.
12079 * arm-tdep.c: Remove include of symfile.h.
12080 * blockframe.c: Ditto.
12081 * coffread.c: Ditto.
12082 * dbxread.c: Ditto.
12083 * dwarf2read.c: Ditto.
12084 * dwarfread.c: Ditto.
12085 * frv-tdep.c: Ditto.
12086 * ia64-tdep.c: Ditto.
12087 * mdebugread.c: Ditto.
12088 * mipsread.c: Ditto.
12089 * rs6000-tdep.c: Ditto.
12090 * s390-tdep.c: Ditto.
12091 * sh-tdep.c: Ditto.
12092 * xstormy16-tdep.c: Ditto.
12093 * gdbarch.sh: Remove include of symfile.h.
12094 * gdbarch.c: Regenerate.
12095 * solib-irix.c (enable_break): Use entry_point_address().
12096 Add comment about include file.
12097 * xcoffread.c: Add comment about include file.
12098 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12099 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12100 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12101 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12102 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12104 2004-02-13 Andrew Cagney <cagney@redhat.com>
12106 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12107 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12109 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12111 2004-02-12 Fred Fish <fnf@redhat.com>
12113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12114 set_gdbarch_store_return_value.
12116 2004-02-12 Andrew Cagney <cagney@redhat.com>
12118 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12119 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12120 (interrupt_query): Ditto.
12121 (ofunc): Delete unused variable.
12122 * cris-tdep.c (cris_abi): Delete unused function.
12123 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12124 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12125 (cris_get_asr_quick_shift_steps): Ditto.
12126 (cris_skip_prologue_frameless_p): Ditto.
12127 * arm-tdep.c (arm_push_return_address): Delete unused function.
12128 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12129 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12130 * s390-tdep.c (s390_function_start): Delete unused function.
12132 2004-02-12 Andrew Cagney <cagney@redhat.com>
12134 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12135 gdbarch.h, gdbarch.c: Re-generate.
12136 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12137 to generic_prologue_frameless_p.
12138 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12139 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12141 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12143 * mips-linux-tdep.c: Include "frame.h".
12144 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12145 (mips_linux_skip_resolver): New functions.
12146 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12147 and set_gdbarch_in_solib_call_trampoline.
12148 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12149 to after set_gdbarch_in_solib_return_trampoline. Only set the
12150 solib hooks to mips16 functions if the OS ABI is unknown.
12151 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12152 including "config/tm-linux.h".
12153 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12154 * Makefile.in (mips-linux-tdep.o): Update.
12156 2004-02-11 David Carlton <carlton@kealia.com>
12158 * linespec.c (decode_compound): Only look for a class symbol when
12159 considering all but the rightmost component.
12161 2004-02-11 Andrew Cagney <cagney@redhat.com>
12163 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12164 abi code are are separatly grouped.
12166 2004-02-11 Andrew Cagney <cagney@redhat.com>
12168 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12169 * gdbarch.h, gdbarch.c: Re-generate.
12170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12171 * v850-tdep.c (v850_gdbarch_init): Update.
12172 * sh64-tdep.c (sh64_gdbarch_init): Update.
12173 * sh-tdep.c (sh_gdbarch_init): Update.
12174 * s390-tdep.c (s390_gdbarch_init): Update.
12175 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12176 * mips-tdep.c (mips_gdbarch_init): Update.
12177 * mcore-tdep.c (mcore_gdbarch_init): Update.
12178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12179 * m32r-tdep.c (m32r_gdbarch_init): Update.
12180 * ia64-tdep.c (ia64_gdbarch_init): Update.
12181 * hppa-tdep.c (hppa_gdbarch_init): Update.
12182 * h8300-tdep.c (h8300_gdbarch_init): Update.
12183 * frv-tdep.c (frv_gdbarch_init): Update.
12184 * d10v-tdep.c (d10v_gdbarch_init): Update.
12185 * cris-tdep.c (cris_gdbarch_init): Update.
12186 * avr-tdep.c (avr_gdbarch_init): Update.
12187 * arm-tdep.c (arm_gdbarch_init): Update.
12188 * alpha-tdep.c (alpha_gdbarch_init): Update.
12190 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12192 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12194 (sh_sh4al_dsp_register_name): Ditto.
12196 2004-02-10 Andrew Cagney <cagney@redhat.com>
12198 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12199 (mips_init_frame_pc_first): Delete function.
12200 (mips_frame_saved_pc): Delete function.
12201 (mips_frame_chain): Delete function.
12202 (mips_init_extra_frame_info): Delete function.
12203 (mips_xfer_register): Delete unused variable "reg".
12204 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12205 (mips_n32n64_return_value): Delete unused variable "reg".
12206 (mips_n32n64_return_value): Delete unused variable "pos".
12207 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12208 (mips_o32_return_value): Delete unused variable "pos".
12209 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12210 (mips_print_fp_register): Delete unused variable "namelen"
12211 (mips_print_fp_register): Delete unused variable "flt2"
12212 (get_frame_pointer): Delete function.
12213 (cached_proc_desc): Delete static variable.
12214 (mips_pop_frame): Delete function.
12215 (mips_find_saved_regs): Delete function.
12216 (mips_get_saved_register): Delete function.
12217 (mips_saved_pc_after_call): Delete function.
12218 (SIGFRAME_BASE): Delete macro.
12219 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12220 (SIGFRAME_PC_OFF): Delete macro.
12221 (SIGFRAME_REGSAVE_OFF): Delete macro.
12222 (mips_dump_tdep): Do not print deleted macro definitions.
12224 2004-02-10 Andrew Cagney <cagney@redhat.com>
12226 * Makefile.in (SFILES): Remove explictly listed tui files.
12227 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12229 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12231 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12232 to use paddr functions to format ia64 addresses and long values.
12233 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12234 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12235 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12236 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12237 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12239 2004-02-10 Andrew Cagney <cagney@redhat.com>
12241 * defs.h: Do not include "tui.h".
12242 * gdb_curses.h: New file.
12243 * tui/tui-hooks.h: New file.
12244 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12245 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12246 (tui_initialize_io): Delete declaration.
12247 (tui_initialize_readline: Delete redundant declaration.
12248 (struct tui_point): Delete definition.
12249 * tui/tui-data.h (struct tui_point): Define.
12250 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12251 * utils.c: Include "tui/tui.h".
12252 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12253 * printcmd.c [TUI]: Include "tui/tui.h".
12254 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12255 * tui/tui-command.c: Include "gdb_curses.h".
12256 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12257 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12258 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12259 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12260 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12261 * Makefile.in: Update all dependencies.
12262 (tui_hooks_h, gdb_curses_h): Define.
12263 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12265 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12267 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12268 auxf2. Add comments about some other rarely used fields.
12270 2004-02-10 Andrew Cagney <cagney@redhat.com>
12272 * Makefile.in (init.c): Fix script removing duplicates. Problem
12273 reported by Peter Schauer.
12275 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12277 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12278 obstack_specify_allocation.
12279 * objfiles.c (allocate_objfile): Ditto.
12280 * solib-sunos.c (solib_add_common_symbols)
12281 (allocate_rt_common_objfile): Ditto.
12282 * symfile.c (reread_symbols): Ditto.
12283 * gdb_obstack.h: Add comment.
12285 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12287 * linespec.c (decode_line_1, locate_first_half)
12288 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12289 commented out code.
12291 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12293 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12296 2004-02-09 Andrew Cagney <cagney@redhat.com>
12298 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12299 fails, try find_pc_section. Fix PR c++/1267.
12300 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12301 instead of find_pc_mapped_section.
12302 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12303 not default to the section containing PC. Fix PR symtab/1519.
12305 2004-02-09 Andrew Cagney <cagney@redhat.com>
12307 * Makefile.in (mips-tdep.o): Update dependencies.
12308 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12310 (mips_unwind_pc): Return the pseudo PC register.
12311 (mips_unwind_dummy_id): New function.
12312 (mips16_fetch_instruction): New function.
12313 (mips32_fetch_instruction): New function.
12314 (struct mips_frame_cache): Define.
12315 (mips_mdebug_frame_cache): New function.
12316 (mips_mdebug_frame_this_id): New function.
12317 (mips_mdebug_frame_prev_register): New function.
12318 (mips_mdebug_frame_unwind): Define.
12319 (mips_mdebug_frame_sniffer): New function.
12320 (mips_mdebug_frame_base_address): New function.
12321 (mips_mdebug_frame_base): Define.
12322 (mips_mdebug_frame_base_sniffer): New function.
12323 (mips_gdbarch_init): Append unwind and base sniffers. Set
12326 2004-02-08 Andrew Cagney <cagney@redhat.com>
12328 * frame.c: Print both the register number and name.
12330 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12331 and a sed into a single sed. Make .c and .o patterns more robust.
12333 (INIT_FILES): Replace OBS with COMMON_OBS.
12334 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12336 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12338 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12339 the PT_WCOOKIE request.
12341 2004-02-08 Andrew Cagney <cagney@redhat.com>
12343 * mips-tdep.c (mips_unwind_pc): New function.
12344 (mips_gdbarch_init): Set mips_unwind_pc.
12346 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12347 (get_frame_id): Allow the UNKNOWN_FRAME.
12348 (frame_register_unwind, get_frame_type): Ditto.
12350 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12351 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12352 unwind_dummy_id indicates a legacy frame.
12354 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12355 * configure: Re-generate.
12357 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12360 2004-02-08 Andrew Cagney <cagney@redhat.com>
12362 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12364 * configure: Re-generate.
12365 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12366 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12367 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12368 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12369 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12370 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12371 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12372 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12373 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12374 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12376 2004-02-07 Andrew Cagney <cagney@redhat.com>
12378 * Makefile.in: Update all dependencies.
12380 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12381 * configure: Re-generate.
12382 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12383 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12384 (COMMON_OBS): Add "main.o" and "annotate.o".
12385 (ANNOTATE_OBS): Delete.
12386 (OBS): Remove ANNOTATE_OBS.
12387 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12389 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12390 against CONFIG_OBS and "main.o".
12391 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12392 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12394 * tui/tui-command.c: Include "gdb_string.h", delete register
12395 attribute, use ISO-C function signatures.
12396 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12397 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12398 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12399 * tui/tui.c: Ditto.
12401 * tui/tui-command.c: Change variable and function names to lower
12403 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12404 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12405 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12406 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12407 * tui/tui-winsource.c, tui/tui.c: Ditto.
12409 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12411 * buildsym.c (free_pending_blocks, finish_block)
12412 (record_pending_block, make_blockvector, end_symtab): Replace
12413 symbol_obstack with objfile_obstack.
12414 * coffread.c (process_coff_symbol, coff_read_struct_type)
12415 (coff_read_enum_type): Ditto.
12416 * cp-namespace.c (initialize_namespace_symtab)
12417 (check_one_possible_namespace_symbol): Ditto.
12418 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12419 (dwarf2_symbol_mark_computed): Ditto.
12420 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12421 * elfread.c (elf_symtab_read): Ditto.
12422 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12423 (hpread_read_enum_type, hpread_read_function_type)
12424 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12426 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12427 (java_link_class_type): Ditto.
12428 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12429 (new_symbol): Ditto.
12430 * minsyms.c (install_minimal_symbols): Ditto.
12431 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12432 (terminate_minimal_symbol_table): Replace symbol_obstack with
12434 (free_objfile): Remove freeing of symbol_obstack.
12435 * objfiles.h: Remove symbol_obstack field.
12436 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12438 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12440 (solib_add_common_symbols): Replace symbol_obstack with
12442 * somsolib.c (som_solib_add): Ditto.
12443 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12444 (common_block_start, common_block_end): Ditto.
12445 * symfile.c (reread_symbols): Remove freeing and init of
12447 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12448 * symfile.h: Update comment.
12449 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12451 * symtab.c (symbol_set_names): Replace symbol_obstack with
12453 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12455 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12456 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12459 2004-02-07 Andrew Cagney <cagney@redhat.com>
12461 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12462 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12463 fields and variables.
12464 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12465 (m_beInvisible): Delete macro.
12466 * tui/tui-data.h: Fix case case fields and variables.
12467 (m_genWinPtrIsNull): Delete macro.
12468 (tui_win_list): Rename winList.
12469 (TUI_SRC_WIN): Rename srcWin.
12470 (TUI_DISASM_WIN): Rename disassemWin.
12471 (TUI_DATA_WIN): Rename dataWin.
12472 (TUI_CMD_WIN): Rename cmdWin.
12473 (m_genWinPtrNotNull): Delete macro.
12474 (m_winPtrIsNull): Delete macro.
12475 (m_winPtrNotNull): Delete macro.
12476 (tui_win_is_source_type): Replace m_winIsSourceType
12477 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12478 (tui_win_has_locator): Replace m_hasLocator.
12479 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12480 m_setWinHighlightOff.
12481 * tui/tui-data.c: Update references.
12482 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12483 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12484 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12485 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12486 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12487 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12488 * tui/tui-winsource.c, tui/tui.c: Ditto.
12490 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12492 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12493 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12496 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12497 variable `i6' to `i7'.
12498 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12500 2004-02-07 Andrew Cagney <cagney@redhat.com>
12502 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12503 (TuiPoint, TuiPointPtr): Ditto.
12504 (TuiStatus, TuiStatusPtr): Ditto.
12505 (TuiWinType, TuiWinTypePtr): Ditto.
12506 (struct tui_point): Rename _TuiPoint.
12507 (tui_get_low_disassembly_address): Rename
12508 tuiGetLowDisassemblyAddress.
12509 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12510 (tuiFree): Delete declaration.
12511 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12512 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12513 * tui/tui.c (tuiFree): Delete function.
12514 * cli/cli-cmds.c (disassemble_command): Update references.
12515 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12516 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12517 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12518 * tui/tui-winsource.c: Ditto.
12520 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12522 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12523 coffstab_build_psymtabs, elfstab_build_psymtabs)
12524 (stabsect_build_psymtabs): Replace psymbol_obstack with
12526 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12527 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12529 * dwarfread.c (scan_compilation_units): Ditto.
12530 * elfread.c (elfstab_offset_sections): Ditto.
12531 * hppa-tdep.c (read_unwind_info): Ditto.
12532 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12533 (hpread_end_psymtab): Ditto.
12534 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12535 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12537 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12538 * objfiles.c (add_to_objfile_sections)
12539 (build_objfile_section_table): Ditto.
12540 (allocate_objfile): Remove init of psymbol_obstack.
12541 (free_objfile): Remove freeing of psymbol_obstack.
12542 * objfiles.h (struct objfile): Remove field
12543 psymbol_obstack. Update comments.
12544 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12545 psymbol_obstack with objfile_obstack.
12546 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12548 * somread.c (som_symfile_offsets, init_import_symbols)
12549 (init_export_symbols): Replace psymbol_obstack with
12551 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12552 * symfile.c (default_symfile_offsets, syms_from_objfile)
12553 (reread_symbols): Remove freeing and init of psymbol_obstack.
12554 (cashier_psymtab): Update comment.
12555 * symmisc.c (print_objfile_statistics): Don't report stats for
12557 * symtab.h (struct general_symbol_info, struct partial_symtab):
12559 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12560 (xcoff_symfile_offsets): Replace psymbol_obstack with
12563 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12565 * objfiles.h (struct objfile): Add objfile_obstack field.
12566 Remove type_obstack field.
12568 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12569 read_structure_scope read_enumeration, new_symbol): Replace
12570 type_obstack with objfile_obstack.
12571 * dwarfread.c (struct_type, enum_type): Ditto.
12572 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12573 (lookup_fundamental_type): Ditto.
12574 * gdbtypes.h (TYPE_ALLOC): Ditto.
12575 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12576 (hpread_read_doc_function_type, hpread_read_struct_type)
12577 (fix_static_member_physnames, hpread_read_array_type)
12578 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12579 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12580 (java_link_class_type): Ditto.
12581 * mdebugread.c (parse_type): Ditto.
12582 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12583 * solib-sunos.c (solib_add_common_symbols): Ditto.
12584 * stabsread.c (define_symbol, read_type, read_member_functions,
12585 read_cpp_abbrev, read_one_struct_field): Ditto.
12586 * symfile.c (reread_symbols): Ditto.
12587 * symmisc.c (print_objfile_statistics): Ditto.
12589 2004-02-07 Andrew Cagney <cagney@redhat.com>
12591 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12592 (tui_exec_info_content): Rename TuiExecInfoContent.
12593 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12594 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12595 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12596 (TuiList, TuiListPtr): Ditto.
12597 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12598 (TuiDataType, TuiDataTypePtr): Ditto.
12599 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12600 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12601 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12602 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12603 (TuiDataElement, TuiDataElementPtr): Ditto.
12604 (TuiWinElement, TuiWinElementPtr): Ditto.
12605 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12606 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12607 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12608 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12609 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12610 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12611 * tui/tui-command.c, tui/tui-data.c: Update references.
12612 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12613 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12614 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12615 * tui/tui-winsource.c, tui/tui.c: Ditto.
12617 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12619 * dwarf2-frame.h: Update copyright.
12620 (enum dwarf2_frame_reg_rule): New.
12621 (struct dwarf2_frame_state_reg): New.
12622 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12623 * dwarf2-frame.c: Update copyright.
12624 (enum dwarf2_reg_rule): Remove.
12625 (struct dwarf2_frame_state): Remove defenition of `struct
12626 dwarf2_frame_state_reg'.
12627 (read_reg): Call get_frame_arch to get the architecture instead of
12628 using CURRENT_GDBARCH.
12629 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12631 (dwarf2_frame_init_reg): New function.
12632 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12633 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12634 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12635 tags with DWARF2_FRAME_.
12636 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12637 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12638 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12640 2004-02-06 Andrew Cagney <cagney@redhat.com>
12642 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12643 (enum tui_data_type): Rename _TuiDataType.
12644 (struct tui_layout_def): Rename _TuiLayoutDef.
12645 (struct tui_source_element): Rename _TuiSourceElement.
12646 (struct tui_data_element): Rename _TuiDataElement.
12647 (struct tui_command_element): Rename _TuiCommandElement.
12648 (struct tui_locator_element): Rename _TuiLocatorElement.
12649 (union tui_which_element): Define.
12650 (struct tui_win_element): Rename _TuiWinElement.
12651 (struct tui_data_info): Rename _TuiDataInfo.
12652 (struct tui_source_info): Rename _TuiSourceInfo.
12653 (struct tui_command_info): Rename _TuiCommandInfo.
12654 (tui_initialize_static_data): Rename initializeStaticData.
12655 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12656 (tui_alloc_win_info): Rename allocWinInfo.
12657 (tui_init_generic_part): Rename initGenericPart.
12658 (tui_init_win_info): Rename initWinInfo.
12659 (tui_alloc_content): Rename allocContent.
12660 (tui_add_content_elements): Rename addContentElements.
12661 (tui_init_content_element): Rename initContentElement.
12662 (tui_free_window): Rename freeWindow.
12663 (tui_free_win_content): Rename freeWinContent.
12664 (tui_free_data_content): Rename freeDataContent.
12665 (tui_free_all_source_wins_content): Rename
12666 freeAllSourceWinsContent.
12667 (tui_del_window): Rename tuiDelWindow.
12668 (tui_del_data_windows): Rename tuiDelDataWindows.
12669 (tui_partial_win_by_name): Rename partialWinByName.
12670 (tui_win_name): Rename winName.
12671 (tui_current_layout): Rename currentLayout.
12672 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12673 (tui_term_height): Rename termHeight.
12674 (tui_set_term_height_to): Rename setTermHeightTo.
12675 (tui_term_width): Rename termWidth.
12676 (tui_set_term_width_to): Rename setTermWidthTo.
12677 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12678 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12679 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12680 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12681 (tui_source_windows): Rename sourceWindows.
12682 (tui_clear_source_windows): Rename clearSourceWindows.
12683 (tui_clear_source_windows_detail): Rename
12684 clearSourceWindowsDetail.
12685 (tui_clear_win_detail): Rename clearWinDetail.
12686 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12687 (tui_default_tab_len): Rename tuiDefaultTabLen.
12688 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12689 (tui_win_with_focus): Rename tuiWinWithFocus.
12690 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12691 (tui_layout_def): Rename tuiLayoutDef.
12692 (tui_win_resized): Rename tuiWinResized.
12693 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12694 (tui_next_win): Rename tuiNextWin.
12695 (tui_prev_win): Rename tuiPrevWin.
12696 (tui_add_to_source_windows): Rename addToSourceWindows.
12697 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12698 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12699 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12700 * tui/tui.c, tui/tui-data.c: Ditto.
12701 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12702 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12704 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12705 (struct symtab): Declare.
12706 (tui_set_source_content): Rename tuiSetSourceContent.
12707 (tui_show_symtab_source): Rename tuiShowSource.
12708 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12709 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12710 * tui/tui-source.c: Update copyright. Update references.
12711 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12712 * tui/tui-stack.c: Update references.
12714 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12715 (struct tui_win_info): Declare.
12716 (tui_scroll_forward): Rename tuiScrollForward.
12717 (tui_scroll_backward): Rename tuiScrollBackward.
12718 (tui_scroll_left): Rename tuiScrollLeft.
12719 (tui_scroll_right): Rename tuiScrollRight.
12720 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12721 (tui_resize_all): Rename tuiResizeAll.
12722 (tui_refresh_all_win): Rename tuiRefreshAll.
12723 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12724 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12725 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12726 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12728 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12729 (tui_erase_data_content): Rename tuiEraseDataContent.
12730 (tui_display_all_data): Rename tuiDisplayAllData.
12731 (tui_check_data_values): Rename tuiCheckDataValues.
12732 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12733 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12734 (tui_first_data_element_no_in_line): Rename
12735 tuiFirstDataElementNoInLine.
12736 (tui_delete_data_content_windows): Rename
12737 tuiDeleteDataContentWindows.
12738 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12739 (tui_display_data_from): Rename tuiDisplayDataFrom.
12740 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12741 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12742 * tui/tui-win.c, tui/tui-regs.c: Update references.
12743 * tui/tui-layout.c, tui/tui.c: Update references.
12745 * tui/tui-wingeneral.h: Update copyright.
12746 (m_allBeVisible): Delete macro.
12747 (m_allBeInvisible): Delete macro.
12748 (struct tui_gen_win_info): Declare.
12749 (struct tui_win_info): Declare.
12750 (tui_unhighlight_win): Rename unhighlightWin.
12751 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12752 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12753 (tui_make_window): Rename makeWindow.
12754 (tui_copy_win): Rename copyWin.
12755 (tui_box_win): Rename boxWin.
12756 (tui_highlight_win): Rename highlightWin.
12757 (tui_check_and_display_highlight_if_needed): Rename
12758 checkAndDisplayHighlightIfNeeded.
12759 (tui_refresh_all): Rename refreshAll.
12760 (tui_delete_win): Rename tuiDelwin.
12761 (tui_refresh_win): Rename tuiRefreshWin.
12762 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12763 (tui_make_visible, tui_make_invisible): New functions.
12764 (tui_make_all_visible, tui_make_all_invisible): New functions.
12765 (make_all_visible): Rename makeAllVisible.
12766 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12767 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12768 * tui/tui-windata.c, tui/tui-win.c: Update references.
12769 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12770 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12772 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12774 * proc-api.c (write_with_trace): Initialize local variable to
12775 silence compiler warning.
12777 2004-02-06 Andrew Cagney <cagney@redhat.com>
12779 * tui/tui-source.h: Do not include "defs.h".
12780 (struct tui_win_info): Declare.
12781 (tui_set_source_content_nil): Declare.
12782 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12783 (union tui_line_or_address): Rename _TuiLineOrAddress.
12784 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12785 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12786 (tui_update_source_window_as_is): Rename
12787 tuiUpdateSourceWindowAsIs.
12788 (tui_update_source_windows_with_addr): Rename
12789 tuiUpdateSourceWindowsWithAddr.
12790 (tui_update_source_windows_with_line): Rename
12791 tuiUpdateSourceWindowsWithLine.
12792 (tui_clear_source_content): Rename tuiClearSourceContent.
12793 (tui_erase_source_content): Rename tuiEraseSourceContent.
12794 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12795 (tui_show_source_content): Rename tuiShowSourceContent.
12796 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12797 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12798 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12799 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12800 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12801 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12802 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12803 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12804 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12805 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12806 (struct tui_win_info): Declare.
12807 * tui/tui-stack.c: Update references.
12808 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12809 * tui/tui-win.c, tui/tui-source.c: Ditto.
12810 * tui/tui.c, tui/tui-disasm.c: Ditto.
12812 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12814 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12815 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12817 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12819 * infrun.c (handle_inferior_event): Allow for breakpoint
12820 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12821 and SIGEMT. Update comments.
12822 * NEWS (Revised SPARC target): Mention support for non-executable
12825 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12827 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12828 * inftarg.c: Update copyright year.
12829 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12830 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12831 (sparc_xfer_wcookie): New function.
12832 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12833 * Makefile.in (sparc-nat.o): Update dependencies.
12834 * config/sparc/nm-nbsd.h: Include "target.h".
12835 (NATIVE_XFER_WCOOKIE): New define.
12836 (sparc_xfer_wcookie): New prototype.
12838 2004-02-04 Andrew Cagney <cagney@redhat.com>
12840 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12841 SYSCALL_TRAP function.
12842 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12844 2004-02-04 Andrew Cagney <cagney@redhat.com>
12845 Daniel Jacobowitz <drow@mvista.com>
12847 * objfiles.h: Delete comments refering to inside_entry_func and
12848 DEPRECATED_FRAME_CHAIN_VALID.
12849 * defs.h (inside_entry_func): Update prototype..
12850 * blockframe.c (inside_entry_func): Rename to
12851 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12852 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12854 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12856 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12857 outside of #ifdef SOLIB_ADD region.
12858 (do_restore_lang_radix_cleanup): Ditto.
12859 (resolve_pending_breakpoint): Ditto.
12861 2004-02-03 Andrew Cagney <cagney@redhat.com>
12863 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12864 (process_note_abi_tag_sections): Delete unused function.
12865 (ia64_read_fp): Delete unused function.
12866 (gdbarch_extract_struct_value_address): Delete declaration.
12868 2004-02-02 Andrew Cagney <cagney@redhat.com>
12870 * vax-tdep.c (vax_frame_chain): Delete call to
12871 deprecated_inside_entry_file.
12872 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12874 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12876 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12877 column that's "empty" or "same value" when eliminating REG_RA
12880 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12882 * NEWS: Add information about new pending breakpoint support.
12884 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12886 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12887 and pending fields for pending breakpoint support.
12888 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12889 (condition_command): Only parse condition if not a pending
12891 (print_one_breakpoint): Add support for pending breakpoints.
12892 (describe_other_breakpoints): Add checks to verify we are not
12893 dealing with pending breakpoints.
12894 (check_duplicates): Don't check pending breakpoints.
12895 (set_raw_breakpoint): Initialize pending flag.
12896 (do_restore_lang_radix_cleanup): New cleanup routine.
12897 (resolve_pending_breakpoint): New function.
12898 (re_enable_breakpoints_in_shlibs): Try and resolve any
12899 pending breakpoints via resolve_pending_breakpoint.
12900 (mention): Add pending breakpoint support.
12901 (parse_breakpoint_sals): Add new parameter to pass to
12902 decode_line_1 to indicate silent errors when files or functions
12903 are not found. Change all callers.
12904 (do_captured_parse_breakpoint): New function.
12905 (break_command_1): Change prototype to return an rc value and to
12906 take an optional pending breakpoint pointer. Support creating
12907 a pending breakpoint if a "not found" form of error occurs when
12908 parsing the breakpoint. Also support resolving an existing pending
12909 breakpoint and be silent if the resolution fails.
12910 (create_breakpoints): Change prototype to take pending breakpoint
12911 pointer. When resolving a pending breakpoint, use the new pointer
12912 to provide a conditional or commands added by the end-user.
12913 (delete_breakpoint): Add appropriate check for pending.
12914 (breakpoint_re_set_one): Ditto.
12915 (do_enable_breakpoint): Ditto.
12917 2004-02-02 David Carlton <carlton@kealia.com>
12919 * valops.c (enum oload_classification): New.
12920 (find_overload_match): Break implementation into separate
12921 functions; delete #if 0'd code; look for symbols within
12923 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12924 (find_oload_champ,oload_method_static,classify_oload_match): New.
12925 * cp-support.h: Add declaration for cp_func_name; update
12926 declaration for make_symbol_overload_list.
12927 * cp-support.c (cp_func_name): New.
12928 (overload_list_add_symbol): Fix comment, use
12929 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12930 (make_symbol_overload_list): Take a function name and a namespace
12931 instead of a symbol; change implementation.
12932 (make_symbol_overload_list_using): New.
12933 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12935 2004-02-02 Fred Fish <fnf@redhat.com>
12937 * main.c (gdb_stdtarg): Move definition to group with other
12938 gdb_stdtarg definitions and update copyright years.
12939 * remote-sim.c (gdb_os_write_stderr): Write output to
12940 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12941 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12942 gdb_stderr stream and update copyright years.
12944 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12946 * Makefile.in (mips-linux-nat.o): Update dependencies.
12947 * mips-linux-nat.c: Include mips-tdep.h.
12949 2004-02-01 Roland McGrath <roland@redhat.com>
12951 * sol-thread.c (sol_thread_xfer_partial): New function.
12952 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12953 (init_sol_core_ops): Likewise.
12955 * procfs.c (procfs_xfer_partial): New function.
12956 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12957 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12959 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12960 procfs_xfer_auxv function.
12962 * procfs.c (procfs_make_note_section): If we can read
12963 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12964 * linux-proc.c (linux_make_note_section): Likewise.
12966 * auxv.h: New file.
12967 * auxv.c: New file.
12968 * Makefile.in (auxv_h): New variable.
12969 (COMMON_OBS): Add auxv.o here.
12970 (auxv.o): New target.
12972 * corelow.c (core_xfer_partial): New function.
12973 (init_core_ops): Use it for core_ops.to_xfer_partial.
12975 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12976 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12977 macro if that is defined.
12979 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12981 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12982 and check the specified thread for each breakpoint.
12983 * breakpoint.h (bpstat_stop_status): Update prototype.
12984 * infrun.c (handle_inferior_event): Update calls to
12985 bpstat_stop_status.
12987 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12989 * Makefile.in (cli-cmds.o): Add $(readline_h).
12991 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12993 * cli/cli-cmds.c: Include readline.h.
12994 (complete_command): Pass the start of the last word to
12997 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12999 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13000 argument, and change first argument to a CORE_ADDR.
13001 * breakpoint.h (bpstat_stop_status): Update prototype.
13002 * infrun.c (adjust_pc_after_break): Add a new comment.
13003 (handle_inferior_event): Update calls to bpstat_stop_status.
13005 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13007 * breakpoint.h: Update copyright years.
13009 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13011 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13012 (bpstat_stop_status): Don't decrement PC.
13013 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13015 * infrun.c (adjust_pc_after_break): New function.
13016 (handle_inferior_event): Call it, early. Remove later references
13017 to DECR_PC_AFTER_BREAK.
13018 (normal_stop): Add commentary.
13020 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13022 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13023 2004-01-27 double-free fix.
13025 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13027 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13028 (sparc32_frame_prev_register): Handle StackGhost.
13029 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13031 2004-01-29 Roland McGrath <roland@redhat.com>
13033 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13034 * configure: Regenerated.
13036 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13037 * Makefile.in (procfs.o): Add dep.
13039 2004-01-28 Andrew Cagney <cagney@redhat.com>
13041 * tui/tui-stack.h: Update copyright.
13042 (struct frame_info): Add opaque declaration.
13043 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13044 (tui_show_locator_content): Rename tuiShowLocatorContent.
13045 (tui_show_frame_info): Rename tuiShowFrameInfo.
13046 * tui/tui-stack.c: Update copyright. Update references.
13047 * tui/tui-winsource.c: Update references.
13048 * tui/tui-win.c: Update references.
13049 * tui/tui-layout.c: Update references.
13050 * tui/tui-hooks.c: Update copyright, update references.
13051 * tui/tui.c: Update copyright, update references.
13052 * tui/tui-disasm.c: Update references.
13054 2004-01-28 David Carlton <carlton@kealia.com>
13056 * dwarf2read.c (add_partial_structure): Use demangled name if
13057 namespace equals "".
13059 2004-01-27 Jim Blandy <jimb@redhat.com>
13061 Clean up misapplied patch:
13062 * dwarf2read.c (determine_prefix): Change one of the two forward
13063 declarations for 'determine_prefix_aux' to a declaration for this.
13064 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13065 argument to 'die_specification'.
13067 * dwarf2read.c (read_func_scope): Re-indent comment.
13069 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13071 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13072 b->exp to NULL after freeing so that error during re-parsing or
13073 evaluation of expressions associated with breakpoint don't
13074 eventually lead to re-freeing of storage.
13075 Committed by Andrew Cagney.
13077 2004-01-27 Andrew Cagney <cagney@redhat.com>
13079 * source.c (ambiguous_line_spec): Delete undefined declaration.
13080 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13081 (m32r_set_server_address, m32r_set_download_path): Ditto.
13082 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13084 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13086 * dwarf2read.c: Update calls to changed and renamed functions, and
13087 references to moved variables.
13089 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13090 language, language_defn, list_in_scope, and ftypes members.
13091 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13092 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13093 (baseaddr): Remove globals.
13095 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13096 (set_cu_language, die_is_declaration, die_specification)
13097 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13098 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13099 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13100 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13102 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13103 cu.list_in_scope. Don't initialize cu_header_offset.
13104 (add_partial_symbol): Add local baseaddr.
13105 (psymtab_to_symtab_1): Add local baseaddr. Use
13106 objfile->section_offsets for consistency. Don't initialize
13107 cu_header_offset; do initialize cu.header.offset and
13109 (read_file_scope, read_func_scope, read_lexical_block_scope)
13110 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13112 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13114 * PROBLEMS: Add gdb/1516.
13116 2003-12-29 Robert Millan <robertmh@gnu.org>
13118 Patch committed by Andrw Cagney.
13119 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13120 * configure.tgt: Match knetbsd*-gnu.
13122 2004-01-26 Andrew Cagney <cagney@redhat.com>
13124 * breakpoint.c (catch_command_1): Delete #ifdef code.
13125 (catch_fork_command_1): Delete #ifdef wrapper.
13126 (catch_exec_command_1): Ditto.
13127 (catch_load_command_1): Ditto.
13128 (catch_unload_command_1): Ditto.
13130 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13131 (catch_breakpoint): Delete #if0ed function.
13132 (disable_catch_breakpoint): Ditto.
13133 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13134 (disable_catch, enable_catch, delete_catch): Ditto.
13136 2004-01-26 Andrew Cagney <cagney@redhat.com>
13138 * remote.c (echo_check, quit_flag): Delete variables.
13139 (cisco_kernel_mode): Delete variable.
13140 (minitelnet_return, tty_input, escape_count): Delete variables.
13141 (remote_cisco_mode): Delete variable.
13142 (remote_cisco_open, remote_cisco_close): Delete function.
13143 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13144 (init_remote_cisco_ops): Delete function.
13145 (_initialize_remote): Do not install "remote cisco" code.
13146 (read_frame): Delete cisco specific code.
13147 (remote_info_process): Delete function.
13148 (remote_wait): Delete cisco specific code.
13149 (remote_cisco_section_offsets): Delete function.
13150 (remote_cisco_objfile_relocate): Delete function.
13151 (remote_async_wait): Delete cisco specific code.
13152 (minitelnet, readtty, readsocket): Delete function.
13154 2004-01-26 Andrew Cagney <cagney@redhat.com>
13156 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13157 comments mentioning extract_returned_value_address.
13158 * infcmd.c (print_return_value): Update. Add comments on
13159 extract_returned_value_address.
13160 * stack.c (return_command): Add comments on
13161 extract_returned_value_address.
13162 * values.c: Update comment.
13163 * m32r-tdep.c: Update comment.
13164 * sparc-tdep.c: Update comment.
13165 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13166 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13167 * sh64-tdep.c (sh64_gdbarch_init): Update.
13168 * sh-tdep.c (sh_gdbarch_init): Update.
13169 * s390-tdep.c (s390_gdbarch_init): Update.
13170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13171 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13172 * m68k-tdep.c (m68k_gdbarch_init): Update.
13173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13174 * m32r-tdep.c (m32r_gdbarch_init): Update.
13175 * ia64-tdep.c (ia64_gdbarch_init): Update.
13176 * h8300-tdep.c (h8300_gdbarch_init): Update.
13177 * frv-tdep.c (frv_gdbarch_init): Update.
13178 * arm-tdep.c (arm_gdbarch_init): Update.
13179 * alpha-tdep.c (alpha_gdbarch_init): Update.
13181 2004-01-26 Andrew Cagney <cagney@redhat.com>
13183 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13184 SYMBOL_LOCATION_FUNCS
13185 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13186 "struct symbol_ops".
13187 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13188 type to "struct symbol_ops".
13189 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13190 (struct symbol): Replace ".aux_value.loc.funcs" and
13191 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13192 (SYMBOL_OBJFILE): Delete macro.
13193 (SYMBOL_LOCATION_FUNCS): Delete macro.
13194 (SYMBOL_LOCATION_BATON): Update.
13195 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13196 intead of SYMBOL_LOCATION_FUNCS.
13197 * ax-gdb.c (gen_var_ref): Ditto.
13198 * printcmd.c (address_info): Ditto.
13199 * findvar.c (read_var_value): Ditto.
13200 (symbol_read_needs_frame): Ditto.
13202 2004-01-26 Andrew Cagney <cagney@redhat.com>
13204 * dwarf2read.c (read_func_scope): Document frame-base hack.
13206 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13208 * infcmd.c (print_return_value): Plug memory leak; delete
13209 ui_stream object. Rename argument `structure_return' to
13212 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13214 * infcmd.c (print_return_value): Wrap long lines.
13215 (finish_command_continuation, finish_command): Remove unused
13216 variable `funcaddr'. Fix some coding-standards problems.
13218 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13219 SECT_SIZE is large enough, not whether it's exactly the right size.
13220 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13221 TDEP->fpregset to zero.
13223 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13224 floating-point registers for traditional NetBSD core files.
13225 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13226 TDEP->sizeof_fpregset here.
13228 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13230 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13231 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13232 function with code split out from
13233 sparc32nbsd_sigcontext_frame_cache.
13234 (sparc32nbsd_sigcontext_frame_cache): Use
13235 sparc32nbsd_sigcontext_saved_regs.
13236 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13238 * sparcobsd-tdep.c: New file.
13239 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13240 (sparcobsd-tdep.o): New dependency.
13241 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13242 * config/sparc/obsd.mt: New file.
13244 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13245 TDEP->fpregset to be initialized to enable core file register
13248 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13250 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13251 Add opaque declarations.
13252 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13253 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13254 function with code split out from
13255 sparc64nbsd_sigcontext_frame_cache.
13256 (sparc64nbsd_sigcontext_frame_cache): Use
13257 sparc64nbsd_sigcontext_saved_regs.
13258 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13260 * sparc64obsd-tdep.c: New file.
13261 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13262 (sparc64obsd-tdep.o): New dependency.
13263 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13264 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13265 * config/sparc/obsd64.mt: New file.
13267 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13268 read the instruction at PC.
13270 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13271 value of GDB_OSABI_DEFAULT.
13272 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13273 instead of GDB_OSABI_NETBSD_AOUT.
13275 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13277 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13280 2004-01-23 Andrew Cagney <cagney@redhat.com>
13282 * printcmd.c (display_command): Replace tui_set_display call with
13283 tui_set_layout_for_display_command.
13284 * tui/tui.h (enum tui_win_type): Define.
13285 (tui_set_layout): Delete declaration.
13286 (tui_set_layout_for_display_command): Rename set_tui_layout.
13287 * tui/tui-data.h (enum tui_layout_type): Define.
13288 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13290 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13291 (tui_default_win_height): Rename tuiDefaultWinHeight.
13292 (tui_default_win_viewport_height): Rename
13293 tuiDefaultWinViewportHeight.
13294 (tui_set_layout): RenametuiSetLayout.
13295 * tui/tui-layout.c: Update references.
13296 * tui/tui.c: Update references.
13297 * tui/tui-disasm.c: Update references.
13299 2004-01-23 David Carlton <carlton@kealia.com>
13301 Partial workaround for PR c++/1511:
13302 * cp-namespace.c: Include frame.h.
13303 (cp_lookup_transparent_type): New
13304 (cp_lookup_transparent_type_loop): New.
13305 * cp-support.h: Declare cp_lookup_transparent_type.
13306 * symtab.c (basic_lookup_transparent_type): Renamed from
13307 lookup_transparent_type.
13308 (lookup_transparent_type): Replace old body by a call to
13309 current_language->la_lookup_transparent_type.
13310 * symtab.h: Update copyright. Declare
13311 basic_lookup_transparent_type.
13312 * language.h: Update copyright.
13313 (struct language_defn): Add la_lookup_transparent_type.
13314 * language.c: Update copyright.
13315 (unknown_language_defn): Add basic_lookup_transparent_type.
13316 (auto_language_defn): Add basic_lookup_transparent_type.
13317 (local_language_defn): Add basic_lookup_transparent_type.
13318 * ada-lang.c: Update copyright.
13319 (ada_language_defn): Add basic_lookup_transparent_type.
13320 * c-lang.c: Update copyright.
13321 (c_language_defn): Add basic_lookup_transparent_type.
13322 (cplus_language_defn): Add basic_lookup_transparent_type.
13323 (asm_language_defn): Add basic_lookup_transparent_type.
13324 (minimal_language_defn): Add basic_lookup_transparent_type.
13325 * f-lang.c: Update copyright.
13326 (f_language_defn): Add basic_lookup_transparent_type.
13327 * jv-lang.c: Update copyright.
13328 (java_language_defn): Add basic_lookup_transparent_type.
13329 * m2-lang.c: Update copyright.
13330 (m2_language_defn): Add basic_lookup_transparent_type.
13331 * objc-lang.c: Update copyright.
13332 (objc_language_defn): Add basic_lookup_transparent_type.
13333 * p-lang.c: Update copyright.
13334 (p_language_defn): Add basic_lookup_transparent_type.
13335 * scm-lang.c: Update copyright.
13336 (scm_language_defn): Add basic_lookup_transparent_type.
13337 * Makefile.in (cp-namespace.o): Depend on frame.h.
13339 2004-01-23 David Carlton <carlton@kealia.com>
13341 Patch for PR c++/1520:
13342 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13343 properly if we have a specification die.
13344 (determine_prefix_aux): Rename from determine_prefix.
13345 (determine_prefix): Like the old determine_prefix, but never
13348 2004-01-23 Theodore A. Roth <troth@openavr.org>
13350 * avr-tdep.c: Update copyright.
13351 (avr_iaddr_p): Delete unused function.
13352 (avr_saddr_p): Delete unused function.
13354 2004-01-23 David Carlton <carlton@kealia.com>
13356 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13357 Fix for PR symtab/1534.
13359 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13361 * NEWS (New native configurations): Mention OpenBSD/sparc and
13363 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13364 * configure.host: Likewise.
13365 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13366 handler for OpenBSD.
13367 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13369 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13371 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13372 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13374 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13375 * cli/cli-cmds.c (shell_escape): Likewise.
13377 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13378 OpenBSD .note.openbsd.ident sections.
13380 2004-01-22 David Carlton <carlton@kealia.com>
13382 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13383 get_scope_pc_bounds.
13384 (read_file_scope): Ditto.
13385 (get_scope_pc_bounds): New function, produced by extracting code
13386 from the above two functions, consolidating it, and adding support
13387 for DW_TAG_namespace.
13389 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13391 * osabi.c (MAX_NOTESZ): New define.
13392 (check_note): New function.
13393 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13396 2004-01-21 Roland McGrath <roland@redhat.com>
13398 * MAINTAINERS (write after approval): Add myself.
13400 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13402 * utils.c (init_page_info): Move declarations of `rows' and
13403 `cols' before the __GO32__-specific code. Move the closing brace
13404 outside the #ifdef __GO32__..#endif block.
13405 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13407 2004-01-21 Paul Brook <paul@codesourcery.com>
13409 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13410 BPSTAT_WHAT_CHECK_SHLIBS.
13412 2004-01-21 Paul Brook <paul@codesourcery.com>
13414 * MAINTAINERS: Add myself to write-after-approval.
13416 2004-01-20 Andrew Cagney <cagney@redhat.com>
13418 * ax-gdb.c (print_axs_value): Delete unused function.
13419 * jv-lang.c (java_lookup_type): Delete unused function.
13420 * cli/cli-dump.c (dump_filetype): Delete unused function.
13421 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13422 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13423 (mips_getstring): Delete unused function.
13424 (pmon_insert_breakpoint): Delete #if0ed function.
13425 (PMON_MAX_BP): Delete #if0ed MACRO.
13426 (mips_pmon_bp_info): Delete #if0ed variable.
13427 (pmon_remove_breakpoint): Delete #if0ed function.
13428 * monitor.c (monitor_write_even_block): Delete unused function.
13429 (monitor_write_memory_block): Delete #if0ed code.
13430 * dink32-rom.c (dink32_load): Delete unused function.
13431 (_initialize_dink32_rom): Delete #if0ed code.
13432 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13434 * tui/tui-command.c: Update references.
13435 * tui/tui-io.c: Update references.
13436 * tui/tui-command.h: Update copyright.
13437 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13439 * source.c (ambiguous_line_spec): Delete never-defined function.
13440 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13441 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13442 * cli/cli-cmds.c (validate_comname): Ditto.
13444 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13446 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13447 (tui_show_disassem): Rename tuiShowDisassem.
13448 (tui_show_disassem_and_update_source): Rename
13449 tuiVerticalDisassemScroll.
13450 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13451 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13452 * tui/tui.h: Update copyright.
13453 (enum tui_status): Define.
13454 * tui/tui-data.h (enum tui_scroll_direction): Define.
13455 * tui/tui-disasm.c: Update copyright. Update references.
13456 * tui/tui-winsource.c: Update copyright. Update references.
13457 * tui/tui-win.c: Update references.
13458 * tui/tui-layout.c: Update references.
13460 2004-01-20 Andrew Cagney <cagney@redhat.com>
13462 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13463 sym2 to start of block.
13465 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13467 * MAINTAINERS: Delete mmalloc.
13468 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13469 * NEWS: Mention removal of --with-malloc.
13470 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13471 * config.in: Regenerate.
13472 * configure: Regenerate.
13473 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13474 USE_MMALLOC, MMCHECK_FORCE.
13475 * gdbinit.in: Remove mmalloc.
13476 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13477 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13478 * config/i386/go32.mh: Likewise.
13479 * config/i386/interix.mh: Likewise.
13480 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13482 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13484 * linespec.c (decode_variable, symtab_from_filename): Call
13485 error_silent with error message instead of throwing an exception
13487 * defs.h (error_silent, error_output_message): Add prototypes.
13488 (catch_exceptions_with_msg): Ditto.
13489 * utils.c (error_silent, error_output_message): New functions.
13490 * top.c (catch_exceptions_with_msg): New function.
13492 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13494 * mi/mi-cmds.h (enum print_values): Add definition.
13496 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13497 type and value for simple data types and just the name and type
13498 for complex ones, if required.
13500 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13501 children, if required.
13503 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13505 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13506 unused declarations.
13508 2004-01-19 Andrew Cagney <cagney@redhat.com>
13510 * top.h (mapped_symbol_files): Delete declaration.
13511 * main.c (captured_main): Delete option "m" and "mapped".
13512 * objfiles.c (mapped_symbol_files): Delete variable.
13513 * symfile.c (symbol_file_command): Delete mmap code.
13514 (symbol_file_add_with_addrs_or_offsets): Ditto.
13515 (add_symbol_file_command, reread_separate_symbols): Ditto.
13516 * objfiles.h (OBJF_MAPPED): Delete.
13517 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13518 (free_objfile) [USE_MMALLOC]: Ditto.
13519 (open_existing_mapped_file): Delete function.
13520 (open_mapped_file): Delete function.
13521 (map_to_file): Delete function.
13523 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13525 * infrun.c (step_into_function): Account for possible breakpoint
13526 adjustment when computing ``stop_func_start''.
13528 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13530 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13531 the region size against the size of a pointer, not the size of
13532 a register as given by DEPRECATED_REGISTER_SIZE.
13534 2004-01-19 Andrew Cagney <cagney@redhat.com>
13536 * tui/tui-regs.h: Include "tui-data.h".
13537 (tuiFirstRegElementNoInLine): Delete declaration.
13538 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13539 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13540 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13541 (tui_calculate_regs_column_count): Rename
13542 tuiCalculateRegsColumnCount.
13543 (tui_check_register_values): Rename tuiCheckRegisterValues.
13544 (tui_show_registers): Rename tuiShowRegisters.
13545 (tui_display_registers_from_line): Rename
13546 tuiDisplayRegistersFromLine.
13547 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13548 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13549 (tui_first_reg_element_no_inline): Rename
13550 tuiFirstRegElementNoInLine.
13551 * tui/tui-data.h: Update copyright.
13552 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13553 * tui/tui-windata.c: Update copyright, update references.
13554 * tui/tui-regs.c: Update copyright, update references.
13555 * tui/tui-win.c: Update copyright, update references.
13556 * tui/tui-layout.c: Update copyright, update references.
13558 2004-01-18 Andrew Cagney <cagney@redhat.com>
13560 * tui/tui-io.c: Update copyright.
13561 (key_is_end_sequence, key_is_backspace): New functions.
13562 (key_is_command_char, key_is_start_sequence): New function.
13563 (tui_getc): Update references.
13564 * tui/tui-io.h: Update copyright.
13565 (m_tuiStartNewLine): Delete macro.
13566 (m_isBackspace, m_isDeleteChar): Delete macros.
13567 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13568 (m_isNextPage, m_isPrevPage): Delete macros.
13569 (m_isLeftArrow, m_isRightArrow): Delete macros.
13570 (m_isXdbStyleCommandChar): Delete macro.
13571 (key_is_start_sequence): Declare, replace m_isStartSequence.
13572 (key_is_end_sequence): Declare, replace m_isEndSequence.
13573 (key_is_backspace): Declare ,replace m_isBackspace.
13574 (key_is_command_char): Declare, replace m_isCommandChar.
13575 * tui/tui-command.c: Update copyright.
13576 (tuiDispatchCtrlChar): Update references.
13578 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13581 * tui/tui-command.c: Rename tui/tuiCommand.c.
13582 * tui/tui-command.h: Rename tui/tuiCommand.h.
13583 * tui/tui-data.c: Rename tui/tuiData.c.
13584 * tui/tui-data.h: Rename tui/tuiData.h.
13585 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13586 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13587 * tui/tui-io.c: Rename tui/tuiIO.c.
13588 * tui/tui-io.h: Rename tui/tuiIO.h.
13589 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13590 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13591 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13592 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13593 * tui/tui-source.c: Rename tui/tuiSource.c.
13594 * tui/tui-source.h: Rename tui/tuiSource.h.
13595 * tui/tui-stack.c: Rename tui/tuiStack.c.
13596 * tui/tui-stack.h: Rename tui/tuiStack.h.
13597 * tui/tui-win.c: Rename tui/tuiWin.c.
13598 * tui/tui-win.h: Rename tui/tuiWin.h.
13599 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13600 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13601 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13602 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13603 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13604 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13605 * tui/tui-file.c: Update includes.
13606 * tui/tui-hooks.c: Update includes.
13607 * tui/tui-interp.c: Update includes.
13608 * tui/tui.c: Update includes.
13609 * Makefile.in: Update all tui/ dependencies.
13610 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13612 * Makefile.in: Update copyright. Update dependencies.
13614 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13617 2004-01-18 Andrew Cagney <cagney@redhat.com>
13619 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13620 instead of register_gdbarch_init.
13622 * remote-sds.c (tohex): Delete unused function. Update copyright.
13623 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13624 * v850-tdep.c (v850_register_virtual_size): Ditto.
13625 * target.c (normal_target_post_startup_inferior): Ditto.
13626 * source.c (ambiguous_line_spec): Ditto.
13627 * remote.c (adapt_remote_get_threadinfo): Ditto.
13628 * mi/mi-out.c (out_field_fmt): Ditto.
13629 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13630 (output_control_change_notification): Ditto.
13631 * m68k-tdep.c (m68k_register_byte): Ditto.
13632 (m68k_remote_breakpoint_from_pc): Ditto.
13633 * ui-out.c (init_ui_out_state): Delete unused declaration.
13634 * stabsread.c (search_value): Ditto.
13635 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13636 * maint.c (print_section_table): Ditto.
13637 * infrun.c (set_follow_fork_mode_command): Ditto.
13639 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13641 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13642 DW_CFA_def_cfa_exporession. Add support for
13643 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13644 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13646 2004-01-18 Andrew Cagney <cagney@redhat.com>
13648 * ocd.c: Update copyright.
13649 (bdm_read_register_command): Delete unused function.
13650 (_initialize_remote_ocd): Delete commented out reference.
13651 (get_quoted_char, reset_packet): Delete #if0ed function.
13652 (output_packet, put_quoted_char): Delete #if0ed function.
13653 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13654 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13655 (BDM_BREAKPOINT): Delete #if0ed macro.
13656 (remote_timeout): Delete #if0ed variable.
13658 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13660 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13661 (core-sol2.o): Remove dependency.
13662 * core-sol2.c: Remove file.
13664 2004-01-17 Andrew Cagney <cagney@redhat.com>
13666 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13667 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13670 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13672 * remote.c: Update copyright years.
13674 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13676 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13678 2004-01-17 Andrew Cagney <cagney@redhat.com>
13680 * mdebugread.c: Update copyright.
13681 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13682 (parse_type, parse_procedure): Ditto.
13683 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13685 * cris-tdep.c (cris_store_struct_return): Put back accidently
13688 * gdbarch.sh: Update copyright year.
13689 * gdbarch.h, gdbarch.c: Re-generate.
13691 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13693 Suggested by George Anzinger.
13694 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13695 correct stack offset. Include unknown opcode numbers in the error
13698 2004-01-17 Andrew Cagney <cagney@redhat.com>
13700 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13701 extract_struct_value_address, i386 does not set it.
13702 * sparc64-tdep.c (sparc64_init_abi): Do not set
13703 extract_struct_value_address, never called.
13704 (sparc64_extract_struct_value_address): Delete function.
13705 * m68hc11-tdep.c: Update copyright.
13706 (m68hc11_gdbarch_init): Delete redundant assignment of
13707 extract_struct_value_address.
13708 * i386-tdep.c: Update copyright.
13709 (i386_gdbarch_init): Do not set extract_struct_value_address,
13711 (i386_extract_struct_value_address): Delete function.
13712 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13713 extract_struct_value_address, never called.
13714 (sparc32_extract_struct_value_address): #if 0 function. Add
13715 comments explaining its future.
13717 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13719 * arm-tdep.c (arm_write_pc): New function.
13720 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13722 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13724 * breakpoint.c (must_shift_inst_regs): Delete.
13725 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13726 and SHIFT_INST_REGS.
13727 * infcmd.c (step_1, step_1_continuation): Delete references to
13729 * infrun.c (keep_going): Likewise.
13730 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13731 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13733 2004-01-17 Andrew Cagney <cagney@redhat.com>
13735 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13736 * gdbarch.h, gdbarch.c: Re-generate.
13737 * infcmd.c (print_return_value): Delete reference to
13738 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13740 * cris-tdep.c (cris_gdbarch_init): Do not set
13741 deprecated_extract_struct_value_address.
13743 * xstormy16-tdep.c: Update copyright.
13744 (xstormy16_extract_struct_value_address): Update to current
13745 extract struct value address interface.
13746 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13747 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13748 current extract struct value address interface.
13749 (sh64_gdbarch_init): Set extract_struct_value_address.
13751 * cris-tdep.c: Update copyright.
13752 (cris_extract_struct_value_address): Delete function.
13753 (struct_return_address): Delete variable.
13754 (cris_store_struct_return): Do not set struct_return_address.
13756 * mcore-tdep.c: Update copyright.
13757 (mcore_extract_struct_value_address): Delete function. Update
13759 (mcore_gdbarch_init): Update.
13760 * mn10300-tdep.c: Update copyright.
13761 (mn10300_extract_struct_value_address): Delete function.
13762 (mn10300_gdbarch_init): Update.
13763 * v850-tdep.c: Update copyright.
13764 (v850_extract_struct_value_address): Delete.
13765 (v850_gdbarch_init): Update.
13766 * ns32k-tdep.c: Update copyright.
13767 (ns32k_extract_struct_value_address): Delete.
13768 (ns32k_gdbarch_init): Update.
13769 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13770 (hppa_gdbarch_init): Update.
13771 * vax-tdep.c: Update copyright.
13772 (vax_extract_struct_value_address): Delete.
13773 (vax_gdbarch_init): Update.
13775 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13776 * gdbarch.h, gdbarch.c: Re-generate.
13777 * procfs.c (procfs_fetch_registers): Delete reference to
13778 DEPRECATED_NPC_REGNUM.
13779 (procfs_store_registers): Ditto.
13780 * regcache.c (generic_target_write_pc): Simplify.
13781 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13783 * core-sol2.c (fetch_core_registers): Replace
13784 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13786 * hppa-tdep.c: Update copyright year.
13787 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13789 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13791 * mips-tdep.c (mips_write_pc): New function.
13792 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13793 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13794 (mips_find_saved_regs, mips_software_single_step: Ditto.
13795 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13796 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13798 2004-01-17 Andrew Cagney <cagney@redhat.com>
13800 * mips-tdep.c: Re-indent. Group functions by ABI.
13802 2004-01-17 Andrew Cagney <cagney@redhat.com>
13804 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13805 * gdbarch.c: Re-generate.
13806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13807 DECR_PC_AFTER_BREAK to zero.
13808 * vax-tdep.c (vax_gdbarch_init): Ditto.
13809 * v850-tdep.c (v850_gdbarch_init): Ditto.
13810 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13811 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13812 * sh-tdep.c (sh_gdbarch_init): Ditto.
13813 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13814 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13815 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13816 * mips-tdep.c (mips_gdbarch_init): Ditto.
13817 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13818 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13819 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13820 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13821 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13822 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13823 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13824 * frv-tdep.c (frv_gdbarch_init): Ditto.
13825 * cris-tdep.c (cris_gdbarch_init): Ditto.
13826 * avr-tdep.c (avr_gdbarch_init): Ditto.
13827 * arm-tdep.c (arm_gdbarch_init): Ditto.
13828 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13830 2004-01-17 J. Brobecker <brobecker@gnat.com>
13832 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13833 Delete, no longer used.
13834 (read_subrange_type): New function, mostly extracted from
13836 (read_array_type): Replace extracted code by call to
13837 read_subrange_type().
13838 (dwarf2_get_attr_constant_value): New function.
13839 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13840 (add_partial_symbol): Likewise.
13841 (process_die): Likewise.
13842 (new_symbol): Likewise.
13843 (read_type_die): Likewise.
13845 2004-01-16 Andrew Cagney <cagney@redhat.com>
13847 * symfile.c: Update copyright year.
13848 (compare_symbols): Delete unused function.
13849 * stabsread.c: Update copyright year.
13850 (lrs_general_complaint): Delete unused function.
13851 (ref_search_value): Ditto.
13852 (get_substring): Delete declaration.
13853 * sh64-tdep.c: Update copyright year.
13854 (sh64_get_gdb_regnum): Delete unused function.
13855 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13856 Delete unused function.
13858 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13860 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13861 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13863 2004-01-16 Andrew Cagney <cagney@redhat.com>
13865 Changes from Peter Schauer.
13866 * rs6000-tdep.c: Update copyright year.
13867 (rs6000_push_dummy_call): Update the stack pointer before
13868 accessing the corresponding stack region.
13869 * rs6000-nat.c: Update copyright year.
13870 (set_host_arch): Set "info.abfd" to "exec_bfd".
13872 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13874 * blockframe.c: Update copyright year.
13875 (inside_entry_func): Don't treat a zero PC specially.
13877 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13879 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13881 (gcore_create_callback): Ditto. Skip any memory segment that has
13882 no permissions set.
13884 2004-01-14 David Carlton <carlton@kealia.com>
13886 Change symbols for C++ nested types to contain the fully qualified
13887 name, if possible. (At least in the DWARF-2 case.) Partial fix
13888 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13890 * c-exp.y (qualified_type): Handle types nested within classes.
13891 * cp-namespace.c: Update comments.
13892 (cp_set_block_scope): Delete #if 0.
13893 (cp_lookup_nested_type): Handle types nested within classes.
13894 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13896 (add_partial_symbol): Add the name of the enclosing namespace to
13898 (pdi_needs_namespace): New.
13899 (add_partial_namespace): Tweak comment.
13900 (add_partial_structure): New.
13901 (psymtab_to_symtab_1): Initialize processing_current_prefix
13903 (process_die): instead of here.
13904 (read_structure_scope): Try to figure out the name of the class or
13905 namespace that the structure might be defined within.
13906 (read_enumeration): Generate fully-qualified names, if possible.
13907 (read_namespace): Don't set name to NULL.
13908 (die_specification): New.
13909 (new_symbol): Generate fully-qualified names for types.
13910 (read_type_die): Determine appropriate prefix.
13911 (determine_prefix): New.
13912 (typename_concat): New.
13914 * valops.c (value_aggregate_elt): Pass NOSIDE to
13915 value_struct_elt_for_reference.
13916 (value_struct_elt_for_reference): Make static, add NOSIDE
13917 parameter, call value_maybe_namespace_elt as a last resort.
13918 (value_namespace_elt): Break out code into
13919 value_maybe_namespace_elt.
13920 (value_maybe_namespace_elt): New.
13922 2004-01-12 Andrew Cagney <cagney@redhat.com>
13924 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13925 cooked floating-point registers.
13926 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13927 and value_to_register.
13929 2004-01-13 Andrew Cagney <cagney@redhat.com>
13931 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13932 * gdbarch.c: Re-generate.
13933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13934 FUNCTION_START_OFFSET.
13935 * v850-tdep.c (v850_gdbarch_init): Ditto.
13936 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13937 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13938 * sh-tdep.c (sh_gdbarch_init): Ditto.
13939 * s390-tdep.c (s390_gdbarch_init): Ditto.
13940 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13941 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13942 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13943 * mips-tdep.c (mips_gdbarch_init): Ditto.
13944 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13945 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13947 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13948 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13949 * i386-tdep.c (i386_gdbarch_init): Ditto.
13950 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13951 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13952 * frv-tdep.c (frv_gdbarch_init): Ditto.
13953 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13954 * cris-tdep.c (cris_gdbarch_init): Ditto.
13955 * avr-tdep.c (avr_gdbarch_init): Ditto.
13956 * arm-tdep.c (arm_gdbarch_init): Ditto.
13957 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13959 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13961 * infrun.c (follow_fork_mode_ask): Remove.
13962 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13963 (follow_fork): Simplify and remove internal error for
13964 follow_fork_mode_ask.
13965 (_initialize_infrun): Update "set follow-fork-mode" help text.
13967 2004-01-13 Andrew Cagney <cagney@redhat.com>
13969 * configure.in: Update copyright year.
13970 (build_warnings): Add -Wunused-label.
13971 * configure: Re-generate.
13973 2004-01-12 Andrew Cagney <cagney@redhat.com>
13975 * exec.h (exec_ops): Make "extern".
13977 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13978 the function is void.
13979 (mips_pseudo_register_write): Ditto.
13981 2004-01-12 Andrew Cagney <cagney@redhat.com>
13983 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13984 call. Never defined.
13985 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13986 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13987 (struct sparc_gregset, struct regcache): Ditto.
13988 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13990 2004-01-12 Andrew Cagney <cagney@redhat.com>
13992 * mi/ChangeLog: Delete file. Renamed to ...
13993 * mi/ChangeLog-1999-2003: New file.
13994 * tui/ChangeLog: Delete file. Renamed to ...
13995 * tui/ChangeLog-1998-2003: New file.
13997 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13999 * sparc64nbsd-tdep.c: Include "regset.h".
14000 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14002 (fetch_core_registers): Remove function.
14003 (sparc64nbsd_core_fns): Remove variable.
14004 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14006 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14007 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14008 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14010 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14011 sparc_extract_struct_value_address.
14012 (sparc32_gdbarch_init): Set extract_struct_value_address.
14013 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14015 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14016 return_value_on_stack.
14018 * NEWS: Mention that %cs and %ss have been added to the AMD64
14021 * frame.c: Update copyright year.
14022 (get_prev_frame): Improve comment.
14024 * sparc64fbsd-tdep.c: Include "regset.h".
14025 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14027 (fetch_core_registers): Remove function.
14028 (sparc64fbsd_core_fns): Remove variable.
14029 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14031 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14032 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14033 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14035 * sparcnbsd-tdep.c: Include "regset.h".
14036 (fetch_core_registers): Remove function.
14037 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14038 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14040 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14042 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14044 * sparc-tdep.h (struct regset): Provide opaque declaration.
14045 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14046 fpregset and sizeof_fpregset members.
14047 * sparc-tdep.c (struct regset): Provide opaque declaration.
14048 (sparc_regset_from_core_section): New function.
14049 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14050 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14051 Set regset_from_core_section when appropriate.
14053 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14055 * x86-64-tdep.c (amd64_non_pod_p): New function.
14056 (amd64_classify_aggregate): Return class memory for non-POD
14057 C++ structure types.
14059 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14060 argument. Use it to reserve a register if necessary.
14061 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14062 amd64_push_arguments.
14064 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14066 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14067 register numbers in comments.
14068 * x86-64-tdep.h: Update copyright year.
14069 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14070 Adjust for addition of %cs and %ss.
14071 * amd64fbsd-nat.c: Update copyright year.
14072 (reg_offset): Add register offsets for %cs and %ss.
14073 * amd64fbsd-tdep.c: Update copyright year.
14074 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14075 (amd64fbsd_sc_reg_offset): Likewise.
14076 * x86-64-linux-nat.c: Update copyright year.
14077 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14079 * amd64nbsd-nat.c: Update copyright year.
14080 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14081 * amd64nbsd-tdep.c: Update copyright year.
14082 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14083 * x86-64-linux-tdep.c: Update copyright year.
14084 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14085 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14086 * regformats/reg-x86-64.dat: Add %cs and %ss.
14088 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14089 variables to prevent long lines. Update comments to reflect
14092 2004-01-09 David Carlton <carlton@kealia.com>
14094 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14095 * dwarf2read.c (read_namespace): Pull out name-generating code
14096 into namespace_name. Rename previous_namespace to previous_prefix
14097 and processing_current_namespace to processing_current_prefix..
14098 (namespace_name): New function.
14099 (add_partial_symbol): Substitute uses of pdi->name with
14101 * cp-support.h: Rename processing_current_namespace to
14102 processing_current_prefix.
14103 Update copyright year.
14104 * cp-namespace.c: Rename processing_current_namespace to
14105 processing_current_prefix.
14106 Update copyright year.
14108 2004-01-09 Andrew Cagney <cagney@redhat.com>
14110 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14112 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14114 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14116 (process_one_symbol): Deal with N_PATCH stabs.
14118 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14120 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14122 Update copyright year.
14124 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14126 * config/pa/tm-hppa.h: Update extern declarations for
14127 hppa32_hpux_frame_saved_pc_in_sigtramp,
14128 hppa32_hpux_frame_base_before_sigtramp, and
14129 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14131 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14133 * config/pa/tm-hppah.h: Update copyright years.
14135 2004-01-08 Andrew Cagney <cagney@redhat.com>
14137 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14138 (mips_o32_reg_struct_has_addr): Delete function.
14139 (mips_gdbarch_init): Update.
14140 (mips_extract_struct_value_address): Delete function.
14142 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14144 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14147 2004-01-07 Andrew Cagney <cagney@redhat.com>
14149 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14150 architecture's elf flags (when available).
14152 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14153 FPU to the start, check the MIPS FPU when looking for an old
14155 (set_mipsfpu_single_command): Update the architecture.
14156 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14158 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14159 (mips_mask_address_p): Add "tdep" parameter.
14160 (show_mask_address, mips_addr_bits_remove): Update.
14161 (mips_dump_tdep): Update.
14162 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14163 (MIPS_STACK_ARGSIZE): Delete macro.
14164 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14165 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14166 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14167 (mips_dump_tdep): Update.
14168 (MIPS_SAVED_REGSIZE): Delete macro.
14169 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14170 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14171 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14172 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14173 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14174 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14175 (mips_pop_frame, return_value_location): Update.
14176 (mips_n32n64_return_value, mips_dump_tdep): Update.
14178 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14181 * mips-tdep.c: Update copyright.
14182 (mips_gdbarch_init): Merge two code blocks handling the register
14183 name and number layout.
14185 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14187 * tracepoint.c (validate_actionline): Fix segv at EOF
14189 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14191 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14192 properly for static fields.
14194 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14195 Jason Molenda <jmolenda@apple.com>
14197 * disasm.c: Update copyright to include 2004.
14198 (do_mixed_source_and_assembly): For uiout asm list
14199 and tuple cleanups, initialize to null_cleanup instead of
14200 NULL and do so prior to loop. Only reset when we close off
14201 the tuple/list. Move check for whether to close off the
14202 asm tuple/list to after dump_insns call where it will be run
14203 on each loop iteration.
14205 2004-01-05 Andrew Cagney <cagney@redhat.com>
14207 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14208 should be a switch case and not a label.
14209 * mips-tdep.c (mips32_next_pc): Delete unused labels
14210 "greater_equal_branch" and "less_zero_branch".
14211 * jv-valprint.c (java_print_value_fields): Delete unused label
14214 * target.c (unpush_target): Only close a target that is in the
14217 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14219 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14220 address from [sp + 64] instead of %o2.
14222 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14223 fixes PR backtrace/1476.
14225 2004-01-05 Andrew Cagney <cagney@redhat.com>
14227 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14228 move to start of file.
14229 * i386-tdep.h (struct regcache): Add opaque declaration.
14230 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14232 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14233 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14234 * win32-nat.c (fake_create_process): Use ISO C style definition.
14235 * stabsread.c (define_symbol): Delete #ifndef
14236 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14237 stabs_argument_has_addr call, macro never defined.
14239 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14241 * op50-rom.c: Delete.
14242 * w89k-rom.c: Delete.
14243 * Makefile.in: Remove references.
14245 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14247 * x86-64-tdep.c: Update copyright year.
14248 (struct amd64_register_info): Rename from x86_64_register_info.
14249 (amd64_register_info): Rename from x86_64_register_info.
14250 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14251 (amd64_register_name): Rename from x86_64_register_name.
14252 (amd64_register_type): Rename from x86_64_register_type.
14253 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14254 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14255 (amd64_dwarf_reg_to_regnum): Rename from
14256 x86_64_dwarf_reg_to_regnum.
14257 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14258 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14259 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14260 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14261 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14262 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14263 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14264 (amd64_frame_cache): Rename from x86_64_frame_cache.
14265 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14266 (amd64_frame_prev_register): Rename from
14267 x86_64_frame_prev_register.
14268 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14269 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14270 (amd64_sigtramp_frame_cache): Rename from
14271 x86_64_sigtramp_frame_cache.
14272 (amd64_sigtramp_frame_prev_register): Rename from
14273 x86_64_sigtramp_frame_prev_register.
14274 (amd64_sigtramp_frame_unwind): Rename from
14275 x86_64_sigtramp_frame_unwind.
14276 (amd64_sigtramp_frame_sniffer): Rename from
14277 x86_64_sigtramp_frame_sniffer.
14278 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14279 (amd64_frame_base): Rename from x86_64_frame_base.
14280 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14281 (amd64_frame_align): Rename from x86_64_frame_align.
14282 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14283 (amd64_regset_from_core_section): Rename from
14284 x86_64_regset_from_core_section.
14285 (x86_64_init_abi): Update comments.
14287 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14289 * MAINTAINERS (write after approval): Add myself.
14291 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14293 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14296 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14298 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14299 such that it mentions a specific version of GCC that exhibits this
14302 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14304 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14305 structure that has a single `float' member, store it in %f1 in
14308 * sparc-sol2-nat.c: Add missing '\'.
14310 * sparc-tdep.c (sparc32_return_value): New function.
14311 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14313 (sparc32_gdbarch_init): Set return_value, don't set
14314 extract_return_value, store_return_value, use_struct_convention
14315 and return_value_on_stack.
14317 * sparc-sol2-nat.c: Add missing ')'.
14319 2004-01-03 J. Brobecker <brobecker@gnat.com>
14321 * infrun.c (handle_step_into_function): New function.
14322 (handle_inferior_event): Extract out some code into the new
14325 2004-01-03 J. Brobecker <brobecker@gnat.com>
14327 * infrun.c (handle_inferior_event): Move the declaration of
14328 real_stop_pc inside the if blocks where it is used.
14330 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14332 * sparc64-tdep.c (sparc64_16_byte_align_p)
14333 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14334 Use check_typedef to get subtypes of structures and unions.
14335 (sparc64_store_return_value): Fix calculation of the appropriate
14336 offset into VALBUF when storing a structure or union.
14337 (sparc64_return_value): New function.
14338 (sparc64_use_struct_convention): Remove function.
14339 (sparc64_init_abi): Set return_value, don't set
14340 extract_return_value, store_return_value and
14341 use_struct_convention.
14343 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14345 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14346 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14347 gdb/config/alpha/xm-alphaosf.h,
14348 gdb/config/powerpc/tm-ppcle-eabi.h,
14349 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14350 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14351 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14352 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14353 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14354 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14355 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14356 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14357 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14358 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14359 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14360 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14361 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14362 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14363 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14364 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14365 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14366 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14367 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14368 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14369 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14370 Remove lines for .cvsignore files.
14372 2004-01-03 J. Brobecker <brobecker@gnat.com>
14374 * infrun.c: Back out the previous change.
14376 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14378 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14379 sparc-*-sunos4* to the list of REMOVED configurations.
14381 * configure.tgt: Add back sparc-*-vxworks*.
14382 * remote-vxsparc.c: Remove all includes except for "defs.h",
14383 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14384 Include "sparc-tdep.h".
14385 (SPARC_R_G1): New define.
14386 (vxsparc_gregset): New variable.
14387 (ext_format_sparc): Remove extern declaration.
14388 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14389 sparc32_supply_fpregset.
14390 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14391 sparc_collect_rwindow and sparc32_collect_fpregset.
14392 * config/sparc/tm-vxworks.h: New file, based on recently removed
14394 * config/sparc/vxworks.mt: New file, based on recently removed
14397 2004-01-03 J. Brobecker <brobecker@gnat.com>
14399 * infrun.c (handle_step_into_function): New function.
14400 (handle_inferior_event): Extract out some code into the new
14403 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14405 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14406 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14407 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14408 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14409 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14410 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14411 (sparc_nat_h): New variable.
14412 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14413 (tm-sun4os4.h): Remove dependency.
14414 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14415 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14416 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14417 sparc-tdep.o): Update dependencies.
14418 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14419 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14420 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14422 * configure.host: Remove existing sparc-*-lynxos*,
14423 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14424 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14425 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14426 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14428 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14429 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14430 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14431 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14432 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14433 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14434 sparc64-*-solaris2* and sparc64-*-* triplets.
14435 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14436 "symtab.h" and "objfiles.h".
14437 (BIAS): Remove define.
14438 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14439 (X_DISP19): Remove macros.
14440 (sparc_fetch_instruction): Remove function.
14441 (struct gdbarch_tdep): Remove definition.
14442 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14443 (sparc_breakpoint_from_pc): Remove function.
14444 (struct sparc64_frame_cache): Remove definition.
14445 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14446 sparc64_unwind_pc): Remove functions.
14447 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14448 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14449 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14450 (sparc64_frame_cache): Change return type to `struct
14451 sparc_frame_cache *'. Simply call sparc_frame_cache.
14452 (sparc64_frame_this_id, sparc64_frame_prev_register,
14453 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14454 instead of `struct sparc64_frame_cache.
14455 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14456 sparc_analyze_control_transfer, sparc_software_single_step,
14457 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14458 _initialize_sparc64_tdep): Remove functions.
14459 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14460 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14462 (sparc64_supply_gregset, sparc64_collect_gregset,
14463 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14464 (sparc64_init_abi): New function.
14465 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14466 inclusion guard. Include "sparc-tdep.h".
14468 (r_tstate_offset, r_fprs_offset): New defines.
14469 (enum sparc_regnum): Remove defenition.
14470 (enum sparc64_regnum): Reformat.
14471 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14472 (sparc64_init_abi, sparc64_supply_gregset,
14473 sparc64_collect_gregset, sparc64_supply_fpregset,
14474 sparc64_collect_fpregset): New prototypes.
14475 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14476 Add extern declarations.
14477 (sparc64_sol2_init_abi): New prototype.
14478 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14479 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14481 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14483 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14485 (_initialize_sparc64fbsd_nat): Remove initialization of
14486 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14487 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14488 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14489 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14490 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14491 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14492 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14493 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14494 (sparc64fbsd_r_y_offset): Remove variables.
14495 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14496 Make static and const.
14497 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14498 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14500 (sparc64fbsd_gregset): New variable.
14501 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14502 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14503 and sparc64_supply_fpregset.
14504 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14505 (sparc64fbsd_sigtramp_frame_this_id)
14506 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14507 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14508 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14509 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14510 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14511 * sparcnbsd-tdep.c: Update copyright year. Include
14512 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14513 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14514 "value.h" and "sparcnbsd-tdep.h".
14515 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14516 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14517 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14518 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14520 (sparcnbsd_gregset): New variable.
14521 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14522 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14523 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14524 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14525 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14527 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14528 (sparc32nbsd_sigcontext_frame_this_id)
14529 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14530 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14531 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14532 (sparcnbsd_get_longjmp_target_32,
14533 sparcnbsd_get_longjmp_target_64): Remove functions.
14534 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14535 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14536 sparcnbsd_init_elf): Remove.
14537 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14538 (sparcnbsd_elf_init_abi): New functions.
14539 (_initialize_sparcnbsd_tdep): New prototype.
14540 (_initialize_sparnbsd_tdep): Update.
14541 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14542 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14543 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14544 * config/sparc/linux.mh: Update comment.
14545 (XM_FILE, HOST_IPC): Remove variables.
14546 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14548 * config/sparc/linux.mt: Update comment.
14549 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14550 * config/sparc/nbsd.mt: Reformat.
14551 * config/sparc/nbsd64.mh: Update comment.
14552 (NATDEPFILES): Add sparc-nat.o.
14553 * config/sparc/nbsd64.mt: Update comment.
14554 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14555 (TM_FILE): Set to tm-nbsd.h.
14556 * config/sparc/nbsdelf.mh: Update comment.
14557 (NATDEPFILES): Add sparc-nat.o.
14559 * config/sparc/nbsdaout.mh: Update comment.
14560 (NATDEPFILES): Add sparc-nat.o
14562 * config/sparc/nm-linux.h: Update copyright year. Don't include
14563 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14565 (KERNEL_U_SIZE): Remove define.
14566 (kernel_u_size): Remove prototype.
14567 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14568 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14570 (CHILD_PREPARE_TO_STORE): Remove define.
14571 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14572 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14573 sparcnbsd-nat.c: Rewrite files.
14574 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14575 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14576 sparcnbsd-tdep.h: Remove files.
14577 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14578 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14579 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14580 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14581 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14582 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14583 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14584 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14585 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14586 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14587 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14588 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14589 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14590 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14591 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14592 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14593 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14594 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14595 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14597 2004-01-02 Andrew Cagney <cagney@redhat.com>
14599 From 2003-12-18 Kazuhiro Inaoka:
14600 * configure.host: Add m32r-linux target.
14602 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14604 * top.c (print_gdb_version): Update year to 2004.
14606 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14608 * MAINTAINERS: Add myself to the write-after-approval category.
14610 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14612 From Bernardo Innocenti <bernie@develer.com>:
14613 * configure.tgt: Add uClinux target.
14615 2004-01-02 Andrew Cagney <cagney@redhat.com>
14617 * utils.c (do_my_cleanups): Make static, add forward declaration.
14618 * defs.h (do_my_cleanups): Delete declaration.
14620 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14622 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14623 bfd/ChangeLog-0203.
14625 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14627 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14628 in <machine/reg.h>.
14629 * configure, config.in: Regenerate.
14631 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14632 tui/ChangeLog-1998-2003.
14638 version-control: never