1 2004-12-03 Mark Kettenis <kettenis@gnu.org>
3 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
6 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
8 * README: Remove config.if from directory listing.
10 2004-12-01 Joel Brobecker <brobecker@gnat.com>
12 * alpha-tdep.c (alpha_register_name): Add comment.
13 (alpha_cannot_fetch_register): Exclude registers numbers which
14 are no longer used from the list of registers that can be fetched.
15 (alpha_cannot_store_register): Exclude registers numbers which
16 are no longer used from the list of registers that can be stored.
17 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
18 core_reg_mapping array.
20 2004-12-01 Joel Brobecker <brobecker@gnat.com>
22 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
23 the register value from the correct frame.
25 2004-11-30 Randolph Chung <tausq@debian.org>
27 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
28 (hppa_linux_in_dyncall): Check that we are inside the range of
29 $$dyncall, not necessarily at the first insn.
30 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
31 even if the pc does not point to the first insn of the trampoline.
33 2004-11-30 Randolph Chung <tausq@debian.org>
35 * breakpoint.c (break_at_finish_command): Delete.
36 (break_at_finish_command_1): Delete.
37 (break_at_finish_at_depth_command): Delete.
38 (break_at_finish_at_depth_command_1): Delete.
39 (tbreak_at_finish_command): Delete.
40 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
43 2004-11-30 Andrew Cagney <cagney@gnu.org>
45 * config/nm-gnu.h: Delete file.
46 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
48 * config/nm-sysv4.h: Delete file.
49 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
50 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
51 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
52 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
53 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
55 2004-11-29 Andrew Cagney <cagney@gnu.org>
57 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
58 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
59 as can-commit architecture developers.
61 2004-11-29 Mark Kettenis <kettenis@gnu.org>
63 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
64 (sparc32_skip_prologue): Skip instructions that store arguments in
65 registers into their corresponding stack slots.
67 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
69 * config/m68k/obsd.mh (NAT_FILE): Likewise.
71 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
72 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
73 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
74 sparc32nbsd_elf_init_abi. Remove duplicate code.
76 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
77 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
78 * config/sparc/nm-nbsd.h: Remove file.
79 * config/sparc/nm-nbsdaout.h: Remove file.
81 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
82 (sparc_xfer_partial): New function.
83 (sparc_target): Save value of to_xfer_partial from ptrace vector.
86 * fork-child.c (fork_inferior): Fork instead of vfork if
87 PRE_TRACE_FUN is non-null.
89 2004-11-24 Fred Fish <fnf@specifixinc.com>
91 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
92 compiler generated function calls made as part of a prologue.
94 2004-11-23 Mark Kettenis <kettenis@gnu.org>
96 * inf-ttrace.c: New file.
97 * inf-ttrace.h: New file.
98 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
99 Include "inf-ttrace.h".
100 (ss_mpsfu_high): Define to ss_tlsp if necessary.
101 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
102 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
104 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
105 instead of inf_ptrace_target.
106 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
107 * Makefile.in (inf_ttrace_h): New variable.
108 (hppa-hpux-nat.o): Update dependency.
109 (inf-ttrace.o): New dependency.
110 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
112 2004-11-23 Randolph Chung <tausq@debian.org>
114 * arch-utils.c (generic_instruction_nullified): New.
115 * arch-utils.h (generic_instruction_nullified): New.
116 * gdbarch.sh (instruction_nullified): New method.
117 * gdbarch.c: Regenerate.
118 * gdbarch.h: Regenerate.
119 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
120 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
122 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
123 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
124 static. Rewrite to work directly off the passed regcache.
125 (hppa_gdbarch_init): Set instruction_nullified method.
127 2004-11-23 Joel Brobecker <brobecker@gnat.com>
129 * sparc-tdep.c (sparc_is_unimp_insn): New function.
130 (sparc32_frame_cache): For functions where there is no debugging
131 information to help us determine whether it's a struct-return
132 function or not, fallback on checking whether the instruction
133 at the return address is an "unimp" instruction or not.
135 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
137 * MAINTAINERS: Add myself to write after approval section.
139 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
140 hpux-thread.c to suppress children from running.
141 (hppa_hpux_child_can_run): New function.
142 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
143 * hpux-thread.c: Include string.h and hppa-tdep.h.
144 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
145 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
146 (hpux_thread_store_registers): Replace deprecated_registers with
147 calls to regcache_raw_read.
148 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
150 2004-11-21 Mark Kettenis <kettenis@gnu.org>
152 * sparc64fbsd-nat.c: Update copyright year.
153 (_initialize_sparc64fbsd_nat): Construct and add target vector.
154 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
157 2004-11-21 Daniel Jacobowitz <dan@debian.org>
159 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
161 2004-11-21 Daniel Jacobowitz <dan@debian.org>
163 * linux-nat.c (my_waitpid): New function.
164 (linux_test_for_tracefork): Make more robust and verbose. Take
165 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
166 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
167 argument. Update calls to linux_test_for_tracefork.
168 (linux_enable_event_reporting, child_follow_fork)
169 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
170 (child_insert_exec_catchpoint): Update calls to
171 linux_supports_tracefork and linux_supports_tracevforkdone.
173 2004-11-21 Daniel Jacobowitz <dan@debian.org>
175 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
176 (value_subscripted_rvalue): Likewise.
177 * valops.c (search_struct_field, value_slice): Likewise.
179 2004-11-21 Mark Kettenis <kettenis@gnu.org>
181 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
182 Reorder includes a bit. Fix comment.
183 * Makefile.in (inf-ptrace.o): Update dependencies.
185 2004-11-21 Andreas Schwab <schwab@suse.de>
187 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
188 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
189 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
190 to glibc_skip_solib_resolver.
191 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
193 * Makefile.in (m68klinux-tdep.o): Update dependencies.
195 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
197 * infttrace.h (ttrace_write_reg_64): Add prototype.
198 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
200 (store_inferior_registers): Correct formatting. Replace uses of
201 deprecated_registers with calls to regcache_raw_read,
202 regcache_raw_write_part and regcache_raw_read_part.
204 2004-11-21 Mark Kettenis <kettenis@gnu.org>
206 * config/pa/hppahpux.mh: Remove file.
207 * config/pa/hpux1020.mh: Remove file.
209 2004-11-20 Andreas Schwab <schwab@suse.de>
211 * configure.host: Set host floatformat for m68k.
213 2004-11-20 Eli Zaretskii <eliz@gnu.org>
215 * config/djgpp/fnchange.lst: Resolve file-name clash between
216 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
218 2004-11-20 Mark Kettenis <kettenis@gnu.org>
220 * hppa-hpux-nat.c: New file.
221 * config/pa/hpux.mh (NATDEPFILES): New file.
222 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
223 (hppa-hpux-nat.o): New dependency.
224 * configure.host: Remove hppa*-*-hpux10.20.
225 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
227 * inf-ptrace.c: Fix coding style.
229 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
230 * infptrace.c (call_ptrace): Simply call ptrace with four
233 * dbxread.c (process_one_symbol): Fix a few coding standard
234 issues. Improve code formatting.
236 * dbxread.c: Include "gdb_string.h".
237 (record_minimal_symbol, read_ofile_symtab): Replace
238 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
239 * Makefile.in (dbxread.o): Update dependencies.
241 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
242 of bytes read for aligned LEB128 encodings.
244 2004-11-19 Mark Kettenis <kettenis@gnu.org>
246 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
247 parse_and_eval_address to u_long before converting it to a pointer
249 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
250 ps_strings from int to u_long.
251 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
252 u_long instead of CORE_ADDR.
254 2004-11-18 Mark Kettenis <kettenis@gnu.org>
256 * dbxread.c (process_one_symbol): Do not adjust address of first
257 N_SLINE stab for a function for code generated by non-GCC
260 2004-11-18 Kevin Buettner <kevinb@redhat.com>
262 * solib-null.c: New file.
264 2004-11-17 Andrew Cagney <cagney@gnu.org>
266 * MAINTAINERS: Drop MIPS and remote.
268 2004-11-15 Andrew Cagney <cagney@gnu.org>
270 * findvar.c (value_of_register): Set the frame ID.
271 * value.c (value_primitive_field): Copy the frame ID.
272 * valops.c (value_assign): Simplify lval_register case, there's
275 2004-11-14 Daniel Jacobowitz <dan@debian.org>
277 * Makefile.in (mips-linux-tdep.o): Update dependencies.
278 * mips-linux-tdep.c: Include "regcache.h".
279 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
281 2004-11-14 Daniel Jacobowitz <dan@debian.org>
283 * Makefile.in (linux-thread-db.o): Fix typo in last change.
285 2004-11-14 Daniel Jacobowitz <dan@debian.org>
287 * linux-thread-db.c: New file, renamed from thread-db.c.
288 * thread-db.c: Remove.
289 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
290 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
291 to linux-thread-db.o.
292 * config/arm/linux.mh (NATDEPFILES): Likewise.
293 * config/i386/linux.mh (NATDEPFILES): Likewise.
294 * config/i386/linux64.mh (NATDEPFILES): Likewise.
295 * config/ia64/linux.mh (NATDEPFILES): Likewise.
296 * config/m32r/linux.mh (NATDEPFILES): Likewise.
297 * config/m68k/linux.mh (NATDEPFILES): Likewise.
298 * config/mips/linux.mh (NATDEPFILES): Likewise.
299 * config/pa/linux.mh (NATDEPFILES): Likewise.
300 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
301 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
302 * config/s390/s390.mh (NATDEPFILES): Likewise.
303 * config/sparc/linux.mh (NATDEPFILES): Likewise.
304 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
306 2004-11-13 Andrew Cagney <cagney@gnu.org>
308 * config/i386/i386lynx.mh: Delete file.
309 * config/i386/i386lynx.mt: Delete file.
310 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
311 * i386ly-tdep.c: Delete.
313 * config/tm-lynx.h: Delete, inline contents ...
314 * config/rs6000/tm-rs6000ly.h: ... here.
316 * config/tm-sysv4.h: Delete file, inlining contents.
317 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
318 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
319 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
321 * regcache.h (deprecated_register_valid): Delete.
322 (deprecated_registers): Delete.
323 * regcache.c (deprecated_register_valid): Delete.
324 (deprecated_registers): Delete.
325 (deprecated_read_register_byte, _initialize_regcache)
326 (deprecated_write_register_bytes, build_regcache): Update.
327 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
329 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
330 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
332 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
333 v850-*-* under removed.
334 * configure.host: Delete ns32k-*-netbsd*.
335 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
336 ns32k-*-netbsd*, and v850*-*-*.
337 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
339 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
340 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
341 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
342 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
343 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
344 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
345 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
346 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
347 * v850-tdep.c: Delete.
349 2004-11-13 Joel Brobecker <brobecker@gnat.com>
351 * irix5-nat.c (fetch_core_registers): Replace use of
352 deprecated_registers by equivalent code.
354 2004-11-13 Joel Brobecker <brobecker@gnat.com>
356 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
357 with equivalent code.
358 (fill_fpregset): Likewise.
360 2004-11-13 Andrew Cagney <cagney@gnu.org>
362 * MAINTAINERS: Do not list "Deleted" architectures.
364 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
365 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
367 * NEWS: Mention that vxworks was deleted.
368 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
369 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
370 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
371 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
372 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
373 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
374 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
375 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
376 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
377 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
378 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
379 * remote-vxmips.c, remote-vx.c: Delete.
380 * remote-vx68.c: Delete.
381 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
382 * config/m68k/os68k.mt, ada-lang.h: Ditto.
383 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
384 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
386 2004-11-13 Eli Zaretskii <eliz@gnu.org>
388 * config/i386/xm-go32.h: Don't include fopen-bin.h.
389 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
391 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
392 branch that doesn't define CRLF_SOURCE_FILES; always use
394 (print_source_lines_base, forward_search_command)
395 (reverse_search_command): Enable the code that accepts DOS-style
396 CRLF line endings on all platforms (this removes the need for
399 * defs.h: Fix wording of the comment before FOPEN_RB.
400 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
402 * config/djgpp/fnchange.lst: Group renames for opcode directory
405 * config/djgpp/djconfig.sh: Replace file names that don't exist
406 anymore with existing files, for checking the unpacked
409 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
410 Export pre-cooked values in configure-* targets that begin with
411 "@test -f stage_last".
413 2004-11-12 Andrew Cagney <cagney@gnu.org>
415 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
416 * value.h (struct value): Update comment.
417 * valops.c (value_assign): Fold lval_reg_fame_relative into
419 * findvar.c (value_from_register, locate_var_value): Ditto.
421 2004-11-12 Randolph Chung <tausq@debian.org>
423 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
424 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
425 (write_exp_msymbol): Remove conditional check for symbols starting
426 with $. Update comments.
428 2004-11-12 Randolph Chung <tausq@debian.org>
430 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
431 so_lib_thread_start_addr.
432 * pa64solib.h (so_list): Forward declare.
433 (pa64_solib_thread_start_addr): Prototype.
434 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
435 (no_shared_libraries): Remove.
436 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
437 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
438 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
439 the elf solib handler to find the start address.
441 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
442 files to the target makefile.
443 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
444 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
445 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
447 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
448 files for symbol reading and shared library handling here.
449 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
450 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
451 without bringing in 64-bit support.
453 2004-11-12 Andrew Cagney <cagney@gnu.org>
455 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
456 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
457 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
458 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
459 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
460 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
461 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
463 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
464 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
465 (VALUE_REGNUM): Define.
466 (struct value): Delete location.regnum, rename "regno" to
468 * value.c, valops.c, valarith.c, findvar.c: Update.
470 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
471 (VALUE_BITPOS): Delete.
472 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
473 * value.c (value_type, value_offset, value_bitpos)
474 (value_bitsize): New functions. Update references.
475 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
476 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
477 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
478 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
479 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
480 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
481 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
482 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
483 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
485 2004-11-12 Andrew Cagney <cagney@gnu.org>
487 * cris-tdep.c (cris_register_offset): Delete, never called.
488 (cris_spec_reg_applicable): Delete cris_ver_sim.
489 * MAINTAINERS: List d10v as OBSOLETE.
490 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
491 FOPEN_WB et.al., defined by "fopen-bin.h".
493 2004-11-12 Randolph Chung <tausq@debian.org>
495 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
496 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
497 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
498 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
500 2004-11-12 Mark Kettenis <kettenis@jive.nl>
502 * tui/tui-io.c: Don't include "terminal.h".
503 * Makefile.in (tui-io.o): Update dependencies.
505 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
507 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
508 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
509 set_gdbarch_regset_from_core_section for core file support.
510 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
513 2004-11-11 Randolph Chung <tausq@debian.org>
515 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
516 stop_after_branch parameter and use it to determine if we should look
517 at the delay slot of the first branch insn to find prologue insns.
518 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
519 (hppa_frame_cache): Likewise.
521 2004-11-11 Randolph Chung <tausq@debian.org>
523 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
524 register so that it can be unwound from anywhere in the prologue.
526 2004-11-10 msnyder <msnyder@redhat.com>
528 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
529 must invalidate lr_reg (so we don't try to save it again).
530 Ditto for cr_offset and cr_reg.
532 2004-11-05 Jon Beniston <jon@beniston.com>
534 Committed by Andrew Cagney.
535 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
536 when an unexpected packet is received, as the target stubs
537 continually retransmit the same packet until ACKed.
539 2004-11-10 Randolph Chung <tausq@debian.org>
541 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
544 2004-11-10 Randolph Chung <tausq@debian.org>
546 * blockframe.c (inside_entry_func): Move to .....
547 * frame.c (inside_entry_func): ... here, and make static.
548 (backtrace_past_entry): New flag.
549 (get_prev_frame): Stop backtrace at the entry function if enabled
550 by flag. Update comments.
551 (_initialize_frame): Add command to set backtrace_past_entry flag.
552 * defs.h (inside_entry_func): Remove prototype.
554 2004-11-10 Mark Kettenis <kettenis@gnu.org>
556 * dwarf2read.c: Fix formatting.
558 2004-11-10 Andrew Cagney <cagney@gnu.org>
560 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
561 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
562 macros with function declarations.
563 * value.c (coerce_ref, coerce_array, coerce_number)
564 (coerce_enum): New functions.
565 (value_as_long, value_as_address): Update.
566 * ada-lang.c (ada_coerce_ref, ada_value_binop)
567 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
568 * jv-lang.c (evaluate_subexp_java): Update.
569 * valarith.c (value_less, value_neg, value_complement)
570 (value_binop, value_add, value_subscript, value_x_binop)
571 (value_logical_not, value_sub): Update.
572 * valops.c (check_field, value_struct_elt, value_ind)
573 (value_find_oload_method_list, value_cast, value_assign): Update.
574 * eval.c (evaluate_subexp_standard): Update.
576 2004-11-10 Mark Kettenis <kettenis@gnu.org>
578 * mips-tdep.c (mips32_relative_offset): Change return type to
579 LONGEST, change argument type to ULONGEST. Fix sign-extension.
581 2004-11-10 Randolph Chung <tausq@debian.org>
583 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
584 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
585 (hppa_fetch_pointer_argument): Likewise.
586 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
587 deprecated_read_memory_nobpt.
588 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
589 add_set_cmd sequence with add_setshow_boolean_cmd.
591 2004-11-09 Andrew Cagney <cagney@gnu.org>
593 GDB 6.3 released from GDB 6.3 branch.
595 2004-11-09 Andrew Cagney <cagney@gnu.org>
597 * values.c: Rename to ...
598 * value.c: ..., new file.
599 * Makefile.in: Update.
601 2004-11-09 Daniel Jacobowitz <dan@debian.org>
603 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
606 2004-11-09 Andrew Cagney <cagney@gnu.org>
610 * value.h (struct value): Delete field bfd_section.
611 (VALUE_BFD_SECTION): Delete macro.
612 (COERCE_REF): Update.
613 (value_at, value_at_lazy): Delete asection parameter.
614 * printcmd.c (print_formatted, x_command): Update.
615 (do_examine): Delete asection parameter.
616 (next_section): Delete variable.
617 * valops.c (value_cast, value_at, value_at_lazy)
618 (value_coerce_function, value_addr, value_ind, value_string)
619 (find_rt_vbase_offset, value_full_object): Update.
620 * hpacc-abi.c (hpacc_virtual_fn_field)
621 (hpacc_value_rtti_type): Update.
622 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
623 (gnuv3_baseclass_offset): Update.
624 * f-valprint.c (f_val_print): Update.
625 * c-valprint.c (c_val_print): Update.
626 * p-valprint.c (pascal_val_print): Update.
627 * jv-valprint.c (java_value_print): Update.
628 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
629 * ada-lang.c (ada_value_primitive_packed_val)
630 (ada_evaluate_subexp): Update.
631 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
632 * expprint.c (print_subexp_standard): Update.
633 * infcall.c (call_function_by_hand): Update.
634 * valarith.c (value_add): Update.
635 * eval.c (evaluate_subexp_standard): Update.
636 * values.c (allocate_value, value_copy, value_static_field): Update.
637 * findvar.c (read_var_value, locate_var_value): Update.
639 2004-11-09 Andrew Cagney <cagney@gnu.org>
641 * i386-linux-tdep.c: Include "dwarf2-frame.h".
642 * Makefile.in: Update all dependencies.
644 2004-11-08 Andrew Cagney <cagney@gnu.org>
646 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
647 (sentinel_frame_unwinder): Add the prev_pc method.
648 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
649 available. Do not handle the sentinel-frame case.
650 * frame-unwind.h (frame_prev_register_ftype): Define.
651 (struct frame_unwind): Add prev_pc;
653 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
655 * configure.in: Check for ncurses/term.h.
656 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
657 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
658 * tui/tui.c: Don't include term.h.
659 * configure, config.in: Rebuilt.
661 2004-11-08 Mark Kettenis <kettenis@gnu.org>
663 * m68kbsd-nat.c: Include "inf-ptrace.h".
664 (_initialize_m68kbsd_nat): Fix pasto.
665 * Makefile.in (m68kbsd-nat.o): Update dependencies.
667 2004-11-08 Randolph Chung <tausq@debian.org>
669 * infrun.c (debug_infrun): New variable.
670 (resume, proceed, wait_for_inferior): Annotate with debug messages.
671 (handle_inferior_event, keep_going): Likewise.
672 (_initialize_infrun): Register "set debug infrun" command.
674 2004-11-08 Andreas Schwab <schwab@suse.de>
676 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
677 PTRACE_EVENT_VFORKDONE.
678 (child_follow_fork): Adjust.
680 2004-11-08 Andrew Cagney <cagney@gnu.org>
682 * README: Refer to 6.3, not 6.2, update directory listing droppng
683 references to intl/ and mmalloc/.
684 * PROBLEMS: Refer to 6.3 not 6.2.
686 * PROBLEMS: Delete no-longer applicable problems.
688 2004-11-07 Andrew Cagney <cagney@redhat.com>
689 Daniel Jacobowitz <dan@debian.org>
690 Roland McGrath <roland@redhat.com>
692 * Makefile.in (symfile-mem.o): Update dependencies.
693 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
694 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
695 * inf-ptrace.c (inf_ptrace_attach): Call
696 observer_notify_inferior_created.
697 * inftarg.c (child_attach): Likewise.
698 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
699 (symbol_file_add_from_memory): Take NAME argument. Use it for
700 the new BFD's filename.
701 (add_symbol_file_from_memory_command): Update call to
702 symbol_file_add_from_memory.
703 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
704 (symbol_file_add_from_memory_wrapper): New.
705 (_initialize_symfile_mem): Register add_vsyscall_page as an
706 inferior_created observer.
708 2004-11-07 Mark Kettenis <kettenis@gnu.org>
710 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
711 fetch_inferior_registers. Make static.
712 (m68kbsd_store_inferior_registers): Rename from
713 store_inferior_registers. Make static.
714 (_initialize_m68kbsd_nat): Construct and add target vector.
715 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
716 inftarg.o. Add inf-ptrace.o.
717 (NAT_FILE): Set to tm-solib.h.
718 (LOADLIBES): New variable.
719 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
720 inftarg.o. Add inf-ptrace.o.
721 (NAT_FILE): Delete variable.
722 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
723 inftarg.o. Add inf-ptrace.o.
724 (NAT_FILE): Set to tm-solib.h.
725 * config/m68k/nm-nbsdaout.h: Remove file.
727 2004-11-07 Daniel Jacobowitz <dan@debian.org>
729 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
730 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
731 (dwarf2_signal_frame_unwind): New.
732 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
733 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
735 2004-11-07 Mark Kettenis <kettenis@gnu.org>
737 * Makefile.in (mips64obsd-tdep.o): Fix typo.
739 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
740 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
741 to only include the structure members we actually need.
742 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
743 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
744 only include the structure members we actually need.
745 (mipsnbsd_init_abi): Update.
747 * mips64obsd-nat.c: Include "mips-tdep.h".
748 (MIPS64OBSD_NUM_REGS): Remove define.
749 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
750 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
751 floating-point registers correctly.
752 * Makefile.in (mips64obsd-nat.o): Update dependencies.
754 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
756 (mips64obsd_sigframe_init): New function.
757 (mips64obsd_sigframe): New variable.
758 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
760 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
762 2004-11-06 Joel Brobecker <brobecker@gnat.com>
764 * alpha-mdebug-tdep.c: #include mdebugread.h.
765 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
766 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
768 2004-11-05 Andrew Cagney <cagney@gnu.org>
770 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
771 CFI and the init_reg method leave the register unspecified.
772 Include the register name in the "Incomplete CFI data" complaint.
773 Supress leading zeros in the address.
775 2004-11-05 Mark Kettenis <kettenis@gnu.org>
777 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
778 skipping a personality routine in a CIE augmentation.
780 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
782 * defs.h (fatal, vfatal): New function prototypes.
783 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
785 (backtrace_command): Change to call backtrace_command_stub via
786 catch_errors instead of calling backtrace_command_1 directly.
787 (backtrace_full_command): Ditto.
788 * utils.c (error_stream_1): New static function.
789 (verror): Change to call error_stream_1 instead of error_stream.
790 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
791 (vfatal, fatal): New functions.
793 2004-11-05 Andrew Cagney <cagney@gnu.org>
795 * stack.c (parse_frame_specification_1): Clear selected_frame_p
796 when not using selected frame.
798 2004-11-05 Mark Kettenis <kettenis@jive.nl>
800 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
801 personality routine in a CIE augmentation.
803 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
805 * stack.c (set_current_sal_from_frame): New function.
806 (print_args_stub): Use it.
807 (print_frame_info): Don't set sal here.
809 2004-11-04 Mark Kettenis <kettenis@gnu.org>
811 * dwarf2-frame.c (read_encoded_value): Change type of third
812 argument to `unsigned char *'. Add support for LEB128 encodings.
814 2004-11-04 Jim Blandy <jimb@redhat.com>
816 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
817 prevent cross-objfile references.
818 (make_cv_type): Doc fix. Don't create cross-objfile references,
820 (replace_type): Add assertion to prevent cross-objfile references.
821 (check_typedef): Never resolve a stub type by copying over a type
824 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
826 * Makefile.in (m32r-tdep.o): Update dependencies.
827 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
828 ABI-specific overrides.
830 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
832 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
833 unnecessary parallel execution bit.
834 (m32r_memory_remove_breakpoint): Ditto.
835 (m32r_breakpoint_from_pc): Update.
837 2004-11-03 Randolph Chung <tausq@debian.org>
839 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
840 frame_func_unwind to locate the unwind entry.
841 (hppa_frame_this_id): Likewise.
843 2004-11-03 Andrew Cagney <cagney@gnu.org>
845 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
846 packet, obsolete configurations, end-of-life deprecated_registers.
848 2004-11-02 Mark Kettenis <kettenis@gnu.org>
850 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
851 encodings as well as unsigned encodings.
853 2004-11-02 Andrew Cagney <cagney@gnu.org>
855 * value.h (COERCE_VARYING_ARRAY): Delete.
856 * valops.c (value_cast, value_slice): Delete use.
857 * valarith.c (value_subscript, value_concat): Delete use.
859 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
861 * NEWS: GDB understands GNAT Ada.
863 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
865 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
866 (amd64-sol2-tdep.o): Add dependencies.
867 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
868 config/i386/sol2-64.mt: New files.
869 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
870 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
871 (supply_gregset): Correct order of arguments to
872 amd64_supply_native_gregset.
873 (fill_gregset): Correct order of arguments to
874 amd64_collect_native_gregset.
875 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
876 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
877 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
878 for definition of NEW_PROC_API.
879 * configure: Regenerate.
881 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
883 * MAINTAINERS (Write After Approval): Add myself.
885 2004-11-01 Andrew Cagney <cagney@gnu.org>
887 * configure.tgt: Mark d10v-*-* as obsolete.
888 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
890 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
892 * values.c (modify_field): Correct handling of bit-fields that
893 don't fit in 32 bits. Use unsigned operations throughout and
894 simplify the code a bit. Document preconditions.
896 2004-10-31 Andrew Cagney <cagney@gnu.org>
898 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
899 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
900 (in_plt_section): Delete.
902 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
903 (mips_gdbarch_init): Do not set same.
905 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
906 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
908 * gdbarch.sh (in_solib_call_trampoline): Delete.
909 * gdbarch.h, gdbarch.c: Re-generate.
911 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
912 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
913 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
914 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
915 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
917 2004-10-31 Mark Kettenis <kettenis@gnu.org>
919 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
920 (mipsnbsd_fetch_inferior_registers): Rename from
921 fetch_inferior_registers. Make static.
922 (mipsnbsd_store_inferior_registers): Rename from
923 store_inferior_registers. Make static.
924 (_initialize_mipsnbsd_nat): New function and prototype.
925 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
926 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
927 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
930 2004-10-31 Andrew Cagney <cagney@gnu.org>
932 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
933 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
934 delete corresponding unused function.
935 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
936 in_solib_call_trampoline.
937 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
938 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
939 * config/mips/tm-nbsd.h: Ditto.
940 * config/arm/tm-linux.h: Ditto.
941 * config/mips/tm-linux.h: Ditto.
943 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
944 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
945 in_solib_call_trampoline, delete corresponding unused function.
946 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
947 (vaxnbsd_aout_init_abi): Ditto.
948 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
949 (sparc32nbsd_aout_init_abi): Ditto.
950 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
951 (ppc_linux_init_abi): Ditto.
952 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
953 (ns32knbsd_init_abi_aout): Ditto.
954 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
955 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
956 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
957 (m68kbsd_aout_init_abi): Ditto.
958 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
959 (i386_cygwin_init_abi): Ditto.
960 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
961 (i386bsd_init_abi): Ditto.
963 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
964 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
965 isn't used by this architecture.
966 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
967 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
968 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
969 * s390-tdep.c (s390_gdbarch_init): Ditto.
970 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
971 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
972 * i386-tdep.c (i386_svr4_init_abi): Ditto.
973 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
974 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
975 * amd64-tdep.c (amd64_init_abi): Ditto.
977 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
978 in_solib_call_trampoline to its default value of
979 generic_in_solib_call_trampoline.
980 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
981 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
982 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
983 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
984 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
985 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
987 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
989 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
991 * config/mips/tm-mips.h: Delete file.
992 * remote-mips.c: Delete tm-mips.h from comment.
993 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
994 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
995 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
996 * config/mips/tm-linux.h: Don't include tm-mips.h.
997 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
998 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
999 * config/mips/tm-wince.h: Don't include.
1001 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1002 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1003 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1004 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1006 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1007 * mdebugread.c (ecoff_relocate_efi): Delete function.
1008 * objfiles.c (objfile_relocate): Delete #ifdef
1009 MDEBUG_EFI_SYMBOL_NAME code.
1011 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1012 Andrew Cagney <cagney@gnu.org>
1014 * gdbarch.sh (single_step_through_delay): Add.
1015 * gdbarch.h, gdbarch.c: Re-generate.
1016 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1017 (mips_step_skips_delay): Delete.
1018 * mips-tdep.c (mips_single_step_through_delay): Replace
1019 mips_step_skips_delay.
1020 (mips_gdbarch_init): Set single_step_through_delay.
1021 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1023 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1025 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1026 from TRAMP_FRAME frame type.
1028 2004-10-31 Andrew Cagney <cagney@gnu.org>
1030 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1032 * mips-tdep.c (mips_ignore_helper): Delete.
1033 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1034 * infrun.c (handle_inferior_event): Delete #ifdef
1035 DEPRECATED_IGNORE_HELPER_CALL code.
1037 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1039 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1041 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1042 (fill_fpregset): Do not compile for 64-bit systems.
1043 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1044 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1045 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1047 2004-10-30 Andrew Cagney <cagney@gnu.org>
1049 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1050 (struct mdebug_extra_func_info): Define.
1051 * config/alpha/tm-alpha.h: Delete same.
1052 * config/mips/tm-mips.h: Delete same.
1053 * mdebugread.c: Delete same.
1054 * Makefile.in: Update dependencies.
1055 * mips-mdebug-tdep.c: Include "mdebugread.h".
1057 * objfiles.c: Include "mdebugread.h".
1058 * mdebugread.c: Include "mdebugread.h".
1059 (ecoff_relocate_cfi): Delete.
1060 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1061 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1062 * mdebugread.h (ecoff_relocate_efi): New file.
1063 * Makefile.in: Update dependencies.
1065 * mips-tdep.c (struct frame_extra_info): Delete.
1066 (temp_proc_desc): Delete.
1068 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1069 MIPS_EFI_SYMBOL_NAME.
1070 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1071 (struct mdebug_extra_func_info): Replace struct
1072 alpha_extra_func_info and alpha_extra_func_info_t.
1073 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1074 MIPS_EFI_SYMBOL_NAME.
1075 (struct mdebug_extra_func_info): Replace struct
1076 alpha_extra_func_info and alpha_extra_func_info_t.
1077 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1078 * mdebugread.c, alpha-mdebug-tdep.c:
1080 Suggested by Mark Kettenis.
1081 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1082 fields frame_adjust and high_addr.
1083 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1084 (non_heuristic_proc_desc): Delete references.
1086 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1087 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1088 * mips-tdep.c: Update.
1090 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1091 (MIPS_LAST_EMBED_REGNUM): Add.
1092 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1093 (LAST_EMBED_REGNUM): Delete.
1094 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1096 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1097 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1098 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1099 * mips-linux-nat.c: Update.
1101 * mips-tdep.h: Add comments on registers.
1102 (MIPS_UNUSED_REGNUM): Define.
1103 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1104 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1105 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1106 * mips-linux-nat.c, remote-mips.c: Update.
1108 * config/mips/tm-mips.h (t_insn): Delete.
1109 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1110 Replace t_insn with ULONGEST.
1112 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1114 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1115 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1116 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1117 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1118 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1119 (mipsnbsd_core_osabi_sniffer): New function.
1120 (mipsnbsd_init_abi): Set regset_from_core_section.
1121 (_initialize_mipsnbsd_tdep): Remove calls to
1122 deprecated_add_core_fns.
1123 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1124 (mipsnbsd_regset_from_core_section): New functions.
1125 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1126 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1128 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1129 Remove optimization for DEPRECATED_FP_REGNUM.
1131 2004-10-30 Andrew Cagney <cagney@gnu.org>
1133 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1134 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1135 (alpha_setup_arbitrary_frame): Delete.
1136 * mips-tdep.c (setup_arbitrary_frame): Delete.
1137 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1138 (setup_arbitrary_frame): Delete.
1139 * stack.c (parse_frame_specification_1): When specified, call
1140 create_new_frame with two parameters. Delete #ifdef
1141 SETUP_ARBITRARY_FRAME.
1143 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1144 (MIPS_INSTLEN): Delete.
1145 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1146 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1147 * remote-mips.c, mips-tdep.c: Update.
1149 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1150 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1151 * mips-tdep.c (mips_mdebug_frame_cache)
1152 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1153 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1154 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1155 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1156 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1157 (mips_gdbarch_init): Do not append mdebug sniffers.
1158 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1159 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1160 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1161 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1162 * Makefile.in: Update dependencies.
1164 * mips-tdep.h (mips_abi_regsize): Declare.
1165 * mips-tdep.c (mips_abi_regsize): Make non-static.
1167 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1168 (make_mips16_addr): Delete.
1170 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1172 * i386-sol2-nat.c: New file.
1173 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1175 (i386-sol2-nat.o): Update dependencies.
1176 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1179 2004-10-30 Andrew Cagney <cagney@gnu.org>
1181 Total breakage identified by Joel Brobecker.
1182 * mips-tdep.c (after_prologue): Delete.
1183 (mips_skip_prologue): Use skip_prologue_using_sal.
1184 (heuristic_proc_desc): Delete, unused.
1186 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1188 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1189 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1190 Cleanup coding style.
1192 2004-10-30 Andrew Cagney <cagney@gnu.org>
1194 * mips-tdep.h (mips_pc_is_mips16): Declare.
1195 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1196 non-static. Update calls.
1198 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1199 * command.h (add_setshow_enum_cmd): Declare.
1200 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1202 * mips-tdep.c (_initialize_mips_tdep): Use
1203 add_setshow_zinteger_cmd.
1205 * mips-tdep.c (mips_eabi_extract_return_value)
1206 (mips_o64_extract_return_value, mips_o64_store_return_value)
1207 (return_value_location, mips_eabi_reg_struct_has_addr)
1208 (mips_eabi_use_struct_convention)
1209 (mips_eabi_store_return_value): Delete.
1210 (mips_eabi_store_return_value): New function.
1211 (mips_eabi_return_value): New function.
1212 (mips_gdbarch_init): For O64 and EABI, delete
1213 extract_return_value, store_return_value, use_struct_convention
1214 and reg_struct_has_addr, add return_value.
1216 * mips-tdep.c (read_signed_register): Use
1217 regcache_cooked_read_signed.
1219 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1221 * mipsread.c: Cleanup coding style.
1222 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1223 (mipscoff_symfile_finish): Remove prototypes.
1225 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1227 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1228 (mips_mdebug_frame_cache, mips16_scan_prologue)
1229 (mips32_scan_prologue, mips_stub_frame_cache)
1230 (heuristic_proc_start, heuristic_proc_desc)
1231 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1232 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1233 (mips_o32_return_value, mips_o64_push_dummy_call)
1234 (mips_step_skips_delay, mips_skip_trampoline_code)
1235 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1236 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1237 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1238 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1239 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1240 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1241 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1242 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1243 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1244 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1246 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1247 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1249 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1251 * mipsnbsd-nat.c: Include "mips-tdep.h".
1252 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1253 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1255 2004-10-29 Andrew Cagney <cagney@gnu.org>
1257 * stack.c (parse_frame_specification_1): New function based on
1258 parse_frame_specification. Add message and selected_frame_p
1259 paramters. Truely always return non-NULL.
1260 (parse_frame_specification): Call parse_frame_specification_1.
1261 (frame_info): Update. Eliminate target_has_stack check.
1262 (select_frame_command): Update.
1264 2004-10-29 Andrew Cagney <cagney@gnu.org>
1266 * frame.h (get_selected_frame): Add message parameter.
1267 * frame.c (get_selected_frame): Add and use message parameter.
1268 * stack.c (current_frame_command, return_command, locals_info)
1269 (catch_info, args_info, up_silently_base, down_silently_base): Use
1270 get_selected_frame with an explicit message.
1271 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1272 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1273 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1274 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1275 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1276 * breakpoint.c: Update.
1278 2004-10-29 Andrew Cagney <cagney@gnu.org>
1280 * trad-frame.c (trad_frame_get_prev_register): Use
1281 frame_unwind_register instead of frame_register_unwind, do not
1282 recurse the register's location.
1283 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1284 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1285 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1286 * sh-tdep.c (sh_frame_prev_register): Ditto.
1287 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1288 * i386-tdep.c (i386_frame_prev_register): Ditto.
1289 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1290 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1292 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1294 * proc-events.c: Fix several coding-style issues. Consistently
1295 use #ifdef instead of #if defined().
1296 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1298 (_initialize_proc_events): New prototype.
1300 * proc-why.c: Fix several coding-style issues.
1301 (proc_prettyfprint_why): Use ARRAY_SIZE.
1303 2004-10-27 Jim Blandy <jimb@redhat.com>
1305 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1306 manner independent of the host byte order.
1308 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1310 * mips-tdep.c (id_delayed): Remove prototype.
1312 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1314 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1315 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1316 to enum with register numbers.
1317 (enum mips_insn_size): New enum.
1319 2004-10-26 Andrew Cagney <cagney@gnu.org>
1321 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1322 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1323 (mips_gdbarch_init): Update.
1324 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1326 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1327 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1328 IN_SOLIB_RETURN_TRAMPOLINE.
1329 * mips-tdep.c (mips_dump_tdep): Do not print
1330 IN_SOLIB_RETURN_TRAMPOLINE.
1331 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1332 (mips_gdbarch_init): Update.
1334 * mips-tdep.h (mips_software_single_step): Move to here ...
1335 * config/mips/tm-mips.h: ... from here.
1336 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1337 (SOFTWARE_SINGLE_STEP): Delete.
1338 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1340 2004-10-25 Andrew Cagney <cagney@gnu.org>
1342 * NEWS: Add Changes since GDB 6.3 section.
1344 2004-10-23 Andreas Schwab <schwab@suse.de>
1346 * ada-lang.c (grow_vect): Return the new array instead of
1347 expecting pointer to pointer to avoid violation of aliasing rules.
1348 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1350 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1352 * s390-tdep.c (enum pv_boolean): Remove.
1353 (pv_is_array_ref): Remove.
1354 (s390_on_stack): Remove.
1355 (S390_NUM_SPILL_SLOTS): Remove.
1356 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1357 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1358 (s390_store): Track all stores of orginal incoming registers to the
1359 stack constant offsets relative to the CFA, instead of only tracking
1360 stores into specific spill slots.
1361 (s390_load): Likewise.
1362 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1363 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1364 defined as call-saved by the ABI.
1365 (s390_push_dummy_call): Use bottom of dummy call argument save area
1366 as return value, not the top. Do not store to the called function's
1368 (s390_unwind_dummy_id): Adapt accordingly.
1370 2004-10-23 Andrew Cagney <cagney@gnu.org>
1372 * objfiles.h (struct objfile): Rename obj_private to
1373 deprecated_obj_private, sym_private to deprecated_sym_private, and
1374 sym_stab_info to deprecated_sym_stab_info.
1375 * gdb-stabs.h: Update.
1376 * elfread.c: Update.
1377 * dbxread.c: Update.
1378 * coffread.c: Update.
1379 * xcoffread.c: Update.
1380 * symfile.c: Update.
1381 * somread.c: Update.
1382 * nlmread.c: Update.
1383 * mdebugread.c: Update.
1385 * coffread.c: Update.
1387 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1389 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1390 * configure.host: Add mips64*-*-openbsd*.
1391 * configure.tgt: Add mips64*-*-openbsd*.
1392 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1394 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1395 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1397 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1399 * symtab.c (symbol_search_name): Minor reformatting.
1401 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1403 * symtab.h: Fix typo in comment.
1405 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1407 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1408 (dwarf_decode_line_header): Likewise.
1410 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1412 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1414 2004-10-19 Andrew Cagney <cagney@gnu.org>
1416 GDB 6.3 branch created.
1417 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1419 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1421 * dwarf2read.c (set_cu_language): Set language to Ada for
1422 DW_LANG_Ada83 and DW_LANG_Ada95.
1424 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1426 From Andreas Schwab <schwab@suse.de>:
1427 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1428 for xmalloc and xrealloc.
1430 2004-10-15 Andrew Cagney <cagney@gnu.org>
1432 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1433 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1434 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1435 Update dependencies.
1437 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1439 * ada-lang.c (ada_lookup_symbol): Correct comment.
1440 (ada_evaluate_subexp): Change error message for
1441 OP_FUNCALL case so as not to indicate an internal error.
1443 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1445 Committed by Paul Hilfinger.
1446 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1447 type sizes in XVE/XVU types, and emit a warning when that happens,
1448 instead of rounding up the size of the resulting type.
1449 Some minor reformatting.
1450 (ada_is_aligner_type): Do not consider a type as an aligner type
1451 if there is a corresponding XVS type as well.
1452 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1453 have several levels of pointer indirection to the array.
1455 2004-10-15 Jerome Guitton <guitton@gnat.com>
1457 Committed by Paul Hilfinger.
1458 * ada-lang.c (check_size): New function.
1459 (coerce_unspec_val_to_type): call check_size to make sure
1460 that the object size is reasonable.
1461 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1462 Implements the case when we get a reference when we evaluate
1463 the expression of one of the bounds of the slice.
1464 (ada_value_struct_elt): when a packed array field is
1465 a reference, use ada_coerce_ref to dereference it; use
1466 ada_value_ind only if it is a pointer.
1468 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1470 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1471 a bit to avoid the necessity of an advance declaration. Remove
1473 (set_reg_offset): Move implemenation up.
1474 (mips16_get_imm): Likewise.
1475 (mips16_scan_prologue): Likewise.
1476 (reset_saved_regs): Likewise.
1477 (mips32_scan_prologue): Likewise.
1479 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1481 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1482 Remove sp as a parameter, compute it internally instead. Move
1483 prologue scanning limit from heuristic_proc_desc to here.
1484 (mips16_scan_prologue): Likewise.
1485 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1486 by call to mips16_scan_prologue.
1487 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1488 by call to mips32_scan_prologue.
1489 (heuristic_proc_desc): Remove code that's no longer necessary.
1490 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1491 (mips_skip_prologue): Update calls to mips16_scan_prologue
1492 and mips32_scan_prologue.
1494 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1496 * mips-tdep.c (mips16_scan_prologue): Merge code from
1497 mips16_skip_prologue. Now return the address of the first
1498 instruction past the function prologue.
1499 (mips16_skip_prologue): Remove, no longer necessary.
1500 (mips_skip_prologue): Replace call to mips16_skip_prologue
1501 by call to mips16_scan_prologue.
1503 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1505 * mips-tdep.c (mips32_scan_prologue): Merge code from
1506 mips32_skip_prologue. Now return the address of the first
1507 instruction past the function prologue.
1508 (mips32_skip_prologue): Remove. No longer necessary.
1509 (mips16_skip_prologue): Add parameter end_pc instead of
1511 (mips_skip_prologue): Compute the upper limit for the
1512 prologue scanning. Update call to mips16_skip_prologue.
1513 Replace call to mips32_skip_prologue by call to
1514 mips32_scan_prologue.
1516 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1518 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1519 NetBSD system call stubs that store %rp in the ERP slot of the
1522 * source.c: Always define O_BINARY to 0 if not defined already.
1523 (openp): Unconditionally use O_BINARY.
1525 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1526 * event-top.c (gdb_readline2): Likewise.
1528 2004-10-14 Orjan Friberg <orjanf@axis.com>
1530 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1531 deprecated_add_core_fns which was removed by mistake.
1533 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1535 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1536 references to deprecated_registers[] with equivalent code.
1538 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1540 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1541 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1542 instead of explicit test and print statement.
1544 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1546 * sparc-nat.c: Include "inf-ptrace.h".
1547 (sparc_target): New function.
1548 * sparc-nat.h: Update copyright year.
1549 (sparc_target): New prototype.
1550 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1551 (_initialize_sparcnbsd_nat): Construct and add target vector.
1552 * sparc64nbsd-nat.c: Include "target.h".
1553 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1554 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1555 Update dependencies.
1556 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1557 inftarg.o, add inf-ptrace.o.
1558 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1559 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1560 (NAT_FILE): Set to nm-bsd.h.
1561 (LOADLIBES): New variable.
1562 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1563 infarg.o, add inf-ptrace.o.
1564 * config/sparc/nm-nbsdaout.h: Remove file.
1565 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1566 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1567 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1569 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1570 "fopen-same.h". Update comment.
1572 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1574 * i386gnu-nat.c: Include "gdb_string.h".
1575 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1576 registers when the floating-point state isn't initialized.
1577 * Makefile.in (i386gnu-nat.o): Update dependencies.
1579 2004-10-11 David Anderson <davea@sgi.com>
1581 * regcache.c (regcache_raw_read): Comment was missing "to".
1582 Extraneous ' removed.
1583 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1584 comment now describes use.
1586 2004-10-11 Orjan Friberg <orjanf@axis.com>
1588 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1589 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1590 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1591 (cris_sigtramp_frame_sniffer): New functions.
1592 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1593 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1594 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1595 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1596 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1598 (cris_version_update): Remove, replace with ...
1599 (set_cris_version): New function.
1600 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1601 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1602 (_initialize_cris_tdep): Remove CRIS mode command.
1603 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1604 cris-fpless-backtrace command.
1605 (cris_scan_prologue): Fix prologue scanning limit.
1606 (cris_register_type): Update to reflect actual registers.
1607 (cris_register_bytes_ok) Remove.
1608 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1609 Remove set_gdbarch_deprecated_register_size,
1610 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1612 2004-10-10 Andrew Cagney <cagney@gnu.org>
1614 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1617 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1619 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1621 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1623 * mips-tdep.c (mips16_scan_prologue): Renames
1624 mips16_heuristic_proc_desc. Update comment.
1625 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1626 (heuristic_proc_desc): Update calls to the 2 functions above.
1628 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1630 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1631 Update comments. Also immediately return empty cache when the start
1632 address of our function could not be found.
1633 (mips_insn32_frame_cache): Likewise.
1635 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1637 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1638 (mips_insn16_frame_cache): Pass frame cache in call to
1639 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1640 Remove code that became redundant as a consequence.
1641 (mips32_heuristic_proc_desc): No longer compute a fake
1642 procedure descriptor. Compute the full frame cache instead.
1643 Some minor comment reformatting.
1645 2004-10-10 Jim Blandy <jimb@redhat.com>
1647 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1648 reader, tracing bytecode stuff): Remove self.
1650 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1652 * sparc64-linux-tdep.c: Update copyright year. Don't include
1654 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1655 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1656 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1658 * sparc-linux-tdep.c: Update copyright year.
1659 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1660 to struct frame_info *. Use safe_frame_unwind_memory instead of
1661 deprecated_read_memory_nobpt.
1662 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1663 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1664 changed signature of sparc_linux_sigtramp_start.
1665 (sparc32_linux_pc_in_sigtramp): Remove function.
1666 (sparc32_linux_sigtramp_p): New function.
1667 (sparc32_linux_sigtramp_frame_sniffer): Use
1668 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1670 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1672 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1674 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1675 (decode_packed_array_type, value_subscript_packed)
1676 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1677 argument in call to lim_warning.
1679 * configure.in: Really disable the TUI if an enhanced curses
1680 library isn't found.
1681 * configure: Regenerate.
1683 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1685 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1686 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1687 * config/i386/nm-nbsdaout.h: Remove file.
1688 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1689 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1690 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1691 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1692 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1693 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1694 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1695 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1696 (ldd, ld_un, ld_2): Remove defines.
1697 * config/i386/nm-obsd.h: Likewise.
1699 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1701 * ada-lex.l: Remove useless rule whose right-context clause
1702 causes unreferenced static function warning for yyrealloc.
1703 (ada_flex_use): Remove the artificial reference to yyrealloc.
1705 2004-10-08 Andrew Cagney <cagney@gnu.org>
1707 * target.h (struct target_ops): Rename to_xfer_memory to
1708 deprecated_xfer_memory.
1710 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1712 * win32-nat.c: Update.
1713 * v850ice.c: Update.
1714 * uw-thread.c: Update.
1715 * thread-db.c: Update.
1716 * sol-thread.c: Update.
1718 * remote-vx.c: Update.
1719 * remote-st.c: Update.
1720 * remote-sim.c: Update.
1721 * remote-sds.c: Update.
1722 * remote-rdp.c: Update.
1723 * remote-rdi.c: Update.
1724 * remote-mips.c: Update.
1725 * remote-m32r-sdi.c: Update.
1726 * remote-e7000.c: Update.
1728 * ppc-bdm.c: Update.
1729 * nto-procfs.c: Update.
1730 * monitor.c: Update.
1731 * linux-nat.c: Update.
1732 * inftarg.c: Update.
1733 * hpux-thread.c: Update.
1734 * go32-nat.c: Update.
1735 * gnu-nat.c: Update.
1737 * corelow.c: Update.
1738 * bsd-kvm.c: Update.
1739 * aix-thread.c: Update.
1741 2004-10-08 Andrew Cagney <cagney@gnu.org>
1743 * target.c (debug_target): Move to near start of file.
1744 (target_stopped_data_address_p): Re-org logic, add casts.
1746 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1748 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1749 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1750 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1751 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1754 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1756 * target.h (to_stopped_data_address): Change prototype to
1757 take a CORE_ADDR pointer and return an int.
1758 * target.c (update_current_target): Change to_stopped_data_address
1759 to match new prototype.
1760 (debug_to_stopped_data_address): Change appropriately.
1761 * breakpoint.c (bpstat_stop_status): Change call to
1762 target_stopped_data_address to use new prototype.
1763 * frv-tdep.c (frv_have_stopped_data_address): New function.
1764 (frv_stopped_data_address): Change to new prototype and
1766 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1767 prototype and functionality.
1768 (ia64_stopped_by_watchpoint): New function.
1769 * i386-nat.c (i386_stopped_data_address): Change to new
1770 prototype and functionality.
1771 (i386_stopped_by_watchpoint): New function.
1772 * remote.c (remote_stopped_data_address): Change to new prototype
1774 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1775 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1776 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1777 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1778 new i386_stopped_by_watchpoint function.
1779 (i386_stopped_by_watchpoint): New prototype.
1780 (i386_stoppped_data_address): Change to new prototype.
1781 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1782 new ia64_stopped_by_watchpoint function.
1783 (ia64_stopped_by_watchpoint): New prototype.
1784 (ia64_stopped_data_address): Ditto.
1786 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1788 * ada-typeprint.c (ada_print_type): Use int_string for printing
1789 modulus of modular type.
1790 * ada-lang.h (ada_modulus): Change return type to unsigned.
1791 * ada-lang.c (ada_language_arch_info): Correct type of
1793 (ada_modulus): Return unsigned result.
1794 (ada_lookup_symbol): Remove user disambiguation and modify comment
1797 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1799 Committed by Paul Hilfinger.
1800 * ada-lang.c (decode_packed_array): On big-endian targets,
1801 left-justify the value if it comes with a modular type.
1803 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1805 Committed by Paul Hilfinger.
1806 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1807 (is_name_suffix): Add support for "___JM" suffixes.
1808 (ada_check_typedef): Renames ada_completed_type.
1809 Update all users of CHECK_TYPEDEF, check_typedef, and
1810 ada_complete_type to call ada_check_typedef.
1811 * ada-typeprint.c: Likewise.
1812 * ada-valprint.c: Likewise.
1814 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1816 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1818 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1820 * MAINTAINERS: Update e-mail address.
1822 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1824 From Maciej W. Rozycki <macro@mips.com>:
1825 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1826 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1828 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1830 * m32r-tdep.c (decode_prologue): Support functions written
1831 in assembler language. Recognize trap instructions as the
1833 (m32r_frame_unwind_cache): Ditto.
1834 (m32r_skip_prologue): Extend search limit. Quit analyzing
1835 prologue if pc's location is not readable.
1837 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1839 * Makefile.in (.l.c): Do conversions of names of alloc and free
1840 functions that are done for .y.c files, plus special one
1841 for yy_flex_realloc. Also, correct missing-file tests here.
1842 * ada-lex.l (malloc, free): Remove macros.
1843 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1845 (ada_flex_use): Dummy definition to remove warnings about unused
1847 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1848 to suppress warning.
1850 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1852 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1854 (sh_return_value_fpu): Ditto for CPUs with FPU.
1855 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1856 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1857 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1858 RETURN_VALUE functions.
1860 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1862 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1863 (sh_pseudo_register_write): Ditto.
1865 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1867 * sh-tdep.c (IS_MACL_STS): New define.
1869 (IS_MACL_LDS): Ditto.
1870 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1871 instructions in prologue.
1872 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1873 instructions in epilogue.
1875 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1877 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1878 (sh_sh_register_name): Add eight empty register names.
1879 (sh_sh3_register_name): Ditto.
1880 (sh_sh3e_register_name): Ditto.
1881 (sh_sh2e_register_name): Ditto.
1882 (sh_sh2a_register_name): New function, defining SH2A register set.
1883 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1885 (sh_sh_dsp_register_name): Add eight empty register names.
1886 (sh_sh3_dsp_register_name): Ditto.
1887 (sh_sh4_register_name): Ditto.
1888 (sh_sh4_nofpu_register_name): Ditto.
1889 (sh_sh4al_dsp_register_name): Ditto.
1890 (sh2a_show_regs): New function.
1891 (sh2a_nofpu_show_regs): New function.
1892 (sh_sh2a_register_type): New function.
1893 (do_bank_register_info): New function.
1894 (sh_print_pseudo_register): Call do_bank_register_info.
1895 Call sh_print_pseudo_register for valid "bank" register.
1896 (sh_sh2a_register_sim_regno): New function.
1897 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1898 Increment pseudo register count by one for all sh variants with
1899 pseudo registers to accomodate pseudo bank register.
1900 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1901 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1902 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1903 Increment pseudo register numbers.
1905 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1907 * dwarf2read.c (read_subroutine_type): Call make_function_type
1908 instead of lookup_function_type.
1910 2004-10-05 Jim Blandy <jimb@redhat.com>
1912 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1913 (Previous change missed some uses.)
1915 2004-10-05 Andrew Cagney <cagney@gnu.org>
1917 * target.h (deprecated_child_ops): Rename child_ops.
1918 * wince.c: Update copyright. Rename child_ops.
1919 * win32-nat.c: Rename child_ops.
1920 * target.c: Rename child_ops.
1921 * rs6000-nat.c: Rename child_ops.
1922 * linux-nat.c: Rename child_ops.
1923 * infttrace.c: Rename child_ops.
1924 * inftarg.c: Rename child_ops.
1925 * infptrace.c: Rename child_ops.
1926 * hppah-nat.c: Update copyright. Rename child_ops.
1927 * hpux-thread.c: Update copyright. Rename child_ops.
1929 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1931 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1933 2004-10-05 Andrew Cagney <cagney@gnu.org>
1935 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1937 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1939 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1940 (die_ref_table): Remove.
1941 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1942 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1943 the usage of this type.
1944 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1945 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1946 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1947 (dwarf2_create_include_psymtab): Update comment.
1948 (find_partial_die): Remove third argument. Remove unreachable call
1950 (dwarf2_find_containing_comp_unit): Update comments. Change one
1951 assertion to an error. Remove an unreachable error.
1952 (dwarf2_find_comp_unit): Update comments.
1953 (type_at_offset): Remove dead code.
1954 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1955 (store_in_ref_table): Add CU argument.
1956 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1957 inter-compilation-unit references.
1958 (load_full_comp_unit, process_full_comp_unit): New functions, based
1959 on psymtab_to_symtab_1.
1960 (psymtab_to_symtab_1): Use them.
1961 (dwarf2_add_dependence): New function.
1962 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1963 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1964 (partial_die_parent_scope, guess_structure_name): Update for changes
1965 to find_partial_die.
1966 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1967 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1968 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1969 (read_die_and_children): Update call to store_in_ref_table.
1970 (do_free_die_list_cleanup): Remove.
1971 (fixup_partial_die): Update for changes to find_partial_die.
1972 (read_full_die): Handle queueing absolute references.
1973 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1974 (dwarf2_attr, die_specification, die_type)
1975 (die_containing_type, dwarf2_extension): Update calls to
1977 (dump_die): Update DW_FORM_ref* handling.
1978 (dwarf2_get_ref_die_offset): Likewise.
1979 (free_one_comp_unit): Release the dies list.
1980 (dwarf2_mark_helper): New function.
1981 (dwarf2_mark): Use it.
1983 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1985 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1986 when writing to memory.
1988 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1990 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1991 (m32r_extract_struct_value_address): Delete function.
1992 (m32r_return_value): New function.
1993 (m32r_gdbarch_init): Instead of store_return_value,
1994 extract_return_value, deprecated_extract_struct_value_address
1995 and deprecated_use_struct_convention, set return_value.
1997 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1999 * dwarf2read.c (read_subrange_type): Add comment for variable
2002 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2004 * Makefile.in (.l.c): Modify rule for compatibility with recent
2005 versions of flex, and remove most command-line options.
2006 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2009 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2011 Turn on initial Ada support (mainly expression evaluation).
2013 * Makefile.in (SFILES): Remove ada-tasks.c.
2014 (HFILES_NO_SRCDIR): Add ada-lang.h.
2015 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2016 (YYOBJ): Add ada-exp.o.
2017 (rule .l.c): Generalize to not mention ada.
2018 * symtab.c: Include ada-lang.h.
2019 (symbol_natural_name, symbol_demangled_name)
2020 (symbol_search_name): Add Ada case.
2022 2004-10-01 Andrew Cagney <cagney@gnu.org>
2024 * Makefile.in (COMMON_OBS): Add inf-child.o.
2025 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2026 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2027 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2028 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2029 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2030 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2031 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2032 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2033 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2034 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2035 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2036 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2037 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2039 * target.c (xfer_using_stratum): Change return type to LONGEST.
2040 On each iteration offset, readbuf and writebuf.
2041 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2042 partial_length, and read/modify/write predicate, update comments.
2043 Pass buffer.word to ptrace write.
2045 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2047 * symfile.c (init_filename_language_table): Add extensions for
2049 * defs.h (enum language): Add language_ada.
2050 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2051 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2052 (add_symbols_from_enclosing_procs): Make a no-op for now.
2053 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2054 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2055 (find_line_in_linetable, find_next_line_in_linetable)
2056 (read_all_symtabs, is_plausible_func_for_line)
2057 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2058 (is_runtime_sym_defined, check_size): Remove declaration.
2059 (function_name_from_pc, ada_translate_error_message)
2060 (ada_lookup_minimal_symbol): Remove definition.
2061 (ada_add_block_symbols): Remove useless label.
2062 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2063 useless declaration.
2064 (ada_is_exception_sym): Likewise.
2066 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2068 Add m32r-linux support.
2069 * configure.tgt: Add m32r*-*-linux*.
2070 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2071 and m32r-linux-tdep.c.
2072 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2073 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2074 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2076 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2077 config/m32r/linux.mh, config/m32r/linux.mt,
2078 config/m32r/nm-linux.h: New files.
2080 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2082 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2083 (mips32_fetch_instruction): Remove, unused.
2085 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2087 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2088 conditions that will always be true.
2090 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2092 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2093 (vaxbsd_fetch_inferior_registers): Rename from
2094 fetch_inferior_registers. Make static.
2095 (vaxbsd_store_inferior_registers): Rename from
2096 store_inferior_registers. Make static.
2097 (_initialize_vaxbsd_nat): Construct and add target vector.
2098 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2099 inftarg.o. Add inf-child.o and inf-ptrace.o.
2100 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2101 inftarg.o. Add inf-child.o and inf-ptrace.o.
2103 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2104 inftarg.o. Add inf-child.o and inf-ptrace.o.
2106 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2108 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2109 (m88kbsd_fetch_inferior_registers): Rename from
2110 fetch_inferior_registers. Make static.
2111 (m88kbsd_store_inferior_registers): Rename from
2112 store_inferior_registers. Make static.
2113 (_initialize_m88kbsd_nat): New prototype and function.
2114 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2115 inftarg.o. Add inf-child.o and inf-ptrace.o.
2117 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2119 2004-09-30 Andrew Cagney <cagney@gnu.org>
2121 * target.c (target_xfer_partial): New function.
2122 (target_read_memory_partial, target_write_memory_partial)
2123 (default_xfer_partial, target_read_partial, target_write_partial)
2124 (xfer_using_stratum): Use.
2125 (debug_to_xfer_partial): Delete function.
2126 (setup_target_debug): Do not override to_xfer_partial.
2128 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2130 * fork-child.c: Update copyright year. Fix coding style.
2132 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2134 * defs.h (msavestring, mstrsave): Remove prototypes.
2135 * utils.c (msavestring, mstrsave): Remove functions.
2136 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2137 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2139 * source.c (find_and_open_source): Use xstrdup instead of
2142 2004-09-30 Andrew Cagney <cagney@gnu.org>
2144 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2145 (inf_ptrace_xfer_memory): Delete.
2146 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2147 (target_read_memory, target_write_memory): Use xfer_using_stratum
2148 when target_xfer_partial_p.
2149 (debug_target): Move to start of file.
2150 (target_read_memory_partial, target_write_memory_partial): Use
2151 to_xfer_partial when target_xfer_partial_p.
2153 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2154 inf_ptrace_xfer_memory with equivalent code.
2155 * inftarg.c (child_xfer_partial): When performing a write, pass
2156 writebuf to child_xfer_memory.
2158 * target.c (target_read_string): Use target_read_memory instead of
2161 2004-09-29 Andrew Cagney <cagney@gnu.org>
2163 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2164 the address of status.
2166 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2167 (kill_inferior): Inline ptrace_wait call.
2168 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2169 * inftarg.c (child_wait): Inline ptrace_wait call.
2171 * target.h (struct target_ops): Delete field to_post_wait.
2172 (target_post_wait): Delete macro.
2173 (child_post_wait): Delete declaration.
2174 * target.c (update_current_target, update_current_target)
2175 (debug_to_post_wait, setup_target_debug): Delete functions and
2177 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2178 * inftarg.c (child_post_wait): Delete.
2179 (init_child_ops): Do not set to_post_wait.
2180 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2181 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2182 * inf-child.c (inf_child_post_wait): Delete.
2183 (inf_child_target): Do not set to_post_wait.
2184 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2185 (inf_ptrace_target): Do not set to_post_wait.
2187 * wince.c (child_ops): Delete.
2188 * win32-nat.c (child_ops): Delete.
2190 * inftarg.c (inftarg_set_find_memory_regions)
2191 (inftarg_set_make_corefile_notes): Delete functions.
2192 (_initialize_linux_nat): Inline calls.
2194 * target.h (child_ops): Declare.
2195 * inftarg.c (child_ops): Move from here ...
2196 * target.c (child_ops): ... to here.
2197 * wince.c (child_ops): Delete extern declaration.
2198 * win32-nat.c (child_ops): Delete extern declaration.
2199 * linux-nat.c (child_ops): Delete extern declaration.
2200 * hpux-thread.c (child_ops): Delete extern declaration.
2202 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2204 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2206 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2208 * configure.in: Only set host_makefile_frag when building a native
2210 * configure: Regenerate.
2212 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2215 2004-09-28 Andrew Cagney <cagney@gnu.org>
2217 Problem identified by Paul Hilfinger.
2218 * Makefile.in (ada_lex_c): Define.
2219 (ada-lex.o): Delete rule.
2221 * linux-proc.c: Delete file.
2222 * Makefile.in: Update.
2223 * config/sparc/linux64.mh (NATDEPFILES):
2224 * config/sparc/linux.mh (NATDEPFILES): Update.
2225 * config/s390/s390.mh (NATDEPFILES): Update.
2226 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2227 * config/powerpc/linux.mh (NATDEPFILES): Update.
2228 * config/pa/linux.mh (NATDEPFILES): Update.
2229 * config/mips/linux.mh (NATDEPFILES): Update.
2230 * config/m68k/linux.mh (NATDEPFILES): Update.
2231 * config/ia64/linux.mh (NATDEPFILES): Update.
2232 * config/i386/linux64.mh (NATDEPFILES): Update.
2233 * config/i386/linux.mh (NATDEPFILES): Update.
2234 * config/arm/linux.mh (NATDEPFILES): Update.
2235 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2236 * linux-nat.c: Update copyright. Include <sys/param.h>,
2237 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2238 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2239 (O_LARGEFILE): Possibly define.
2240 (_initialize_linux_nat, linux_proc_pending_signals)
2241 (add_line_to_sigset, linux_proc_xfer_memory)
2242 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2243 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2244 (struct linux_corefile_thread_data)
2245 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2246 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2248 2004-09-16 Andrew Cagney <cagney@gnu.org>
2250 * lin-lwp.c: Delete file.
2251 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2252 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2253 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2254 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2255 (linux_nat_attach, detach_callback, linux_nat_detach)
2256 (resume_callback, resume_clear_callback, linux_nat_resume)
2257 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2258 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2259 (status_callback, running_callback, count_events_callback)
2260 (select_singlestep_lwp_callback, select_event_lwp_callback)
2261 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2262 (child_wait, stop_and_resume_callback, linux_nat_wait)
2263 (kill_callback, kill_wait_callback, linux_nat_kill)
2264 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2265 (linux_nat_xfer_memory, linux_nat_thread_alive)
2266 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2267 (_initialize_linux_nat): New functions.
2268 * Makefile.in: Update all dependencies.
2269 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2270 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2271 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2272 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2273 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2274 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2275 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2276 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2277 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2278 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2279 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2280 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2281 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2283 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2285 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2286 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2288 * configure.in: Don't comment out NATDEPFILES in the generated
2289 Makefile if NAT_FILE is unset.
2290 * configure: Regenerate.
2292 2004-09-27 Andrew Cagney <cagney@gnu.org>
2294 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2295 (insert_step_resume_breakpoint): Delete.
2296 (insert_step_resume_breakpoint_at_frame): New function.
2297 (insert_step_resume_breakpoint_at_sal): New function.
2298 (handle_inferior_event, step_into_function)
2299 (insert_step_resume_breakpoint): Simplify by using same.
2301 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2303 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2305 * fbsd-proc.c: Remove file.
2306 * Makefile.in (fbsd-proc.o): Remove dependency.
2308 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2311 * config/i386/nm-fbsd64.h: Remove file.
2312 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2314 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2316 * amd64-nat.h: Update copyright year.
2317 (amd64bsd_target): New prototype.
2318 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2319 (amd64bsd_target): New function.
2320 (amd64bsd_fetch_inferior_registers): Rename from
2321 fetch_inferior_registers. Make static.
2322 (amd64bsd_store_inferior_registers): Rename from
2323 store_inferior_registers. Make static.
2324 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2325 (_initialize_amd64fbsd_nat): Construct and add target vector.
2326 * amd64nbsd-nat.o: Include "target.h".
2327 (_initialize_amd64nbsd_nat): Construct and add target vector.
2328 * amd64obsd-nat.c: Include "target.h".
2329 (_initialize_amd64obsd_nat): Construct and add target vector.
2330 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2331 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2332 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2334 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2335 Remove infptrace.o and inftarg.o. Add inf-child.o and
2337 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2338 (amd64obsd-nat.o): Update dependencies.
2340 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2342 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2343 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2344 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2345 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2346 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2348 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2350 (inf_ptrace_detach): Inline detach call.
2352 * configure.in: Check for waddstr instead of mvwaddstr when
2353 searching for curses library. Check for wborder.
2354 * configure, config.in: Regenerate.
2355 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2358 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2360 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2362 Committed by Andrew Cagney.
2363 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2364 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2366 (fetch_register_using_p): Implement 'p' packet. Based on code by
2368 (remote_fetch_registers): Call fetch_register_using_p.
2369 (init_all_packet_configs, show_remote_cmd)
2370 (_initialize_remote): Add p-packet.
2372 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2374 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2375 instead of call_ptrace. Call wait directly instead of
2377 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2378 (inf_ptrace_wait): Inline ptrace_wait call.
2380 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2382 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2383 rolled back instead.
2385 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2387 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2388 the new argument order.
2390 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2392 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2393 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2394 (struct gdbarch_tdep): Remove.
2395 (struct xstormy16_frame_cache): New frame cache structure.
2396 (xstormy16_register_byte, xstormy16_register_raw_size)
2397 (xstormy16_reg_virtual_type, xstormy16_register_type)
2398 (xstormy16_push_arguments, xstormy16_push_return_address)
2399 (xstormy16_pop_frame, xstormy16_store_struct_return)
2400 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2401 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2402 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2403 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2404 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2405 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2406 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2407 (xstormy16_extract_return_value, xstormy16_store_return_value):
2408 Regcachify. Drop useless struct convention handling.
2409 (xstormy16_register_type, xstormy16_return_value)
2410 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2411 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2412 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2413 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2414 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2415 (xstormy16_unwind_dummy_id) : New functions.
2416 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2417 of xstormy16_scan_prologue.
2418 (xstormy16_frame_unwind): New frame_unwind structure.
2419 (xstormy16_frame_base): New frame_base structure.
2420 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2421 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2423 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2425 * language.c (language_gdbarch_post_init): Fix off-by one error.
2427 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2429 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2430 (struct dwarf2_offset_and_type): New.
2431 (set_die_type, reset_die_and_siblings_types, get_die_type)
2432 (offset_and_type_hash, offset_and_type_eq): New functions.
2433 (read_structure_type, read_enumeration_type, read_array_type)
2434 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2435 (read_tag_reference_type, read_tag_const_type)
2436 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2437 (read_typedef, read_base_type, read_subrange_type): Use
2440 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2442 * Makefile.in (dwarf2read.o): Update dependencies.
2443 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2444 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2446 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2447 mark, and has_form_ref_addr.
2448 (struct dwarf2_per_cu_data): New.
2449 (dwarf2_max_cache_age): New.
2450 (dwarf2_build_psymtabs_hard): Free cached compilation units
2451 after loading. Create and manage the list of compilation units.
2452 Remove unnecessary NULL initialization. Fix indentation.
2453 (psymtab_to_symtab_1): Initialize all of CU.
2454 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2455 (find_partial_die): Use dwarf2_find_containing_comp_unit
2457 (free_stack_comp_unit): Update comments. Clear the per-cu
2458 pointer. Handle aging.
2459 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2460 (age_cached_comp_units, free_one_cached_comp_unit)
2461 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2462 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2463 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2464 (show_dwarf2_cmd): New.
2465 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2466 and "maint show dwarf2 max-cache-age".
2467 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2469 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2472 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2474 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2475 and dwarf2_cu struct pointer as arguments. Change function to use
2476 obstack if provided and use dwarf2_cu to determine language-specific
2478 (partial_die_parent_scope): Change comment to include java. Use
2479 new version of typename_concat instead of obconcat.
2480 (partial_die_full_name): Use typename_concat.
2481 (read_namespace): Ditto.
2482 (read_enumeration_type): Use typename_concat instead of obconcat.
2483 (new_symbol): Ditto.
2484 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2485 (guess_structure_name): Ditto.
2486 (read_subroutine_type): Ditto.
2487 (read_structure_type): Ditto.
2488 (is_vtable_name): Add Java support.
2489 (determine_class_name): Switch to new typename_concat call.
2490 (determine_prefix): Switch to new typename_concat call.
2491 * jv-exp.y (FuncStart): New pattern.
2492 (MethodInvocation): Add support for simple function calls. Change
2493 warning message for other forms of inferior call currently not
2495 * valarith.c (value_subscript): Treat an array with upper-bound
2496 of -1 as unknown size.
2498 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2500 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2501 (lookup_partial_symtab): Use symtab_to_fullname.
2503 2004-09-19 Jim Blandy <jimb@redhat.com>
2505 * minsyms.c (lookup_minimal_symbol): Doc fix.
2507 2004-09-20 Andrew Cagney <cagney@gnu.org>
2509 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2511 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2512 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2514 * infptrace.c: Update.
2516 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2518 * symtab.c (output_source_filename): Mark first argument as const.
2519 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2520 for "info sources" output.
2522 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2524 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2525 <machine/vmparam.h>.
2526 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2527 (register_u_addr): Remove prototype.
2529 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2531 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2532 (i386bsd_fetch_inferior_registers): Rename from
2533 fetch_inferior_registers. Make static.
2534 (i386bsd_store_inferior_registers): Rename from
2535 store_inferior_registers. Make static.
2536 (i386bsd_target): New function.
2537 * i386bsd-nat.h: New file.
2538 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2540 (i386fbsd_resume): Rename from child_resume. Make static.
2541 (_initialize_i386fbsd_nat): Construct and add target vector.
2542 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2543 (_initialize_i386nbsd_nat): Construct and add target vector.
2544 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2546 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2547 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2548 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2549 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2550 (LOADLIBES): New variable.
2551 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2552 inf-ptrace.o. Remove inftarg.o.
2553 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2554 inf-ptrace.o. Remove inftarg.o.
2555 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2556 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2557 (LOADLIBES): New variable.
2558 * Makefile.in (i386bsd_nat_h): New variable.
2559 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2562 * sparc64nbsd-tdep.c: Include "objfiles.h".
2563 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2564 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2565 svr4_lp64_fetch_link_map_offsets.
2566 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2568 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2569 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2570 svr4_lp64_fetch_link_map_offsets.
2571 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2574 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2575 * fbsd-nat.h: New file.
2576 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2577 (fbsd_nat_h): New variable.
2578 (fbsd-nat.o): New dependency.
2580 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2581 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2583 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2586 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2588 * ada-exp.y (type_int): New function to add layer of abstraction
2589 around references to expression types.
2591 (type_long_long): Ditto.
2592 (type_float): Ditto.
2593 (type_double): Ditto.
2594 (type_long_double): Ditto.
2596 (type_system_address): Ditto.
2597 (simple_exp): Use type_* functions in place of builtin_*
2600 (write_var_from_name): Ditto.
2601 (write_object_renaming): Ditto.
2602 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2604 (build_ada_types): Remove, replacing with...
2605 (ada_language_arch_info): New function to initialize primitive
2606 type vector in language_arch_info.
2607 (ada_array_length): Remove use of builtin_type_ada_int.
2608 (value_pos_atr): Ditto.
2609 (ada_evaluate_subexp): Ditto.
2610 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2611 builtin_type_ada_long_long, builtin_type_ada_char,
2612 builtin_type_ada_float, builtin_type_ada_double,
2613 builtin_type_ada_long_double, builtin_type_ada_natural,
2614 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2615 (ada_builtin_types): Remove.
2616 (ada_language_defn): Remove entries for la_builtin_type_vector and
2617 string_char_type and use ada_language_arch_info.
2618 (_initialize_ada_language): Do type-vector initialization along
2619 the lines of c-lang.c.
2620 (ada_create_fundamental_type): Break up line.
2621 (ada_dump_symtab): Remove unused function.
2622 (enum ada_primitive_types): Define.
2623 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2624 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2625 builtin_type_ada_float, builtin_type_ada_double,
2626 builtin_type_ada_long_double, builtin_type_ada_natural,
2627 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2628 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2629 (processInt): Ditto.
2630 (processReal): Ditto.
2631 (name_lookup): Ditto.
2632 * ada-typeprint.c (print_range): Use builtin_type_int, not
2633 builtin_type_ada_int.
2635 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2637 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2639 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2640 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2641 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2642 * configure.in: Improve checks for curses library by checking for
2643 mvwaddstr instead of initscr. Drop HP curses in favour of
2644 standard curses on HP-UX.
2645 * configure: Regenerated.
2647 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2649 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2650 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2651 Minor formatting changes.
2652 (empty_array): Slight rewrite for formatting.
2653 (emit_char,parse,ada_language_defn,build_ada_types,
2654 ada_is_exception_sym, _initialize_ada_language): Move
2656 (ada_dump_symtab): Remove unused definition.
2657 (ada_maybe_exception_partial_symbol): Remove unused definition.
2659 2004-09-16 Andrew Cagney <cagney@gnu.org>
2661 * inf-child.c: Include "gdb_string.h".
2662 (inf_child_core_file_to_sym_file): Delete.
2663 (inf_child_target): Set to_fetch_registers and to_store_registers.
2664 * inf-ptrace.c: Include "gdb_string.h".
2665 * Makefile.in: Update all dependencies.
2667 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2670 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2672 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2673 call to heuristic_proc_desc. Remove code that became redundant
2675 (read_next_frame_reg): Remove special case for SP_REGNUM.
2676 (set_reg_offset): Fix small typo.
2677 (reset_saved_regs): New procedure.
2678 (mips32_heuristic_proc_desc): No longer compute a fake
2679 procedure descriptor. Compute the full frame cache instead.
2680 Some minor comment reformatting.
2682 2004-09-14 Andrew Cagney <cagney@gnu.org>
2684 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2687 * thread-db.c (thread_db_new_objfile): Assume that there is a
2690 2004-09-13 Jim Blandy <jimb@redhat.com>
2692 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2693 so that its storage isn't referenced after its lifetime ends.
2695 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2696 and never assigned to. Delete it, and the 'if (use_buffer)'
2697 clauses. Delete 'raw_buffer', since it is now unused.
2699 2004-09-13 Andrew Cagney <cagney@gnu.org>
2701 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2702 * configure: Re-generate.
2703 * nlm/Makefile.in (TAGS): Update.
2704 * Makefile.in (TAGS): Update.
2705 * config/vax/nbsd.mt (TM_FILE): Update.
2706 * config/sparc/vxworks.mt (TM_FILE): Update.
2707 * config/sparc/sol2.mt (TM_FILE): Update.
2708 * config/sparc/sol2-64.mt (TM_FILE): Update.
2709 * config/sparc/obsd64.mt (TM_FILE): Update.
2710 * config/sparc/obsd.mt (TM_FILE): Update.
2711 * config/sparc/nbsd64.mt (TM_FILE): Update.
2712 * config/sparc/nbsd.mt (TM_FILE): Update.
2713 * config/sparc/linux64.mt (TM_FILE): Update.
2714 * config/sparc/linux.mt (TM_FILE): Update.
2715 * config/sparc/fbsd.mt (TM_FILE): Update.
2716 * config/sh/wince.mt (TM_FILE): Update.
2717 * config/sh/nbsd.mt (TM_FILE): Update.
2718 * config/sh/linux.mt (TM_FILE): Update.
2719 * config/sh/embed.mt (TM_FILE): Update.
2720 * config/s390/s390.mt (TM_FILE): Update.
2721 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2722 * config/rs6000/rs6000.mt (TM_FILE): Update.
2723 * config/rs6000/aix4.mt (TM_FILE): Update.
2724 * config/powerpc/vxworks.mt (TM_FILE): Update.
2725 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2726 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2727 * config/powerpc/obsd.mt (TM_FILE): Update.
2728 * config/powerpc/nbsd.mt (TM_FILE): Update.
2729 * config/powerpc/linux.mt (TM_FILE): Update.
2730 * config/powerpc/aix.mt (TM_FILE): Update.
2731 * config/pa/obsd.mt (TM_FILE): Update.
2732 * config/pa/linux.mt (TM_FILE): Update.
2733 * config/pa/hppahpux.mt (TM_FILE): Update.
2734 * config/pa/hppa64.mt (TM_FILE): Update.
2735 * config/pa/hppa.mt (TM_FILE): Update.
2736 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2737 * config/mips/wince.mt (TM_FILE): Update.
2738 * config/mips/vxmips.mt (TM_FILE): Update.
2739 * config/mips/nbsd.mt (TM_FILE): Update.
2740 * config/mips/linux.mt (TM_FILE): Update.
2741 * config/mips/irix6.mt (TM_FILE): Update.
2742 * config/mips/irix5.mt (TM_FILE): Update.
2743 * config/mips/embed.mt (TM_FILE): Update.
2744 * config/m68k/vxworks68.mt (TM_FILE): Update.
2745 * config/m68k/st2000.mt (TM_FILE): Update.
2746 * config/m68k/os68k.mt (TM_FILE): Update.
2747 * config/m68k/obsd.mt (TM_FILE): Update.
2748 * config/m68k/nbsd.mt (TM_FILE): Update.
2749 * config/m68k/monitor.mt (TM_FILE): Update.
2750 * config/m68k/linux.mt (TM_FILE): Update.
2751 * config/m68k/cisco.mt (TM_FILE): Update.
2752 * config/ia64/linux.mt (TM_FILE): Update.
2753 * config/ia64/aix.mt (TM_FILE): Update.
2754 * config/ia64/ia64.mt (TM_FILE): Update.
2755 * config/i386/vxworks.mt (TM_FILE): Update.
2756 * config/i386/obsd64.mt (TM_FILE): Update.
2757 * config/i386/obsd.mt (TM_FILE): Update.
2758 * config/i386/nto.mt (TM_FILE): Update.
2759 * config/i386/nbsd64.mt (TM_FILE): Update.
2760 * config/i386/nbsd.mt (TM_FILE): Update.
2761 * config/i386/linux64.mt (TM_FILE): Update.
2762 * config/i386/linux.mt (TM_FILE): Update.
2763 * config/i386/i386sol2.mt (TM_FILE): Update.
2764 * config/i386/i386lynx.mt (TM_FILE): Update.
2765 * config/i386/fbsd64.mt (TM_FILE): Update.
2766 * config/i386/fbsd.mt (TM_FILE): Update.
2767 * config/i386/cygwin.mt (TM_FILE): Update.
2768 * config/h8300/h8300.mt (TM_FILE): Update.
2769 * config/frv/frv.mt (TM_FILE): Update.
2770 * config/cris/cris.mt (TM_FILE): Update.
2771 * config/arm/wince.mt (TM_FILE): Update.
2772 * config/arm/nbsd.mt (TM_FILE): Update.
2773 * config/arm/linux.mt (TM_FILE): Update.
2774 * config/arm/embed.mt (TM_FILE): Update.
2775 * config/alpha/nbsd.mt (TM_FILE): Update.
2776 * config/alpha/fbsd.mt (TM_FILE): Update.
2777 * config/alpha/alpha.mt (TM_FILE): Update.
2778 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2779 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2781 Eliminate event_loop_p, always has the value 1.
2782 * defs.h (event_loop_p): Delete macro.
2783 * breakpoint.c (until_break_command): Simplify.
2784 * utils.c (prompt_for_continue): Simplify.
2785 * tracepoint.c (read_actions): Simplify.
2786 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2787 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2788 (set_prompt, init_main): Simplify.
2789 (init_signals, disconnect): Delete, unused.
2790 * remote.c (remote_async_resume)
2791 (extended_remote_async_create_inferior): Simplify.
2792 * mi/mi-interp.c (mi_input): Delete, unused.
2793 (mi_interpreter_resume, mi_command_loop): Simplify.
2794 * interps.c (current_interp_command_loop): Simplify.
2795 * infrun.c (proceed): Simplify.
2796 * infcmd.c (run_command, continue_command, step_1, jump_command)
2797 (until_command, advance_command, finish_command)
2798 (interrupt_target_command): Simplify.
2799 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2801 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2802 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2803 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2804 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2805 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2806 * mips-tdep.c (mips_dump_tdep): Do not print same.
2808 2004-09-12 Andrew Cagney <cagney@gnu.org>
2810 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2812 * Makefile.in (valprint.o): Delete explict rule.
2814 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2815 reported by Dave Anderson.
2817 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2819 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2821 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2822 Andrew Cagney <cagney@gnu.org>
2824 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2825 (mi_cmd_data_list_register_values)
2826 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2827 the register number computation.
2829 2004-09-12 Andrew Cagney <cagney@gnu.org>
2831 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2832 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2833 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2834 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2836 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2837 inf-ptrace.o and inf-child.o.
2838 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2839 * Makefile.in: Update dependencies.
2841 2004-09-11 Andrew Cagney <cagney@gnu.org>
2843 * language.c (hex_string, hex_string_custom): Move from here ...
2844 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2845 (CELLSIZE): Increase to 50.
2846 * language.h (hex_string, hex_string_custom): Move from here ...
2847 * defs.h: ... to here.
2848 * Makefile.in: Update all dependencies.
2850 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2852 * language.c (local_hex_format_custom): Remove.
2853 (local_hex_string): Rename to hex_string, use C format, and move to
2855 (local_hex_string_custom): Rename to hex_string_custom and change
2856 interface. Now uses C format. Move to utils.c
2857 (local_octal_format_custom): Remove.
2858 (local_decimal_format_custom): Remove.
2859 (unknown_language_defn): Remove language-specific number
2861 (auto_language_defn): Ditto.
2862 (local_language_defn): Ditto.
2863 * language.h (struct language_format_info): Delete declaration.
2864 (struct language_defn): Remove language_format_info fields
2865 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2866 (local_binary_format): Remove macro.
2867 (local_binary_format_prefix): Remove macro.
2868 (local_binary_format_specifier): Remove macro.
2869 (local_binary_format_suffix): Remove macro.
2870 (local_octal_format): Remove macro.
2871 (local_octal_format_prefix): Remove macro.
2872 (local_octal_format_specifier): Remove macro.
2873 (local_octal_format_suffix): Remove macro.
2874 (local_decimal_format): Remove macro.
2875 (local_decimal_format_prefix): Remove macro.
2876 (local_decimal_format_specifier): Remove macro.
2877 (local_decimal_format_suffix): Remove macro.
2878 (local_hex_format): Remove macro.
2879 (local_hex_format_prefix): Remove macro.
2880 (local_hex_format_specifier): Remove macro.
2881 (local_hex_format_suffix): Remove macro.
2882 (local_decimal_format_custom): Remove.
2883 (local_octal_format_custom): Remove.
2884 (local_hex_format_custom): Remove.
2885 (local_hex_string): Rename to hex_string and move to defs.h.
2886 (local_hex_string_custom): Rename to hex_string_custom, change
2887 interface, and move to defs.h.
2888 * utils.c: (int_string): New function.
2889 (hex_string): New function (from language.c).
2890 (hex_string_custom): New function (from language.c).
2891 (octal2str): New function.
2892 (decimal2str): Add width parameter.
2893 (paddr_u): Use new decimal2str interface.
2895 * defs.h (hex_string): Declare.
2896 (hex_string_custom): Declare.
2897 (int_string): Declare.
2898 * printcmd.c (print_scalar_formatted): Remove localized binary
2900 * valprint.c (print_longest): Use int_string.
2901 (print_floating): Use C hex format.
2902 (print_hex_chars): Ditto.
2903 (print_binary_chars): Remove language-specific formatting.
2904 (print_octal_chars): Use C octal format.
2905 (print_decimal_chars): Delocalize format.
2906 (print_decimal): Remove.
2907 * ada-lang.c (ada_language_defn): Remove language-specific number
2909 * p-lang.c (pascal_language_defn): Ditto.
2910 * c-lang.c (c_language_defn): Ditto.
2911 (cplus_language_defn): Ditto.
2912 (asm_language_defn): Ditto.
2913 (minimal_language_defn): Ditto.
2914 * f-lang.c (f_language_defn): Ditto.
2915 * jv-lang.c (java_language_defn): Ditto.
2916 * m2-lang.c (m2_language_defn): Ditto.
2917 * scm-lang.c (scm_language_defn): Ditto.
2918 * objc-lang.c (objc_language_defn): Ditto.
2919 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2921 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2922 * ui-out.c (ui_out_field_core_addr): Ditto.
2923 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2924 * exec.c (print_section_info): Ditto.
2925 * i387-tdep.c (print_i387_status_word): Ditto.
2926 (print_i387_control_word): Ditto.
2927 (i387_print_float_info): Ditto.
2928 * maint.c (maint_print_section_info): Ditto.
2929 * solib.c (info_sharedlibrary_command): Ditto.
2930 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2931 * symtab.c (print_msymbol_info): Ditto.
2932 * tracepoint.c (tracepoints_info): Ditto.
2933 * solib-frv.c (lm_base): Ditto.
2934 (frv_current_sos): Ditto.
2935 (enable_break2): Ditto.
2936 (enable_break): Ditto.
2937 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2938 (process_one_symbol): Ditto.
2939 * infcmd.c (program_info): Ditto.
2940 * mdebugread.c (parse_partial_symbols): Ditto.
2941 * symfile.c (add_symbol_file_command): Ditto.
2942 * cli/cli-cmds.c (edit_command): Ditto.
2943 (list_command): Ditto.
2944 * infcall.c (call_function_by_hand): Ditto.
2945 * remote-vx.c (vx_run_files_info): Ditto.
2950 * aix-thread.c (pdc_symbol_addrs): Ditto.
2951 (pdc_read_regs): Ditto.
2952 (pdc_write_regs): Ditto.
2953 (pdc_read_data): Ditto.
2954 (pdc_write_data): Ditto.
2955 * d10v-tdep.c (display_trace): Ditto.
2956 * rs6000-nat.c (find_toc_address): Ditto.
2957 * aix-thread.c: Don't include language.h.
2958 * buildsym.c: Ditto.
2960 * mdebugread.c: Ditto.
2961 * rs6000-nat.c: Ditto.
2962 * buildsym.c (make_blockvector): Use renamed hex_string.
2964 2004-09-10 Jason Molenda (jmolenda@apple.com)
2966 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2967 chars after 'if' or 'while' commands in user-defined commands.
2969 2004-09-08 Jim Blandy <jimb@redhat.com>
2971 Fix bug reported and analyzed by Olivier Crete:
2972 * symfile.c (copy_section_addr_info): New function.
2973 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2974 original set of address arguments, instead of handwritten code
2975 that uses one length to allocate and a different length to
2976 initialize. Use make_cleanup_free_section_addr_info.
2977 * symfile.h (copy_section_addr_info): New declaration.
2978 * utils.c: #include "symfile.h".
2979 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2981 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2982 * Makefile.in (utils.o): Update dependencies.
2984 2004-09-08 Andrew Cagney <cagney@gnu.org>
2986 * thread-db.c (keep_thread_db): Delete.
2987 (thread_db_new_objfile, thread_db_create_inferior)
2988 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2990 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2992 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2993 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2994 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2995 (i386_frameless_signal_p): Remove prototype.
2996 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2997 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2999 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3000 instead of FP0_REGNUM.
3001 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3002 of FP0_REGNUM and FPC_REGNUM.
3004 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3005 (sunos_solib_create_inferior_hook): Don't call
3006 sunos_relocate_main_executable.
3008 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3009 solib_svr4_fetch_link_map_offsets to
3010 svr4_ilp32_fetch_link_map_offsets.
3011 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3012 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3013 svr4_ilp32_fetch_link_map_offsets.
3014 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3016 2004-09-07 Jim Blandy <jimb@redhat.com>
3018 * frame.h (frame_register): Doc fix.
3020 2004-09-07 Andrew Cagney <cagney@gnu.org>
3022 * vx-share/wait.h: Delete #ifdef USG.
3023 * utils.c (request_quit): Ditto.
3024 * tui/tui.c (tui_reset): Ditto.
3026 * remote-sds.c: Ditto.
3027 * remote-rdi.c: Ditto.
3028 * mdebugread.c: Ditto.
3029 * m68klinux-nat.c: Ditto.
3030 * infttrace.c: Ditto.
3031 * infptrace.c: Ditto.
3032 * i386v-nat.c: Ditto.
3035 * core-aout.c: Ditto.
3037 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3039 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3040 heuristic_proc_desc.
3041 (mips_insn32_frame_cache): Likewise.
3043 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3045 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3046 left behind by error.
3048 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3050 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3051 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3053 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3055 * config/rs6000/xm-aix4.h: Remove this file.
3056 * config/rs6000/aix4.mh (XM_FILE): Delete.
3058 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3060 * config/rs6000/xm-rs6000.h: Remove this file.
3061 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3063 2004-09-03 Andrew Cagney <cagney@gnu.org>
3065 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3066 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3069 * mips-tdep.c (temp_saved_regs): Delete.
3070 (set_reg_offset): Replace saved_regs parameter with this_cache.
3071 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3072 (mips32_heuristic_proc_desc): Add this_cache parameter.
3073 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3074 (after_prologue): Pass a NULL this_cache.
3076 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3077 non-kernel trap prologues.
3079 * mips-tdep.c (find_proc_desc): Delete function.
3080 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3082 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3083 mips_insn32_frame_cache.
3085 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3086 Simplify as NEXT_FRAME is NULL.
3087 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3089 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3091 (mips_skip_prologue): Update.
3093 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3094 "cur_frame" parameter.
3095 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3096 (mips_insn32_frame_cache, find_proc_desc): Update
3098 * config/vax/nm-obsd.h: Delete file.
3099 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3100 * config/vax/nm-nbsd.h: Delete file.
3101 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3102 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3103 * config/sh/nm-nbsd.h: Delete file.
3104 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3105 * config/rs6000/nm-rs6000ly.h: Delete file.
3106 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3107 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3108 * config/powerpc/nm-obsd.h: Delete file.
3109 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3110 * config/powerpc/nm-nbsd.h: Delete file.
3111 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3112 * config/pa/nm-obsd.h: Delete file.
3113 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3114 * config/mips/nm-nbsd.h: Delete file.
3115 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3116 * config/m88k/nm-obsd.h: Delete file.
3117 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3118 * config/m68k/nm-nbsd.h: Delete file.
3119 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3120 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3121 * config/i386/nm-nbsd.h: Delete file.
3122 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3123 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3124 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3125 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3126 * config/i386/nm-i386lynx.h: Delete file.
3127 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3128 * config/arm/nm-nbsd.h: Delete file.
3129 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3130 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3132 * config/i386/tm-fbsd.h: Delete file.
3133 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3134 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3136 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3137 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3138 * config/rs6000/aix4.mt (TM_FILE): Set to
3139 config/rs6000/tm-rs6000.h.
3140 * config/powerpc/tm-ppc-aix.h: Delete file.
3141 * config/powerpc/aix.mt (TM_FILE): Set to
3142 config/rs6000/tm-rs6000.h.
3143 * config/m68k/tm-linux.h: Delete file.
3144 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3145 * config/i386/tm-linux64.h: Delete file.
3146 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3147 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3149 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3150 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3151 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3152 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3153 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3154 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3155 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3156 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3157 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3159 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3162 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3164 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3165 Minor reformatting. Some code factoring.
3167 2004-09-02 Andrew Cagney <cagney@gnu.org>
3169 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3170 * config/vax/tm-nbsd.h: Delete file.
3171 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3172 * config/sparc/tm-vxworks.h: Delete file.
3173 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3174 * config/sparc/tm-nbsd.h: Delete file.
3175 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3176 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3177 * config/sparc/tm-linux.h: Delete file.
3178 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3179 * config/s390/tm-linux.h: Delete file.
3180 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3181 * config/pa/tm-bsd.h: Delete file.
3182 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3183 * config/m68k/tm-obsd.h: Delete file.
3184 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3185 * config/m68k/tm-nbsd.h: Delete file.
3186 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3187 * config/i386/tm-vxworks.h: Delete file.
3188 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3189 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3190 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3191 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3192 * config/i386/tm-nbsd.h: Delete file.
3193 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3194 * config/i386/tm-i386lynx.h: Delete file.
3195 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3196 * config/cris/tm-cris.h: Delete file.
3198 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3199 * configure: Re-generate.
3200 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3201 * config/arm/tm-nbsd.h: Delete file.
3203 * config/powerpc/tm-ppcle-sim.h: Delete.
3204 * config/powerpc/tm-ppcle-eabi.h: Delete.
3205 * config/powerpc/tm-nbsd.h: Delete.
3206 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3207 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3210 * config/i386/nto.mh (NAT_FILE): Delete.
3211 * config/i386/nm-nto.h: Delete.
3213 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3214 * config/m68k/tm-os68k.h: Ditto.
3215 * config/m68k/tm-monitor.h: Ditto.
3216 * config/m68k/tm-cisco.h: Ditto.
3217 * config/m68k/st2000.mt (TM_FILE): Delete.
3218 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3219 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3220 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3221 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3223 * config/m68k/tm-st2000.h: Delete.
3224 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3225 * config/sparc/fbsd.mt (TM_FILE): Delete.
3226 * config/sparc/tm-fbsd.h: Delete.
3228 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3229 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3230 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3232 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3233 GDB_TM_FILE and GDB_XM_FILE.
3234 * gdbarch.c: Re-generate.
3235 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3236 quotes in macro definition.
3237 * configure.in: Re-generate.
3239 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3240 validating architecture methods.
3241 * gdbarch.c: Re-generate.
3243 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3244 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3245 GDB_MULTI_ARCH_PARTIAL.
3246 * gdbarch.h: Re-generate.
3248 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3249 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3250 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3251 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3252 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3253 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3254 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3255 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3256 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3257 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3258 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3259 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3261 2004-09-01 Andrew Cagney <cagney@gnu.org>
3263 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3264 and main_func_highpc.
3265 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3266 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3267 * nlmread.c (nlm_symfile_read): Update.
3269 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3271 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3272 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3273 (find_proc_desc): Remove dead code.
3275 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3277 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3279 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3281 * observer.sh: Add struct so_list declaration.
3282 * Makefile.in: Add dependencies on observer.h for solib.c and
3284 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3286 (_initialize_breakpoint): Register
3287 disable_breakpoints_in_unloaded_shlib as an observer of the
3288 "solib unloaded" observation event.
3289 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3290 call decode_line_1 so unfound breakpoint errors are silent.
3291 * solib.c (update_solib_list): When a solib is discovered to have
3292 been unloaded by the program, notify all observers of the
3293 "solib unloaded" observation event.
3295 2004-09-01 Andrew Cagney <cagney@gnu.org>
3297 * frame.c: Include "objfiles.h".
3298 (inside_main_func): New function.
3299 (get_prev_frame): Use new inside_main_func.
3300 * Makefile.in (frame.o): Update dependencies.
3301 * defs.h (inside_main_func): Delete declaration.
3302 * blockframe.c (inside_main_func): Delete function.
3304 2004-08-31 Jim Blandy <jimb@redhat.com>
3306 * dwarf2read.c (is_vtable_name): New function, based on logic from
3307 read_structure_type, but passing the correct length to strncmp,
3308 and using 'sizeof' instead of 'strlen'.
3309 (read_structure_type): Call it.
3311 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3313 * config/powerpc/aix.mh: Add comment.
3315 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3317 * MAINTAINERS: Add self to Write-After-Approval.
3319 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3321 * MAINTAINERS: Add self to Write-After-Approval.
3323 2004-08-30 Andrew Cagney <cagney@gnu.org>
3325 Fix PR breakpoints/1757.
3326 * infrun.c (struct execution_control_state): Replace
3327 remove_breakpoints_on_following_step with
3328 step_after_step_resume_breakpoint.
3329 (init_execution_control_state): Update.
3330 (handle_inferior_event): For signals, when stepping off a
3331 breakpoint, set step_after_step_resume_breakpoint. When
3332 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3333 (keep_going): Delete code handling
3334 remove_breakpoints_on_following_step.
3336 2004-08-29 David Lecomber <david@streamline-computing.com>
3339 * language.h (enum array_ordering): New enum.
3340 * language.h (struct language_defn): New la_array_ordering
3342 * language.c (unknown_language_defn, auto_language_defn)
3343 (local_language_defn): Ditto.
3344 * ada-lang.c (ada_language_defn): Ditto.
3345 * c-lang.c (c_language_defn, cplus_language_defn)
3346 (asm_language_defn, minimal_language_defn): Ditto.
3347 * f-lang.c (f_language_defn): Ditto.
3348 * jv-lang.c (java_language_defn): Ditto.
3349 * m2-lang.c (f_language_defn): Ditto.
3350 * objc-lang.c (objc_language_defn): Ditto.
3351 * p-lang.c (pascal_language_defn): Ditto.
3352 * scm-lang.c (scm_language_defn): Ditto.
3353 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3354 oriented large to small in type structure.
3355 * dwarf2read.c (read_array_order): New function.
3356 (read_array_type): Use read_array_order to check row/column
3359 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3361 * target.c (target_resize_to_sections): Check
3362 current_target.to_sections for an old value when updating.
3364 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3366 * procfs.c (dbx_link_bpt_addr): New static global variable.
3367 (dbx_link_shadow_contents): New static global variable.
3368 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3369 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3371 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3372 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3374 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3375 after the inferior has been forked.
3376 (remove_dbx_link_breakpoint): New function.
3377 (dbx_link_addr): New function.
3378 (insert_dbx_link_bpt_in_file): New function.
3379 (insert_dbx_link_bpt_in_region): New function.
3380 (insert_dbx_link_breakpoint): New function.
3381 (proc_trace_syscalls_1): New function, extracted from
3382 proc_trace_syscalls.
3383 (proc_trace_syscalls): Replace extract code by call to
3384 proc_trace_syscalls_1.
3385 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3388 2004-08-25 Jim Blandy <jimb@redhat.com>
3390 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3392 2004-08-25 Andrew Cagney <cagney@gnu.org>
3394 * infrun.c (struct execution_control_state): Delete field
3395 "stepping_through_sigtramp".
3396 (init_execution_control_state): Do not set same.
3397 (context_switch): Do not pass same to save_infrun_state and
3399 * gdbthread.h (struct thread_info): Delete field
3400 stepping_through_sigtramp.
3401 (save_infrun_state, load_infrun_state): Delete parameter
3402 stepping_through_sigtramp.
3403 * thread.c (load_infrun_state, save_infrun_state): Update.
3405 * infrun.c: Re-indent. Move expression operators to the beginning
3406 of the line. Remove long disabled #if 0 code.
3408 2004-08-24 Andrew Cagney <cagney@gnu.org>
3410 * doublest.h (floatformat_ieee_quad): Rename
3411 floatformat_ia64_quad.
3412 * doublest.c (floatformat_ieee_quad): Rename
3413 floatformat_ia64_quad.
3414 (_initialize_doublest): Update.
3416 2004-08-24 Jim Blandy <jimb@redhat.com>
3418 * dwarf2expr.h (struct dwarf_expr_context): New members
3419 'num_pieces' and 'pieces', for returning the result of an
3420 expression that uses DW_OP_piece.
3421 (struct dwarf_expr_piece): New struct type.
3422 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3424 (free_dwarf_expr_context): Free pieces, if any.
3425 (add_piece): New function.
3426 (execute_stack_op): Implement DW_OP_piece.
3427 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3428 expression is a list of pieces, print an error message.
3429 (dwarf2_loc_desc_needs_frame): If the expression yields
3430 pieces, and any piece is in a register, then we need a frame.
3432 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3433 the stack until we've decided what sort of result the evaluation
3434 has produced. Use separate variables, with more specific names.
3436 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3438 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3439 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3440 (arm_netbsd_init_abi_common): Register them.
3442 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3444 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3446 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3447 safe_frame_unwind_memory instead of target_read_memory.
3449 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3451 (fetch_register, store_register): Remove prototypes.
3452 (child_resume): Reorganize code and comments such that it is
3453 grouped a bit more logically.
3454 (attach): Explicitly compare errno against 0.
3455 (detach): Likewise. Use perror_with_name instead of
3457 * Makefile.in (infptrace.o): Update dependencies.
3459 * ia64-linux-nat.c: Update copyright year.
3460 (fetch_debug_register, store_debug_register)
3461 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3463 * config/ia64/nm-linux.h: Update copyright year.
3464 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3466 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3467 from CORE_ADDR to struct frame_info *. Use
3468 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3469 (amd64_linux_sigtramp_p): Adjust for changed signature of
3470 and64_linux_sigtramp_start
3472 * gdb_ptrace.h: GNU/Linux.
3474 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3477 * infptrace.c: Include "gdb_assert.h".
3478 (PTRACE_XFER_TYPE): Remove define.
3479 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3480 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3482 (fetch_inferior_registers, store_inferior_registers): Remove
3483 redundant culry braces. Tweak comment. s/regno/regnum.
3484 * Makefile.in (infptrace.o): Update dependencies.
3486 * configure.in: Change test for return type of ptrace to default
3487 to `long' instead of `int'.
3488 * configure: Regenerate.
3490 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3492 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3494 * configure.in: Check for ttrace function.
3495 * configure, config.in: Regenerate.
3497 * gdb_ptrace.h: New file.
3498 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3500 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3501 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3502 (attach): Don't define PT_ATTACH.
3503 (detach): Don't define PT_DETACH.
3504 * Makefile.in (gdb_ptrace_h): New variable.
3505 (infptrace.o): Update dependencies.
3507 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3509 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3510 instead of `int' if not already defined.
3511 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3513 * infptrace.c (call_ptrace): Revert change that replaced
3514 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3516 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3518 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3521 * linux-nat.c (kill_inferior): Add missing third and fourth
3522 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3524 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3527 * proc-why.c (proc_prettyfprint_why): Fix format string.
3529 * solib-osf.c (osf_current_sos): Remove unsused label.
3531 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3533 * configure, config.in: Regenerate.
3534 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3535 <ncurses/ncurses.h>.
3537 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3538 * config/nm-nbsd.h: Update copyright year.
3539 (PTRACE_ARG3_TYPE): Remove define.
3541 * sparc-nat.c (fetch_inferior_registers)
3542 (store_inferior_registers, sparc_xfer_wcookie):
3543 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3545 * alphabsd-nat.c (fetch_inferior_registers):
3546 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3548 * amd64bsd-nat.c (fetch_inferior_registers)
3549 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3551 * armnbsd-nat.c: Update copyright year.
3552 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3553 (store_register, store_regs, store_fp_register, store_fp_regs):
3554 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3555 * hppabsd-nat.c (fetch_inferior_registers)
3556 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3558 * i386bsd-nat.c (fetch_inferior_registers)
3559 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3560 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3561 * m68kbsd-nat.c (fetch_inferior_registers)
3562 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3564 * m88kbsd-nat.c (fetch_inferior_registers)
3565 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3567 * mipsnbsd-nat.c: Update copyright year.
3568 (fetch_inferior_registers, store_inferior_registers):
3569 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3570 * ns32knbsd-nat.c: Update copyright year.
3571 (fetch_inferior_registers, store_inferior_registers):
3572 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3573 * ppcnbsd-nat.c (fetch_inferior_registers):
3574 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3576 * ppcobsd-nat.c (fetch_inferior_registers):
3577 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3579 * shnbsd-nat.c: Update copyright year.
3580 (fetch_inferior_registers, store_inferior_registers):
3581 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3582 * vaxbsd-nat.c (fetch_inferior_registers)
3583 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3586 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3588 * infptrace.c (call_ptrace, child_resume, attach, detach)
3589 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3590 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3591 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3594 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3596 * defs.h: Remove out-of-date comment.
3597 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3598 [!GETENV_PROVIDED] (getenv): Remove prototype.
3600 * standalone.c: Remove file.
3601 * Makefile.in (standalone.o): Remove dependency.
3603 * i386-linux-nat.c (dummy_sse_values): Remove function and
3605 (i386_linux_dr_get): Fix typo in comment.
3606 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3608 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3610 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3612 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3615 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3617 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3618 parenthesis in definition.
3619 * configure: Regenerated.
3621 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3623 * PROBLEMS: Mention build/1411.
3625 2004-08-09 Robert Millan <robertmh@gnu.org>
3627 Committed by Nathanael Nerode.
3628 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3629 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3631 2004-08-12 Andrew Cagney <cagney@gnu.org>
3633 * NEWS: Mention fixes in GDB 6.2.1.
3634 * PROBLEMS: Remove mention of mips-irix.
3636 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3638 * config/powerpc/xm-aix.h: Delete.
3639 * config/powerpc/aix.mh (MH_FILE): Remove.
3640 * config/powerpc/aix432.mh (MH_FILE): Remove.
3642 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3644 * config/powerpc/aix.mh: Remove obsolete comment.
3645 * config/powerpc/aix432.mh: Likewise.
3647 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3649 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3651 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3653 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3654 this file is now empty.
3655 * config/xm-aix4.h: Remove, this file is no longer included
3658 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3660 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3661 that file is now empty.
3662 (termdef): Remove prototype, function no longer used.
3664 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3666 * doc/gdbint.texinfo (Host Definition): Remove documentation
3667 for USE_O_NOCTTY, no longer used.
3668 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3669 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3671 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3673 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3674 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3675 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3677 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3679 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3680 instead of FIVE_ARG_PTRACE.
3682 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3683 (new_tty): Use O_NOCTTY unconditionally.
3685 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3687 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3688 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3691 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3693 * xcoff_symfile_finish: Replace last call to xmfree by call
3696 2004-08-10 Andrew Cagney <cagney@gnu.org>
3698 * main.c (captured_main): Delete call to init_malloc.
3699 * defs.h (init_malloc): Delete declaration.
3700 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3701 (init_malloc): Delete functions.
3703 * defs.h (xmfree): Delete.
3704 * utils.c (xmfree): Delete function.
3705 (xfree): Inline calls to xmfree and mfree.
3706 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3707 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3708 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3709 * somread.c (som_symfile_finish): Ditto.
3710 * objfiles.c (allocate_objfile, free_objfile):
3711 * nlmread.c (nlm_symfile_finish): Ditto.
3712 * hpread.c (hpread_symfile_finish): Ditto.
3713 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3714 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3715 * coffread.c (coff_symfile_finish): Ditto.
3717 * defs.h (xmcalloc): Delete declaration.
3718 * utils.c (xmcalloc): Delete.
3719 (xcalloc): Inline calls to xmcalloc and mcalloc.
3720 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3722 * symtab.c (create_demangled_names_hash): Ditto.
3724 * defs.h (xmrealloc): Delete.
3725 * utils.c (xmrealloc): Delete.
3726 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3727 * symmisc.c (extend_psymbol_list): Use xrealloc.
3728 * source.c (find_source_lines): Ditto.
3729 * hpread.c (hpread_lookup_type): Ditto.
3730 * dbxread.c (add_bincl_to_list): Ditto.
3732 * utils.c (xmmalloc): Delete.
3733 (xmalloc): Inline xmmalloc and mmalloc calls.
3734 (msavestring): Use xmalloc.
3735 * defs.h (xmmalloc): Delete declaration.
3736 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3738 * symmisc.c (extend_psymbol_list): Ditto.
3739 * symfile.c (init_psymbol_list): Ditto.
3740 * source.c (find_source_lines): Ditto.
3741 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3742 * elfread.c (elf_symtab_read): Ditto.
3743 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3744 * coffread.c (coff_symfile_init): Ditto.
3746 2004-08-10 David Carlton <carlton@bactrian.org>
3748 * MAINTAINERS: Remove David Carlton from c++ testsuite
3751 2004-08-10 Jerome Guitton <guitton@gnat.com>
3753 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3754 print a line feed before the prompt.
3756 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3758 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3760 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3762 General cleanup of the AIX xm include file:
3763 * config/xm-aix4.h (fd_set): Remove undefine.
3764 Remove include of <sys/select.h>.
3765 (HAVE_TERMIO): Remove define.
3767 (NULL): Remove redefine.
3768 (alloca): Remove #pragma.
3769 (vfork): Remove define.
3771 (SIGWINCH_HANDLER): Remove.
3772 (SIGWINCH_HANDLER_BODY): Remove.
3774 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3776 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3777 GDB_OSABI_OPENBSD_ELF.
3779 2004-08-07 Robert Millan <robertmh@gnu.org>
3781 * bsd-kvm.c: Check for nlist.h before including it.
3783 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3785 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3786 sigcontext' offset consistency checks for ancient BSD.
3788 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3790 * configure.in: Check for <sys/types.h>. Check return and
3791 argument types of ptrace.
3792 * configure, config.in: Regenerate.
3794 2004-08-09 Jim Blandy <jimb@redhat.com>
3796 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3797 rs6000_register_sim_regno): Doc fixes.
3799 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3801 * mips-tdep.c: Include "floatformat.h".
3802 (n32n64_floatformat_always_valid): New function.
3803 (floatformat_n32n64_long_double_big): New constant.
3804 (mips_gdbarch_init): Set size and format of long double
3805 for N32 and N64 ABIs.
3806 * Makefile.in (mips-tdep.o): Update dependencies.
3808 2004-08-08 Andrew Cagney <cagney@gnu.org>
3810 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3811 print. Improve script's error messages.
3812 * gdbarch.h: Re-generate.
3814 * gdbarch.sh (pformat): New function.
3815 (float_format, double_format, long_double_format): List with bit
3816 members. Use pformat when printing.
3817 * gdbarch.c, gdbarch.h: Re-generate.
3819 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3821 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3822 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3823 (ppcnbsd_supply_pcb): New function.
3824 (_initialize_ppcnbsd_nat): New prototype and function.
3825 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3826 (LOADLIBES): New variable.
3827 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3829 2004-08-08 Andrew Cagney <cagney@gnu.org>
3831 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3832 (builtin_type_ieee_double, builtin_type_ia64_quad)
3833 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3834 BE/LE floating-point types.
3835 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3836 (builtin_type_ieee_double, builtin_type_ia64_quad)
3837 (builtin_type_ia64_spill): Declare.
3838 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3839 (floatformat_ieee_double, floatformat_arm_ext)
3840 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3841 of LE/BE floatformats.
3842 * doublest.h: (struct floatformat, floatformat_ieee_single)
3843 (floatformat_ieee_double, floatformat_arm_ext)
3844 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3846 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3848 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3850 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3851 instead of regcache_raw_supply when storing the registers.
3853 * i386gnu-nat.c: Update copyright year.
3854 (gnu_store_registers): Don't use deprecated_registers and
3855 deprecated_registers_valid. Use regcache_valid_p and
3856 regcache_raw_supply instead.
3858 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3861 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3862 variables. Incapitalized "process".
3864 * configure.in: Add cursesX to the list of possible curses libs.
3865 Add cursesX.h to the list of possible curses headers.
3866 * configure, config.in: Regenerate.
3868 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3870 * configure.in: Test for struct lwp in <sys/lwp.h>.
3871 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3872 the offset of l_addr in struct lwp.
3874 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3876 * bsd-kvm.c: Include "gdbcore.h"
3877 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3879 2004-08-07 Andrew Cagney <cagney@gnu.org>
3881 * gdbtypes.c (build_flt, build_complex): New functions.
3882 (gdbtypes_post_init): Use.
3884 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3886 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3887 through to builtin_type_uint128.
3889 * c-exp.y: Use builtin_type function to obtain builtin types.
3891 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3893 * gdbtypes.c (gdbtypes_post_init): Update.
3894 (build_gdbtypes): Move initialization of builtin_type_int0
3895 through to builtin_type_uint128 from here ...
3896 (_initialize_gdbtypes): ... to here.
3897 * d10v-tdep.c (d10v_register_type): Update.
3899 * doublest.c: Update copyright.
3900 (floatformat_from_length): Call error when floatformat is NULL.
3901 (extract_floating_by_length): Remove NULL fmt check.
3902 (store_floating_by_length): Ditto.
3904 2004-08-07 Andrew Cagney <cagney@gnu.org>
3906 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3907 that the register is valid.
3909 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3911 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3912 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3913 struct frame_info *. Use safe_frame_unwind_memory instead of
3914 deprecated_read_memory_nobpt.
3915 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3916 changed signature of i386_linux_sigtramp_start and
3917 i386_linux_rt_sigtramp_start.
3919 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3920 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3921 instead of deprecated_read_memory_nobpt.
3922 (i386nbsd_sigtramp_p): Adjust for changed signature of
3923 i386nbsd_sigtramp_offset.
3925 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3926 safe_frame_unwind_memory instead of target_read_memory.
3928 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3930 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3931 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3932 (_initialize_kernel_u_addr): Remove prototype and function.
3933 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3935 * xcoffread.c: Likewise.
3937 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3939 * vax-nat.c: New file.
3940 * vaxbsd-nat.c: Tweak comment.
3941 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3943 (vax-nat.o): New dependency.
3944 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3945 (vax-*-ultrix2*): Remove.
3946 * config/vax/vax.mh: New file.
3947 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3948 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3949 (vax_register_u_addr): New prototype.
3950 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3951 * config/vax/vaxult2.mh: Remove file.
3952 * config/vax/vaxult.mh: Remove file.
3953 * config/vax/vaxbsd.mh: Remove file.
3954 * config/vax/vax.mt (TM_FILE): Remove.
3955 * config/vax/tm-vaxbsd.h: Remove file.
3957 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3959 * aix-thread.c (get_signaled_thread): New function.
3960 (iter_trap): Delete, no longer used.
3961 (iter_tid): New function.
3962 (pd_update): Find the thread that received the SIGTRAP signal
3963 by first locating the kernel thread, and then finding its
3966 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3968 * lin-lwp.c (child_wait): Continue inferior after processing
3969 PTRACE_EVENT_CLONE event.
3971 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3973 * MAINTAINERS: Add self to Write-After-Approval.
3975 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3977 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3978 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3980 2004-08-05 Andrew Cagney <cagney@gnu.org>
3982 * config/xm-sysv4.h: Delete file.
3983 * config/mips/xm-irix5.h: Delete file.
3984 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3985 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3986 * config/ia64/xm-aix.h: Delete file.
3987 * config/ia64/aix.mh (XM_FILE): Delete.
3988 * config/pa/xm-hppah.h: Delete file.
3989 * config/pa/hpux11w.mh (XM_FILE): Delete.
3990 * config/pa/hpux11.mh (XM_FILE): Delete.
3991 * config/pa/hpux1020.mh (XM_FILE): Delete.
3992 * config/pa/hppahpux.mh (XM_FILE): Delete.
3994 * config/alpha/xm-alphalinux.h: Delete file.
3995 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3996 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3997 * config/alpha/xm-alphaosf.h: Delete file.
3998 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3999 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4000 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4001 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4003 * config/i386/xm-i386v.h: Delete file.
4004 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4005 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4006 * config/i386/xm-i386sco.h: Delete file.
4007 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4008 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4009 * config/i386/xm-i386v4.h: Delete file.
4010 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4011 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4012 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4013 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4015 * config/vax/xm-vax.h: Delete file.
4016 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4017 * config/vax/xm-vaxult2.h: Delete file.
4018 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4019 * config/vax/vaxult2.mh (XM_FILE): Delete.
4020 * config/vax/xm-vaxult.h: Delete file.
4021 * config/vax/vaxult.mh (XM_FILE): Delete.
4022 * config/vax/xm-vaxbsd.h: Delete file.
4023 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4025 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4026 * gdbarch.h, gdbarch.c: Re-generate.
4027 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4028 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4029 * frame.h: Delete deprecated_read_fp from comments.
4030 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4031 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4033 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4035 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4036 trampoline in OpenBSD 3.5-current.
4038 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4041 * Makefile.in: Remove embedded page breaks.
4043 2004-08-04 Jim Blandy <jimb@redhat.com>
4045 * regcache.c (regcache_raw_read): Assert that, after calling
4046 target_fetch_registers, the register we're reading is cached.
4048 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4049 a call to 'internal_error', with a more helpful error message.
4050 * rs6000-tdep.c (e500_pseudo_register_read,
4051 e500_pseudo_register_write, rs6000_store_return_value): Same.
4053 2004-08-04 Andrew Cagney <cagney@gnu.org>
4055 * Makefile.in: Update dependencies.
4057 2004-08-04 Jim Blandy <jimb@redhat.com>
4059 Change the layout of the PowerPC E500 raw register cache to allow
4060 the lower 32-bit halves of the GPRS to be their own raw registers,
4061 not pseudoregisters.
4062 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4063 add ppc_ev0_upper_regnum flag.
4064 * rs6000-tdep.c: #include "reggroups.h".
4065 (spe_register_p): Recognize the ev upper half registers as SPE
4067 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4069 (e500_move_ev_register): New function.
4070 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4071 vector registers are the pseudo-registers now, formed by splicing
4072 together the gprs and the upper-half registers.
4073 (e500_register_reggroup_p): New function.
4075 (P8, A4): New macro.
4076 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4077 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4079 (registers_e500): Rearrange register set so that the raw register
4080 set contains 32-bit GPRs and upper-half registers, and the SPE
4081 vector registers become pseudo-registers.
4082 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4083 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4084 register numbers are now the same for the E500 as they are for
4085 other PowerPC variants. Register e500_register_reggroup_p as the
4086 register group function for the E500.
4087 * Makefile.in (rs6000-tdep.o): Update dependencies.
4089 Adapt PPC E500 native support to the new raw regcache layout.
4090 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4091 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4092 (fetch_spe_register, store_spe_register): Handle fetching/storing
4093 all the SPE registers at once, if regno == -1. These now take
4094 over the job of fetch_spe_registers and store_spe_registers.
4095 (fetch_spe_registers, store_spe_registers): Deleted.
4096 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4097 unconditionally; they're always raw. Fetch/store SPE upper half
4098 registers, if present, instead of ev registers.
4099 (fetch_register, store_register): Remove sanity checks: gprs are
4100 never pseudo-registers now, so we never need to even mention any
4101 registers that are ever pseudoregisters.
4103 Use a fixed register numbering when communicating with the PowerPC
4105 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4106 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4107 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4109 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4110 init_sim_regno_table.
4111 * Makefile.in (gdb_sim_ppc_h): New variable.
4112 (rs6000-tdep.o): Update dependencies.
4114 2004-08-02 Andrew Cagney <cagney@gnu.org>
4116 * cris-tdep.c (cris_register_size): Restore function, still used
4119 * gdbarch.sh (deprecated_target_read_fp)
4120 (deprecated_frame_locals_address, deprecated_frame_args_address)
4121 (deprecated_frame_chain_valid, deprecated_frame_chain)
4122 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4123 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4124 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4125 * gdbarch.h, gdbarch.c: Re-generate.
4126 * regcache.c (deprecated_read_fp): Do not call
4127 DEPRECATED_TARGET_READ_FP_P.
4128 * infcmd.c (default_print_registers_info): Do not call
4129 DEPRECATED_DO_REGISTERS_INFO.
4130 * frame-base.c (default_frame_locals_address): Do not call
4131 DEPRECATED_FRAME_LOCALS_ADDRESS.
4132 (default_frame_args_address): Do not call
4133 DEPRECATED_FRAME_ARGS_ADDRESS.
4135 * gdbarch.sh (deprecated_register_raw_size)
4136 (deprecated_register_virtual_size:int): Delete.
4137 * gdbarch.h, gdbarch.c: Re-generate.
4138 * cris-tdep.c (cris_register_size): Delete.
4139 (cris_gdbarch_init): Update.
4140 * alpha-tdep.c (alpha_register_raw_size)
4141 (alpha_register_virtual_size): Delete.
4142 (alpha_gdbarch_init): Update.
4144 * gdbarch.sh (deprecated_register_virtual_type)
4145 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4146 (deprecated_dummy_write_sp): Delete.
4147 * gdbarch.h, gdbarch.c: Re-generate.
4149 * gdbarch.sh (deprecated_register_bytes): Delete.
4150 * gdbarch.h, gdbarch.c: Re-generate.
4151 * regcache.c (deprecated_register_bytes): New function.
4152 * regcache.h (deprecated_register_bytes): Declare.
4153 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4154 * v850-tdep.c (v850_gdbarch_init): Update.
4155 * sh64-tdep.c (sh64_gdbarch_init): Update.
4156 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4157 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4158 * mcore-tdep.c (mcore_gdbarch_init): Update.
4159 * cris-tdep.c (cris_gdbarch_init): Update.
4160 * arm-tdep.c (arm_gdbarch_init): Update.
4161 * remote.c (init_remote_state): Update.
4162 * remote-vx.c (vx_prepare_to_store): Update.
4163 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4164 * irix5-nat.c (fetch_core_registers): Update.
4165 * cris-tdep.c (cris_register_bytes_ok): Update.
4166 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4168 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4169 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4170 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4171 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4172 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4173 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4174 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4175 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4176 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4177 with mips_insn16 and mips_insn32.
4179 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4180 * rs6000-tdep.c (rs6000_push_dummy_call)
4181 (rs6000_extract_return_value): Use register_size.
4182 * xstormy16-tdep.c (xstormy16_get_saved_register)
4183 (xstormy16_extract_return_value): Ditto.
4184 * valops.c (value_assign): Ditto.
4185 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4186 * v850-tdep.c (v850_extract_return_value): Ditto.
4187 * tracepoint.c (collect_symbol): Ditto.
4188 * target.c (debug_print_register): Ditto.
4189 * stack.c (frame_info): Ditto.
4190 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4191 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4192 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4193 (store_register_using_P): Ditto.
4194 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4195 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4196 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4197 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4198 * regcache.c (deprecated_read_register_bytes)
4199 (deprecated_write_register_bytes, read_register)
4200 (write_register): Ditto.
4201 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4202 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4203 * monitor.c (monitor_supply_register, monitor_fetch_register)
4204 (monitor_store_register): Ditto.
4205 * mn10300-tdep.c (mn10300_pop_frame_regular)
4206 (mn10300_print_register): Ditto.
4207 * mipsv4-nat.c (fill_fpregset): Ditto.
4208 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4209 (mips64_fill_fpregset): Ditto.
4210 * mi/mi-main.c (register_changed_p, get_register)
4211 (mi_cmd_data_write_register_values): Ditto.
4212 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4213 * irix5-nat.c (fill_gregset, fetch_core_registers):
4214 * infrun.c (write_inferior_status_register): Ditto.
4215 * infptrace.c (fetch_register, store_register): Ditto.
4216 * infcmd.c (default_print_registers_info): Ditto.
4217 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4218 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4219 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4220 * hpux-thread.c (hpux_thread_fetch_registers)
4221 (hpux_thread_store_registers): Ditto.
4222 * hppah-nat.c (store_inferior_registers, fetch_register):
4223 * findvar.c (value_from_register): Ditto.
4224 * dve3900-rom.c (fetch_bitmapped_register):
4225 * cris-tdep.c (cris_gdbarch_init): Ditto.
4226 * alpha-tdep.h: Ditto.
4227 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4229 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4230 DEPRECATED_REGISTER_RAW_SIZE from comments.
4231 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4232 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4233 DEPRECATED_REGISTER_RAW_SIZE.
4234 * findvar.c (value_of_register): Simplify by assuming that the
4235 registers raw and virtual sizes are identical.
4236 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4238 * arch-utils.c (generic_register_size): Simplify by assuming
4241 * regcache.c (legacy_read_register_gen, real_register)
4242 (legacy_write_register_gen): Delete, not used.
4244 * regcache.c (struct regcache_descr): Delete legacy_p.
4245 (init_legacy_regcache_descr): Delete function.
4246 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4247 Do not use deprecated register functions.
4248 (regcache_raw_read, deprecated_write_register_gen):
4249 (deprecated_read_register_gen, regcache_raw_write): Delete code
4250 predicated on legacy_p.
4251 (register_size): Delete check against register raw size.
4253 * cris-tdep.c (cris_register_type): Replace
4254 cris_register_virtual_type.
4255 (cris_gdbarch_init): Update, set register_type.
4257 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4258 * gdbarch.h, gdbarch.c: Re-generate.
4259 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4260 (arm_gdbarch_init) Do not set frameless function invocation.
4261 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4262 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4263 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4264 (frv_gdbarch_init): Do not set frameless function invocation.
4265 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4266 * sh-tdep.c (sh_gdbarch_init): Ditto.
4267 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4268 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4269 * avr-tdep.c (avr_gdbarch_init): Ditto.
4271 * blockframe.c (legacy_frame_chain_valid): Delete function.
4273 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4274 and pc. Update comments.
4275 (pc_in_dummy_frame): Delete function.
4276 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4278 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4279 call_hi, top and pc, use the id.
4280 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4282 * dummy-frame.c: Include "gdb_string.h".
4283 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4284 (generic_save_dummy_frame_tos): Delete.
4285 (dummy_frame_push): New function, replaces above.
4286 * dummy-frame.h: Update copyright.
4287 (dummy_frame_push): Declare.
4288 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4289 (generic_save_call_dummy_addr): Delete declarations.
4290 * infcall.c: Include "dummy-frame.h".
4291 (call_function_by_hand): Add locals caller_regcache,
4292 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4293 with call to frame_save_as_regcache plus cleanup. Delete calls to
4294 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4295 Move clear_proceed_status to just before the resume, add call to
4296 dummy_frame_push (discard cleanup).
4297 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4298 (dummy-frame.o): Add $(gdb_string_h).
4300 2004-08-01 Andrew Cagney <cagney@gnu.org>
4302 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4303 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4304 * dummy-frame.c (find_dummy_frame): Delete.
4305 (struct dummy_frame_cache, dummy_frame_sniffer)
4306 (dummy_frame_prev_register, dummy_frame_this_id)
4307 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4308 frame unwinder using a dummy_frame_cache.
4310 2004-08-01 Andrew Cagney <cagney@gnu.org>
4312 * frame.h (frame_save_as_regcache): Declare.
4313 * frame.c (frame_save_as_regcache): New function.
4314 (do_frame_read_register): Replace do_frame_unwind_register.
4315 (frame_pop): Use frame_save_as_regcache.
4316 * dummy-frame.c (generic_push_dummy_frame): Use
4317 frame_save_as_regcache.
4319 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4321 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4322 file as included until we record the first line in the linetable.
4324 2004-08-01 Andrew Cagney <cagney@gnu.org>
4326 * frame.h (deprecated_pop_dummy_frame)
4327 (deprecated_read_register_dummy)
4328 (deprecated_generic_find_dummy_frame): Delete.
4329 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4330 (deprecated_read_register_dummy)
4331 (deprecated_find_dummy_frame_regcache)
4332 (discard_innermost_dummy)
4333 (deprecated_pop_dummy_frame): Delete.
4334 (dummy_frame_this_id): Simplify.
4335 (struct dummy_frame): Delete "fp" and "sp".
4336 (find_dummy_frame): Simplify.
4337 (generic_push_dummy_frame): Do not set "fp" or "sp".
4338 (fprint_dummy_frames): Do not print "fp" and "sp"
4340 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4342 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4343 (struct i386_insn): New structure.
4344 (i386_match_insn): New function.
4345 (i386_frame_setup_skip_insns): New variable.
4346 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4347 array i386_frame_setup_insns of instructions that should be
4348 skipped inside the frame setup sequence.
4350 2004-08-01 Andrew Cagney <cagney@gnu.org>
4352 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4353 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4354 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4355 * stack.c (frame_info): Delete references to
4356 DEPRECATED_FRAME_INIT_SAVED_REGS and
4357 deprecated_get_frame_saved_regs.
4358 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4359 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4360 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4361 (frame_unwind_register_signed)
4362 (frame_unwind_register_unsigned)
4363 (frame_unwind_unsigned_register): Use register_size.
4364 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4365 (deprecated_frame_xmalloc_with_cleanup)
4366 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4367 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4369 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4370 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4371 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4372 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4374 * infcall.c (call_function_by_hand): Do not use
4375 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4376 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4377 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4378 DEPRECATED_STACK_ALIGN.
4380 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4382 Committed by Andrew Cagney.
4383 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4385 2004-08-01 Andrew Cagney <cagney@gnu.org>
4387 * mips-tdep.c (mips16_frame_cache)
4388 (mips16_frame_this_id, mips16_frame_prev_register)
4389 (mips16_frame_unwind, mips16_frame_sniffer)
4390 (mips16_frame_base_address, mips16_frame_base)
4391 (mips16_frame_base_sniffer, mips32_frame_cache)
4392 (mips32_frame_this_id, mips32_frame_prev_register)
4393 (mips32_frame_unwind, mips32_frame_sniffer)
4394 (mips32_frame_base_address, mips32_frame_base)
4395 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4396 separate heuristic mips16 and mips32 unwinders.
4397 (mips_stub_frame_cache, mips_stub_frame_this_id)
4398 (mips_stub_frame_prev_register)
4399 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4400 (mips_stub_frame_base_address, mips_stub_frame_base)
4401 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4402 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4403 match true mdebug frames.
4404 (non_heuristic_proc_desc): Add forward declaration.
4406 2004-08-01 Andrew Cagney <cagney@gnu.org>
4408 * config/mips/tm-irix6.h: Delete file.
4409 * config/mips/tm-irix5.h: Delete file.
4410 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4411 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4413 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4414 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4415 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4416 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4417 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4418 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4419 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4420 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4421 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4422 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4423 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4424 (TARGET_SIGNAL_RAW_VALUES): Delete.
4425 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4427 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4428 (TARGET_HW_WATCH_LIMIT): Delete.
4429 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4430 * minimon.h: Delete file.
4432 * trad-frame.c (trad_frame_get_this_base)
4433 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4435 * trad-frame.h (trad_frame_set_this_base)
4436 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4438 2004-07-31 Andrew Cagney <cagney@gnu.org>
4440 * trad-frame.c (trad_frame_get_prev_register): Rename
4441 trad_frame_get_prev_register.
4442 * vax-tdep.c (vax_frame_prev_register): Update.
4443 * trad-frame.h: Update.
4444 * trad-frame.c (trad_frame_get_register): Update.
4445 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4446 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4448 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4449 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4451 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4453 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4455 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4457 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4459 * s390-tdep.c (s390_frame_prev_register)
4460 (s390_stub_frame_prev_register)
4461 (s390_sigtramp_frame_prev_register): Update.
4462 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4463 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4464 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4465 * m88k-tdep.c (m88k_frame_prev_register)
4466 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4467 * m32r-tdep.c (m32r_frame_prev_register): Update.
4468 * hppa-tdep.c (hppa_frame_prev_register_helper)
4469 * frv-tdep.c (frv_frame_prev_register): Update.
4470 * d10v-tdep.c (d10v_frame_prev_register): Update.
4471 * cris-tdep.c (cris_frame_prev_register): Update.
4472 * avr-tdep.c (avr_frame_prev_register): Update.
4473 * arm-tdep.c (arm_prologue_prev_register)
4474 (arm_sigtramp_prev_register): Update.
4476 2004-07-31 Andrew Cagney <cagney@gnu.org>
4478 * frame.h (legacy_saved_regs_unwind)
4479 (legacy_frame_chain_valid, legacy_frame_p)
4480 (enum frame_type): Delete UNKNOWN_FRAME.
4481 * dummy-frame.c (dummy_frame_this_id): Simplify.
4482 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4483 * frame.c (struct frame_info): Delete the field "type".
4484 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4485 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4486 (legacy_saved_regs_unwind, legacy_frame_p)
4487 (frame_type_from_pc): Delete.
4488 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4489 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4491 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4493 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4496 * mips-nat.c: Remove file.
4497 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4498 (mips-nat.o): Remove dependency.
4500 * infptrace.c: Update copyright year.
4501 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4502 explicitly setting the buffer to all zeroes.
4504 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4505 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4507 2004-07-30 Andrew Cagney <cagney@gnu.org>
4509 * GDB 6.2 released from gdb_6_2-branch.
4511 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4513 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4515 * exec.c (exec_file_attach):
4516 * nto-tdep.c (nto_find_and_open_solib):
4517 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4518 * solib.c (solib_open):
4519 * somsolib.c (som_solib_sizeof_symbol_table):
4520 * source.c (is_regular_file, openp, open_source_file):
4521 * symfile.c (symfile_bfd_open):
4522 * wince.c (upload_to_device): Differentiate between the search for
4523 binary and source files.
4525 2004-07-30 Andrew Cagney <cagney@gnu.org>
4527 * complaints.c (_initialize_complaints): Pass NULL to
4528 add_setshow_zinteger_cmd for help_doc.
4529 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4531 2004-07-30 Andrew Cagney <cagney@gnu.org>
4534 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4535 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4536 $(PACKAGE).pot and update-po.
4537 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4538 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4539 (update-po): New rules.
4540 (localedir): Define using autoconf.
4541 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4542 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4543 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4544 * configure.in: Generate CATALOGS and LINGUAS from contents of
4545 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4546 * configure: Re-generate.
4547 * po/gdbtext: New file
4549 2004-07-30 Jerome Guitton <guitton@gnat.com>
4551 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4554 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4556 * dwarf2read.c (read_file_scope): Set producer if attribute
4558 (struct dwarf2_cu): Added new member producer.
4560 2004-07-30 Jerome Guitton <guitton@gnat.com>
4562 * inflow.c (kill_command): release file handles in BFD.
4563 * exec.c (exec_file_attach): Ditto.
4564 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4566 2004-07-29 Andrew Cagney <cagney@gnu.org>
4568 * PROBLEMS (mips-irix): Note that it is broken.
4570 2004-07-29 Andrew Cagney <cagney@gnu.org>
4572 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4573 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4575 * config/xm-nbsd.h: Delete file.
4576 * config/arm/xm-nbsd.h: Delete file.
4577 * config/i386/xm-nbsd.h: Delete file.
4578 * config/ns32k/xm-nbsd.h: Delete file.
4579 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4580 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4581 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4582 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4583 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4585 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4586 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4587 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4588 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4589 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4590 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4592 * config/powerpc/xm-linux.h: Delete empty file.
4593 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4594 * config/powerpc/linux.mh (XM_FILE): Delete.
4595 * config/m68k/xm-linux.h: Delete empty file.
4596 * config/m68k/linux.mh (XM_FILE): Delete.
4597 * config/ia64/xm-linux.h: Delete empty file.
4598 * config/ia64/linux.mh (XM_FILE): Delete.
4599 * config/arm/xm-linux.h: Delete empty file.
4600 * config/arm/linux.mh (XM_FILE): Delete.
4602 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4603 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4604 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4605 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4606 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4607 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4608 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4609 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4611 * config/m68k/xm-m68k.h: Delete file.
4612 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4614 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4615 * config/pa/xm-linux.h: Delete empty file.
4616 * config/pa/linux.mh (XM_FILE): Delete.
4617 * config/i386/xm-i386.h: Delete empty file.
4618 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4620 * config/i386/obsdaout.mh (XM_FILE): Delete.
4621 * config/i386/obsd64.mh (XM_FILE): Delete.
4622 * config/i386/fbsd64.mh (XM_FILE): Delete.
4623 * config/i386/nto.mh (XM_FILE): Delete.
4624 * config/i386/obsd.mh (XM_FILE): Delete.
4625 * config/i386/linux64.mh (XM_FILE): Delete.
4626 * config/i386/linux.mh (XM_FILE): Delete.
4627 * config/i386/i386sol2.mh (XM_FILE): Delete.
4628 * config/i386/i386gnu.mh (XM_FILE): Delete.
4629 * config/i386/fbsd.mh (XM_FILE): Delete.
4630 * config/i386/nbsd64.mh (XM_FILE): Delete.
4632 2004-07-29 Andrew Cagney <cagney@gnu.org>
4634 * config/pa/xm-linux.h: Do not include "floatformat.h".
4635 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4636 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4637 * config/i386/xm-i386.h: Do not include "floatformat.h".
4638 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4639 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4640 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4641 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4642 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4643 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4644 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4645 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4646 * configure, config.in: Regenerate.
4647 * configure.host (gdb_host_float_format, gdb_host_double_format)
4648 (gdb_host_long_double_format): Set according to the host.
4650 2004-07-29 Andrew Cagney <cagney@gnu.org>
4652 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4654 2004-07-28 Andrew Cagney <cagney@gnu.org>
4656 * PROBLEMS: Mention threads/1650.
4657 * NEWS: Mention the NPTL fix.
4659 2004-07-28 Andrew Cagney <cagney@gnu.org>
4661 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4662 (add_setshow_cmd_full): Make static.
4663 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4664 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4665 * cli/cli-decode.c (add_setshow_filename_cmd)
4666 (add_setshow_string_cmd): New functions.
4667 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4668 * mips-tdep.c (_initialize_mips_tdep): Update.
4669 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4670 * cli/cli-logging.c (_initialize_cli_logging): Update.
4671 * complaints.c (_initialize_complaints): Update.
4672 * remote.c (_initialize_remote): Update.
4674 2004-07-28 Andrew Cagney <cagney@gnu.org>
4676 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4677 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4678 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4679 print parameters. Make string parameters constant.
4680 * command.h: Update. Update copyright.
4681 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4682 * observer.c (_initialize_observer): Ditto.
4683 * frame.c (_initialize_frame): Ditto.
4684 * complaints.c (_initialize_complaints): Ditto.
4685 * maint.c (_initialize_maint_cmds): Ditto.
4686 * target.c (initialize_targets): Ditto.
4687 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4688 * infcall.c (_initialize_infcall): Ditto.
4689 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4690 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4691 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4692 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4693 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4695 2004-07-28 Andrew Cagney <cagney@gnu.org>
4697 * gdbtypes.c (lookup_primitive_typename): Delete function.
4698 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4699 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4700 * gdbtypes.c (lookup_typename): Ditto.
4701 * f-exp.y (yylex): Ditto.
4702 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4704 * scm-lang.c (c_builtin_types): Delete extern declaration.
4705 (scm_language_defn): Replace
4706 string_char_type and primitive_type_vector with
4707 la_language_arch_info.
4708 * jv-lang.c (java_language_defn): Replace
4709 string_char_type and primitive_type_vector with
4710 la_language_arch_info.
4711 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4712 c_builtin_types in comment.
4713 * c-lang.h (struct language_arch_info): Declare opaque.
4714 (c_language_arch_info): Declare.
4715 (c_builtin_types): Delete declaration.
4716 * c-lang.c (c_language_arch_info): Set string_char_type to
4717 builtin_char, not builtin_true_char. Make global.
4718 (c_builtin_types): Delete array.
4719 (asm_language_defn, minimal_language_defn): Replace
4720 string_char_type and primitive_type_vector with
4721 la_language_arch_info.
4723 2004-07-28 Andrew Cagney <cagney@gnu.org>
4725 * gdbtypes.h (struct builtin_type): Rename true_char to
4727 * gdbtypes.c (gdbtypes_post_init): Update.
4728 * c-lang.c (arch_info): New function.
4729 (enum c_primitive_types): New enum.
4730 (c_language_defn): Instead of string_char_type and
4731 primitive_type_vector set la_language_arch_info.
4733 2004-07-28 Andrew Cagney <cagney@gnu.org>
4735 * language.h (struct language_arch_info): Fix typo
4736 s/primative/primitive/.
4737 * gdbtypes.c (lookup_primitive_typename): Ditto.
4738 * language.c (language_lookup_primitive_type_by_name)
4739 (unknown_language_arch_info): Ditto.
4741 2004-07-27 Andrew Cagney <cagney@gnu.org>
4743 * defs.h (enum language): Add nr_languages.
4744 * language.h (struct language_arch_info): Define.
4745 (struct language_defn): Add la_language_arch_info.
4746 (language_lookup_primative_type_by_name): Declare.
4747 (language_string_char_type): Declare.
4748 * language.c (_initialize_language, language_gdbarch_post_init)
4749 (struct language_gdbarch, language_gdbarch_data): Implement
4750 per-architecture language information.
4751 (unknown_language_arch_info, language_string_char_type)
4752 (language_lookup_primative_type_by_name): New functions.
4753 (unknown_language_defn, auto_language_defn)
4754 (local_language_defn): Set la_language_arch_info to
4755 unknown_language_arch_info.
4756 (unknown_builtin_types): Delete.
4757 * gdbtypes.c (lookup_primitive_typename): Use
4758 language_lookup_primative_type_by_name.
4759 (create_string_type): Use language_string_char_type.
4760 * values.c (value_from_string): Use language_string_char_type.
4761 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4762 * p-lang.c (pascal_language_defn): Ditto.
4763 * m2-lang.c (m2_language_defn): Ditto.
4764 * jv-lang.c (java_language_defn): Ditto.
4765 * objc-lang.c (objc_language_defn): Ditto.
4766 * f-lang.c (f_language_defn): Ditto.
4767 * c-lang.c (c_language_defn, cplus_language_defn)
4768 (asm_language_defn, minimal_language_defn): Ditto.
4770 2004-07-27 Andrew Cagney <cagney@gnu.org>
4772 * gdbtypes.h (struct builtin_type): Declare.
4773 (builtin_type): Declare.
4774 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4775 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4776 (gdbtypes_post_init): New function.
4777 (builtin_type): New function.
4779 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4781 * remote-m32r-sdi.c: Fix breakpoint bug.
4782 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4783 recv_char_data, recv_long_data): New functions to replace communication
4786 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4788 Document PR threads/1650.
4789 * PROBLEMS (Threads): Document problem with many threads
4791 2004-07-26 Andrew Cagney <cagney@gnu.org>
4793 * gdb-mi.el: Move from here ...
4794 * mi/gdb-mi.el: ... to here.
4796 2004-07-26 Andrew Cagney <cagney@gnu.org>
4798 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4799 * main.c (captured_main): When in batch mode always detach.
4801 2004-07-26 Andrew Cagney <cagney@gnu.org>
4803 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4804 and h8300 as broken.
4805 * NEWS: END-OF-LIFE frame compatibility module.
4806 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4809 2004-07-26 Andrew Cagney <cagney@gnu.org>
4811 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4812 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4813 * wince.c (_initialize_wince): Update.
4814 * win32-nat.c (_initialize_win32_nat): Update.
4815 * varobj.c (_initialize_varobj): Update.
4816 * valops.c (_initialize_valops): Update.
4817 * utils.c (initialize_utils, initialize_utils): Update.
4818 * tui/tui-win.c (_initialize_tui_win): Update.
4819 * top.c (init_main): Update.
4820 * symfile.c (_initialize_symfile): Update.
4821 * source.c (_initialize_source): Update.
4822 * somsolib.c (_initialize_som_solib): Update.
4823 * solib.c (_initialize_solib): Update.
4824 * solib-frv.c (_initialize_frv_solib): Update.
4825 * serial.c (_initialize_serial): Update.
4826 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4827 * remote.c (_initialize_remote, _initialize_remote): Update.
4828 * remote-vx.c (_initialize_vx): Update.
4829 * remote-utils.c (_initialize_sr_support): Update.
4830 * remote-sds.c (_initialize_remote_sds): Update.
4831 * remote-mips.c (_initialize_remote_mips): Update.
4832 * remote-e7000.c (_initialize_remote_e7000): Update.
4833 * proc-api.c (_initialize_proc_api): Update.
4834 * printcmd.c: Update.
4835 * parse.c (_initialize_parse): Update.
4836 * pa64solib.c (_initialize_pa64_solib): Update.
4837 * p-valprint.c (_initialize_pascal_valprint): Update.
4838 * monitor.c (_initialize_remote_monitors): Update.
4839 * mips-tdep.c (_initialize_mips_tdep): Update.
4840 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4841 * maint.c (_initialize_maint_cmds): Update.
4842 * lin-lwp.c (_initialize_lin_lwp): Update.
4843 * language.c (_initialize_language): Update.
4844 * kod.c (_initialize_kod): Update.
4845 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4846 * i386-tdep.c (_initialize_i386_tdep): Update.
4847 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4848 * gdbarch.sh: Update.
4849 * gdbarch.c: Re-generate.
4850 * gdb-events.sh: Update.
4851 * gdb-events.c: Re-generate.
4852 * frame.c (_initialize_frame): Update.
4854 * demangle.c (_initialize_demangler): Update.
4855 * dcache.c (_initialize_dcache): Update.
4856 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4857 * cp-valprint.c (_initialize_cp_valprint): Update.
4858 * corefile.c (_initialize_core): Update.
4859 * command.h: Update.
4860 * cli/cli-decode.h: Update.
4861 * cli/cli-cmds.c (init_cli_cmds): Update.
4862 * charset.c (_initialize_charset): Update.
4863 * breakpoint.c (_initialize_breakpoint): Update.
4864 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4865 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4866 * aix-thread.c (_initialize_aix_thread): Update.
4868 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4870 Partial fix for PR backtrace/1718.
4871 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4872 that GCC migrates into the prolugue. Don't handle any
4873 instructions that clobber %ebx.
4875 2004-07-23 Andrew Cagney <cagney@gnu.org>
4877 Use regcache_raw_collect instead of regcache_collect.
4878 * regcache.h (regcache_collect): Delete declaration.
4879 * regcache.c (regcache_colect): Delete function.
4880 * win32-nat.c (do_child_store_inferior_registers): Update.
4881 * sol-thread.c (sol_thread_store_registers): Update.
4882 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4883 * rs6000-nat.c (store_register): Update.
4884 * remote.c (store_register_using_P, remote_store_registers): Update.
4885 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4886 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4887 (fill_vrregset, store_spe_registers, fill_gregset)
4888 (fill_gregset): Update.
4889 * nto-procfs.c (procfs_store_registers): Update.
4890 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4891 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4892 * m68klinux-nat.c (store_register, fill_gregset): Update.
4893 * m68k-tdep.c (fill_gregset): Update.
4894 * infptrace.c (store_register): Update.
4895 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4896 * i386-linux-nat.c (store_register, fill_gregset): Update.
4897 * hppa-linux-nat.c (fill_gregset): Update.
4898 * go32-nat.c (store_register): Update.
4899 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4900 (store_fp_regs): Update.
4901 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4902 (store_nwfpe_extended, store_fpregister, store_fpregs)
4903 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4904 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4905 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4906 (store_regs_user_thread, store_regs_kernel_thread): Update.
4908 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4910 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4911 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4913 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4914 member of `struct comp_unit'.
4916 2004-07-23 Andrew Cagney <cagney@gnu.org>
4918 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4919 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4921 2004-07-23 Martin Hunt <hunt@redhat.com>
4922 Kevin Buettner <kevinb@redhat.com>
4924 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4925 alignment was being added to the offset instead of multiplied.
4927 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4929 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4930 changed signal trampoline in OpenBSD 3.5-current.
4932 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4933 <machine/pcb.h> and "bsd-kvm.h".
4934 (sparc64nbsd_supply_pcb): New function.
4935 (_initialize_sparc64nbsd_nat): Renamed from
4936 _initialize_sparcnbsd_nat. Enable libkvm interface.
4937 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4938 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4939 (LOADLIBES): New variable.
4941 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4943 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4945 2004-07-21 Andrew Cagney <cagney@gnu.org>
4947 Use regcache_raw_supply instead of supply_register.
4948 * regcache.h (supply_register): Delete declaration.
4949 * regcache.c (supply_register): Delete function.
4950 * wince.c (do_child_fetch_inferior_registers): Update.
4951 * win32-nat.c (do_child_fetch_inferior_registers)
4952 (fetch_elf_core_registers): Update.
4953 * v850ice.c (v850ice_fetch_registers): Update.
4954 * thread-db.c (thread_db_store_registers): Update.
4955 * sol-thread.c (sol_thread_store_registers): Update.
4956 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4957 * rs6000-nat.c (fetch_register): Update.
4958 * rom68k-rom.c (rom68k_supply_one_register): Update.
4959 * remote.c (remote_wait, remote_async_wait): Update.
4960 * remote-st.c (get_hex_regs): Update.
4961 * remote-sim.c (gdbsim_fetch_register): Update.
4962 * remote-sds.c (sds_fetch_registers): Update.
4963 * remote-rdp.c (remote_rdp_fetch_register): Update.
4964 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4965 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4966 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4967 * remote-hms.c (init_hms_cmds): Update.
4968 * remote-est.c (init_est_cmds): Update.
4969 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4970 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4971 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4972 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4973 (fetch_register, supply_vrregset, supply_vrregset)
4974 (fetch_spe_registers): Update.
4975 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4976 * monitor.c (monitor_supply_register): Update.
4977 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4978 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4979 (mipsnbsd_supply_fpreg): Update.
4980 * mips-nat.c (fetch_inferior_registers)
4981 (fetch_core_registers): Update.
4982 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4983 (supply_fpregset, mips64_supply_gregset)
4984 (mips64_supply_fpregset): Update.
4985 * m68klinux-nat.c (fetch_register, supply_gregset)
4986 (supply_fpregset): Update.
4987 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4988 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4989 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4990 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4991 * infptrace.c (fetch_register): Update.
4992 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4993 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4994 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4995 (gnu_fetch_registers, gnu_store_registers): Update.
4996 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4997 * i386-linux-nat.c (fetch_register, supply_gregset)
4998 (dummy_sse_values): Update.
4999 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5000 * hppah-nat.c (fetch_register): Update.
5001 * hppa-linux-nat.c (fetch_register, supply_gregset)
5002 (supply_fpregset): Update.
5003 * go32-nat.c (fetch_register): Update.
5004 * dve3900-rom.c (fetch_bitmapped_register)
5005 (_initialize_r3900_rom): Update.
5006 * cris-tdep.c (supply_gregset): Update.
5007 * abug-rom.c (init_abug_cmds): Update.
5008 * core-aout.c (fetch_core_registers): Update.
5009 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5010 (fetch_register, fetch_fp_register): Update.
5011 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5012 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5013 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5014 * alphanbsd-tdep.c (fetch_core_registers): Update.
5015 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5016 * alpha-nat.c (fetch_osf_core_registers)
5017 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5018 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5019 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5021 2004-07-21 Andrew Cagney <cagney@gnu.org>
5023 * PROBLEMS: Mention breakpoints/1702.
5024 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5025 that is known to work.
5027 2004-07-21 Andrew Cagney <cagney@gnu.org>
5029 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5030 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5031 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5032 (handle_inferior_event): Wrap call to deprecated
5033 IGNORE_HELPER_CALL in #ifdef.
5034 * config/mips/tm-nbsd.h: Update.
5036 2004-07-20 Jim Blandy <jimb@redhat.com>
5038 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5039 bfd_mach_ppc has no segment registers.
5041 Include PowerPC SPR numbers for special-purpose registers.
5042 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5043 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5044 new member in initializer.
5045 (S, S4, SN4, S64): New macros for defining special-purpose
5047 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5048 registers_403, registers_403GC, registers_505, registers_860,
5049 registers_601, registers_602, registers_603, registers_604,
5050 registers_750, registers_e500): Use them.
5052 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5053 replace references with expression used to initialize variable.
5055 2004-07-20 Andrew Cagney <cagney@gnu.org>
5057 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5059 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5060 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5061 (s390_sigtramp_frame_sniffer): Update.
5062 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5063 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5064 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5065 (mips32_fetch_instruction): Update.
5066 * mcore-tdep.c (get_insn): Update.
5067 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5068 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5069 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5070 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5071 (i386_linux_rt_sigtramp_start): Update.
5072 * i386-linux-nat.c (child_resume): Update.
5073 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5074 * hppa-linux-tdep.c (insns_match_pattern): Update.
5075 * gdbcore.h: Update.
5076 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5077 * frame.c (safe_frame_unwind_memory): Update.
5078 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5079 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5080 * alpha-tdep.c (alpha_read_insn): Update.
5082 2004-07-20 Andrew Cagney <cagney@gnu.org>
5084 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5085 containing both bytes and mask. Add "frame_type".
5086 * tramp-frame.c (tramp_frame_start): Update.
5087 (tramp_frame_prepend_unwinder): Update.
5088 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5089 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5090 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5091 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5093 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5095 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5096 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5097 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5098 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5100 2004-07-17 Andrew Cagney <cagney@gnu.org>
5102 * NEWS, PROBLEMS: Update for 6.2.
5104 * README: Update to 6.2.
5106 * utils.c (xvasprintf): Call xstrvprintf.
5108 * parse.c: Update copyright.
5109 (null_post_parser): Eliminate ARGSUSED.
5111 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5112 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5113 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5115 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5116 * ppc-linux-nat.c: Use "Linux kernel".
5117 * hppa-linux-tdep.c: Use GNU/Linux.
5118 * hppa-linux-nat.c: Use GNU/Linux.
5119 * dwarfread.c: Add [sic] to use of Linux.
5121 * hppa-linux-nat.c: Do not include <string.h>.
5122 (supply_fpregset): Remove "register" attribute.
5124 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5126 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5128 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5129 * configure, config.in: Regenerated.
5131 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5133 (vaxbsd_supply_pcb): New function.
5134 (_initialize_vaxbsd_nat): New prototype and function.
5135 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5137 (LOADLIBES): New variable.
5138 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5139 (LOADLIBES): New variable.
5140 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5141 (LOADLIBES): New variable.
5142 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5144 2004-07-16 Andrew Cagney <cagney@gnu.org>
5146 * defs.h (event_loop_p): Replace variable declaration with macro,
5148 * main.c (captured_main): Delete options "-async" and "-noasync".
5149 (event_loop_p): Delete variable.
5150 * NEWS: Mention that "-async" and "-noasync" were removed.
5152 2004-07-16 Andrew Cagney <cagney@gnu.org>
5154 * remote-m32r-sdi.c: Re-indent.
5156 2004-07-16 Jim Blandy <jimb@redhat.com>
5158 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5159 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5160 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5161 missing MPC823 SPRs.
5162 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5163 incorrect. (This was corrected in GDB's register name tables on
5166 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5167 should be "esasrr" ("ESA Save and Restore Register").
5169 2004-07-16 Andrew Cagney <cagney@gnu.org>
5171 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5172 calls, no longer applicable. Update comments and rename parameter
5173 "step_frame" to "return_frame".
5175 2004-07-16 Andrew Cagney <cagney@gnu.org>
5177 * frame.c (fprint_field): New function.
5178 (fprint_frame_id): Use fprint_field.
5180 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5182 * ada-lang.c (ada_language_defn): Remove commented out code.
5184 2004-07-15 Jim Blandy <jimb@redhat.com>
5186 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5187 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5189 2004-07-14 Jim Blandy <jimb@redhat.com>
5191 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5193 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5195 * ppc-tdep.h (ppc_num_srs): New enum constant.
5197 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5198 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5199 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5200 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5201 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5202 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5203 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5204 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5205 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5206 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5207 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5208 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5209 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5210 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5211 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5212 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5213 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5214 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5215 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5216 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5217 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5218 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5219 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5220 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5221 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5222 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5223 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5224 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5225 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5226 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5227 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5228 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5229 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5230 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5231 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5232 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5233 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5234 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5235 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5236 special-purpose register numbers.
5238 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5239 manual mentions 'md_twb', but many mention 'm_twb', and at that
5240 point in the register list.)
5242 2004-07-14 Andrew Cagney <cagney@gnu.org>
5244 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5245 instead of "internal-error".
5247 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5249 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5250 that was inserted inside a comment.
5252 2004-07-10 Randolph Chung <tausq@debian.org>
5254 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5256 (hppa_hpux_push_dummy_code): New function.
5257 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5258 Set find_global_pointer method.
5260 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5262 * NEWS: Mention BSD libkvm interface.
5264 2004-07-10 Michael Snyder <msnyder@redhat.com>
5266 * symfile.c (generic_load): Comment typo.
5267 * stack.c (get_selected_block): Ditto.
5268 * regcache.c (regcache_cooked_read): Ditto.
5269 * monitor.c (monitor_debug): Ditto.
5270 * mips-tdep.c (mips_read_pc): Ditto.
5271 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5272 * gdb_mbuild.sh: Ditto.
5273 * gdbarch.sh: Ditto.
5276 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5278 * ada-tasks.c: Remove file.
5280 Remove ARI problems:
5282 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5285 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5287 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5288 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5289 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5290 (UMIN_OF_SIZE): Remove.
5291 (max_of_type): New function to replace orphan macro in gdbtypes.h
5292 (min_of_type): Ditto.
5293 (discrete_type_high_bound): Use max_of_type.
5294 (discrete_type_low_bound): Use min_of_type.
5295 (possible_user_operator_p): Move operator to beginning of line.
5296 (ada_is_variant_part): Ditto.
5297 (ensure_lval): Rewrite to avoid deprecated operations.
5298 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5299 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5300 (ada_enum_name): Remove assignments in 'if' statements.
5301 (build_ada_types): Add gdbarch parameter.
5302 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5303 with gdbarch_data_register_post_init.
5304 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5307 * ada-valprint.c (inspect_it): Remove declaration.
5308 (repeat_count_threshold): Remove declaration.
5309 (ada_print_floating): Remove assignments in 'if' statements.
5310 (print_str): Move operator to beginning of line.
5312 2004-07-08 Jim Blandy <jimb@redhat.com>
5314 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5316 2004-07-08 Bob Rossi <bob@brasko.net>
5318 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5320 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5322 * language.h (struct_language_defn): Add new function pointer:
5323 la_class_name_from_physname. Also add new prototype for
5324 language_class_name_from_physname.
5325 * language.c (language_class_name_from_physname): New function.
5326 (unk_lang_class_name): Ditto.
5327 (unknown_language_defn, auto_language_defn): Change
5328 to add unk_lang_class_name function pointer for
5329 la_class_name_from_physname.
5330 (local_language_defn): Ditto.
5331 * dwarf2read.c (guess_structure_name): Change to call
5332 language_class_name_from_physname.
5333 (determine_class_name): Ditto.
5334 * cp-support.c (class_name_from_physname): Renamed.
5335 (cp_class_name_from_physname): New name of function.
5336 * cp-support.h: Ditto.
5337 * c-lang.c (c_language_defn): Change to add NULL
5338 for class_name_from_physname function pointer.
5339 (cplus_language_defn): Change to add cp_class_name_from_physname.
5340 * jv-lang.c (java_class_name_physname): New function.
5341 (java_find_last_component): New static routine.
5342 (java_language_defn): Add java_class_name_from_physname pointer.
5343 * ada-lang.c (ada_language_defn): Change to add NULL
5344 for class_name_from_physname function pointer.
5345 * f-lang.c (f_language_defn): Ditto.
5346 * m2-lang.c (m2_language_defn): Ditto.
5347 * objc-lang.c (objc_language_defn): Ditto.
5348 * p-lang.c (pascal_language_defn): Ditto.
5349 * scm-lang.c (scm_language_defn): Ditto.
5351 2004-07-06 Andrew Cagney <cagney@gnu.org>
5353 Patch from Bart Robinson.
5354 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5355 (O_LARGEFILE): Define to 0, if not defined.
5357 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5359 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5360 <machine/pcb.h> and "bsd-kvm.h".
5361 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5362 (m68kbsd_supply_pcb): New function.
5363 (_initialize_m68kbsd_nat): New prototype and function.
5364 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5365 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5366 (LOADLIBES): New variable.
5367 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5368 (LOADLIBES): New variable.
5370 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5372 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5374 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5376 (bsd_kvm_cmdlist): New variable.
5377 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5378 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5379 command and "kvm proc" command.
5380 * Makefile.in (bsd-kvm.o): Update dependencies.
5382 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5384 * osabi.c: Update copyright year.
5385 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5386 notes if EI_OSABI is set to ELFOSABI_HPUX.
5388 2004-07-01 Michael Snyder <msnyder@redhat.com>
5390 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5391 that seems to have gotten whacked out of line.
5393 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5395 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5398 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5400 * ada-lang.c (decode_packed_array): Minor change to comment.
5401 (ada_value_slice_ptr): New function.
5402 (ada_value_slice): New function.
5403 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5404 test. Don't know why it is there.
5405 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5406 to avoid dereferencing huge arrays from which one is slicing.
5407 (empty_array): Correct to return an array rather than
5409 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5410 on empty arrays (let'em use 'FIRST instead).
5412 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5414 Address complaints from gdb_ari.sh:
5416 * ada-exp.y: Include gdb_string.h rather than string.h.
5417 (convert_char_literal): Reformat declaration.
5418 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5419 * ada-lex.l: Change use of free to xfree (the macro would do so
5420 anyway, but this is harmless).
5421 Include gdb_string.h rather than string.h.
5422 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5424 * ada-lang.c (parse): Remove K&Rism in parameter list.
5425 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5427 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5429 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5432 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5434 * alphabsd-nat.c: Update copyright year.
5435 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5437 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5439 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5440 (i386_cygwin_in_solib_call_trampoline): New function.
5441 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5442 and skip_trampoline_code gdbarch methods.
5444 2004-06-29 Jim Blandy <jimb@redhat.com>
5446 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5447 name actually used in the dependency lists.
5449 2004-06-29 Randolph Chung <tausq@debian.org>
5451 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5453 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5455 * win32-nat.c (child_pid_to_exec_file): New function.
5456 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5459 2004-06-28 Andrew Cagney <cagney@gnu.org>
5461 * defs.h (xstrvprintf): Declare.
5462 * utils.c (xstrvprintf): New function.
5463 (internal_vproblem, xstrprintf, xasprintf)
5464 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5465 * serial.c (serial_printf): Ditto.
5466 * complaints.c (vcomplaint): Ditto.
5468 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5470 * infcmd.c (attach_command): Move call to target_terminal_inferior
5471 behind loading symbol table.
5473 2004-06-28 Andrew Cagney <cagney@gnu.org>
5475 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5476 change - add back extern deprecated_ui_loop_hook declaration.
5478 2004-06-28 Andrew Cagney <cagney@gnu.org>
5480 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5482 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5483 (c_value_of_variable): Ditto.
5484 * utils.c (internal_vproblem): Ditto.
5485 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5486 * remote.c (add_packet_config_cmd): Ditto.
5487 * remote-rdp.c (rdp_set_command_line): Ditto.
5488 * regcache.c (regcache_dump): Ditto.
5489 * frv-tdep.c (new_variant, new_variant): Ditto.
5490 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5491 (fbsd_find_memory_regions): Ditto.
5492 * breakpoint.c (create_thread_event_breakpoint)
5493 (create_breakpoints): Ditto.
5494 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5495 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5497 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5499 * ada-lang.c: Re-indent file, with some massaging to help indent
5500 a bit when the result is otherwise really too ugly.
5502 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5504 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5505 code_addr_p and special_addr_p to 'unsigned int'.
5507 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5509 * i386v4-nat.c: Update copyright year and tweak comment.
5510 (regmap): Remove trailing comma.
5511 (supply_gregset): Rename local variable i to regnum. Call
5512 regcache_raw_supply instead of supply_register.
5513 (fill_gregset): Rename argument regno to regnum. Call
5514 regcache_raw_collect instead of regcache_collect.
5516 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5518 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5520 (frame_id_build, frame_id_build_special): Update comments.
5521 (frame_id_build_wild): New prototype.
5522 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5523 struct frame_id fields.
5524 (frame_id_build_wild): New function.
5525 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5527 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5529 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5532 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5534 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5536 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5538 * ada-lang.c: Re-indent file.
5540 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5542 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5543 (no_symtab_msg): Likewise.
5545 2004-06-27 Andreas Schwab <schwab@suse.de>
5547 * source.c: Fix whitespace.
5549 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5551 * configure.in: Include <sys/param.h> for td_pcb test.
5552 * configure: Regenerated.
5554 * i386nbsd-nat.c: New file.
5555 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5556 i386obsd-nat.c and i386obsd-tdep.c.
5557 (i386nbsd-nat.o): New dependency.
5558 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5560 (LOADLIBES): New variable.
5561 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5563 (LOADLIBES): New variable.
5565 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5566 (LOADLIBES): New variable.
5568 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5569 fetching from BSD_KVM_PADDR. Correctly lookup address for
5572 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5574 (amd64fbsd_supply_pcb): New funcion.
5575 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5577 2004-06-27 <david@streamline-computing.com>
5579 Partial fix for PR cli/1056.
5580 * valarith.c: Check for zero in division and remainder
5583 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5585 * i387-tdep.c: Remove excessive whitespace.
5587 2004-06-26 Andrew Cagney <cagney@gnu.org>
5589 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5590 * gdb-events.h, gdb-events.c: Re-generate.
5591 * tui/tui-hooks.c (tui_install_hooks): Update.
5592 (tui_remove_hooks): Update.
5593 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5595 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5597 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5598 (gregset_t, fpregset_t): Remove typedefs.
5599 (REG_OFFSET): Rename argument.
5600 (amd64bsd_r_reg_offset): Rename from reg_offset.
5601 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5603 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5605 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5607 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5609 * vax-tdep.c: Tweak comment.
5611 Add OpenBSD/hppa support.
5612 * NEWS (New native configurations): Mention OpenBSD/hppa.
5613 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5614 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5616 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5617 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5618 * configure.host: Add hppa*-*-openbsd*.
5619 * configure.tgt: Add hppa*-*-openbsd*.
5621 2004-06-25 Andrew Cagney <cagney@gnu.org>
5623 * defs.h (deprecated_ui_loop_hook): Deprecated.
5624 * wince.c (child_wait): Update.
5625 * win32-nat.c (child_wait): Update.
5626 * v850ice.c (v850ice_wait): Update.
5627 * top.c (deprecated_ui_loop_hook): Update.
5629 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5630 (do_unix_readchar): Update.
5631 * ser-tcp.c (net_open): Update.
5632 * remote-sim.c (gdb_os_poll_quit): Update.
5633 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5635 2004-06-24 Andrew Cagney <cagney@gnu.org>
5637 * defs.h (deprecated_pre_add_symbol_hook)
5638 (deprecated_post_add_symbol_hook): Deprecated.
5639 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5640 (symbol_file_add_with_addrs_or_offsets): Update references.
5642 2004-06-24 Andrew Cagney <cagney@gnu.org>
5644 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5645 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5646 * wince.c (ui_loop_hook): Delete extern declaration.
5647 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5648 * v850ice.c (ui_loop_hook): Delete extern declaration..
5649 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5650 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5651 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5652 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5653 ui_loop_hook declaration.
5655 2004-06-24 Andrew Cagney <cagney@gnu.org>
5657 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5658 entry_func_highpc fields.
5659 * objfiles.c (init_entry_point_info): Do not clear
5660 entry_func_lowpc and entry_func_highpc.
5661 (objfile_relocate): Do not relocate entry_func_lowpc and
5663 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5665 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5667 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5668 entry_func_lowpc and entry_func_highpc with call to
5671 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5673 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5674 quad-precision floating point arguments in registers.
5676 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5678 From Michael Mueller <m.mueller99@kay-mueller.de>:
5679 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5682 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5684 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5686 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5687 untriggered watchpoints to a separate if clause. Update function
5688 comment regarding STOPPED_BY_WATCHPOINT argument.
5690 2004-06-22 Jim Blandy <jimb@redhat.com>
5692 * gdbarch.sh: Doc fix.
5694 2004-06-21 Martin Hunt <hunt@redhat.com>
5695 Kevin Buettner <kevinb@redhat.com>
5697 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5698 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5699 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5700 to set_gdbarch_sp_regnum(). Use cooked register number.
5701 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5703 2004-06-21 Andrew Cagney <cagney@gnu.org>
5705 * gdbarch.sh: When the macro field is empty, do not generate a
5706 macro definition. When the macro field is "=", generate the macro
5707 name from the upper-case function name.
5708 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5709 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5710 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5711 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5712 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5713 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5714 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5715 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5716 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5717 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5718 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5719 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5720 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5721 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5722 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5723 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5724 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5725 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5726 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5727 (DEPRECATED_USE_STRUCT_CONVENTION)
5728 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5729 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5730 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5731 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5732 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5733 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5734 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5735 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5736 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5737 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5738 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5739 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5740 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5741 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5742 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5743 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5744 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5745 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5747 2004-06-21 Andrew Cagney <cagney@gnu.org>
5749 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5750 macro name, and the function rather than macro value. Only wrap
5751 macro print statements in #ifdef. Move format logic to where it
5753 * gdbarch.c: Re-generate.
5755 * gdbarch.sh (read): Delete "print_p" and "description", add
5756 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5757 Delete references to print_p.
5758 (TARGET_ARCHITECTURE): Delete print predicate.
5759 * gdbarch.c: Re-generate.
5761 * gdbarch.sh: Check that multi-arch methods do not provide a
5763 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5764 (print_registers_info, print_float_info, print_vector_info)
5765 (adjust_breakpoint_address, remote_translate_xfer_address)
5766 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5767 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5768 name from the multi-arch definition.
5770 2004-06-20 Andrew Cagney <cagney@gnu.org>
5772 * gdbarch.sh: Sort by the function, instead of macro name.
5773 * gdbarch.c: Re-generate.
5775 2004-06-20 Andrew Cagney <cagney@gnu.org>
5777 * gdbarch.sh: Use the function, instead of macro name in
5778 errors and the log file.
5779 (return_value): Remove stray ":" in spec.
5781 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5782 * gdbarch.h, gdbarch.c: Re-generate.
5783 * Makefile.in (arch-utils.o): Update dependencies.
5784 * values.c (using_struct_return): Move code calling
5785 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5786 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5787 to legacy_return_value, simplify.
5788 * infcmd.c (print_return_value): Move code calling
5789 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5790 to legacy_return_value, simplify.
5791 * infcall.c (call_function_by_hand): Move code calling
5792 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5793 * arch-utils.c: Update copyright. Include "gdbcore.h".
5794 (legacy_return_value): New function.
5795 * arch-utils.h: Update copyright.
5796 (legacy_return_value): Declare.
5798 2004-06-20 Andrew Cagney <cagney@gnu.org>
5800 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5801 * gdbarch.h, gdbarch.c: Re-generate.
5802 * values.c (using_struct_return): Update call.
5803 * mcore-tdep.c: Update comment.
5804 * infcall.c (call_function_by_hand): Update comment.
5805 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5806 * arch-utils.h (always_use_struct_convention): Update.
5807 * v850-tdep.c (v850_gdbarch_init): Update.
5808 * sh64-tdep.c (sh64_gdbarch_init): Update.
5809 * sh-tdep.c (sh_gdbarch_init): Update.
5810 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5811 * mips-tdep.c (mips_gdbarch_init): Update.
5812 * mcore-tdep.c (mcore_gdbarch_init): Update.
5813 * m32r-tdep.c (m32r_gdbarch_init): Update.
5814 * ia64-tdep.c (ia64_gdbarch_init): Update.
5815 * h8300-tdep.c (h8300_gdbarch_init): Update.
5816 * frv-tdep.c (frv_gdbarch_init): Update.
5817 * cris-tdep.c (cris_gdbarch_init): Update.
5818 * arm-tdep.c (arm_gdbarch_init): Update.
5819 * alpha-tdep.c (alpha_gdbarch_init): Update.
5821 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5823 * PROBLEMS: Add more specific information, and a work-around,
5826 2004-06-18 Andrew Cagney <cagney@gnu.org>
5828 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5829 * gdbarch.h, gdbarch.c: Re-generate.
5830 * ada-lang.c (ada_finish_decode_line_1): Update.
5831 * infrun.c (handle_inferior_event): Update.
5832 * infcall.c (find_function_addr): Update.
5833 * linespec.c (minsym_found): Update.
5834 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5836 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5837 * cli/cli-cmds.c (disassemble_command): Update.
5838 * vax-tdep.c (vax_gdbarch_init): Update.
5840 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5842 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5844 2004-06-17 Andrew Cagney <cagney@gnu.org>
5846 GDB 6.1.1 released from the GDB 6.1 branch.
5847 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5850 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5853 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5854 operation as a uleb128. Found by Michael Coulter.
5856 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5858 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5860 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5861 to ada-lang.h; this is needed to be able to implement the kill command
5864 (task_entry): Ditto.
5866 (ada_build_task_list): Ditto.
5868 * ada-lang.c: Conditionalize routines and data structures related
5869 to breakpoints, exceptions, completion, and symbol caching on
5870 GNAT_GDB, since these are not yet used in the submitted public sources.
5871 (ada_main_name): Editorial: Move definition out of exception-related
5874 2004-06-15 Andrew Cagney <cagney@gnu.org>
5876 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5877 deprecated_pc_in_call_dummy.
5879 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5881 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5882 bfd_get_section_size_before_reloc or _raw_size.
5883 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5884 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5885 (dwarf2_read_section): Likewise.
5886 * elfread.c (elf_locate_sections): Likewise.
5887 * gcore.c (derive_heap_segment): Likewise.
5888 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5889 * remote-e7000.c (e7000_load): Likewise.
5890 * remote-m32r-sdi.c (m32r_load): Likewise.
5891 * remote-mips.c (mips_load_srec): Likewise.
5892 (pmon_load_fast): Likewise.
5893 * remote.c (compare_sections_command): Likewise.
5894 * symfile.c (add_section_size_callback): Likewise.
5895 (load_section_callback): Likewise.
5896 (pc_in_unmapped_range): Likewise.
5897 (pc_in_mapped_range): Likewise.
5898 (sections_overlap): Likewise.
5899 (list_overlays_command): Likewise.
5900 (simple_overlay_update_1): Likewise.
5901 (simple_overlay_update): Likewise.
5902 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5903 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5905 2004-06-14 Randolph Chung <tausq@debian.org>
5907 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5908 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5910 (hppa_hpux_inferior_created): New function.
5911 (hppa_hpux_init_abi): Register observer.
5912 * symfile.c (hp_cxx_exception_support_initialized)
5913 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5914 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5916 2004-06-14 Randolph Chung <tausq@debian.org>
5918 * MAINTAINERS (Write After Approval): Alphabetize my entry
5921 2004-06-14 Andrew Cagney <cagney@gnu.org>
5923 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5924 testsuite maintainer.
5926 2004-06-13 Andrew Cagney <cagney@gnu.org>
5928 * infcmd.c (print_return_value): Fix logic, allow
5929 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5931 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5932 defining any macros.
5933 * gdbarch.h: Re-generate.
5935 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5936 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5937 * gdbarch.h: Re-generate.
5939 * values.c (generic_use_struct_convention): Don't check gcc_p.
5941 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5942 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5943 * gdbarch.h, gdbarch.c: Regenerate.
5944 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5945 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5947 deprecated_max_register_raw_size and
5948 deprecated_max_register_virtual_size.
5949 * v850-tdep.c (v850_gdbarch_init): Ditto.
5950 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5951 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5952 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5953 * cris-tdep.c (cris_gdbarch_init): Ditto.
5955 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5956 * gdbarch.h, gdbarch.c: Re-generate.
5957 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5958 (m68hc11_use_struct_convention): Delete function.
5959 (m68hc11_extract_struct_value_address): Delete function.
5960 (m68hc11_return_value): New function.
5961 (m68hc11_gdbarch_init): Instead of store_return_value,
5962 extract_return_value, return_value_on_stack,
5963 deprecated_extract_struct_value_address and use_struct_convention,
5965 * values.c (using_struct_return): Do not call
5966 RETURN_VALUE_ON_STACK.
5967 * arch-utils.h (generic_return_value_on_stack_not): Delete
5969 * arch-utils.c (generic_return_value_on_stack_not): Delete
5972 2004-06-12 Andrew Cagney <cagney@gnu.org>
5974 * values.c (register_value_being_returned): Delete function.
5975 * infcmd.c (legacy_return_value): Delete function.
5976 * infcall.c (call_function_by_hand): Inline
5977 "register_value_being_returned", simplify.
5978 * values.c (using_struct_return): Update comment, refer to
5979 print_return_value instead of register_value_being_returned.
5980 * infcmd.c (print_return_value): Inline calls to
5981 register_value_being_returned and legacy_return_value. Simplify.
5983 2004-06-11 Randolph Chung <tausq@debian.org>
5985 * somread.c (som_symtab_read): Exclude gcc local symbols.
5987 2004-06-11 Randolph Chung <tausq@debian.org>
5989 * infrun.c (handle_inferior_event): Handle the case when a
5990 trampoline ends up in the runtime resolver, and if the trampoline
5991 has no name. Rearrange the code so that all the trampoline
5992 processing happens before other step-out-of-range handling.
5994 2004-06-11 Martin Hunt <hunt@redhat.com>
5996 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5999 2004-06-10 Andrew Cagney <cagney@gnu.org>
6001 * blockframe.c (legacy_inside_entry_func): Delete.
6002 (legacy_frame_chain_valid): Inline call to
6003 legacy_inside_entry_func, simplify.
6005 2004-06-10 Bob Rossi <bob@brasko.net>
6007 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6008 * dwarf2read.c (partial_die_info): Add dirname field.
6009 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6010 (read_partial_die): Save away DW_AT_comp_dir.
6011 * defs.h (symtab_to_filename): Removed.
6012 * source.c (find_and_open_source): Added.
6013 (open_source_file): Just calls find_and_open_source.
6014 (symtab_to_filename): Removed.
6015 (symtab_to_fullname, psymtab_to_fullname): Added.
6016 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6017 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6019 * symtab.h (partial_symtab): Add dirname field.
6020 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6021 (mi_cmd_file_list_exec_source_file): Call new function
6022 symtab_to_fullname to find fullname.
6023 (mi_cmd_file_list_exec_source_files): Added.
6024 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6025 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6027 2004-06-10 Andrew Cagney <cagney@gnu.org>
6029 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6030 to generic_use_struct_convention, the default value.
6032 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6035 * ns32k-tdep.c (ns32k_push_arguments): New function.
6036 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6037 * infcall.c (call_function_by_hand): Call error instead of
6038 legacy_push_arguments.
6039 * value.h (legacy_push_arguments): Delete declaration.
6040 * valops.c (legacy_push_arguments): Delete function.
6041 (value_push): Delete function.
6043 2004-06-10 Brian Ford <ford@vss.fsi.com>
6045 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6046 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6048 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6050 2004-06-10 Andrew Cagney <cagney@gnu.org>
6052 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6053 * gdbarch.h, gdbarch.c: Re-generate.
6054 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6056 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6057 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6058 deprecated_pc_in_call_dummy instead of
6059 DEPRECATED_PC_IN_CALL_DUMMY.
6060 (arm_skip_prologue): Ditto.
6061 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6062 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6063 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6064 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6066 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6067 (sh64_init_extra_frame_info, sh64_get_saved_register)
6068 (sh64_pop_frame): Ditto.
6069 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6070 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6071 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6072 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6073 (h8300_pop_frame): Ditto.
6074 * blockframe.c (legacy_inside_entry_func)
6075 (legacy_frame_chain_valid): Ditto.
6076 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6077 to deprecated_pc_in_call_dummy.
6079 2004-06-09 Andrew Cagney <cagney@gnu.org>
6081 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6082 provide a default value.
6083 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6084 * gdbarch.h, gdbarch.c: Re-generate.
6085 * arch-utils.c (generic_convert_register_p): Rename
6086 legacy_convert_register_p
6087 (legacy_register_to_value, legacy_value_to_register): Delete
6089 * arch-utils.h (generic_convert_register_p): Rename
6090 legacy_convert_register_p.
6091 (legacy_register_to_value, legacy_value_to_register): Delete
6094 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6095 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6096 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6097 * gdbarch.h, gdbarch.c: Re-generate.
6098 * infcmd.c (default_print_registers_info): Simplify.
6099 * findvar.c (value_of_register): Simplify.
6100 * mi/mi-main.c (get_register): Simplify.
6101 * arch-utils.c (legacy_convert_register_p): Always return 0.
6102 (legacy_register_to_value, legacy_value_to_register): Always call
6105 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6106 #ifdef CLEAR_INSN_CACHE code.
6107 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6108 Delete #ifdef CLEAR_DEFERRED_STORES code.
6110 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6112 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6114 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6116 * config/mips/mipsv4.mh: Delete file.
6118 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6120 (hpread_adjust_stack_address): Delete declaration.
6122 2004-06-08 Andrew Cagney <cagney@gnu.org>
6124 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6125 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6126 PTRACE_ATTACH / PTRACE_DETACH available call error.
6127 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6128 * infttrace.c (update_thread_state_after_attach, attach, detach):
6129 Remove #ifdef wrappers.
6130 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6131 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6132 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6133 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6134 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6135 * config/nm-linux.h (ATTACH_DETACH): Delete.
6136 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6137 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6138 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6139 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6140 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6142 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6144 * configure.in: Set $configdir to the right OS specific value.
6145 Use value when setting $tcldir and $tkdir.
6146 * configure: Regenerate.
6148 2004-06-06 Paul Brook <paul@codesourcery.com>
6150 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6153 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6155 * ada-lang.c (lookup_symbol_in_language): New function to allow
6156 re-use of another language's symbol lookup code. (Placed here
6157 temporarily while Ada support is being integrated into the public
6159 (restore_language): New auxiliary function for
6160 lookup_symbol_in_language.
6161 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6162 temporarily while Ada support is being integrated into the public
6165 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6167 * Makefile.in (check//%): New.
6169 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6170 (mn10300_store_return_value): Rewrite.
6171 (mn10300_type_align): New.
6172 (mn10300_use_struct_convention): Rewrite.
6173 (mn10300_return_value): New, using all of the above.
6174 (mn10300_pop_frame_regular): Add saved_regs_size.
6175 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6177 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6178 regs if PC is on movm.
6180 2004-06-07 Jim Blandy <jimb@redhat.com>
6182 Add native Linux support for the PowerPC E500.
6183 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6184 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6185 all architectures except the E500.
6186 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6188 (struct gdb_evrregset_t): New type.
6189 (have_ptrace_getsetevrregs): New variable.
6190 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6191 fetch_spe_registers): New functions.
6192 (fetch_register): Call fetch_spe_register as appropriate.
6193 Assert that we're only passed raw register numbers.
6194 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6195 Don't fetch gprs if they're pseudoregisters.
6196 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6197 store_spe_registers): New functions.
6198 (store_register): Call store_spe_register as appropriate.
6199 Assert that we're only passed raw register numbers.
6200 (store_ppc_registers): Call store_spe_registers as appropriate.
6201 Don't store gprs if they're pseudoregisters.
6203 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6205 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6206 struct if one exists, even if we are dealing with a zombie thread.
6208 2004-06-07 Andrew Cagney <cagney@gnu.org>
6210 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6211 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6212 Rename PC_REQUIRES_RUN_BEFORE_USE.
6213 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6216 2004-06-07 Randolph Chung <tausq@debian.org>
6218 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6219 unwinding after sp has been saved to the stack but before the end
6220 of the prologue, and after the fp has been modified but before it has
6221 been saved to the stack.
6222 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6223 Remove superfluous definitions.
6224 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6226 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6228 Committed by Randolph Chung.
6229 * hppa-linux-nat.c: Include the correct version of the header file
6230 depending on the kernel version.
6232 2004-06-06 Randolph Chung <tausq@debian.org>
6234 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6235 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6237 2004-06-06 Randolph Chung <tausq@debian.org>
6239 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6240 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6241 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6242 * hppa-tdep.c (hppa_symbol_address): New function definition.
6243 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6245 2004-06-06 Randolph Chung <tausq@debian.org>
6247 * hppa-tdep.h (struct value): Forward declaration.
6248 (gdbarch_tdep): Define tdep find_global_pointer method.
6249 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6250 associated with the function we are trying to call, and write it
6252 (hppa32_convert_from_funct_ptr_addr): New function.
6253 (hppa_find_global_pointer): New function.
6254 (hppa_gdbarch_init): Set default find_global_pointer method; set
6255 convert_from_func_ptr_addr method.
6256 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6257 (hppa_linux_init_abi): Set find_global_pointer method.
6258 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6260 2004-06-06 Randolph Chung <tausq@debian.org>
6262 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6263 to struct value *function.
6264 * gdbarch.c: Regenerate.
6265 * gdbarch.h: Likewise.
6266 * infcall.c (call_function_by_hand): Pass entire function value
6269 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6270 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6271 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6272 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6273 * arm-tdep.c (arm_push_dummy_call): Likewise.
6274 * avr-tdep.c (avr_push_dummy_call): Likewise.
6275 * cris-tdep.c (cris_push_dummy_call): Likewise.
6276 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6277 * frv-tdep.c (frv_push_dummy_call): Likewise.
6278 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6279 * hppa-tdep.c (hppa32_push_dummy_call)
6280 (hppa64_push_dummy_call): Likewise.
6281 * i386-tdep.c (i386_push_dummy_call): Likewise.
6282 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6283 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6284 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6285 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6286 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6287 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6288 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6289 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6290 (ppc64_sysv_abi_push_dummy_call): Likewise.
6291 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6292 (ppc64_sysv_abi_push_dummy_call): Likewise.
6293 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6294 * s390-tdep.c (s390_push_dummy_call): Likewise.
6295 * sh-tdep.c (sh_push_dummy_call_fpu)
6296 (sh_push_dummy_call_nofpu): Likewise.
6297 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6298 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6299 * vax-tdep.c (vax_push_dummy_call): Likewise.
6301 2004-06-04 Jim Blandy <jimb@redhat.com>
6303 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6304 gdbarch argument to register_size.
6306 * rs6000-tdep.c (rs6000_store_return_value): Use
6307 regcache_cooked_write_part instead of
6308 deprecated_write_register_bytes.
6309 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6310 not gdbarch_deprecated_store_return_value.
6312 * ppc-linux-nat.c (store_register, fetch_register): Remove
6313 incorrect assertions. Simplify and generalize handling of
6314 transfers whose sizes are not multiples of, or less than, sizeof
6317 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6319 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6320 as a new thread event.
6321 * thread-db.c (thread_get_info_callback): If the thread is a
6322 zombie, return TD_THR_ZOMBIE.
6323 (thread_from_lwp): If thread_get_info_callback returns
6324 TD_THR_ZOMBIE, check if the thread is still on the thread list
6325 and return a -1 ptid if not found.
6326 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6327 change the status to TARGET_WAITKIND_SPURIOUS.
6329 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6331 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6332 double values in little endian mode.
6334 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6336 Committed by Andrew Cagney.
6337 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6338 after last enum constant to avoid error from IBM C
6341 2004-06-02 Jim Blandy <jimb@redhat.com>
6343 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6344 to 'message', and make it local to the lone block that uses it.
6346 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6348 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6350 * ada-exp.y: Update copyright notice.
6353 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6354 SPECIAL_VARIABLE and unify the treatment of these cases.
6356 (write_attribute_call0): Remove.
6357 (write_attribute_call1): Remove.
6358 (write_attribute_calln): Remove.
6359 (save_qualifier): Add missing semicolon.
6361 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6362 temporarily disabled to allow compilation with FSF head version.
6364 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6365 use individual operators (OP_*) for all attributes.
6366 (exp syntax): Use write_int.
6367 Handle STRING literals with OP_STRING.
6368 (variable syntax): Add limit parameter to calls to
6369 write_object_renaming.
6371 (temp_parse_space): New definition to hold entities that need
6372 only live until the next call to ada_parse.
6373 (string_to_operator): Rename fields of ada_opname_table entries.
6375 (write_var_from_sym): Record block.
6376 (write_var_from_name): Minor reformatting.
6377 Make sure saved name is properly encoded in the case of multiple
6378 matches, and set its language to Ada.
6380 Modify to indicate unresolved name as symbol in the UNRESOLVED
6381 namespace, allocated in temp_parse_space.
6382 (write_int): New function.
6384 (write_object_renaming): Add max_depth parameter to limit
6385 chains of object renamings.
6386 Handle case where root of renaming expression is itself a renaming.
6387 Use temp_parse_space for temporary name buffer.
6388 Handle renamings to dereferenced pointers (___XEXA suffices).
6390 (ada_parse, yyerror, string_to_operator,
6391 write_var_from_sym, write_var_from_name, write_attribute_call0,
6392 write_attribute_call1, write_attribute_calln,
6393 write_object_renaming): Protoize.
6395 (_initialize_ada_exp): New function.
6397 * ada-lang.c: Update copyright notice.
6398 General terminology change to conform to GNAT compiler usage:
6399 mangle => encode, demangle => decode
6400 Include gdb_obstack.h.
6409 (ADA_RETAIN_DOTS): Make sure this is defined.
6410 (TRUNCATION_TOWARDS_ZERO): Define.
6411 (struct string_vector): Define.
6412 (unresolved_names): Remove definition.
6413 (xnew_string_vector): New function.
6414 (string_vector_append): New function.
6415 (extract_string): Make static.
6416 (ada_unqualified_name): New function.
6417 (add_angle_brackets): New function.
6418 (function_name_from_pc): New function.
6419 (place_on_stack): Rename to ensure_lval.
6421 (ensure_lval): Renamed from place_on_stack.
6422 Make identity on lvals.
6424 (is_nonfunction): New interface.
6425 Only symbols in LOC_CONST class can be enumerals.
6426 (fill_in_ada_prototype): Remove; now independent of language.
6427 (add_defn_to_vec): Add obstack and symtab arguments.
6428 Use obstack to hold collected definitions.
6429 (num_defns_collected): New function.
6430 (defns_collected): New function.
6431 (ada_resolve_subexp): Rename to resolve_subexp.
6432 (resolve_subexp): Renamed from ada_resolve_subexp.
6433 (ada_op_name): Return non-const result.
6434 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6437 (to_fixed_array_type): Add declaration.
6438 (coerce_unspec_val_to_type): Remove offset parameter.
6439 (find_sal_from_funcs_and_line): New interface.
6440 (find_line_in_linetable): Ditto.
6442 (all_sals_for_line): Rename to ada_sals_for_line and make
6444 Add new parameter. When set, do not ask the user to choose the
6445 instance, but use the first one found instead.
6446 Use given line number in returned sals.
6448 Skip the prologue if funfirstline is set.
6449 Correct for memory leak when 0 lines found.
6451 (value_pos_atr): Use pos_atr.
6452 (pos_atr): New function.
6453 (standard_lookup): Add block parameter.
6455 (makeTimeStart): Remove declaration and uses.
6456 (makeTimeStop): Remove declaration and uses.
6458 (ada_completer_word_break_characters): Allow for VMS.
6459 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6460 (raise_sym_name): New constant.
6461 (raise_unhandled_sym_name): New constant.
6462 (raise_assert_sym_name): New constant.
6463 (process_raise_exception_name): New constant.
6464 (longest_exception_template): New constant.
6465 (warning_limit): New variable to limit warnings during expression
6467 (warnings_issued): New variable to keep track of warnings issued.
6468 (known_runtime_file_name_patterns): New constant.
6469 (known_auxiliary_function_name_patterns): New constant.
6470 (symbol_list_obstack): New variable.
6472 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6473 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6474 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6475 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6476 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6477 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6478 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6479 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6482 (ada_get_field_index): New function.
6483 (lim_warning): New function.
6484 (ada_translate_error_message): New function.
6485 (MAX_OF_SIZE): New function.
6486 (MIN_OF_SIZE): New function.
6487 (UMAX_OF_SIZE): New function.
6488 (UMIN_OF_SIZE): New function.
6489 (discrete_type_high_bound): New function.
6490 (discrete_type_low_bound): New function.
6491 (base_type): New function.
6492 (do_command): Remove.
6494 (ada_update_initial_language): Use language_ada, not language_unknown.
6495 (ada_encode): Renamed from ada_mangle.
6496 Obey ADA_RETAIN_DOTS.
6497 (ada_decode): Renamed from ada_demangle.
6498 Update coding conventions.
6499 (decoded_names_store): New hash table.
6500 (ada_decode_symbol): New function.
6501 (ada_la_decode): New function.
6503 (modify_general_field): Correct computations of offset and bit
6505 (desc_base_type): Handle ref types, too.
6506 (ada_is_direct_array_type): New function.
6508 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6509 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6510 (ada_is_bogus_array_descriptor,ada_type_of_array,
6511 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6512 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6513 ada_is_array_descriptor_type.
6515 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6516 (ada_is_packed_array_type): Handle pointers or
6517 references to packed arrays as well.
6518 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6519 (decode_packed_array_type): Search for the packed array type
6520 symbol in the currently selected block and associated
6522 Use lookup_symbol again.
6524 (decode_packed_array): Handle pointers and references.
6525 Update call to coerce_unspec_val_to_type.
6526 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6527 (ada_value_primitive_packed_val): Improve comment.
6529 (ada_index_type): Substitute int type for "undefined".
6530 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6531 ada_array_langth, ada_is_string_type): Use renamed
6532 ada_is_simple_array_type.
6533 (empty_array): New function.
6535 (ada_resolve): Rename to resolve.
6536 (resolve): Make static.
6537 Call renamed resolve_subexp.
6539 (ada_resolve_subexp): Rename to resolve_subexp.
6540 (resolve_subexp): Update comment.
6541 Decomment disabled code.
6542 Add LOC_COMPUTED* cases.
6543 Modify to use temporary struct symbols (marked as being in
6544 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6545 OP_UNRESOLVED_VALUE.
6546 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6549 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6550 Use new ada_lookup_symbol_list interface.
6551 Use new ada_resolve_function interface.
6552 Remove OP_TYPE case.
6554 (ada_args_match): Idiot proof against null actuals.
6555 Use intermediate variables to clarify.
6556 (ada_resolve_function): Update comment and interface.
6557 (mangled_ordered_before): Rename to encoded_ordered_before and
6559 (sort_choices): Update comment and interface.
6560 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6561 (user_select_syms): New interface.
6562 Use new sort_choices interface.
6563 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6564 (possible_user_operator_p): Idiot-proof against null values.
6565 (ada_simple_renamed_entity): Don't make cleanup; rely on
6566 caller to free result string.
6567 Remove const from return type.
6568 (make_array_descriptor): Rename uses of place_on_stack to
6570 Make sure that arrays are on stack.
6572 (HASH_SIZE): Define.
6573 (struct cache_entry): Define.
6574 (cache_space): Define.
6576 (clear_ada_sym_cache): New function.
6577 (find_entry): New function.
6578 (lookup_cached_symbol): New function.
6579 (defn_vector_size): Define.
6580 (cache_symbol): New function.
6581 (defn_symbols): Remove.
6583 (standard_lookup): Use lookup_symbol_in_language to get effect of
6587 (symbol_completion_match): New function.
6588 (symbol_completion_add): New function.
6589 (ada_make_symbol_completion_list): New function.
6591 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6592 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6593 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6594 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6596 (ada_lookup_simple_minsym): New function.
6597 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6599 (add_symbols_from_enclosing_procs): New interface.
6600 Conditionalize more helpfully.
6601 Don't bother if program isn't running.
6602 Use new interface to get_frame_block.
6603 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6605 (remove_extra_symbols): New interface.
6606 (xget_renaming_scope): New function.
6607 (is_package_name): New function.
6608 (renaming_is_visible): New function.
6609 (remove_out_of_scope_renamings): New function.
6611 (ada_lookup_symbol_list): New interface.
6612 Properly reinitialize the symbol list obstack.
6613 Don't call add_symbols_from_enclosing_procs if we start from a
6614 static or global block.
6615 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6616 add_symbols_from_enclosing_procs.
6617 Add symtab data to cached entries.
6618 Handle symbols prefixed with
6619 "standard__" specially; strip prefix and don't look in local symbols.
6620 Do not include out of scope renaming symbols in list of
6622 Add const to block parameter.
6623 Move check for non-local, non-global symbols earlier.
6624 Remove timing stuff.
6625 (ada_lookup_symbol): New interface.
6626 Find symtab as well.
6627 (ada_lookup_symbol_nonlocal): New function.
6629 (is_name_suffix): Enhance suffix detection to recognize
6630 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6631 (is_dot_digits_suffix): New function.
6632 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6634 (ada_add_block_symbols): New interface. Use obstack to return results
6635 in a vector of struct ada_symbol_infos. Add symtab argument.
6636 Use new interface to add_defn_to_vec.
6637 Remove calls to fill_in_ada_prototype.
6638 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6640 (ada_finish_decode_line_1): Add const qualification to local to fix
6642 Start looking in static block for functions to avoid attempts
6643 to search frame chain for up-level variables.
6644 Adapt to new ada_sals_for_line interface.
6645 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6646 Handle quoting of the function name inside the spec string.
6647 Skip prologue when funfirstline is set and update the
6648 function documentation to that effect.
6650 (debug_print_lines, debug_print_block, debug_print_blocks,
6651 debug_print_symtab): Remove.
6653 (ada_main_name): New function.
6654 (ada_exception_breakpoint_type): New function.
6655 (is_known_support_routine): New function.
6656 (ada_find_printable_frame): Renamed from find_printable_frame and made
6658 Remove level parameter.
6659 Use new interface to select_frame.
6661 (begin_command): Remove.
6662 (ada_adjust_exception_stop): New function.
6663 (ada_print_exception_stop): New function.
6664 (exception_name_from_cond): New function.
6665 (ada_report_exception_break): Replace disabled code with
6666 conditionalization on GNAT_GDB.
6667 Get the exception name from the condition string.
6668 Remove and move functionality into new functions
6669 ada_print_exception_breakpoint_task and
6670 ada_print_exception_breakpoint_nontask.
6671 (error_breakpoint_runtime_sym_not_found): New function.
6672 (is_runtime_sym_defined): New function.
6673 (ada_breakpoint_rewrite): Uncomment suppressed code.
6674 Use symbolic error-message and runtime-symbol names.
6675 Surround runtime symbol names in quotes.
6676 Allow non-specific breakpoints on exceptions and assertions before
6679 (ada_is_tagged_type): Add parameter.
6680 (ada_is_tag_type): New function.
6681 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6682 (ada_variant_discrim_type): Ditto.
6683 (value_tag_from_contents_and_address): New function.
6684 (type_from_tag): New function.
6685 (struct tag_args): New structure used to communicate with
6687 (ada_tag_name_1): New function.
6688 (ada_tag_name): New function.
6690 (ada_scan_number): Update comment.
6691 (find_struct_field): New function.
6692 (ada_search_struct_field): Make static.
6693 (ada_value_struct_elt): New version that returns references when
6694 given pointers or references to structs.
6695 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6696 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6698 (ada_value_ind): Use new ada_to_fixed_value interface.
6699 (ada_coerce_ref): Ditto.
6700 (field_offset): Remove.
6702 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6703 (ada_find_renaming_symbol): New function.
6704 (ada_prefer_type): Prefer named types over unnamed ones.
6705 (variant_field_index): New function.
6706 (contains_variant_part): Removed: subsumed by variant_field_index.
6707 (ada_template_to_fixed_record_type): New function, mostly from
6708 template_to_fixed_record_type.
6709 (template_to_fixed_record_type):
6710 Do not scan the type fields beyond the last one; prevents a
6712 Handle case where variant field is listed BEFORE discriminant it
6714 Fix calculation of record length when bit length is
6715 not evenly divisible by char length.
6716 Move code to ada_template_to_fixed_record_type and call it.
6718 (template_to_static_fixed_type): Revise comment.
6719 Modify to work on ordinary record types as well as templates,
6720 so as to handle fields that use ___XVE or ___XVU encodings.
6721 (to_record_with_fixed_variant_part): Fill out comment.
6722 Initialize C++ stuff in right type.
6723 Allow case where DVAL is null.
6724 Handle case where variant field is not last.
6725 Fix typo concerning record length.
6726 (to_fixed_record_type): Decomment disabled code.
6727 (to_fixed_record_type): Use variant_field_index instead of
6728 contains_variant_part.
6729 (to_fixed_variant_branch_type): Ditto.
6730 (to_fixed_array_type): Decomment disabled code.
6731 (ada_to_fixed_type): Convert tagged types to the specific type.
6732 Deactivate the size-check for array types in order to avoid
6733 some false size alarms.
6734 (to_static_fixed_type): Decomment disabled code.
6735 Modify to call template_to_static_fixed_type
6736 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6737 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6738 Remove valaddr argument, as it is never really used.
6739 (ada_to_fixed_value): Change interface to act on single struct value*
6741 (adjust_pc_past_prologue): New function.
6742 (ada_attribute_name): Modify to take enum exp_opcode argument.
6744 (ada_enum_name): Recognize new homonym-distinguishing convention.
6745 Adjust local variable's type to remove compiler warning.
6746 Fix a small problem in the part that unqualifies the enumeration name.
6747 (ada_value_binop): New function.
6748 (ada_value_equal): New function.
6750 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6751 Don't give error message when not doing normal evaluation
6752 and a tagged type doesn't seem to contain a structure member.
6753 Give error message for packed arrays.
6754 For indexing arrays, handle pointers to packed arrays correctly.
6755 Handle case of 'first and 'last attributes of bare integral type
6756 without encoded subtype info.
6757 Remove some unnecessary casts.
6758 Fix uninitialized value of type in computing 'first, 'last, or 'length
6760 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6761 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6763 Attributes are now exp_opcode values.
6764 Correct treatment of 'modulus.
6765 Better error message for taking 'length of wrong kind of type;
6767 Change EVAL_NORMAL to noside for consistency.
6768 Use ada_value_binop for DIV, MOD, REM.
6769 Make special case out of array of length 0, since an argument
6770 of 0 upsets some platforms' malloc.
6771 Use OP_STRING instead of OP_ARRAY.
6772 For slice, add check that we have an array type before extracting
6773 a slice out of it. Avoids a SEGV.
6774 When evaluating an array slice, if the array type is a reference to
6775 an aligner type, then replace the aligner type by the actual type.
6776 Decomment disabled code.
6777 Remove some dead code.
6778 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6779 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6780 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6781 and UNOP_MBR to UNOP_IN_RANGE.
6782 If an array type has a parallel ___XVE type, then use it.
6783 Turn arrays into pointers for lvalue arrays.
6784 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6785 bounds error and handle 0-length slices.
6787 When selecting fields, apply ada_to_fixed_value (because the fields
6788 might have ___XVU or ___XVE encodings even if not dynamic.)
6789 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6790 (ada_is_system_address_type): New function.
6792 (get_var_value): Use new interface to ada_lookup_symbol_list.
6793 (get_int_var_value): New interface.
6794 (to_fixed_range_type): Allow unknown bound, with warning.
6795 (ada_is_modular_type): Decomment disabled code.
6796 (ADA_OPERATORS): New definition.
6797 (ada_operator_length): New function.
6798 (ada_expr_op_name): New function.
6799 (ada_forward_operator_length): New function.
6800 (ada_dump_subexp_body): New function.
6801 (ada_print_subexp): New function.
6802 (ada_exp_descriptor): New constant.
6803 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6804 (ada_language_defn): Add ada_exp_descriptor entry.
6805 Change ada_parse => parse.
6806 Add post-parser entry.
6807 Use ada-specific non-local symbol lookup.
6808 Don't use C-style arrays.
6809 String lower-bound is 1.
6810 Decomment disabled code.
6811 (parse): New function.
6812 New fields ada_translate_error_message, ada_lookup_symbol,
6813 ada_lookup_minimal_symbol.
6815 * ada-lang.h: Update copyright dates.
6816 Replace the mangle/demangle terminology throughout by the
6817 more appropriate encode/decode one.
6818 Include breakpoint.h.
6819 Forward declare struct partial_symbol, struct block.
6820 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6821 (EXTRACT_ADDRESS): Remove.
6822 (EXTRACT_INT): Remove.
6823 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6824 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6825 (MAX_RENAMING_CHAIN_LENGTH): Define.
6826 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6828 (enum task_states): Remove.
6829 ada_task_states: Remove.
6830 (fat_string): Remove.
6831 (struct entry_call): Remove.
6832 (struct task_fields): Remove.
6833 (struct task_entry): Remove.
6835 (struct ada_symbol_info): Define.
6836 (enum ada_attribute): Remove.
6837 (enum ada_operator): Define.
6839 (ada_get_field_index): Declare.
6840 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6841 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6842 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6843 (ada_lookup_symbol_list): New interface.
6844 (ada_decode_symbol): Declare.
6845 (ada_decode): Declare.
6846 (ada_lookup_symbol): New interface.
6847 (ada_update_initial_language): Declare.
6848 (ada_lookup_simple_minsym): Declare.
6849 (user_select_syms): New interface.
6850 (ada_sals_for_line): Declare.
6851 (ada_is_tagged_type): New interface.
6852 (ada_tag_name): Declare.
6853 (ada_lookup_struct_elt_type): Remove declaration.
6854 (ada_search_struct_field): Remove declaration.
6855 (ada_attribute_name): New interface.
6856 (ada_is_system_address_type): Declare.
6857 (ada_to_fixed_value): Remove declaration.
6858 (ada_template_to_fixed_record_type_1): Declare.
6859 (get_int_var_value): New interface.
6860 (ada_find_any_symbol): Declare.
6861 (ada_find_renaming_symbol): Declare.
6862 (ada_mangle): Rename to ada_encode.
6863 (ada_simple_renamed_entity): Remove const.
6864 (ada_main_name): Declare.
6865 (get_current_task): Rename to ada_get_current_task.
6866 (get_entry_number): Remove declaration.
6867 (ada_report_exception_break): Remove declaration.
6868 (ada_print_exception_breakpoint_nontask): Declare.
6869 (ada_print_exception_breakpoint_task): Declare.
6870 (ada_find_printable_frame): Declare.
6872 * ada-lex.l: Update copyright notices.
6873 Use xmalloc and xfree instead of malloc and free.
6874 Use new interface to name_lookup.
6875 Use new interface to
6876 ada_mangle=>ada_encode.
6877 Redo handling of '$...' variable to parallel current treatment
6879 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6880 digit_to_int, strtoulst, processInt, processReal, processId,
6881 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6884 (processInt): Use cast to remove harmless warning.
6885 (processReal): Modify to get rid of compiler warning on scan formats.
6887 (processId): Replace xmalloc with obstack_alloc for name and remove
6888 call to ada_name_string_cleanup.
6889 Remove obsolete disabled code.
6890 (name_lookup): Ditto.
6892 Use obsavestring on temp_parse_space instead of savestring
6893 on name, and remove call to ada_name_string_cleanup.
6894 Free string returned from ada_simple_renamed_entity.
6895 Use new interface to ada_lookup_symbol_list.
6896 Decomment disabled code.
6897 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6899 When a type name lookup succeeds as a result of
6900 lookup_primitive_typename, check for regular type entry that has not
6902 Limit length of chain of renamed symbols we are willing to follow.
6903 Do not break names beginning with "standard__" into segments.
6904 (block_lookup): Use new interface to ada_lookup_symbol_list.
6906 * ada-typeprint.c: Update copyright notice.
6907 (demangled_type_name): Rename to decoded_type_name.
6908 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6909 (print_range_bound): Correct handling of negative
6910 bounds that make the index type looked unsigned under STABS.
6911 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6912 (print_range_type_named): Use the builtin int type if no type
6913 corresponding to the given type name could be found.
6914 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6915 Add some bullet-proofing.
6916 (print_variant_clauses): Allow for variant branches with ___XVU
6917 encodings that are not dynamic fields.
6918 Use new interface to ada_is_tagged_type.
6919 (print_record_type): Allow for fields with ___XVE encodings that
6920 are not dynamic fields.
6921 Use new interface to ada_is_tagged_type.
6922 (ada_print_type): ada_is_array_descriptor =>
6923 ada_is_array_descriptor_type.
6925 * ada-valprint.c: Update copyright notice.
6926 Include gdb_string.h
6928 (ui_memcpy): New function.
6929 (ada_print_floating): New function.
6930 (ada_print_str): Order arguments correctly.
6931 Correct handling of empty arrays and arrays of 0-length items.
6932 ada_is_array_descriptor => ada_is_array_descriptor_type
6933 Print values of type System.Address in hexadecimal format.
6934 Use ada_print_floating to print floating-point numbers in Ada format.
6935 Print class tag values with type names.
6936 No longer print the address of reference values. Avoids
6937 a potential confusion.
6938 (ada_value_print): Stop printing the object type for reference
6939 values, but preserve that behavior for access types. Avoids
6940 a potential confusion.
6941 Simplify one conditional expression, as the first part is now
6943 ada_is_array_descriptor => ada_is_array_descriptor_type
6944 Add check for arrays for null records, and print them by hand.
6946 2004-06-01 Jim Blandy <jimb@redhat.com>
6948 * ppc-tdep.h: Delete unused 'regoff' member.
6949 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6951 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6954 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6955 (hpread_read_struct_type): Likewise.
6957 2004-06-01 Andrew Cagney <cagney@gnu.org>
6959 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6960 instead of xasprintf.
6961 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6962 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6963 (mi_cmd_data_list_register_names)
6964 (mi_cmd_data_list_changed_registers)
6965 (mi_cmd_data_list_register_values)
6966 (get_register, mi_cmd_data_write_register_values)
6967 (mi_cmd_data_write_register_values)
6968 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6969 (mi_cmd_target_download, mi_cmd_target_select)
6970 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6971 (mi_execute_cli_command, mi_execute_async_cli_command)
6972 (mi_execute_async_cli_command): Ditto.
6973 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6974 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6976 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6977 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6978 error_last_message instead of mi_error_last_message.
6979 * mi/mi-main.c (mi_error_last_message): Delete function.
6981 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6982 "invalid number of columns" error. Delete redundant "out of
6985 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6987 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6988 (gregset_t, fpregset_t): Remove typedefs.
6989 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6990 (REG_OFFSET): Rename argument.
6991 (i386bsd_r_reg_offset): Rename from reg_offset.
6992 (REG_ADDR): Remove macro.
6993 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6995 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6996 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6997 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6998 instead of supply_gregset.
6999 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7000 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7001 instead of fill_gregset.
7002 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7004 * i386bsd-nat.c: Don't include "gregset.h".
7005 (supply_gregset, fill_gregset): Make static.
7006 (supply_fpregset, fill_fpregset): Remove.
7007 * Makefile.in (i386bsd-nat.o): Update dependencies.
7009 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7011 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7012 "gdb_assert.h". Con't include "gregset.h".
7013 (fbsd_make_corefile_notes): Use regset-based core file support
7014 instead off fill_gregset and fill_fpregset.
7015 * Makefile.in (fbsd-proc.o): Update dependencies.
7017 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7019 (m88k_frame_prev_register): Simplify code a bit.
7021 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7022 (amd64_collect_fpregset): New function.
7023 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7025 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7027 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7028 (i386_collect_gregset): New function.
7029 (i386_supply_fpregset): Adjust comment.
7030 (i386_collect_fpregset): New function.
7031 (i386_regset_from_core_section): Use i386_collect_gregset and
7032 i386_collect_fpregset.
7034 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7035 handle VALUEP being null.
7037 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7039 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7041 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7043 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7044 assembler in OpenBSD 3.5-current.
7045 (amd64obsd_sigcontext_addr): Likewise.
7047 2004-05-28 Jim Blandy <jimb@redhat.com>
7049 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7050 register set, so our regcache isn't declared "legacy" and our E500
7051 pseudoregister read and write functions aren't ignored.
7052 (rs6000_register_byte, rs6000_register_raw_size,
7053 rs6000_register_virtual_type, rs6000_register_convertible,
7054 rs6000_register_convert_to_virtual,
7055 rs6000_register_convert_to_raw): Deleted.
7056 (rs6000_register_type, rs6000_convert_register_p,
7057 rs6000_register_to_value, rs6000_value_to_register): New
7059 (rs6000_gdbarch_init): Don't register
7060 gdbarch_deprecated_register_size,
7061 gdbarch_deprecated_register_bytes,
7062 gdbarch_deprecated_register_byte,
7063 gdbarch_deprecated_register_raw_size,
7064 gdbarch_deprecated_register_virtual_type,
7065 gdbarch_deprecated_register_convertible,
7066 gdbarch_deprecated_register_convert_to_virtual, or
7067 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7068 register gdbarch_register_type, gdbarch_convert_register_p,
7069 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7071 2004-05-26 Jim Blandy <jimb@redhat.com>
7073 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7074 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7075 functions, updated to match the register numberings used in GCC.
7076 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7077 rs6000_dwarf2_reg_to_regnum as register number conversions
7078 functions for STABS and Dwarf2.
7080 2004-05-26 Randolph Chung <tausq@debian.org>
7082 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7085 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7087 * NEWS: Document new "start" command.
7089 2004-05-25 Randolph Chung <tausq@debian.org>
7091 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7094 2004-05-25 Randolph Chung <tausq@debian.org>
7096 * hppa-hpux-tdep.c (offsetof): Define.
7097 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7098 (hppa32_hpux_frame_base_before_sigtramp)
7099 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7100 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7101 (hppa64_hpux_frame_base_before_sigtramp)
7102 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7104 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7105 (hppa_hpux_sigtramp_frame_unwind_cache)
7106 (hppa_hpux_sigtramp_frame_this_id)
7107 (hppa_hpux_sigtramp_frame_prev_register)
7108 (hppa_hpux_sigtramp_frame_unwind)
7109 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7110 (hppa_hpux_init_abi): Register sigtramp unwinder.
7111 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7113 2004-05-25 Randolph Chung <tausq@debian.org>
7115 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7116 and multiple stack unwinds.
7117 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7119 2004-05-25 Andrew Cagney <cagney@gnu.org>
7121 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7122 * symfile-mem.h: Delete file.
7123 * symfile-mem.c: Do not include "symfile-mem.h".
7124 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7125 "struct bfd_section". When an error do not bother returning NULL.
7126 (add_symbol_file_from_memory_command): Use "struct bfd" and
7127 "struct bfd_section".
7128 * Makefile.in (symfile_mem_h): Delete.
7129 (symfile-mem.o): Update dependencies.
7131 2004-05-25 Nick Roberts <nickrob@gnu.org>
7133 * gdb-mi.el: New file.
7135 2004-05-25 Andrew Cagney <cagney@gnu.org>
7137 * inftarg.c: Include "observer.h".
7138 (child_attach, child_create_inferior): Notify inferior_created.
7139 * corelow.c: Include "observer.h".
7140 (core_open): Notify inferior_created.
7141 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7143 2004-05-25 Andrew Cagney <cagney@gnu.org>
7145 * target.h (struct target_ops): Add from_tty to
7147 (target_create_inferior, find_default_create_inferior): Update.
7148 * infcmd.c (run_command): Update.
7149 * wince.c (child_create_inferior): Update.
7150 * win32-nat.c (child_create_inferior): Update.
7151 * uw-thread.c (uw_thread_create_inferior): Update.
7152 * thread-db.c (thread_db_create_inferior): Update.
7153 * target.c (debug_to_create_inferior)
7154 (find_default_create_inferior): Update.
7155 (maybe_kill_then_create_inferior): Update.
7156 * sol-thread.c (sol_thread_create_inferior): Update.
7157 * remote.c (extended_remote_async_create_inferior)
7158 (extended_remote_create_inferior): Update.
7159 * remote-vx.c (vx_create_inferior): Update.
7160 * remote-st.c (st2000_create_inferior): Update.
7161 * remote-sim.c (gdbsim_create_inferior): Update.
7162 * remote-sds.c (sds_create_inferior): Update.
7163 * remote-rdp.c (remote_rdp_create_inferior): Update.
7164 * remote-rdi.c (arm_rdi_create_inferior): Update.
7165 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7166 * remote-e7000.c (e7000_create_inferior): Update.
7167 * procfs.c (procfs_create_inferior): Update.
7168 * ocd.c (ocd_create_inferior): Update.
7169 * ocd.h (ocd_create_inferior): Update.
7170 * nto-procfs.c (procfs_create_inferior): Update.
7171 * monitor.c (monitor_create_inferior): Update.
7172 * lin-lwp.c (lin_lwp_create_inferior): Update.
7173 * inftarg.c (child_create_inferior): Update.
7174 * hpux-thread.c (hpux_thread_create_inferior): Update.
7175 * gnu-nat.c (gnu_create_inferior): Update.
7177 2004-05-25 Andrew Cagney <cagney@gnu.com>
7179 * MAINTAINERS: Update e-mail address.
7181 2004-05-24 Randolph Chung <tausq@debian.org>
7183 * thread.c (info_threads_command, thread_apply_all_command)
7184 (thread_apply_command, thread_command, do_captured_thread_select):
7185 Remove HPUXHPPA-specific code.
7187 2004-05-24 Randolph Chung <tausq@debian.org>
7189 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7191 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7194 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7196 * infcmd.c (kill_if_already_running): New function, extracted
7198 (run_command): Replace extracted code by call to
7199 kill_if_already_running().
7200 (start_command): New function.
7201 (_initialize_infcmd): Add "start" command.
7203 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7205 Add OpenBSD/m88k support.
7206 * NEWS (New native configurations): Mention OpenBSD/m88k.
7207 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7208 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7209 * Makefile.in (m88k_tdep_h): New variable.
7210 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7211 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7212 * configure.host: Add m88*-*-openbsd*.
7213 * configure.tgt: Add m88*-*-openbsd*.
7215 2004-05-24 Jim Blandy <jimb@redhat.com>
7217 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7220 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7222 * symtab.c (fixup_section): Search section table when lookup by
7225 2004-05-24 Randolph Chung <tausq@debian.org>
7227 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7230 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7232 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7233 register number in regcache_raw_collect call.
7234 (m68kbsd_collect_fpregset): Likewise.
7235 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7237 * regset.h (struct regset): Add back `regset' member.
7239 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7241 * configure.in: Check for td_pcb in `struct thread'.
7242 * configure, config.in: Regenerated.
7244 * dpx2-nat.c: Remove file.
7245 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7246 (dpx2-nat.o): Remove dependencies.
7248 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7249 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7250 (amd64obsd_supply_pcb): New function.
7251 (_initialize_amd64obsd_nat): Enable libkvm interface.
7252 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7253 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7254 (LOADLIBES): New variable.
7256 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7257 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7258 (sparc32nbsd_supply_pcb): New function.
7259 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7260 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7261 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7262 (LOADLIBES): New variable.
7264 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7266 * bsd-kvm.c, bsd-kvm.h: New files.
7267 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7269 (i386fbsd_supply_pcb): New function.
7270 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7271 (i386fbsd-nat.o): Update dependencies.
7272 (bsd_kvm_h): New variable.
7273 (bsd-kvm.o): New dependency.
7274 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7275 (LOADLIBES): New variable.
7277 * regset.c: Tweak comment.
7278 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7280 * regset.h: Update copyright year.
7281 (struct regset): Remove `descr' member, add `gdbarch' member.
7282 (regset_alloc): Adjust prototype and comment.
7283 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7284 (i386_supply_fpregset): Likewise.
7285 (i386_regset_from_core_section): Update call to regset_alloc.
7286 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7288 (i386obsd_aout_regset_from_core_section): Update call to
7290 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7292 (i386nbsd_aout_regset_from_core_section): Update call to
7294 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7296 (amd64_regset_from_core_section): Update call to regset_alloc.
7297 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7299 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7300 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7301 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7302 (sparc32nbsd_init_abi): Update call to regset_alloc.
7303 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7304 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7305 (sparc64obsd_init_abi): Update call to regset_alloc.
7306 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7307 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7308 (sparc64nbsd_init_abi): Update call to regset_alloc.
7309 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7310 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7311 (sparc64fbsd_init_abi): Update call to regset_alloc.
7313 2004-05-22 Jim Blandy <jimb@redhat.com>
7315 * ppc-tdep.h (spe_register_p): New declaration.
7316 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7318 * rs6000-tdep.c (spe_register_p): New function.
7319 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7321 (rs6000_gdbarch_init): Initialize the new members of the tdep
7324 2004-05-21 Jim Blandy <jimb@redhat.com>
7326 * ppc-linux-nat.c (fetch_register): Move code back to be next
7327 to the comment that describes it. (Moved code, instead of
7328 comment, for symmetry with store_register.)
7330 Allocate regset structures in the gdbarch's obstack, not using
7332 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7333 Add 'arch' argument. Allocate the regset on arch's obstack, not
7335 * regset.h (regset_alloc): Update declaration.
7336 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7338 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7339 * i386-tdep.c (i386_regset_from_core_section): Same.
7340 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7341 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7342 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7343 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7344 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7345 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7347 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7349 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7351 2004-05-21 Jim Blandy <jimb@redhat.com>
7353 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7354 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7356 2004-05-20 Jim Blandy <jimb@redhat.com>
7358 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7360 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7362 * regset.h: Make prototype const-correct.
7363 * regset.c (regset_xmalloc): Make const-correct.
7365 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7367 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7368 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7369 (symbol_search_name): Declare.
7371 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7372 (iter_name_next_hashed): Ditto.
7373 (iter_name_next_linear): Ditto.
7374 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7376 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7377 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7378 (symbol_search_name): New function.
7380 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7382 * minsyms.c (build_minimal_symbol_hash_tables): Change
7383 test for adding to demangled hash table to check for difference
7384 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7386 2004-05-19 Jim Blandy <jimb@redhat.com>
7388 Use a constructor function to create regset structures.
7389 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7390 (struct regset): Use supply_regset_ftype. Add new
7391 'collect_regset' member.
7392 (regset_xmalloc): New declaration.
7393 * regset.c: New file.
7394 * am64-tdep.c (amd64_regset_from_core_section): Use
7395 regset_xmalloc to construct regset structures.
7396 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7397 * i386-tdep.c (i386_regset_from_core_section): Same.
7398 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7399 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7400 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7401 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7402 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7403 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7404 * Makefile.in (COMMON_OBS): Add regset.o.
7405 (regset.o): New rule.
7407 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7409 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7410 and pthread_cond_wait.c.
7412 2004-05-18 Jim Blandy <jimb@redhat.com>
7414 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7415 before the mach-specific switch, and then let the individual cases
7416 override the defaults, rather than leaving them uninitialized
7417 until the switch and then setting them in each case.
7419 2004-05-18 Randolph Chung <tausq@debian.org>
7421 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7422 millicode functions.
7424 2004-05-18 Randolph Chung <tausq@debian.org>
7426 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7427 references to dld_flags_buffer consistent.
7429 2004-05-18 Randolph Chung <tausq@debian.org>
7431 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7432 it for unwinding the stack.
7434 2004-05-18 Randolph Chung <tausq@debian.org>
7436 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7437 Undefine these so we can overide them using gdbarch.
7439 2004-05-18 Randolph Chung <tausq@debian.org>
7441 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7442 handling for 64-bit HPUX (elf).
7444 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7446 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7448 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7449 * ia64-tdep.c (examine_prologue): Likewise.
7450 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7451 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7453 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7455 * vax-tdep.c (vax_return_value): Implement
7456 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7458 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7460 * vax-tdep.c (vax_return_value): Fix typo.
7462 2004-05-17 Andrew Cagney <cagney@redhat.com>
7464 * MAINTAINERS: Mark Salter was also responsible for
7467 * NEWS: Mention signal fixes.
7469 2004-05-17 Randolph Chung <tausq@debian.org>
7471 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7472 check to see if we are unwinding an export stub. Export stubs clobber
7473 the %rp in the call path and stores the original rp in a stack slot.
7475 2004-05-17 Jim Blandy <jimb@redhat.com>
7477 * MAINTAINERS: Update address for J.T. Conklin.
7479 2004-05-17 Randolph Chung <tausq@debian.org>
7481 * hppa-tdep.c: Remove superfluous #include's.
7482 * Makefile.in (hppa-tdep.o): Update dependencies.
7484 2004-05-17 Randolph Chung <tausq@debian.org>
7486 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7487 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7488 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7489 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7490 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7491 Remove static function declarations.
7493 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7495 * alphabsd-nat.c: Update copyright year.
7496 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7498 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7501 * m68k-tdep.c (m68k_svr4_return_value): Implement
7502 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7504 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7506 * sol-thread.c Update copyright year. Fix various coding
7507 standards violations. Tweak a few comments.
7508 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7511 2004-05-15 Randolph Chung <tausq@debian.org>
7513 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7514 as pointer instead of array reference since HPUX compiler does
7515 not accept unsized array arguments.
7516 * somsolib.c (dld_flags_buffer): Use constant array size.
7518 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7520 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7521 offset with decimal offset.
7522 (amd64obsd_sigcontext_addr): Return correct address for entire
7525 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7526 instead of get_frame_base.
7528 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7529 (fill_gregset): Use regcache_raw_collect.
7531 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7534 * config/sparc/tm-nbsd64.h: Remove file.
7535 * config/tm-sunos.h: Remove file.
7537 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7539 * rs6000-tdep.c (store_param_on_stack_p): New function,
7540 an improved version of some code extracted from skip_prologue().
7541 (skip_prologue): Use store_param_on_stack_p() to detect
7542 instructions saving a parameter on the stack. Detect when r0
7543 is used to save a parameter.
7544 Do not mark "li rx, SIMM" instructions as part of the prologue,
7545 unless the following instruction is also part of the prologue.
7547 2004-05-14 Andrew Cagney <cagney@redhat.com>
7549 * infrun.c (handle_inferior_event): Simplify
7550 STEP_OVER_UNDEBUGGABLE.
7552 * infrun.c (handle_step_into_function): Delete function.
7553 (handle_inferior_event): Inline calls to
7554 handle_step_into_function.
7556 2004-05-14 Jerome Guitton <guitton@gnat.com>
7558 * rs6000-nat.c: Fix a comment.
7560 2004-05-12 David Anderson <davea@sgi.com>
7562 Committed by Jim Blandy <jimb@redhat.com>:
7563 * regcache.c (struct regcache_descr): fix comment spelling.
7565 2004-05-13 J. Brobecker <brobecker@gnat.com>
7567 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7568 Fixes a link link failure.
7570 2004-05-13 J. Brobecker <brobecker@gnat.com>
7572 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7573 error that was causing the build to fail.
7575 2004-05-13 J. Brobecker <brobecker@gnat.com>
7577 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7578 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7580 2004-05-13 Andrew Cagney <cagney@redhat.com>
7582 * infrun.c (handle_inferior_event): Check for
7583 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7584 calls. Update comments.
7586 2004-05-13 Jim Blandy <jimb@redhat.com>
7588 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7589 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7590 (store_regs_user_thread, store_regs_kernel_thread): Use
7591 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7592 * ppc-linux-nat.c (fill_gregset): Same.
7593 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7594 (ppc_linux_sigtramp_cache): Same.
7595 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7596 (ppcnbsd_sigtramp_cache_init): Same.
7597 * rs6000-nat.c (fetch_core_registers): Same.
7598 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7599 (rs6000_frame_cache): Same.
7601 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7602 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7603 of assuming that the gprs are numbered starting with zero.
7604 * ppc-linux-nat.c (fill_gregset): Same.
7605 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7606 * ppcnbsd-nat.c (getregs_supplies): Same.
7607 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7608 * rs6000-nat.c (fetch_core_registers): Same.
7609 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7611 2004-05-07 Michael Snyder <msnyder@redhat.com>
7613 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7614 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7616 2004-05-13 Andrew Cagney <cagney@redhat.com>
7618 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7620 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7622 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7623 base_address for shared libraries.
7625 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7627 * MAINTAINERS (write after approval): Add myself.
7629 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7631 * breakpoint.c (bpstat_stop_status): Add new argument
7632 STOPPED_BY_WATCHPOINT. Use it instead of testing
7633 target_stopped_data_address agaist 0 to check whether
7634 or not we stopped due to a hardware watchpoint.
7635 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7636 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7639 2004-05-12 Jim Blandy <jimb@redhat.com>
7641 * configure.in: When checking whether we should use the -bbigtoc
7642 option, don't forget to restore the original value of LDFLAGS.
7643 * configure: Regenerated.
7645 2004-05-12 Andrew Cagney <cagney@redhat.com>
7647 * thread.c (load_infrun_state): Delete step_sp.
7648 * infrun.c (context_switch): Ditto.
7649 * inferior.h (step_sp): Ditto.
7650 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7651 * gdbthread.h (struct thread_info, save_infrun_state)
7652 (restore_infrun_state): Ditto.
7654 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7656 * MAINTAINERS (write after approval): Add myself.
7658 2004-05-12 Andrew Cagney <cagney@redhat.com>
7660 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7661 eliminate reference to step_sp.
7662 (struct execution_control_state, init_execution_control_state)
7663 (handle_inferior_event, keep_going): Delete update_step_sp and
7665 * infcmd.c (step_sp): Note that variable is unused.
7667 2004-05-11 Andrew Cagney <cagney@redhat.com>
7669 * infrun.c (step_over_function): Delete function.
7670 (handle_step_into_function): Use insert_step_resume_breakpoint.
7671 (insert_step_resume_breakpoint): Fix assertion.
7673 2004-05-11 Nick Roberts <nickrob@gnu.org>
7675 * utils.c (defaulted_query): Just use the normal query input type
7676 when printing the annotations.
7678 2004-05-11 Andrew Cagney <cagney@redhat.com>
7680 * infrun.c (handle_inferior_event): Simplify code handling
7681 step-into or return-from a signal trampoline.
7683 2004-05-11 Andrew Cagney <cagney@redhat.com>
7685 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7686 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7688 2004-05-10 Jim Blandy <jimb@redhat.com>
7690 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7691 with a call to internal_error.
7693 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7694 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7695 processor variant lacks those registers.
7696 (ppc_floating_point_unit_p): Change description to make it clear
7697 that this returns info about the ISA, not the ABI.
7698 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7699 return true or false by checking tdep->ppc_fp0_regnum and
7700 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7701 arch/mach switching done in rs6000_gdbarch_init; it's better to
7702 keep that logic there, and just check the results here.
7703 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7704 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7705 floating-point registers.
7706 (ppc_supply_fpregset, ppc_collect_fpregset)
7707 (rs6000_push_dummy_call, rs6000_extract_return_value)
7708 (rs6000_store_return_value): Assert that we have floating-point
7710 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7711 (rs6000_frame_cache): Don't note the locations at which
7712 floating-point registers were saved if we have no fprs.
7713 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7715 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7716 (store_regs_user_thread, store_regs_kernel_thread): Only call
7717 supply_fprs / fill_fprs if we actually have floating-point
7719 (special_register_p): Check ppc_fpscr_regnum before matching
7721 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7722 supply / collect fpscr if we don't have it.
7723 * ppc-bdm.c: #include "gdb_assert.h".
7724 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7725 have floating-point registers, since I can't test this code on
7726 FP-free systems to adapt it.
7727 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7728 fpscr and floating point register numbers if they don't exist.
7729 (fetch_register): Assert that we have floating-point registers
7730 before we reach the code that handles them.
7731 (store_register): Same. And use tdep instead of calling
7733 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7735 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7736 fprs and fpscr if we don't have them.
7737 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7739 * ppcnbsd-nat.c: #include "gdb_assert.h".
7740 (getfpregs_supplies): Assert that we have floating-point registers.
7741 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7742 * ppcobsd-tdep.c: #include "gdb_assert.h".
7743 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7744 have floating-point registers.
7745 * rs6000-nat.c (regmap): Don't match against the fpscr and
7746 floating point register numbers if they don't exist.
7747 (fetch_inferior_registers, store_inferior_registers,
7748 fetch_core_registers): Only fetch / store / supply the
7749 floating-point registers and the fpscr if we have them.
7750 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7751 (ppcobsd-tdep.o): Update dependencies.
7753 2004-05-10 Andrew Cagney <cagney@redhat.com>
7755 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7756 (context_switch): Do not switch through_sigtramp_breakpoint.
7757 * gdbthread.h (save_infrun_state, load_infrun_state)
7758 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7759 and structure member.
7760 * thread.c (load_infrun_state, save_infrun_state): Update.
7762 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7764 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7766 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7768 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7770 * aclocal.m4: Regenerate.
7772 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7774 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7776 2004-05-10 Andrew Cagney <cagney@redhat.com>
7778 * infrun.c (check_sigtramp2): Delete function.
7779 (handle_inferior_event): When single stepping, and taking a
7780 signal, set a breakpoint at the signal return address. Delete
7781 redundant calls to check_sigtramp2.
7782 (insert_step_resume_breakpoint): New function.
7783 (through_sigtramp_breakpoint, handle_inferior_event)
7784 (follow_exec, wait_for_inferior, fetch_inferior_event)
7785 (currently_stepping, keep_going): Delete most uses of
7786 through_sigtramp_breakpoint, not that it should be deleted.
7787 (delete_breakpoint_current_contents): Delete function.
7789 2004-05-10 Randolph Chung <tausq@debian.org>
7791 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7793 * config/pa/tm-linux.h: New file.
7795 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7797 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7798 of prefixes. Don't print the prefix twice in the CLI.
7800 2004-05-10 Jim Blandy <jimb@redhat.com>
7802 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7803 collect all the gprs.
7805 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7806 loop collecting gprs.
7808 2004-05-09 Andrew Cagney <cagney@redhat.com>
7810 * remote-vx.c (net_step): Delete step-range code.
7811 * remote.c (remote_resume, init_all_packet_configs)
7812 (set_remote_protocol_E_packet_cmd)
7813 (show_remote_protocol_E_packet_cmd)
7814 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7815 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7816 (show_remote_protocol_e_packet_cmd): Ditto.
7818 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7820 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7822 * hppa-tdep.h: Update copyright year.
7823 (struct trad_frame_saved_reg): Add opaque declaration.
7825 * amd64-tdep.c (amd64_return_value): Implement
7826 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7828 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7829 (m68k_value_to_register): New functions.
7830 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7833 * defs.h (enum return_value_convention): Add
7834 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7835 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7836 * infcmd.c (legacy_return_value): New function.
7837 (print_return_value): Rwerite to implement
7838 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7839 * values.c (using_struct_return): Check for inequality to
7840 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7841 RETURN_VALUE_STRUCT_CONVENTION.
7842 * i386-tdep.c (i386_return_value): Implement
7843 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7845 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7846 include "symtab.h", "opcode/vax.h" and "inferior.h".
7847 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7848 to read_memory_unsigned_integer.
7849 (vax_gdbarch_init): Reorder.
7850 (_initialize_vax_tdep): Spell out prototype.
7851 * Makefile.in (vax-tdep.o): Update dependencies.
7853 2004-05-08 Andrew Cagney <cagney@redhat.com>
7855 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7856 * target.c (target_detach, target_disconnect): Ditto.
7858 * infcall.c (call_function_by_hand): When no
7859 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7860 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7861 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7862 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7863 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7865 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7866 * gdbarch.h, gdbarch.c: Re-generate.
7867 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7868 deprecated_fix_call_dummy.
7869 * v850-tdep.c (v850_gdbarch_init): Ditto.
7870 * infcall.c (call_function_by_hand): Do not call
7871 DEPRECATED_FIX_CALL_DUMMY.
7873 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7874 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7875 * gdbarch.h, gdbarch.c: Re-generate.
7876 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7877 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7878 deprecated_sizeof_call_dummy_words.
7879 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7880 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7881 * v850-tdep.c (v850_gdbarch_init): Ditto.
7882 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7883 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7884 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7885 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7886 * arch-utils.h (legacy_call_dummy_words)
7887 (legacy_sizeof_call_dummy_words): Delete declarations.
7888 * arch-utils.c (legacy_call_dummy_words)
7889 (legacy_sizeof_call_dummy_words): Delete variables.
7891 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7892 * gdbarch.h, gdbarch.c: Re-generate.
7893 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7894 * infcall.c (call_function_by_hand): Eliminate call to
7895 DEPRECATED_PUSH_DUMMY_FRAME.
7896 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7898 (ns32k_push_dummy_frame): Delete function.
7900 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7901 deprecated_call_dummy_breakpoint_offset or
7902 deprecated_call_dummy_start_offset.
7903 * dummy-frame.c, arm-tdep.c: Update comments.
7904 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7905 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7906 * gdbarch.h, gdbarch.c: Re-generate.
7908 * infcall.c (legacy_push_dummy_code): Delete function.
7909 (push_dummy_code): Delete call.
7911 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7912 * gdbarch.h, gdbarch.c: Re-generate.
7913 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7914 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7915 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7916 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7918 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7919 (struct frame_info): Delete opaque declaration.
7920 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7921 * frame.c (get_frame_type): Delete call.
7923 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7925 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7926 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7928 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7930 * alphanbsd-tdep.c: Include "gdb_string.h".
7931 * armnbsd-tdep.c: Update copyright year.
7932 Include "gdb_string.h".
7933 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7936 * delta68-nat.c: Remove file.
7937 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7938 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7939 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7940 (delta68-nat.o): Remove dependency.
7942 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7944 (m68k_gdbarch_init): Don't set
7945 deprecated_frameless_function_invocation.
7947 2004-05-07 Randolph Chung <tausq@debian.org>
7949 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7950 read_memory_nobpt for code reading when doing frame unwinding.
7951 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7953 2004-05-07 Randolph Chung <tausq@debian.org>
7955 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7956 instead of sp, handle sigaltstack case.
7957 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7958 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7959 signal handler and not that of the caller.
7960 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7961 hppa_linux_sigtramp_find_sigcontext.
7963 2004-05-07 Randolph Chung <tausq@debian.org>
7965 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7967 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7968 * hppa-linux-nat.c (fetch_register, store_register): Define.
7969 (fetch_inferior_registers, store_inferior_registers): Define.
7970 (supply_gregset): Add comment and clean up some unneeded code.
7971 (fill_gregset): Add comment and fix so that it saves registers in
7972 the right place in the gregset.
7973 (fill_fpregset): Fix buffer overrun problem.
7974 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7976 2004-05-07 Randolph Chung <tausq@debian.org>
7978 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7979 do common handling of the pcoqt register.
7980 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7981 to use helper function.
7982 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7983 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7984 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7985 generic fallback unwinder when all else fails.
7986 (hppa_gdbarch_init): Add fallback sniffer.
7987 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7988 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7989 to use helper function.
7991 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7993 * config/djgpp/fnchange.lst: Add translation rules for
7994 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7996 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7998 * frame.c (get_prev_frame_1): Work around GCC bug.
7999 * frame.h: Add comment about GCC bug.
8001 2004-05-07 Andrew Cagney <cagney@redhat.com>
8003 * observer.c: Include "commands.h" and "gdbcmd.h".
8004 (observer_debug, _initialize_observer): Add the
8005 command "set/show debug observer".
8006 * observer.sh: When observer debugging, log notify calls.
8007 * Makefile.in (observer.o): Update dependencies.
8009 2004-05-07 Jason Molenda (jmolenda@apple.com)
8011 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8013 2004-05-07 Jim Blandy <jimb@redhat.com>
8015 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8016 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8017 to recognize gpr regnums, instead of assuming that
8018 tdep->ppc_fp0_regnum marks the end of the general-purpose
8021 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8022 the given architecture has floating-point registers.
8024 2004-05-07 Andrew Cagney <cagney@redhat.com>
8026 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8028 * gdbarch.h, gdbarch.c: Re-generate.
8029 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8030 deprecated_use_generic_dummy_frames.
8032 2004-05-07 Brian Ford <ford@vss.fsi.com>
8034 * NEWS: Mention Cygwin DWARF 2 support.
8036 2004-05-07 Andrew Cagney <cagney@redhat.com>
8038 * objfiles.h (struct entry_info): Delete unused fields
8039 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8040 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8041 * mipsread.c (mipscoff_symfile_read): Update.
8042 * mdebugread.c (parse_partial_symbols): Update.
8043 * dwarfread.c (read_file_scope): Update.
8044 * dwarf2read.c (read_file_scope): Update.
8045 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8046 * coffread.c (complete_symtab): Update.
8048 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8050 * infcall.c (_initialize_infcall): Fix typo.
8052 2004-05-07 Andrew Cagney <cagney@redhat.com>
8054 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8055 * command.h (add_setshow_zinteger_cmd): Declare.
8057 2004-05-06 Randolph Chung <tausq@debian.org>
8059 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8060 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8061 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8062 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8063 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8064 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8065 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8067 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8068 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8069 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8070 (hppa64_hpux_frame_find_saved_regs_in_sig)
8071 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8072 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8073 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8074 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8075 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8076 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8077 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8078 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8079 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8080 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8081 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8082 (hppa32_register_type, hppa_cannot_store_register)
8083 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8084 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8085 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8086 * pa64solib.c (pa64_solib_have_load_event)
8087 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8088 (pa64_solib_unloaded_library_pathname): Likewise.
8089 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8090 (som_solib_library_pathname): Likewise.
8092 2004-05-05 Jim Ingham <jingham@apple.com>
8094 * breakpoint.c (create_breakpoints): Copy the ignore count and
8095 thread id over from the pended breakpoint to the actual
8098 2004-05-05 Andrew Cagney <cagney@redhat.com>
8100 * gdbarch.sh (PARM_BOUNDARY): Delete.
8101 gdbarch.h, gdbarch.c: Re-generate.
8102 * valops.c (PARM_BOUNDARY): Delete macro.
8103 (value_push): Delete PARM_BOUNDARY code.
8104 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8106 2004-05-04 Jim Blandy <jimb@redhat.com>
8108 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8109 Don't assume that the gprs, fprs, and UISA sprs are
8110 contiguous, start at register number zero, and end with fpscr.
8111 Instead, use the numbers from the tdep structure.
8113 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8114 should no longer be used in code specific to the RS6000 and its
8116 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8117 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8118 tdep->ppc_fp0_regnum.
8119 (ppc_supply_fpregset, ppc_collect_fpregset)
8120 (rs6000_push_dummy_call, rs6000_extract_return_value)
8121 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8122 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8124 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8125 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8127 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8128 bdm_ppc_store_registers): Same.
8129 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8130 (store_register, fill_fpregset): Same.
8131 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8132 (ppc_linux_supply_fpregset): Same.
8133 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8134 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8136 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8137 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8138 ppc64_sysv_abi_return_value): Same.
8139 * rs6000-nat.c (regmap, fetch_inferior_registers)
8140 (store_inferior_registers, fetch_core_registers): Same.
8142 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8144 * m68knbsd-nat.c: Remove file.
8145 * m68knbsd-tdep.c: Remove file.
8146 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8148 * configure.host: Add m68k-*-netbsdelf*.
8149 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8150 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8151 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8153 * config/m68k/nbsdelf.mh: New file.
8154 * config/m68k/nbsd.mt: New file.
8155 * config/m68k/nbsdaout.mt: Remove file.
8156 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8157 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8158 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8159 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8160 (use_struct_convention): Remove prototype.
8161 (USE_STRUCT_CONVENTION): Remove define.
8162 * config/m68k/xm-nbsd.h: Remove file.
8164 2004-05-04 Michael Snyder <msnyder@redhat.com>
8166 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8167 reg_struct_return method (as gcc usually does for cross targets).
8169 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8171 Committed by Andrew Cagney.
8172 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8173 alignment padding when accessing ucontext struct members.
8175 2004-05-04 Jim Blandy <jimb@redhat.com>
8177 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8178 'ppc_gplast_regnum' member.
8179 (ppc_num_gprs): New enum constant.
8180 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8181 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8182 * rs6000-nat.c (regmap, fetch_inferior_registers,
8183 store_inferior_registers): Same.
8184 * rs6000-tdep.c (e500_pseudo_register_read)
8185 (e500_pseudo_register_write): Same.
8186 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8188 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8189 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8190 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8191 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8193 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8195 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8196 * rs6000-nat.c (regmap, fetch_inferior_registers)
8197 (store_inferior_registers): Same.
8199 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8202 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8204 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8205 failure detected by recent versions of GCC.
8206 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8207 to be consistent with the usage in dwarf2_create_include_psymtab.
8209 2004-05-03 Michael Snyder <msnyder@redhat.com>
8211 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8212 (heuristic_proc_start): Whitespace cleanup.
8214 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8216 * sun3-nat.c: Remove file.
8217 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8219 (ALLDEPFILES): Remove sun3-nat.c.
8220 (sun3-nat.o): Remove dependencies.
8222 * i386-interix-nat.c, i386-interix-tdep.c,
8223 config/i386/nm-interix.h, config/i386/interix.mh,
8224 config/i386/interix.mt: Remove files.
8225 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8228 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8230 * m68k-tdep.h (struct gdbarch_tdep): Add member
8231 struct_value_regnum.
8232 (m68k_svr4_init_abi): New prototype.
8233 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8234 different calling conventions.
8235 (m68k_extract_return_value): Remove code dealing with single-field
8237 (m68k_store_return_value): Remove code dealing with single-field
8238 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8239 (m68k_extract_struct_value_address): Remove function.
8240 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8241 (m68k_reg_struct_return_p, m68k_return_value)
8242 (m68k_svr4_return_value): New functions.
8243 (m68k_use_struct_convention): Remove function.
8244 (m68k_push_dummy_call): Use new struct_value_regnum member of
8245 `struct gdbarch_tdep' instead of hardcoded register number to
8247 (m68k_svr4_init_abi): New function.
8248 (m68k_gdbarch_init): Don't set extract_return_value,
8249 store_return_values, deprecated_extract_struct_value_address and
8250 use_struct_convention. Set return_value instead. Initialize new
8251 struct_value_regnum member of `struct gdbarch_tdep'.
8252 * m68klinux-tdep.c: Update copyright year.
8253 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8254 (m68k_linux_extract_struct_value_address): Remove function.
8255 (m68k_linux_init_abi): Don't set extract_return_value,
8256 store_return_values, deprecated_extract_struct_value_address and
8257 use_struct_convention. Call m68k_svr4_init_abi but override the
8258 new struct_value_regnum member of `struct gdbarch_tdep'.
8259 * Makefile.in (m68k-tdep.o): Update dependencies.
8261 2004-05-03 J. Brobecker <brobecker@gnat.com>
8263 * dwarf2read.c (line_header): Add new included_p field in
8265 (partial_die_info): New field has_stmt_list. New field line_offset.
8266 (dwarf2_create_include_psymtab): New function.
8267 (dwarf2_build_include_psymtabs): New function.
8268 (add_file_name): Add forward declaration. Initialize new field.
8269 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8270 to be able to determine the list of files included by the
8271 given unit, and build their associated psymtabs.
8272 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8274 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8275 (read_file_scope): Update call to dwarf_decode_lines.
8276 (read_partial_die): Handle DW_AT_stmt_list attributes.
8278 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8281 * configure.in: Revert special case for osf5.*.
8282 * configure: Regenerate.
8284 2004-05-02 Jim Blandy <jimb@redhat.com>
8286 Move the symbol-file-from-memory functions into their own file.
8287 * symfile-mem.c, symfile-mem.h: New files.
8288 * symfile.c (symbol_file_add_from_bfd): New function.
8289 (symbol_file_add): Call symbol_file_add_from_bfd.
8290 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8291 Moved to symfile-mem.c.
8292 (_initialize_symfile): Move definition of
8293 add-symbol-file-from-memory command to symfile-mem.c.
8294 * symfile.h (symbol_file_add_from_bfd): New declaration.
8295 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8296 * config/powerpc/linux.mt (TDEPFILES): Same.
8297 * Makefile.in (SFILES): Add symfile-mem.c.
8298 (symfile_mem_h): New variable.
8299 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8300 (symfile-mem.o): New rule.
8302 2004-05-01 Andrew Cagney <cagney@redhat.com>
8304 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8305 frame_find_by_id instead of frame_relative_level.
8306 (do_enable_breakpoint): Ditto.
8307 * thread.c: Update copyright.
8308 (info_threads_command): Ditto, simplify.
8310 * frame.c (deprecated_generic_get_saved_register): Delete
8311 function, moved to "xstormy16-tdep.c".
8312 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8313 deprecated_generic_get_saved_register from "frame.c".
8314 (xstormy16_frame_saved_register): Call
8315 xstormy16_get_saved_register.
8316 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8318 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8319 * frame.h (deprecated_generic_get_saved_register): Delete.
8321 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8323 * dwarfread.c: Update documentation on the state of dwarf-1.
8325 2004-05-01 Andrew Cagney <cagney@redhat.com>
8327 * stack.c (select_frame_command): Delete call to
8328 frame_relative_level.
8329 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8331 (frame_info): Do not print FRAMELESS.
8332 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8333 (catch_info): Delete #if0 code.
8335 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8336 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8337 of frame_relative_level.
8338 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8340 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8341 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8342 frame_relative_level.
8344 * frame.h (deprecated_set_frame_type): Delete declaration.
8345 * frame.c (deprecated_set_frame_type): Delete function, update
8348 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8349 * gdbarch.h, gdbarch.c: Re-generate.
8350 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8351 (shnbsd_pc_in_sigtramp): Delete.
8352 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8354 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8356 * frame.h: Update comments.
8357 * ppc-linux-tdep.c: Update comments.
8358 * breakpoint.c (bpstat_what): Update comments.
8360 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8361 m68klinux-tdep.o's dependencies, were previously added to
8364 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8365 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8366 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8367 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8368 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8370 * Makefile.in (m68klinux-nat.o): Update dependencies.
8371 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8372 (m68k_linux_sigtramp_frame_cache)
8373 (m68k_linux_sigtramp_frame_this_id)
8374 (m68k_linux_sigtramp_frame_prev_register)
8375 (m68k_linux_sigtramp_frame_unwind)
8376 (m68k_linux_sigtramp_frame_sniffer)
8377 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8378 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8379 names, use trad-frame.h.
8380 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8381 (struct m68k_sigtramp_info): Delete.
8382 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8383 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8384 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8385 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8388 * infrun.c (check_sigtramp2): Delete check for
8389 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8391 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8393 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8395 2004-05-01 Andrew Cagney <cagney@redhat.com>
8397 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8398 (frv_linux_sigtramp_frame_cache)
8399 (frv_linux_sigtramp_frame_this_id)
8400 (frv_linux_sigtramp_frame_prev_register)
8401 (frv_linux_sigtramp_frame_unwind)
8402 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8403 include "linux" in function and variable names, directly call
8404 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8405 the latest trad-frame code.
8406 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8407 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8408 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8409 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8410 * frv-tdep.c (frv_sigtramp_frame_cache)
8411 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8412 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8414 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8415 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8416 (frv_set_sigcontext_reg_addr): Delete function.
8418 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8419 (DEPRECATED_SIGTRAMP_END): Delete.
8420 * gdbarch.h, gdbarch.c: Re-generate.
8421 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8422 * config/vax/tm-vaxbsd.h: Update copyright.
8423 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8424 (DEPRECATED_IN_SIGTRAMP): Define.
8425 * config/m68k/tm-nbsd.h: Update copyright.
8426 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8427 (DEPRECATED_IN_SIGTRAMP): Define.
8429 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8431 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8432 encondings. Fixes PR gdb/1628.
8434 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8435 DW_CFA_restore state without a matching DW_CFA_remember_state
8436 instead of aborting. Fixes PR backtrace/1589.
8438 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8440 * MAINTAINERS: Add self as AIX maintainer.
8441 Update my e-mail address in write-after-approval section.
8443 2004-04-30 Andrew Cagney <cagney@redhat.com>
8445 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8446 (legacy_get_prev_frame): Ditto.
8448 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8449 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8450 * mipsread.c (sigtramp_address): Delete extern variable.
8451 (mipscoff_new_init): Delete reference.
8452 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8453 (fixup_sigtramp): Delete function.
8454 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8455 (fixup_sigtramp): Delete declarations.
8457 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8458 deprecated_pc_in_sigtramp.
8459 (ppcnbsd_pc_in_sigtramp): Delete function.
8461 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8463 * config/m68k/nm-nbsd.h: Tweak comments.
8464 * config/m68k/nm-nbsdaout.h: Likewise.
8466 2004-04-30 Andrew Cagney <cagney@redhat.com>
8468 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8469 legacy_pc_in_sigtramp.
8470 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8472 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8474 Add OpenBSD/m68k support.
8475 * NEWS (New native configurations): Mention OpenBSD/m68k.
8476 * m68kbsd-tdep.c: New file.
8477 * m68kbsd-nat.c: New file.
8478 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8479 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8480 * configure.host: Add m68k-*-openbsd.
8481 * configure.tgt: Add m68k-*-openbsd.
8482 * config/m68k/tm-obsd.h: New file.
8483 * config/m68k/obsd.mt: New file.
8484 * config/m68k/obsd.mh: New file.
8485 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8488 2004-04-30 Andrew Cagney <cagney@redhat.com>
8490 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8491 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8493 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8495 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8496 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8498 2004-04-30 Brian Ford <ford@vss.fsi.com>
8500 Revert 2004-04-16 change.
8501 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8502 (i386_coff_init_abi): Remove.
8503 * i386-tdep.h (i386_coff_init_abi): Remove.
8504 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8506 2004-04-30 Andrew Cagney <cagney@redhat.com>
8508 * blockframe.c (find_pc_partial_function): Delete use of
8509 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8510 DEPRECATED_SIGTRAMP_END.
8512 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8513 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8514 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8515 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8516 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8518 * defs.h (deprecated_inside_entry_file): Delete declaration.
8519 * blockframe.c (deprecated_inside_entry_file): Delete function.
8520 (legacy_frame_chain_valid): Delete call.
8521 * sh64-tdep.c (sh64_frame_chain): Delete call.
8522 * objfiles.h: Update comments.
8523 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8525 * frame.c (get_prev_frame): Delete call, update comments.
8527 2004-04-30 Brian Ford <ford@vss.fsi.com>
8529 * MAINTAINERS (Write After Approval): Add myself.
8531 2004-04-30 Andrew Cagney <cagney@redhat.com>
8533 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8534 * gdbarch.h, gdbarch.c: Re-generate.
8535 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8538 2004-04-30 Andrew Cagney <cagney@redhat.com>
8540 * gdb-events.sh (selected_thread_changed)
8541 (selected_frame_level_changed, target_changed): Delete.
8542 * gdb-events.h, gdb-events.c: Re-generate.
8543 * valops.c (value_assign): Update.
8544 * stack.c (select_frame_command, up_silently_base)
8545 (down_silently_base): Update.
8547 2004-04-29 Andrew Cagney <cagney@redhat.com>
8549 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8550 registers correctly.
8551 (print_gp_register_row, mips32_heuristic_proc_desc)
8552 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8553 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8554 references to mips_isa_regsize.
8556 2004-04-29 Andrew Cagney <cagney@redhat.com>
8558 * mips-tdep.c (struct gdbarch_tdep): Delete
8559 mips_fp_register_double.
8560 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8562 (mips_gdbarch_init): Do not set mips_fp_register_double.
8563 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8565 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8567 Committed by Andrew Cagney.
8568 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8571 2004-04-29 Andrew Cagney <cagney@redhat.com>
8573 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8574 gdbarch, use mips_abi, update callers.
8575 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8576 mips_abi_regsize, update callers.
8577 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8578 mips_default_abi_regsize.
8579 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8580 mips_default_abi_regsize.
8582 2004-04-29 Andrew Cagney <cagney@redhat.com>
8584 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8585 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8586 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8587 mips_default_abi_regsize.
8588 (mips_isa_regsize): Rename mips_regisze.
8589 * mipsnbsd-tdep.c: Update.
8590 * mips-linux-tdep.c: Update.
8591 * irix5-nat.c: Update.
8592 * mips-tdep.h (mips_isa_regsize): Update.
8594 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8595 Delete all disabled code.
8596 * gdb-events.h, gdb-events.c: Re-generate.
8598 2004-04-19 Jerome Guitton <guitton@gnat.com>
8599 Mark Kettenis <kettenis@gnu.org>
8601 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8602 the function begins with a branch instruction.
8604 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8606 * i386-tdep.c: Fix spelling mistakes.
8608 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8609 Andrew Cagney <cagney@redhat.com>
8611 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8613 * acconfig.h: Provide default _KMEMUSER value.
8614 * config.in, configure: Re-generate.
8615 * NEWS: Mention fix.
8617 2004-04-24 Randolph Chung <tausq@debian.org>
8619 * configure.host (hppa*-*-linux*): New target.
8620 * configure.tgt (hppa*-*-linux*): Likewise.
8621 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8622 gdbarch_init_osabi() call earlier so that osabi-specific frame
8623 unwinders can be registered first.
8624 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8626 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8627 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8628 * config/pa/linux.mh: New file.
8629 * config/pa/linux.mt: New file.
8630 * config/pa/nm-linux.h: New file.
8631 * config/pa/xm-linux.h: New file.
8632 * hppa-linux-nat.c: New file.
8633 * hppa-linux-tdep.c: New file.
8635 2004-04-28 Randolph Chung <tausq@debian.org>
8637 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8639 (hppa32_push_dummy_call): Fix small struct and floating point argument
8640 passing, and make sure the stack frame is properly aligned.
8642 2004-04-28 Andrew Cagney <cagney@redhat.com>
8644 * stack.c (print_stack_frame): Fix description.
8646 * NEWS: Mention gdb/gdbserver/configure execute permission
8647 changed. PR server/519.
8649 2004-04-28 Andrew Cagney <cagney@redhat.com>
8651 * stack.c (print_stack_frame_stub): Delete declaration.
8652 (struct print_stack_frame_args, print_stack_frame)
8653 (print_frame_info, print_frame): Replace "source" with print what.
8654 Replace "print" with "print_level". Replace "args" with
8656 * frame.h (show_and_print_stack_frame, print_stack_frame)
8657 (print_frame_info): Update declarations.
8658 * stack.c (select_and_print_frame, frame_command)
8659 (current_frame_command, up_command, down_command): Update calls -
8660 use get_selected_frame, pass "enum print_what" for source, do not
8661 call frame_relative_level.
8662 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8663 * remote-rdp.c (remote_rdp_open): Ditto.
8664 * remote-mips.c (common_open): Ditto.
8665 * remote-e7000.c (e7000_start_remote): Ditto.
8666 * ocd.c (ocd_start_remote): Ditto.
8667 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8668 * infrun.c (normal_stop): Ditto.
8669 * inflow.c (kill_command): Ditto.
8670 * infcmd.c (finish_command): Ditto.
8671 * corelow.c (core_open): Ditto.
8672 * tracepoint.c (finish_tfind_command): Ditto.
8673 * thread.c (info_threads_command, info_threads_command)
8674 (restore_current_thread, do_captured_thread_select): Ditto.
8675 * ada-tasks.c (task_command): Ditto.
8677 2004-04-26 Orjan Friberg <orjanf@axis.com>
8679 * frame.c: Include "observer.h".
8680 (frame_observer_target_changed): New function.
8681 (_initialize_frame): Attach target_changed observer.
8682 * regcache.c: Include "observer.h".
8683 (regcache_observer_target_changed): New function.
8684 (_initialize_regcache): Attach target_changed observer.
8685 * valops.c: Include "observer.h".
8686 (value_assign): Notify target_changed event when modifying register.
8687 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8689 2004-04-26 Orjan Friberg <orjanf@axis.com>
8691 From Paul Koning <pkoning@equallogic.com>:
8692 * breakpoint.c (free_valchain): New function.
8693 (insert_bp_location, delete_breakpoint): Use free_valchain.
8694 (remove_breakpoint): Do not remove the valchain.
8695 (bpstat_stop_status): If not stopped by watchpoint, skip
8696 watchpoints when generating stop status list.
8697 * infrun.c (handle_inferior_event): Make
8698 stepped_after_stopped_by_watchpoint a global variable.
8699 * remote.c (remote_stopped_data_address): Return watch data
8700 address rather than zero if stepped_after_stopped_by_watchpoint is
8703 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8706 * configure.in: Check for curses after termcap.
8707 On osf5.*, do not check for ncurses.
8708 * configure: Regenerate.
8710 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8712 * ppcobsd-nat.c: Include "ppc-tdep.h".
8713 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8715 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8716 Fixes PR tdep/1623 and PR tdep/1624.
8718 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8720 * xmodem.h, xmodem.c: Remove files.
8721 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8723 2004-04-23 Randolph Chung <tausq@debian.org>
8725 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8726 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8727 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8728 for handling stackless frames.
8729 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8731 2004-04-23 Randolph Chung <tausq@debian.org>
8733 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8734 starts at a pc before the frame is created.
8736 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8738 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8740 2004-04-23 Jerome Guitton <guitton@gnat.com>
8742 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8743 use convert_typed_floating to get the appropriate format.
8745 2004-04-22 Randolph Chung <tausq@debian.org>
8747 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8748 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8749 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8750 (hppa_sign_extend): Add prototype.
8751 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8752 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8753 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8754 hppa targets will also use these functions.
8755 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8756 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8757 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8758 (hppa_gdbarch_init): Remove gdbarch setting of
8759 skip_trampoline_code, in_solib_call_trampoline and
8760 in_solib_return_trampoline.
8761 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8762 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8763 hppa_in_solib_call_trampoline.
8764 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8765 Moved from hppa-tdep.c.
8766 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8767 in_solib_call_trampoline and in_solib_return_trampoline.
8769 2004-04-22 Randolph Chung <tausq@debian.org>
8771 * hppa-tdep.c (hppa_debug): New variable.
8772 (find_unwind_entry, hppa_frame_cache): Add debug output.
8773 (_initialize_hppa_tdep): Add command to set debug flag.
8775 2004-04-22 Andrew Cagney <cagney@redhat.com>
8777 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8779 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8780 signal trampoline unwinder.
8781 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8783 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8785 Add OpenBSD/powerpc support.
8786 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8787 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8788 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8789 (ppc_collect_fpregset): New prototypes.
8790 * ppcobsd-nat.c: New file.
8791 * ppcobsd-tdep.c: New file.
8792 * ppcobsd-tdep.h: New file.
8793 * rs6000-tdep.c: Include "regset.h".
8794 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8795 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8797 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8798 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8799 (rs6000-tdep.o): Update dependencies.
8800 * configure.host: Add powerpc-*-openbsd.
8801 * configure.tgt: Add powerpc-*-openbsd.
8802 * config/powerpc/obsd.mh: New file.
8803 * config/powerpc/nm-obsd.h: New file.
8804 * config/powerpc/obsd.mt: New file.
8806 2004-04-22 Andrew Cagney <cagney@redhat.com>
8808 * frame.h (show_frame_info): Delete declaration.
8810 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8811 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8812 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8813 * frv-tdep.c (frv_frame_this_id): Ditto.
8814 * avr-tdep.c (avr_frame_this_id): Ditto.
8816 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8818 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8820 2004-04-22 Jim Blandy <jimb@redhat.com>
8822 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8823 register number zero.
8825 2004-04-21 Michael Snyder <msnyder@redhat.com>
8827 * mips-tdep.c (heuristic_proc_start):
8828 Warning() already prefixes "Warning: ".
8830 2004-04-21 Andrew Cagney <cagney@redhat.com>
8832 * annotate.h (deprecated_annotate_starting_hook)
8833 (deprecated_annotate_stopped_hook)
8834 (deprecated_annotate_exited_hook)
8835 (deprecated_annotate_signal_hook)
8836 (deprecated_annotate_signalled_hook): Deprecate.
8837 * tracepoint.h (deprecated_create_tracepoint_hook)
8838 (deprecated_delete_tracepoint_hook)
8839 (deprecated_modify_tracepoint_hook)
8840 (deprecated_trace_find_hook)
8841 (deprecated_trace_start_stop_hook): Deprecate.
8842 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8843 * remote.h (deprecated_target_resume_hook)
8844 (deprecated_target_wait_loop_hook): Deprecate.
8845 * gdbcore.h (deprecated_exec_file_display_hook)
8846 (deprecated_file_changed_hook): Deprecate.
8847 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8848 * defs.h (deprecated_modify_breakpoint_hook)
8849 (deprecated_command_loop_hook, deprecated_show_load_progress)
8850 (deprecated_print_frame_info_listing_hook)
8851 (deprecated_query_hook, deprecated_warning_hook)
8852 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8853 (deprecated_delete_breakpoint_hook)
8854 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8855 (deprecated_readline_begin_hook, deprecated_readline_hook)
8856 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8857 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8858 (deprecated_context_hook, deprecated_target_wait_hook)
8859 (deprecated_attach_hook, deprecated_detach_hook)
8860 (deprecated_call_command_hook, deprecated_set_hook)
8861 (deprecated_error_hook, deprecated_error_begin_hook)
8862 (deprecated_ui_load_progress_hook): Deprecate.
8863 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8864 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8865 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8866 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8867 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8868 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8869 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8870 * annotate.c, aix-thread.c: Update.
8872 2004-04-21 Andrew Cagney <cagney@redhat.com>
8874 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8875 * vaxnbsd-tdep.c: Include "gdb_string.h".
8877 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8878 (add_symbol_file_from_memory_command): #if 0 function body, call
8881 2004-04-21 Andrew Cagney <cagney@redhat.com>
8883 * gdbcore.h: Update copyright.
8884 (deprecated_add_core_fns): Rename add_core_fns.
8885 * win32-nat.c (_initialize_core_win32): Update.
8886 * sun3-nat.c (_initialize_core_sun3): Update.
8887 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8888 * rs6000-nat.c (_initialize_core_rs6000): Update.
8889 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8890 * nto-tdep.c (_initialize_nto_tdep): Update.
8891 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8892 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8893 * mips-nat.c (_initialize_core_mips): Update.
8894 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8895 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8896 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8897 * lynx-nat.c (_initialize_core_lynx): Update.
8898 * irix5-nat.c (_initialize_core_irix5): Update.
8899 * i386-interix-nat.c (_initialize_core_interix): Update.
8900 * cris-tdep.c (_initialize_cris_tdep): Update.
8901 * corelow.c (deprecated_add_core_fns): Update.
8902 * core-regset.c (_initialize_core_regset): Update.
8903 * core-aout.c (_initialize_core_aout): Update.
8904 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8905 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8906 * alpha-nat.c (_initialize_core_alpha): Update.
8908 2004-04-21 Jim Blandy <jimb@redhat.com>
8910 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8912 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8914 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8916 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8917 (read_attribute_value): Update calls to dwarf_alloc_block.
8918 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8920 (psymtab_to_symtab_1): Likewise. Clean up using
8921 free_stack_comp_unit.
8922 (add_to_cu_func_list): Use the comp_unit_obstack.
8924 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8926 * dwarf2read.c (dwarf2_flag_true_p): New function.
8927 (die_is_declaration): Use the function above. Add some comments.
8929 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8931 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8932 architecture when registering sparcnbsd_core_osabi_sniffer.
8935 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8937 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8940 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8941 * i386-tdep.c: Correct register numbering scheme comments
8943 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8944 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8945 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8946 (i386_gdb_arch_init): Likewise.
8948 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8949 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8952 * m68k-tdep.h: Tweak comments.
8953 * m68k-tdep.c: Tweak comment.
8955 2004-04-17 Randolph Chung <tausq@debian.org>
8957 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8958 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8959 (hppa_hpux_som_init_abi): Set is_elf to 0.
8960 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8961 * hppa-tdep.c (low_text_segment_address): Remove global.
8962 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8963 section offset to calculate segment address.
8964 (internalize_unwinds): Define low_text_segment_address as local and
8965 pass to record_text_segment_lowaddr for ELF targets.
8966 (hppa_gdbarch_init): Zero fill tdep structure.
8967 (hppa_dump_tdep): Print tdep structure.
8968 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8970 2004-04-17 Randolph Chung <tausq@debian.org>
8972 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8973 (hppa_gdbarch_init): Set pseudo_register_read.
8974 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8975 * regcache.c (supply_register): Remove check for
8976 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8978 2004-04-17 Randolph Chung <tausq@debian.org>
8980 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8981 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8982 (hpread_adjust_stack_address): Move to hpread.c.
8983 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8984 obj_private_struct): Move from tm-hppa.h.
8985 * hpread.c (hppa-tdep.h): Include.
8986 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8987 (hpread_read_function_type, hpread_read_doc_function_type)
8988 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8990 * pa64solib.c (hppa-tdep.h): Include.
8991 * somsolib.c (hppa-tdep.h): Include.
8992 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8993 inferior_status): Remove unused forward declarations.
8994 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8995 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8996 obj_private_struct): Move to hppa-tdep.h.
8997 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8999 2004-04-17 Randolph Chung <tausq@debian.org>
9001 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9002 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9003 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9004 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9005 Remove forward declaration and make static.
9006 (hppa_reg_struct_has_addr): Remove.
9008 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9010 * observer.sh: Move comments in sed command to first column.
9012 2004-04-16 Jason Molenda (jmolenda@apple.com)
9014 * frame.c: Minor typeo corrections in comments.
9016 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9018 * observer.c (observer_test_first_notification_function): Update
9020 (observer_test_second_notification_function): Likewise.
9021 (observer_test_third_notification_function): Likewise.
9023 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9025 From Brian Ford <ford@vss.fsi.com>:
9026 * i386-tdep.c (i386_coff_init_abi): New function.
9027 * i386-tdep.h (i386_coff_init_abi): New prototype.
9028 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9029 register number translation functions for DWARF and DWARF 2.
9031 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9033 * dwarf2read.c: Back out my previous change, it was incorrect.
9035 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9037 * dwarf2read.c: Include "hashtab.h".
9038 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9040 (struct partial_die_info): Add comments. Use bitfields to reduce
9041 memory footprint. Add scope, scope_set, has_specification,
9042 spec_offset, die_parent, die_child, and die_sibling.
9043 (peek_die_abbrev): Add prototype.
9044 (partial_read_comp_unit_head): New function, broken out from
9045 dwarf2_build_psymtabs_hard.
9046 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9047 Use partial_read_comp_unit_head. Initialize the CU and
9048 comp_unit_obstack. Update calls to read_partial_die and
9049 scan_partial_symbols. Use free_stack_comp_unit and
9051 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9052 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9053 Update calls to helper functions. Remove NAMESPACE argument.
9055 (partial_die_parent_scope, partial_die_full_name): New functions.
9056 (add_partial_symbol): Remove namespace argument. Update call to
9057 pdi_needs_namespace. Use partial_die_full_name. Handle
9058 DW_TAG_namespace. Check has_namespace_info flag.
9059 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9060 tag. Handle namespaces.
9061 (add_partial_namespace, add_partial_enumeration): Simplify.
9062 (guess_structure_name): New function, derived from
9063 add_partial_structure.
9064 (add_partial_structure): Remove.
9065 (determine_class_name): Update comment.
9066 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9067 (is_type_tag_for_partial, load_partial_dies): New functions.
9068 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9069 Record specifications instead of following them immediately.
9070 (find_partial_die_in_comp_unit, find_partial_die)
9071 (fixup_partial_die, free_stack_comp_unit)
9072 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9073 (partial_die_hash, partial_die_eq): New functions.
9074 * Makefile.in (hashtab_h): Define.
9075 (dwarf2read.o): Update dependencies.
9076 (observer_inc, observer_h): Move to the correct section.
9078 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9080 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9081 (die_is_declaration): Use the function above. Add comment.
9083 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9085 * dwarf2read.c (read_structure_scope): Identify stub types
9086 using die_is_declaration() only.
9088 2004-04-15 Roland McGrath <roland@redhat.com>
9090 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9091 argument instead of NAME.
9092 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9093 in call to symbol_file_add_with_addrs_or_offsets.
9094 (build_addr_info): New function, helper for ...
9095 (symbol_file_add_from_memory): New function.
9096 (add_symbol_file_from_memory_command): New function using that.
9097 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9098 (pre_add_symbol_hook): Add const to argument type.
9099 * symfile.h (symbol_file_add_from_memory): Declare it.
9101 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9103 * NEWS (New native configurations): Mention OpenBSD/vax.
9104 * configure.host: Add vax-*-openbsd*.
9105 * config/vax/obsd.mh: New file.
9106 * config/vax/nm-obsd.h: New file.
9108 * vax-tdep.c: Include "regset.h".
9109 (vax_supply_gregset): New function.
9110 (vax_gregset): New variable.
9111 (vax_regset_from_core_section): New function.
9112 (vax_gdbarch_init): Set regset_from_core_section.
9113 * Makefile.in (vax-tdep.o): Update dependencies.
9115 2004-04-15 Andrew Cagney <cagney@redhat.com>
9117 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9118 (observer_normal_stop_notification_stub)
9119 (observer_attach_normal_stop, observer_detach_normal_stop):
9120 Delete, replaced by #include "observer.inc".
9121 * infrun.c (normal_stop): Pass "stop_bpstat" to
9122 observer_notify_normal_stop.
9123 * Makefile.in (observer_inc): Define.
9124 (observer.o): Update dependencies.
9125 (observer.h, observer.inc): New rules.
9126 * observer.h: Delete file.
9127 * observer.sh: New file.
9129 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9131 * vax-tdep.c (vax_frame_cache): Fix typo.
9133 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9135 * NEWS (New native configurations): Mention NetBSD/vax.
9136 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9137 * config/vax/nbsdelf.mh: New file.
9138 * config/vax/nbsdaout.mh: New file.
9139 * config/vax/nm-nbsd.h: New file.
9140 * config/vax/nm-nbsdaout.h: New file.
9142 * vaxnbsd-tdep.c: New file.
9143 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9144 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9145 * config/vax/nbsd.mt: New file.
9146 * config/vax/tm-nbsd.h: New file.
9148 * Makefile.in (vaxbsd-nat.o): New dependency.
9150 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9151 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9152 struct_addr arguments. Don't push return value address.
9153 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9154 arguments to vax_store_arguments. Store return value address in
9156 (vax_store_struct_return, vax_extract_return_value)
9157 (vax_store_return_value): Remove functions.
9158 (vax_return_value): New function.
9159 (vax_gdbarch_init): Set return value. Don't set
9160 deprecated_store_struct_return, deprecated_extract_struct_return
9161 and deprecated_store_return_value.
9163 2004-04-14 Andreas Schwab <schwab@suse.de>
9165 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9167 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9169 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9171 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9172 (vax_unwind_dummy_id): New functions.
9173 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9174 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9176 (vax_fix_call_dummy): Remove function.
9177 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9178 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9179 call_dummy_location, deprecated_call_dummy_words,
9180 deprecated_sizeof_call_dummy_words,
9181 deprecated_call_dummy_breakpoint_offset,
9182 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9183 and deprecated_dummy_write_sp.
9185 2004-04-13 David Carlton <carlton@kealia.com>
9187 * MAINTAINERS: Move myself to "paper trail" section.
9189 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9191 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9193 (vax_frame_init_saved_regs): Remove function.
9194 (vax_sigtramp_saved_pc): Remove function.
9195 (vax_frame_saved_pc): Remove function.
9196 (vax_frame_args_address): Remove function.
9197 (vax_frame_num_args): Rewrite.
9198 (vax_frame_chain): Remove function.
9199 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9201 (vax_pop_frame): Likewise.
9202 (vax_saved_pc_after_call): Remove function.
9203 (struct vax_frame_cache): New structure.
9204 (vax_frame_cache): New function.
9205 (vax_frame_this_id): New function.
9206 (vax_frame_prev_register): New function.
9207 (vax_frame_unwind): New variable.
9208 (vax_frame_sniffer): New function.
9209 (vax_frame_base_address): New function.
9210 (vax_frame_args_address): New function.
9211 (vax_frame_base): New variable.
9212 (vax_unwind_pc): New function.
9213 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9214 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9215 deprecated_frame_chain, deprecated_frame_saved_pc,
9216 deprecated_frame_args_address and
9217 deprecated_frame_init_saved_regs.
9218 * Makefile.in (vax-tdep.o): Update dependencies.
9220 * vaxbsd-nat.c: New file.
9222 * vax-tdep.h: Update copyright year. Adjust comments.
9223 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9224 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9225 (vax_regnum): New enum. Replacing...
9226 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9227 (VAX_PS_REGNUM): ... these removed macros.
9228 * vax-tdep.c (vax_register_name): Remove prototype.
9229 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9230 (vax_register_byte, vax_register_raw_size,
9231 vax_register_virtual_size, vax_register_virtual_type): Remove
9233 (vax_register_type): New function.
9234 (vax_breakpoint_from_pc): Reorganize.
9235 (vax_gdbarch_init): Set register_type. Don't set
9236 deprecated_register_size, deprecated_register_bytes,
9237 deprecated_register_byte, deprecated_register_raw_size,
9238 deprecated_max_register_raw_size,
9239 deprecated_register_virtual_size,
9240 deprecated_max_register_virtual_size and
9241 deprecated_register_virtual_type. Add comment on stack direction.
9243 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9245 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9246 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9247 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9249 2004-04-10 Randolph Chung <tausq@debian.org>
9251 * MAINTAINERS (write after approval): Add myself.
9253 2004-04-07 Randolph Chung <tausq@debian.org>
9255 * hppa-tdep.c (hppa_inner_than): Remove.
9256 (is_pa_2): Remove unused static variable.
9257 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9259 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9261 * language.h (language_defn): Add new la_post_parser field.
9262 * parser-defs.h (null_post_parser): New declaration (default for
9265 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9266 insert call to that function.
9267 (parse_exp_in_context): New function, including code formerly in
9268 parse_exp_1. Calls language-dependent post-parser after
9270 (parse_expression_in_context): New exported function.
9271 (null_post_parser): New definition.
9272 * expression.h (parse_expression_in_context): Add declaration.
9274 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9275 * c-lang.c (c_language_defn): Ditto.
9276 (cplus_language_defn): Ditto.
9277 (asm_language_defn): Ditto.
9278 (minimal_language_defn): Ditto.
9279 * f-lang.c (f_language_defn): Ditto.
9280 * jv-lang.c (java_language_defn): Ditto.
9281 * language.c (unknown_language_defn): Ditto.
9282 (auto_language_defn): Ditto.
9283 (local_language_defn): Ditto.
9284 * m2-lang.c (m2_language_defn): Ditto.
9285 * scm-lang.c (scm_language_defn): Ditto.
9286 * obj-lang.c (objc_language_defn): Ditto.
9288 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9290 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9291 (amd64nbsd_mcontext_addr): New function.
9292 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9293 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9294 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9296 * corelow.c (core_xfer_partial): Fix coding standards violation.
9297 Add support for TARGET_OBJECT_WCOOKIE.
9299 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9300 deprecated_pc_in_sigtramp.
9301 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9302 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9303 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9304 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9305 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9306 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9307 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9309 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9310 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9313 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9314 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9315 (amd64_collect_fxsave): Likewise.
9317 * i386-sol2-tdep.c: Include "gdb_string.h".
9318 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9320 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9322 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9324 * i386-sol2-tdep.c: Include "solib-svr4.h".
9325 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9326 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9327 * config/i386/tm-i386sol2.h: Include :solib.h".
9328 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9329 solib-svr4.o and solib-legacy.o.
9330 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9333 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9335 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9336 whether a register is supplied by PTRACE_GETFPREGS.
9337 (store_inferior_registers): Likewise.
9338 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9339 whether a register is supplied by PT_GETFPREGS.
9340 (store_inferior_registers): Likewise.
9342 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9343 * config/i386/linux64.mt (TDEPFILES): Likewise.
9345 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9347 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9348 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9349 the program counter is in the range specified by `struct
9351 * amd64-linux-tdep.c: Include "symtab.h".
9352 (amd64_linux_pc_in_sigtramp): Remove function.
9353 (amd64_linux_sigtramp_p): New function.
9354 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9355 deprecated_pc_in_sigtramp.
9356 * amd64nbsd-tdep.c: Include "symtab.h".
9357 (amd64nbsd_sigtramp_p): New function.
9358 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9359 deprecated_pc_in_sigtramp.
9360 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9362 (amd64obsd_pc_in_sigtramp): Remove function.
9363 (amd64obsd_sigtramp_p): New function.
9364 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9365 deprecated_pc_in_sigtramp.
9366 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9367 (i386bsd_pc_ins_sigtramp): Remove prototype.
9368 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9369 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9370 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9371 the program counter is in the range specified by `struct
9373 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9374 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9375 (i386_go32_pc_in_sigtramp): Remove function.
9376 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9377 Initialize TDEP->sigtramp_p.
9378 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9379 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9380 deprecated_pc_in_sigtramp.
9381 * i386-linux-tdep.c: Adjust comments.
9382 (i386_linux_pc_in_sigtramp): Remove function.
9383 (i386_linux_sigtramp_p): New function.
9384 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9385 deprecated_pc_in_sigtramp.
9386 * i386-nto-tdep.c: Update copyright year.
9387 (i386nto_pc_in_sigtramp): Remove function.
9388 (i386nto_sigtramp_p): New function.
9389 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9391 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9392 deprecated_pc_in_sigtramp.
9393 * i386-sol2-tdep.c: Update copyright year.
9394 (i386_sol2_pc_in_sigtramp): Remove function.
9395 (i386_sol2_sigtramp_p): New function.
9396 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9397 deprecated_pc_in_sigtramp.
9398 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9399 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9400 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9401 deprecated_sigtramp_start and deprecated_sigtramp_end.
9402 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9403 (i386nbsd_pc_in_sigtramp): Remove function.
9404 (i386nbsd_sigtramp_p): New function.
9405 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9406 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9407 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9408 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9409 (i386obsd_pc_in_sigtramp): Remove function.
9410 (i386obsd_sigtramp_p): New function.
9411 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9413 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9414 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9416 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9417 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9420 * config/i386/i386aout.mt: Remove file.
9422 * configure.tgt: Remove i[34567]86-*-go32*,
9423 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9424 and i[34567]86-*-isc*. Set gdb_target to i386 for
9425 i[34567]86-*-netware* and i[34567]86-*-*.
9426 * config/i386/i386.mt: New file.
9427 * config/i386/embed.mt: Remove file.
9428 * config/i386/go32.mt: Remove file.
9429 * config/i386/i386nw.mt: Remove file.
9430 * config/i386/i386v.mt: Remove file.
9431 * config/i386/tm-go32.h: Remove file.
9433 * tui/tui-hooks.c: Include "readline/readline.h" after
9434 "gdb_curses.h" instead of before.
9435 * tui/tui-io.c: Likewise.
9437 * tui/tui.c: Fix typo in comment.
9439 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9441 2004-04-08 Andrew Cagney <cagney@redhat.com>
9443 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9444 (deprecated_exception_support_initialized): Declare.
9445 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9446 (initialize_hp_cxx_exception_support)
9447 (child_enable_exception_callback): Update.
9448 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9449 (deprecated_exception_support_initialized): Rename
9450 deprecated_exception_catchpoints_are_fragile and
9451 deprecated_exception_support_initialized.
9452 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9454 * symtab.c (deprecated_hp_som_som_object_present): Rename
9455 hp_som_som_object_present.
9456 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9457 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9458 Update. Delete extern declaration.
9459 * valops.c (hp_som_som_object_present): Ditto.
9460 * parse.c (deprecated_hp_som_som_object_present)
9461 (parse_nested_classes_for_hpacc): Ditto.
9462 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9463 * hppa-hpux-tdep.c (hp_som_som_object_present)
9464 (initialize_hp_cxx_exception_support): Ditto.
9465 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9466 * cp-valprint.c (hp_som_som_object_present)
9467 (cp_print_class_method): Ditto.
9468 * c-typeprint.c (hp_som_som_object_present):
9469 (c_type_print_base): Ditto.
9470 * c-exp.y (hp_som_som_object_present): Ditto.
9472 2004-04-08 Andrew Cagney <cagney@redhat.com>
9474 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9475 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9476 (frame_unwind_find_by_frame): Re-implement the unwind code so
9477 that it can both prepend and append sniffers. Replace
9478 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9479 * tramp-frame.c (tramp_frame_append): Use
9480 frame_unwind_prepend_unwinder.
9481 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9482 frame_unwind_register_unwinder.
9483 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9485 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9486 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9487 (mips_linux_init_abi): Update.
9489 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9491 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9492 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9495 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9497 * ia64-tdep.c (elf.h): Don't include.
9498 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9500 2004-04-07 Jason Molenda (jmolenda@apple.com)
9502 * frame.h: Typeo corrections in comments.
9504 2004-04-07 Jim Blandy <jimb@redhat.com>
9506 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9509 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9511 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9512 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9513 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9514 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9516 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9518 * config/sparc/tm-sol2.h: Update copyright year. Include
9521 * sparc-sol2-tdep.c: Update copyright year. Include
9523 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9524 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9525 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9526 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9529 2004-04-06 Andrew Cagney <cagney@redhat.com>
9531 * infttrace.c: Include "infttrace.h".
9532 * infttrace.h: Include "target.h".
9533 * Makefile.in (infttrace_h): Update.
9534 (infttrace.o): Update.
9536 2004-04-06 Andrew Cagney <cagney@redhat.com>
9538 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9539 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9540 move extern declarations from here ...
9541 * infttrace.h: ... to here.
9542 * Makefile.in (hppah-nat.o): Update dependencies.
9544 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9545 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9546 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9547 (hppa_breakpoint_from_pc): Delete.
9549 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9551 2004-04-05 Andrew Cagney <cagney@redhat.com>
9553 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9554 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9557 2004-04-06 Randolph Chung <tausq@debian.org>
9559 Committed by Andrew Cagney (mechanical change).
9560 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9561 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9562 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9563 child_enable_exception_callback, current_ex_event,
9564 null_symtab_and_line, child_get_current_exception_event,
9565 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9566 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9567 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9568 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9569 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9570 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9571 Move hpux-specific definitions ...
9572 * hppa-hpux-tdep.c: ... to here.
9574 2004-04-05 Andrew Cagney <cagney@redhat.com>
9576 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9577 skip_prologue_using_sal.
9579 2004-04-05 Andrew Cagney <cagney@redhat.com>
9581 * config/i386/tm-i386.h: Delete file.
9582 * config/i386/tm-vxworks.h: Update copyright, do not include
9584 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9585 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9586 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9587 * config/i386/ncr3000.mt (TM_FILE): Delete.
9588 * config/i386/interix.mt (TM_FILE): Delete.
9589 * config/i386/i386v.mt (TM_FILE): Delete.
9590 * config/i386/i386nw.mt (TM_FILE): Delete.
9591 * config/i386/i386gnu.mt (TM_FILE): Delete.
9592 * config/i386/i386aout.mt (TM_FILE): Delete.
9593 * config/i386/embed.mt (TM_FILE): Delete.
9595 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9597 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9598 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9599 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9600 (accg7_regnum): New constants.
9601 (last_spr_regnum, last_pseudo_regnum): Update.
9602 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9603 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9604 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9606 (frv_register_sim_regno): Update spr_map[].
9608 2004-04-04 Andrew Cagney <cagney@redhat.com>
9610 * config/mips/xm-riscos.h: Delete.
9611 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9612 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9613 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9614 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9615 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9616 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9617 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9618 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9619 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9620 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9621 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9622 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9623 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9624 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9625 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9626 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9627 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9628 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9629 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9630 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9631 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9632 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9633 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9634 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9635 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9636 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9638 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9639 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9640 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9641 * configure.host: Remove m680[01]0-sun-sunos3*,
9642 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9643 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9644 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9645 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9647 * NEWS: Mention removed systems.
9649 2004-04-04 Andrew Cagney <cagney@redhat.com>
9651 GDB 6.1 release created from 6.1 branch.
9653 2004-04-04 Andrew Cagney <cagney@redhat.com>
9655 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9656 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9657 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9659 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9660 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9661 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9663 2004-04-03 Jim Blandy <jimb@redhat.com>
9665 * MAINTAINERS: Chris Faylor has changed employers; add him to
9666 "paper trail" section, and update his E-mail address.
9668 2004-04-03 Andrew Cagney <cagney@redhat.com>
9670 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9671 generic dummy frames.
9672 * dummy-frame.c: Update copyright.
9673 (dummy_frame_sniffer): Delete check for generic dummy frames.
9675 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9676 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9677 (REG_PARM_STACK_SPACE): Delete.
9678 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9679 Inline reference to REG_PARM_STACK_SPACE.
9681 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9682 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9683 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9684 (FRAME_BASE_BEFORE_SIGTRAMP)
9685 (hppa32_hpux_frame_base_before_sigtramp)
9686 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9687 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9688 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9689 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9690 (FRAME_BASE_BEFORE_SIGTRAMP)
9691 (hppa64_hpux_frame_base_before_sigtramp)
9692 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9694 2004-04-03 Andrew Cagney <cagney@redhat.com>
9696 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9698 2004-04-02 Andrew Cagney <cagney@redhat.com>
9700 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9701 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9702 * dummy-frame.h: Delete out-of-date comments.
9703 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9704 * gdbarch.h, gdbarch.c: Re-generate.
9706 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9708 Committed by Andrew Cagney <cagney@redhat.com>.
9709 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9710 into account an instruction saving a register if we have already
9711 seen an earlier instruction saving that same register.
9713 2004-04-02 Andrew Cagney <cagney@redhat.com>
9715 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9716 * gdbarch.h, gdbarch.c: Re-generate.
9717 * frame.c (legacy_get_prev_frame): Delete references to
9718 DEPRECATED_INIT_FRAME_PC_FIRST.
9720 * infrun.c (pc_in_sigtramp): Delete function.
9721 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9724 2004-04-02 Andrew Cagney <cagney@redhat.com>
9726 * infrun.c (handle_step_into_function): Delete code conditional on
9728 (handle_inferior_event, step_over_function): Ditto.
9730 2004-04-02 Andrew Cagney <cagney@redhat.com>
9732 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9733 "previous frame inner to this frame" test.
9735 2004-04-02 Andrew Cagney <cagney@redhat.com>
9737 * frame.c (safe_frame_unwind_memory): New function.
9738 * frame.h (safe_frame_unwind_memory): Declare. Update description
9740 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9741 "next_frame". Use safe_frame_unwind_memory.
9742 (tramp_frame_sniffer): Update call to tramp_frame_start.
9744 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9746 * dwarf2read.c (dwarf2_objfile_data_key): New.
9747 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9748 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9749 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9750 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9751 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9752 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9753 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9755 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9756 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9757 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9758 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9759 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9760 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9762 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9764 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9765 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9766 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9767 (read_partial_die, read_full_die, read_indirect_string)
9768 (dwarf_decode_line_header, dwarf_decode_macros)
9769 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9770 Update uses of removed variables.
9771 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9773 (_initialize_dwarf2_read): New function.
9774 * symfile.h (dwarf2_has_info): Update prototype.
9775 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9776 * elfread.c (elf_symfile_read): Likewise.
9778 2004-04-01 Jim Blandy <jimb@redhat.com>
9780 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9781 function for register numbers on all the rs6000-derived targets.
9782 (rs6000_gdbarch_init): Don't register a separate
9783 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9784 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9787 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9790 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9792 * valarith.c: Update copyright notice.
9793 (value_add): Handle range types.
9795 (value_equal): Ditto.
9796 (value_less): Ditto.
9798 (value_complement): Ditto.
9799 (value_binop): Simplify slightly by using is_integral_type and
9800 eliminiating unnecessary COERCE_ENUMs.
9802 2004-03-31 Andrew Cagney <cagney@redhat.com>
9804 * frame.h (frame_unwind_id): Declare.
9805 * frame.c (frame_unwind_id): New function.
9806 (get_prev_frame_1): New function.
9807 (frame_debug_got_null_frame): New function.
9808 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9809 code proper to prev_frame, update description.
9810 * infrun.c (step_over_function): Use frame_unwind_id.
9812 2004-04-31 J. Brobecker <brobecker@gnat.com>
9814 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9815 (hppa64_push_dummy_call): Likewise.
9817 2004-03-30 Jim Blandy <jimb@redhat.com>
9819 From Ulrich Weigand:
9820 * utils.c (query): Do not use a va_list variable multiple times.
9822 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9824 * Makefile.in (linux_nat_h): Update dependencies.
9825 * configure.in: Check for <gnu/libc-version.h>.
9826 * configure: Regenerate.
9827 * config.in: Regenerate.
9828 * linux-nat.h: Include "target.h". Add waitstatus field to
9830 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9831 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9833 (lin_lwp_handle_extended): New function. Handle clone events.
9834 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9836 (child_wait): Handle clone events.
9837 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9838 * linux-nat.c (linux_enable_event_reporting): Turn on
9839 PTRACE_O_TRACECLONE.
9840 (linux_handle_extended_wait): Handle clone events.
9841 * thread-db.c: Include <gnu/libc-version.h>.
9842 (struct private_thread_info): Add dying flag.
9843 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9845 (attach_thread): Update comments. Handle dying threads.
9846 (detach_thread): Set the dying flag.
9847 (check_event): Always call attach_thread.
9849 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9851 * mips-tdep.c (mips_pdr_data): New.
9852 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9853 (_initialize_mips_tdep): Initialize mips_pdr_data.
9855 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9857 * minsyms.c (install_minimal_symbols): Move dropping leading
9858 char from linkage name from here...
9859 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9860 test for "__gnu_compiled*" symbols.
9862 2004-03-28 Jim Blandy <jimb@redhat.com>
9864 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9865 registers to temp register r0 and byte stores as prologue
9868 2004-03-28 Andrew Cagney <cagney@redhat.com>
9870 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9873 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9875 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9876 and switch the layout to force a display of register window.
9878 2004-02-26 J. Brobecker <brobecker@gnat.com>
9880 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9881 of the INTEGER class.
9883 2004-03-26 Jim Blandy <jimb@redhat.com>
9885 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9886 bytes long on PPC GNU/Linux.
9888 2004-03-26 David Carlton <carlton@kealia.com>
9890 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9892 2004-03-25 Andrew Cagney <cagney@redhat.com>
9894 * PROBLEMS: Add general section titles, remove references to
9897 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9899 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9901 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9902 FP_REGISTER_VIRTUAL_SIZE.
9903 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9904 of DEPRECATED_REGISTER_RAW_SIZE.
9905 (arm_register_type): Add gdbarch argument.
9906 (arm_register_raw_size, arm_register_virtual_size): Delete.
9907 (arm_register_byte, arm_extract_return_value)
9908 (arm_store_return_value, arm_get_longjmp_target): Update references
9909 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9910 (arm_gdbarch_init): Likewise. Don't set
9911 deprecated_register_raw_size, deprecated_register_virtual_size,
9912 deprecated_max_register_raw_size,
9913 deprecated_max_register_virtual_size, or
9914 deprecated_max_register_virtual_type. Do set register_type.
9915 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9916 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9917 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9918 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9919 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9920 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9922 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9923 (remote_rdp_store_register): Likewise.
9925 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9927 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9928 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9929 to after osabi initialization.
9930 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9931 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9933 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9934 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9936 (mips_linux_init_abi): Append signal trampoline unwinders.
9938 2004-03-24 Andrew Cagney <cagney@redhat.com>
9940 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9941 * tramp-frame.c: Include "gdb_assert.h".
9942 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9944 (tramp_frame_append): Validate the tramp frame's instructions.
9945 * Makefile.in (tramp-frame.o): Update dependencies.
9947 2004-03-23 Andrew Cagney <cagney@redhat.com>
9949 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9951 2004-03-23 Andrew Cagney <cagney@redhat.com>
9953 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9954 Nasser as past testsuite/lib/ (and other) maintainers.
9956 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9958 * infcmd.c (attach_command): Reread symbols if we already have
9961 2004-03-23 Andrew Cagney <cagney@redhat.com>
9963 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9965 2004-03-23 Andrew Cagney <cagney@redhat.com>
9967 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9968 * gdbarch.h, gdbarch.c: Re-generate.
9969 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9970 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9971 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9972 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9973 (DEPRECATED_SIGTRAMP_START): Update.
9974 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9975 (DEPRECATED_SIGTRAMP_START): Update.
9976 * blockframe.c (find_pc_sect_partial_function): Update.
9977 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9979 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9981 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9984 2004-03-23 Andrew Cagney <cagney@redhat.com>
9986 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9987 predicate, deprecate.
9988 * gdbarch.h, gdbarch.c: Re-generate.
9989 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9990 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9991 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9992 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9993 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9994 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9995 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9996 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9997 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9998 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9999 * blockframe.c (find_pc_partial_function): Update.
10000 * breakpoint.c (bpstat_what): Update.
10001 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10002 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10003 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10004 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10005 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10006 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10007 * i386-nto-tdep.c (i386nto_init_abi): Update.
10008 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10009 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10010 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10011 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10012 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10013 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10014 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10015 * infrun.c (pc_in_sigtramp): Update.
10016 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10017 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10018 * mips-tdep.c (mips_gdbarch_init): Update.
10019 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10020 * ppc-linux-tdep.c: Update comment.
10021 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10022 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10023 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10024 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10025 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10026 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10027 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10028 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10029 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10030 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10032 2004-03-23 Andrew Cagney <cagney@redhat.com>
10034 * tramp-frame.h, tramp-frame.h: New files.
10035 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10036 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10038 * Makefile.in: Update all dependencies.
10040 2004-03-23 Andrew Cagney <cagney@redhat.com>
10042 * Makefile.in (trad_frame_h): Add $(frame_h).
10043 * trad-frame.h: Update copyright. Include "frame.h".
10044 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10045 (trad_frame_set_id, trad_frame_get_id): Declare.
10046 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10047 * trad-frame.c: Update copyright.
10048 (struct trad_frame_cache): Define.
10049 (trad_frame_cache_zalloc): New function.
10050 (trad_frame_set_id, trad_frame_get_id): New functions.
10051 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10053 2004-03-22 Andrew Cagney <cagney@redhat.com>
10055 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10056 s390_pltstub_unwind_cache.
10057 (s390_stub_frame_unwind_cache): Rename
10058 s390_pltstub_frame_unwind_cache.
10059 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10060 (s390_stub_frame_prev_register): Rename
10061 s390_pltstub_frame_prev_register.
10062 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10063 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10065 From Ulrich Weigand:
10066 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10067 pointer calls like PLT calls.
10069 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10071 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10072 PC rather than the partial function start address. Use the start
10073 address to sanity check the found PDR.
10075 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10077 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10078 linux_handle_extended_wait.
10080 2004-03-22 Andrew Cagney <cagney@redhat.com>
10082 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10085 * frame.h (generic_pop_current_frame): Delete declaration.
10086 (deprecate_pop_dummy_frame): Deprecate
10087 generic_pop_dummy_frame.
10088 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10089 (generic_pop_current_frame): Delete function.
10090 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10091 generic_pop_current_frame.
10092 * v850-tdep.c (v850_pop_frame): Update.
10093 * mcore-tdep.c (mcore_pop_frame): Update.
10094 * sh64-tdep.c (sh64_pop_frame): Update.
10095 * h8300-tdep.c (h8300_pop_frame): Update.
10097 2004-03-22 Andrew Cagney <cagney@redhat.com>
10099 * frame.h (deprecated_pc_in_call_dummy): Rename
10100 generic_pc_in_call_dummy.
10101 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10102 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10103 generic_pc_in_call_dummy.
10104 (pc_in_dummy_frame): Make static.
10105 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10106 * gdbarch.h, gdbarch.c: Re-generate.
10107 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10108 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10109 (legacy_get_prev_frame): Ditto.
10110 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10113 2004-03-21 Andrew Cagney <cagney@redhat.com>
10115 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10116 declaration and out-of-date comment.
10117 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10119 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10120 deprecated_pc_in_call_dummy.
10122 * infrun.c (handle_inferior_event): For non legacy frames, use the
10123 frame ID and frame type to identify a signal trampoline. Update
10126 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10128 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10129 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10131 2004-03-21 Andrew Cagney <cagney@redhat.com>
10133 * frame-unwind.h: Update copyright.
10134 (struct frame_data): Add opaque declaration.
10135 (frame_sniffer_ftype): Declare.
10136 (struct frame_unwind): Add "unwind_data" and "sniffer".
10137 (frame_unwind_register_unwinder): Declare.
10138 (frame_unwind_find_by_frame): Add parameter "this_cache".
10139 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10140 (legacy_get_prev_frame, legacy_get_prev_frame)
10141 (get_frame_type): Pass the prologue_cache to
10142 frame_unwind_find_by_frame.
10143 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10145 (frame_unwind_register_unwinder): New function.
10146 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10148 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10150 * bcache.c (print_percentage): Use floating point to avoid
10151 incorrect results when portion*100 overflows.
10153 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10155 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10156 (ppc_linux_init_extra_frame_info)
10157 (ppc_linux_frameless_function_invocation)
10158 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10159 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10160 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10161 (rs6000_frame_chain): Delete declarations.
10162 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10163 (ppc_linux_init_extra_frame_info)
10164 (ppc_linux_frameless_function_invocation)
10165 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10166 (ppc_linux_init_abi): Remove registration of above deleted functions.
10167 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10168 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10169 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10170 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10171 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10172 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10173 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10174 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10175 frame management for all OSABIs.
10177 2004-03-19 Andrew Cagney <cagney@redhat.com>
10179 Committed by Kevin Buettner <kevinb@redhat.com>.
10181 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10183 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10184 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10185 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10186 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10187 unwinders. #ifdef legacy frame code.
10188 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10190 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10191 (struct rs6000_frame_cache, rs6000_frame_cache)
10192 (rs6000_frame_this_id, rs6000_frame_prev_register)
10193 (rs6000_frame_sniffer, rs6000_frame_unwind)
10194 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10195 (rs6000_frame_base): Implement a traditional frame unwinder.
10196 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10199 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10201 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10202 breakpoint address for watchpoints or the catch eventpoints.
10203 Add new paramter ``bptype''. Adjust all callers.
10205 2004-03-19 Andrew Cagney <cagney@redhat.com>
10207 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10209 * PROBLEMS: Delete note that ARM does not use frame code, problem
10212 2004-03-18 Andrew Cagney <cagney@redhat.com>
10214 * stack.c (return_command): Delete code wrapped in #ifdef
10215 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10217 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10219 2004-03-18 Andrew Cagney <cagney@redhat.com>
10221 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10222 DEPRECATED_IN_SIGTRAMP.
10223 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10224 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10225 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10226 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10227 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10228 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10229 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10230 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10231 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10232 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10234 2004-03-18 Andrew Cagney <cagney@redhat.com>
10236 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10237 (struct frame_base_table_entry): Define.
10238 (struct frame_base_table): Re-implement as a linked list.
10239 (frame_base_init): Re-implement.
10240 (frame_base_table): Delete function.
10241 (append_predicate): Delete function.
10242 (frame_base_append_sniffer): Update.
10243 (frame_base_set_default): Update.
10244 (frame_base_find_by_frame): Update.
10245 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10246 * Makefile.in (frame-base.o): Update dependencies.
10248 2004-03-17 Andrew Cagney <cagney@redhat.com>
10250 * frame.c (legacy_get_prev_frame): Pass correct frame to
10251 frame_unwind_find_by_frame.
10253 2004-03-17 David Carlton <carlton@kealia.com>
10255 * NEWS: Mention C++ nested types and namespaces
10257 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10259 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10260 and "Regressions since gdb 5.3.". Add known regressions since
10263 2004-03-16 David Carlton <carlton@kealia.com>
10265 * dwarf2read.c (process_structure_scope): Process children even
10266 when we're a declaration.
10268 2004-03-16 Andrew Cagney <cagney@redhat.com>
10270 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10271 * blockframe.c (find_pc_partial_function)
10272 (find_pc_sect_partial_function): Merge into a single
10273 find_pc_partial_function.
10275 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10277 * i386bsd-nat.c: s/regno/regnum/g.
10278 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10280 (store_inferior_registers): Likewise.
10282 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10284 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10285 of i387_fill_fsave.
10286 (store_inferior_registers): Call i387_collect_fsave and
10287 i387_collect_fxsave instead of i387_fill_fsave and
10290 2004-03-15 Andrew Cagney <cagney@redhat.com>
10292 * Makefile.in (frame-unwind.o): Update dependencies.
10293 * frame-unwind.c: Include "gdb_obstack.h".
10294 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10296 (append_predicate): Delete function.
10297 (struct frame_unwind_table_entry): New structure.
10298 (struct frame_unwind_table): Replace "sniffer" with "head" and
10300 (frame_unwind_append_sniffer): Update.
10301 (frame_unwind_find_by_frame): Update.
10302 (_initialize_frame_unwind): Registe frame_unwind_init using
10303 gdbarch_data_register_pre_init.
10305 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10307 * i386bsd-nat.c: Update copyright year.
10308 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10309 define unconditionally.
10311 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10313 * i387-tdep.h (i387_collect_fsave): New prototype.
10314 * i387-tdep.c (i387_collect_fsave): New function containing most
10315 of the code from i387_fill_fsave.
10316 (i387_fill_fsave): Call i387_collect_fsave.
10318 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10320 * i386-linux-tdep.c: Update copyright year.
10321 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10322 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10323 svr4_ilp32_link_map_offsets instead of
10324 i386_linux_svr4_fetch_link_map_offsets.
10326 2004-03-15 David Carlton <carlton@kealia.com>
10328 Fix for PR c++/1553:
10329 * dwarf2read.c (read_structure_type): Determine type name by
10330 calling determine_class_name.
10331 (determine_class_name): New.
10332 (determine_prefix): Look at TYPE_TAG_NAME and call
10333 determine_class_name when appropriate.
10334 (determine_prefix_aux, class_name): Delete.
10335 (read_namespace): Set die->type.
10337 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10339 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10340 unused macro definition. The definition in target.h (or perhaps
10341 elsewhere) takes precedence.
10343 2004-03-15 Andrew Cagney <cagney@redhat.com>
10345 * ppc-tdep.h: Update copyright.
10346 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10347 function signatures to match "regsets.h".
10348 * ppc-linux-tdep.c: Include "regset.h".
10349 (ELF_GREGSET_SIZE): Delete.
10350 (right_supply_register): New function.
10351 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10352 using right_supply_register.
10353 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10355 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10356 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10357 (_initialize_ppc_linux_tdep): Do not register
10358 ppc_linux_regset_core_fns.
10359 (ppc_linux_regset_from_core_section): Replace
10360 fetch_core_registers.
10361 (ppc_linux_regset_core_fns): Delete.
10362 * ppc-linux-nat.c: (right_fill_reg): New function.
10363 (supply_gregset): Update call to ppc_linux_supply_gregset.
10364 (fill_gregset): Clear the register set, use right_fill_reg.
10365 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10366 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10368 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10371 2004-03-15 Andrew Cagney <cagney@redhat.com>
10373 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10374 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10375 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10376 and register_gdbarch_data.
10377 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10378 (struct gdbarch_data): Replace "init" by "pre_init" and
10380 * gdbarch.h, gdbarch.c: Re-generate.
10381 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10382 with"obstack", use OBSTACK_ZALLOC.
10383 (dwarf2_frame_ops): Delete.
10384 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10385 (dwarf2_frame_init_reg): Use gdbarch_data.
10386 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10387 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10388 (_initialize_svr4_solib): Update.
10389 * user-regs.c (_initialize_user_regs): Update.
10390 * reggroups.c (_initialize_reggroup): Update.
10391 * regcache.c (_initialize_regcache): Update.
10392 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10393 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10394 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10395 * frame-unwind.c (_initialize_frame_unwind): Update.
10396 * frame-base.c (_initialize_frame_base): Update.
10397 * user-regs.c (user_reg_add): Update.
10398 * reggroups.c (reggroup_add): Update.
10399 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10400 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10401 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10402 * frame-base.c (frame_base_table): Update.
10403 * remote.c (_initialize_remote): Update.
10404 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10406 2004-03-15 Andrew Cagney <cagney@redhat.com>
10408 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10410 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10412 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10413 * frv-linux-tdep.c: New file.
10414 * frv-tdep.c (struct gdbarch_tdep): Add new field
10415 ``sigcontext_reg_addr''.
10416 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10417 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10418 (frv_sigramp_frame_sniffer): New functions.
10419 (frv_sigtramp_frame_unwind): New static global.
10420 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10422 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10423 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10425 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10427 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10428 but not via a call to error(), when unable to read memory.
10430 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10432 * frv-tdep.c (frv_call_dummy_words): Delete.
10433 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10435 2004-03-15 Andrew Cagney <cagney@redhat.com>
10437 * infrun.c (handle_step_into_function, step_over_function): Only
10438 update and use STEP_FRAME_ID when the system is using legacy
10439 frames. Update comments.
10441 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10443 * amd64-linux-tdep.h: Remove file.
10444 * amd64-linux-tdep.c: Don't include "inferior.h" and
10445 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10446 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10447 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10448 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10449 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10451 (user_to_gdb_regmap): Remove variable.
10452 (amd64_linux_gregset_reg_offset): New variable.
10453 (amd64_core_fns): Remove variable.
10454 (fetch_core_registers): Remove function.
10455 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10457 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10458 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10459 * Makefile.in (amd64_linux_tdep_h): Remove.
10460 (amd64-linux-nat.o): Update dependencies.
10461 (amd64-linux-tdep.o): Update dependencies.
10463 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10464 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10466 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10468 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10469 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10471 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10473 * dwarf2read.c (read_structure_type): Rename from
10474 read_structure_scope. Don't create a symbol or call process_die.
10475 Return immediately if die->type is set. Call read_type_die before
10476 dwarf2_add_member_fn.
10477 (process_structure_scope): New function.
10478 (read_enumeration_type, process_enumeration_scope): New functions,
10479 broken out from read_enumeration. Don't create the enumeration
10480 type if it has already been created.
10481 (read_enumeration): Removed.
10482 (process_die): Call read_structure_type, process_structure_scope,
10483 read_enumeration_type, and process_enumeration_scope. Just call
10484 new_symbol for base and subrange types. Add a comment about other
10486 (read_type_die): Call read_enumeration_type.
10487 (add_partial_structure, new_symbol): Update comments.
10489 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10491 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10493 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10495 * tui/tui-win.h (tui_get_cmd_list): Declare.
10496 * tui/tui-win.c (tui_command): New function.
10497 (tui_get_cmd_list): New function.
10498 (_initialize_tui_win): Moved initialization of tui command in
10501 * tui/tui-data.c (init_content_element): Setup new data members.
10502 (init_win_info): Likewise.
10503 (free_content_elements): Free it.
10504 * tui/tui-data.h (struct tui_data_element): Store the register
10506 (struct tui_data_info): Keep the current register group.
10508 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10510 * tui/tui-regs.h (tui_show_registers): Update prototype.
10511 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10512 (tui_resize_all): No need to calculate anything for register window.
10513 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10514 (tui_set_register_element, tui_set_general_regs_content): Remove.
10515 (tui_set_special_regs_content): Remove.
10516 (tui_set_general_and_special_regs_content): Remove.
10517 (tui_set_float_regs_content): Remove.
10518 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10519 (tui_set_regs_content): Remove.
10520 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10521 (tui_v_show_registers_command_support): Remove.
10522 (tui_show_registers): Use a reggroup to specify the registers to show.
10523 (tui_show_register_group): New function.
10524 (tui_display_registers_from): Compute the layout of register window
10525 and refresh with new API; be sure to delete old register windows.
10526 (tui_check_register_values): Update to use tui_get_register and
10528 (tui_display_register): Just refresh the register window part.
10529 (tui_register_format): Format registers and save in tui_data_element.
10530 (tui_get_register): New to combine tui_reg_value_has_changed and
10531 tui_get_register_raw_value; fix to use the new gdb API.
10532 (tui_show_float_command): Renamed tui_reg_float_command.
10533 (tui_show_general_command): Renamed tui_reg_general_command.
10534 (tui_show_special_command): Renamed tui_reg_system_command.
10535 (_initialize_tui_regs): Remove unused commands.
10537 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10539 * NEWS (New native configurations): Mention OpenBSD/amd64.
10541 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10542 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10544 * config/i386/nm-fbsd64.h: Likewise.
10545 * config/i386/nm-obsd.h: Likewise.
10546 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10547 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10549 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10551 * frv-tdep.c (set_variant_scratch_registers): New function.
10552 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10555 From Richard Sandiford <rsandifo@redhat.com>:
10556 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10558 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10560 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10561 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10562 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10563 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10564 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10565 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10566 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10567 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10568 definitions from frv-tdep.c to frv-tdep.h.
10570 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10572 Add shared library support for FR-V FDPIC ABI:
10573 * Makefile.in (solib-frv.o): Add dependencies.
10574 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10576 (frv_push_dummy_call): Add support for FDPIC ABI.
10577 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10579 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10580 (frv_fdpic_find_canonical_descriptor): Declare.
10581 * solib-frv.c: New file.
10582 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10583 * config/frv/tm-frv.h (solib.h): Include.
10585 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10587 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10588 (frv-tdep.o): Update dependencies.
10589 * frv-tdep.h: New file.
10590 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10591 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10593 (struct gdbarch_tdep): Add new member ``frv_abi''.
10594 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10596 (new_variant): Set ``frv_abi'' field.
10597 (gdb_arch_init): Detect FDPIC executables.
10599 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10601 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10604 2004-03-11 Andrew Cagney <cagney@redhat.com>
10606 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10608 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10610 * solist.h (master_so_list): New function.
10611 * solib.c (master_so_list): Likewise.
10612 * solib-svr4.c (enable_break): Iterate over so_list entries
10613 obtained from master list instead of entries obtained directly
10614 via svr4_current_sos().
10616 2004-03-10 Ben Elliston <bje@gnu.org>
10618 * MAINTAINERS: Update my mail address.
10620 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10622 * remote-m32r-sdi.c: Support hardware watchpoint.
10624 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10626 * user-regs.c: Update copyright years.
10627 (struct user_regs): Rename to gdb_user_regs.
10628 (append_user_reg, builtin_user_regs, user_regs_init)
10629 (user_reg_add, user_reg_map_name_to_regnum)
10630 (usernum_to_user_reg): Update.
10632 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10634 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10635 (skip_children): New functions.
10636 (locate_pdi_sibling): Call skip_children.
10638 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10640 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10641 * gdbtypes.c (check_typedef): Update comments.
10643 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10645 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10646 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10647 pointer. Update comment about comp_unit_head.
10648 (struct abbrev_info): Shorten two int flags.
10649 (dwarf_alloc_abbrev): Take a CU argument.
10650 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10651 each time through the loop. Update cleanup argument.
10652 (psymtab_to_symtab_1): Update cleanup call.
10653 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10655 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10656 Just call obstack_free and clear the pointer.
10658 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10660 * infrun.c (handle_inferior_event): Remove short-circuit code for
10661 events in a different thread.
10663 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10665 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10666 print the whole transfer.
10667 (initialize_targets): Update description of "set debug target".
10669 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10671 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10673 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10675 * MAINTAINERS (write after approval): Add myself.
10677 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10679 * sh-tdep.c (sh_print_registers_info): Use for loop.
10680 Don't skip multiple registers when a float register is encountered.
10682 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10685 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10686 to official SH documentation.
10688 2004-03-07 Andrew Cagney <cagney@redhat.com>
10690 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10693 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10695 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10696 (arm_get_next_pc): Handle BX and BLX.
10698 2004-03-07 Andrew Cagney <cagney@redhat.com>
10700 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10701 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10703 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10704 (hppa_target_read_fp): Delete.
10705 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10706 register_virtual_size, max_register_raw_size,
10707 max_register_virtual_size, register_byte, register_size,
10708 target_read_fp, fp_regnum, and register_bytes. Set register_type
10709 instead of register_virtual_type.
10710 (hppa32_register_type, hppa64_register_type): Replace
10711 hppa32_register_virtual_type and hppa64_register_virtual_type.
10712 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10713 (HPPA_FP_REGNUM): Define.
10715 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10717 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10718 (pa_do_registers_info): Delete.
10719 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10720 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10721 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10723 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10724 GDB_TARGET_IS_HPPA code.
10725 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10726 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10727 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10728 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10729 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10730 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10731 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10732 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10733 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10734 (hppa_frameless_function_invocation, hppa64_store_return_value)
10735 (hppa_store_struct_return, hppa64_extract_return_value)
10736 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10737 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10738 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10739 (find_proc_framesize, deposit_21, restore_pc_queue)
10740 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10741 (rp_saved, pc_in_linker_stub): Delete.
10743 Unconditionally enable 64-bit frame and ABI code.
10744 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10745 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10746 push_dummy_frame, fix_call_dummy, push_arguments,
10747 call_dummy_location, extract_return_value, use_struct_convention,
10748 store_return_value, store_struct_return, saved_pc_after_call,
10749 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10750 frame_chain, frame_chain_valid, frameless_function_invocation,
10751 frame_saved_pc, and pop_frame.
10753 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10754 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10755 (hppa_gdbarch_init): Do not set PC_REGNUM.
10757 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10759 * config/alpha/tm-fbsd.h: Remove file.
10760 * config/alpha/fbsd.mt: Tweak comment.
10761 (TM_FILE): Set to tm-alpha.h.
10763 2004-03-05 Andrew Cagney <cagney@redhat.com>
10765 * infrun.c (step_over_function): When non-legacy code, and no
10766 step_frame_id, use the unwinder to get the caller's frame ID.
10768 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10770 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10771 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10772 bfd_arch_unknown. Adjust comment.
10774 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10775 * i386obsd-tdep.c: Correct spelling in comment.
10776 * i386nbsd-tdep.c: Correct spelling in comment.
10777 * sparc-tdep.c: Correct spelling in comments.
10779 2004-03-05 David Carlton <carlton@kealia.com>
10781 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10784 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10786 * sparc-tdep.c: Fix typo in comment.
10788 2004-03-04 J. Brobecker <brobecker@gnat.com>
10790 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10792 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10794 * dwarf2read.c: Add comment describing memory lifetimes.
10795 (struct dwarf2_pinfo): Update comment.
10796 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10797 (read_enumeration, new_symbol): Don't use obsavestring.
10799 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10801 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10802 instead of amd64_fill_fxsave.
10803 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10804 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10806 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10807 Reorganize code a bit.
10809 2004-03-04 Orjan Friberg <orjanf@axis.com>
10811 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10812 when the frame pointer is pushed. Don't set the frame pointer's
10813 address on the stack unless it's actually located there.
10814 Set the SRP's address on the stack correctly when the PC is still in
10816 (cris_return_value): New function.
10817 (cris_gdbarch_init): Clear deprecated store_return_value,
10818 extract_return_value.
10820 2004-03-02 Jim Blandy <jimb@redhat.com>
10822 * stabsread.c (reg_value_complaint): The maximum register number
10823 is one less than the number of registers.
10825 2004-03-02 Andrew Cagney <cagney@redhat.com>
10827 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10828 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10829 trailing comma and redundant assignment of I386_ST0_REGNUM.
10830 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10831 32-bit segment registers.
10833 2004-03-01 Andrew Cagney <cagney@redhat.com>
10835 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10836 use frame_relative_level and get_next_frame.
10838 2004-02-29 Andrew Cagney <cagney@redhat.com>
10840 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10841 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10842 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10845 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10847 * inflow.c (terminal_inferior): Don't give up the terminal if we
10848 previously couldn't get the inferior's terminal state.
10850 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10852 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10855 2004-02-28 Andrew Cagney <cagney@redhat.com>
10857 * NEWS: Refer to GDB 6.1.
10858 * README: Refer to GDB 6.1.
10859 * PROBLEMS: Refer to GDB 6.1.
10861 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10863 * thread-db.c (disable_thread_signals): Remove unused function.
10865 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10867 * amd64-nat.c: Include "gdb_string.h".
10868 (amd64_collect_native_gregset): Zero-extend the 32-bit
10869 general-purpose registers and %eip.
10871 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10872 * amd64-tdep.c (amd64_collect_fxsave): New function.
10873 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10875 * i387-tdep.h: Update copyright year.
10876 (i387_collect_fxsave): New prototype.
10877 * i387-tdep.c: Update copyright year.
10878 (i387_collect_fxsave): New function containing most of the code
10879 from i387_fill_fxsave.
10880 (i387_fill_fxsave): Call i387_collect_fxsave.
10882 2004-02-28 Andrew Cagney <cagney@redhat.com>
10884 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10885 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10887 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10889 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10891 2004-02-28 Andrew Cagney <cagney@redhat.com>
10893 * utils.c: Use "", instead of <>, to include readline.
10894 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10895 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10896 * source.c, solib.c, exec.c, event-top.c: Ditto.
10897 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10898 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10899 * Makefile.in: Update all dependencies.
10900 (readline_tilde_h, readline_history_h): Define.
10901 (readline_headers): Delete.
10903 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10905 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10906 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10907 "config/i386/tm-lx64.h".
10909 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10910 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10911 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10913 2004-02-28 Andrew Cagney <cagney@redhat.com>
10915 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10917 * breakpoint.c (_initialize_breakpoint): Use
10918 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10919 Add help to show command.
10921 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10923 * i386-nat.c: Reformat to be closer to coding standards.
10924 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10925 `retval'. Make variables `align' and `size' local to while-loop.
10926 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10927 (_initialize_i386_nat): New prototype.
10929 * tui/tui.c: Include <readline/readline.h> instead of
10930 "readline/readline.h". Include it after <term.h> and
10933 2004-02-27 Andrew Cagney <cagney@redhat.com>
10935 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10936 the new frame unwind code.
10937 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10938 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10941 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10942 "return_value" and "push_dummy_call".
10943 (hppa32_use_struct_convention): Delete unused function.
10944 (hppa32_store_return_value): Delete unused function.
10945 (hppa32_extract_return_value): Delete unused function.
10946 (hppa32_stack_align): Delete function.
10948 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10950 * coffread.c (enter_linenos): Don't let rawptr reference memory
10951 outside linetab[]'s limits.
10953 2004-02-27 Andrew Cagney <cagney@redhat.com>
10955 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10956 inferior stack space - the stack needs to grow upwards.
10957 (hppa32_frame_align): New function.
10958 (hppa64_frame_align): Replace hppa_frame_align.
10959 (hppa_gdbarch_init): Update.
10961 2004-02-26 Orjan Friberg <orjanf@axis.com>
10963 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10964 (dwarf2-frame.h): Include.
10965 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10966 Remove static variables related to ABI setting.
10967 (struct gdbarch_tdep): Remove cris_abi member.
10968 (struct frame_extra_info): Remove.
10969 (cris_unwind_cache, stack_item): New structs.
10970 (cris_frame_unwind, cris_frame_base): New variables.
10971 (push_stack_item, pop_stack_item)
10972 (cris_frame_unwind_cache, cris_frame_this_id)
10973 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10974 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10975 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10976 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10977 (cris_reg_struct_has_addr): New functions.
10978 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10979 (cris_frame_saved_pc, cris_saved_pc_after_call,
10980 (cris_store_struct_return, cris_frameless_function_invocation)
10981 (cris_pop_frame, cris_skip_prologue_main)
10982 (cris_abi_original_store_return_value)
10983 (cris_abi_v2_store_return_value)
10984 (cris_abi_original_extract_return_value)
10985 (cris_abi_v2_extract_return_value)
10986 (cris_abi_original_reg_struct_has_addr)
10987 (cris_abi_v2_reg_struct_has_addr)
10988 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10989 (cris_push_return_address, cris_abi_update): Remove.
10990 (_initialize_cris_tdep): Remove ABI command.
10991 (cris_dump_tdep): Ditto.
10992 (cris_gdbarch_init): Remove ABI command.
10993 Set store_return_value, extract_return_value, push_dummy_code,
10994 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10995 frame_unwind_append_sniffer, frame_base_set_default.
10996 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10997 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10998 sizeof_call_dummy_words, get_saved_register, push_return_address,
10999 pop_frame, store_struct_return, frame_init_saved_regs,
11000 init_extra_frame_info, frameless_function_invocation, frame_chain,
11001 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11004 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11006 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11007 * valprint.c (print_hex_chars): Change from static to external.
11008 (print_char_chars): New function.
11009 * printcmd.c (print_scalar_formatted): For integer and enum types
11010 that are longer than LONGEST, perform processing via appropriate
11011 print_*_chars routines.
11013 2004-02-26 Andrew Cagney <cagney@redhat.com>
11015 * Makefile.in: Update dependencies.
11016 Changes from Ulrich Weigand,
11017 * s390-tdep.c: Include "dwarf2-frame.h".
11018 (s390_dwarf2_frame_init_reg): New function.
11019 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11020 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11022 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11024 * breakpoint.c (pending_break_support): New setting variable.
11025 (break_command_1): Account for pending_break_support setting
11026 when creating pending breakpoints.
11027 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11028 (_initialize_breakpoint): Add "set breakpoint pending" and
11029 "show breakpoint pending" commands.
11031 2004-02-26 Andrew Cagney <cagney@redhat.com>
11034 * charset.c (backslashable, backslashed, represented): Remove 'e'
11035 from list of escaped characters, not part of ISO-C.
11037 2004-02-25 J. Brobecker <brobecker@gnat.com>
11039 From Peter Schauer <schauer@pdf.de>:
11040 * tui/tui.c: Move system header includes after local includes.
11041 Fixes a build failure on solaris systems.
11043 2004-02-25 J. Brobecker <brobecker@gnat.com>
11045 * configure.in: Refine the previous change.
11046 * configure: Regenerate.
11048 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11050 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11051 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11052 "amd64-tdep.h" instead of "x86-64-tdep.h".
11053 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11054 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11055 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11056 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11057 and "x86-64-tdep.c".
11058 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11059 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11060 and "x86-64-tdep.c".
11061 * amd64bsd-nat.c: Update copyright year.
11062 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11063 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11065 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11067 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11069 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11071 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11073 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11075 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11076 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11077 * Makefile.in (amd64_linux_tdep_h): Renamed from
11078 x86_64_linux_tdep_h.
11079 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11080 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11081 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11082 (amd64obsd-tdep.o): Update dependencies.
11083 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11085 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11087 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11088 amd64-linux-nat.c amd64-linux-tdep.c.
11089 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11090 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11091 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11092 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11093 amd64-tdep.o and amd64-linux-tdep.o.
11094 (TM_FILE): Set to tm-linux64.h.
11095 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11096 (NAT_FILE): Set to nm-linux64.h.
11097 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11098 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11100 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11102 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11105 2004-02-25 Roland McGrath <roland@redhat.com>
11107 * remote.c (remote_protocol_qPart_auxv): New variable.
11108 (init_all_packet_configs): Initialize it.
11109 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11110 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11111 (show_remote_cmd): Call it.
11112 (_initialize_remote): Initialize commands.
11113 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11114 service TARGET_OBJECT_AUXV requests.
11116 2004-02-25 J. Brobecker <brobecker@gnat.com>
11118 * configure.in: Make sure that the wborder function is available.
11119 Otherwise, search for it in the cur_colr library.
11120 * configure: Regenerate.
11122 2004-02-25 Andrew Cagney <cagney@redhat.com>
11124 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11126 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11128 * config/i386/tm-x86-64linux.h: Tweak comments.
11130 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11132 * MAINTAINERS: Add self to write-after-approval list.
11134 2004-02-25 Andrew Cagney <cagney@redhat.com>
11136 PR cli/1566. Problem found, and fix suggested by David Allan.
11137 * cli/cli-script.c (execute_control_command): Unconditionally
11138 install a cleanup. Default "ret" to "invalid_control". Use
11139 "break" instead of "return" to escape from the switch.
11141 2004-02-24 J. Brobecker <brobecker@gnat.com>
11143 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11144 with the lines macro defined in term.h on AiX.
11145 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11146 a collision with the label_width macro defined in term.h on AiX.
11148 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11150 Committed by Kevin Buettner <kevinb@redhat.com>.
11152 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11153 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11154 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11155 instead of ia64_write_pc().
11156 * ia64-linux-tdep.c (regcache.h): Include.
11157 (ia64_linux_write_pc): New function.
11159 2004-02-23 Roland McGrath <roland@redhat.com>
11161 * auxv.c (info_auxv_command): Fix typos in error messages.
11163 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11165 * x86-64-tdep.h: Tweak comment.
11166 (enum amd64_regnum): New.
11167 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11168 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11169 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11170 (X86_64_XMM1_REGNUM): Removed.
11171 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11172 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11173 prototypes for renamed functions.
11174 * x86-64-tdep.c: Fix typo.
11175 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11177 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11178 Use constants from `enum amd64_regnum' for register numbers.
11179 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11180 (amd64_analyze_prologue, amd64_frame_cache,
11181 amd64_sigtramp_frame_cache): Use constants from `enum
11182 amd64_regnum' for register numbers.
11183 (amd64_supply_fpregset): Adjust for renamed functions.
11184 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11185 `enum amd64_regnum' for register numbers.
11186 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11187 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11188 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11189 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11190 (amd64_linux_fill_gregset): Adjust for renamed macros.
11191 (fetch_core_registers): Adjust for renamed functions.
11192 (amd64_linux_init_abi): Adjust for renamed functions.
11193 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11195 * amd64-nat.c: Adjust for renamed macros.
11196 * amd64bsd-nat.c (fetch_inferior_registers)
11197 (store_inferior_registers): Use constants from `enum amd64_regnum'
11198 for register numbers. Adjust for renamed variables.
11199 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11201 (_initialize_amd64fbsd_nat): Use constants from `enum
11202 amd64_regnum' for register numbers.
11203 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11204 `enum amd64_regnum' for register numbers.
11205 (amd64fbsd_init_abi): Adjust for renamed functions.
11206 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11207 `enum amd64_regnum' for register numbers.
11208 (amd64nbsd_init_abi): Adjust for renamed functions.
11209 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11210 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11211 `enum amd64_regnum' for register numbers.
11212 (amd64obsd_init_abi): Adjust for renamed functions.
11213 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11215 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11217 * breakpoint.c (print_one_breakpoint): Do not output spaces
11218 after printing <PENDING> for a pending breakpoint.
11220 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11222 * printcmd.c (print_scalar_formatted): Initialize val_long
11223 to remove compiler warning message.
11225 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11227 * defs.h (nquery, yquery): New prototypes.
11228 * breakpoint.c (break_command_1): Use new nquery interface.
11229 * utils.c (defaulted_query, nquery, yquery): New functions.
11231 2004-02-23 Andrew Cagney <cagney@redhat.com>
11233 * hppa-tdep.c (hppa_frame_align): New function.
11234 (hppa32_push_dummy_call): New function.
11235 (hppa64_push_dummy_call): New function.
11236 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11239 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11240 FIX_CALL_DUMMY when push_dummy_call is available.
11241 (call_function_by_hand, push_dummy_code): Ditto.
11243 2004-02-22 Andrew Cagney <cagney@redhat.com>
11245 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11246 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11247 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11248 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11249 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11250 call_dummy_location to ON_STACK.
11252 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11254 * x86-64-linux-tdep.c: Tweak comment.
11255 (amd64_linux_supply_gregset): Renamed from
11256 x86_64_linux_supply_gresget.
11257 (amd64_linux_fill_gregset): Renamed from
11258 x86_64_linux_fill_gregset.
11259 (fetch_core_registers): Adjust for renamed functions.
11260 (amd64_core_fns): Renamed from x86_64_core_fns.
11261 (amd64_linux_sigtramp_start): Renamed from
11262 x86_64_linux_sigtramp_start.
11263 (amd64_linux_pc_in_sigtramp): Renamed from
11264 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11265 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11266 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11267 (amd64_linux_sigcontext_addr): Renamed from
11268 x86_64_linux_sigcontext_addr.
11269 (amd64_linux_sc_reg_offset): Renamed from
11270 x86_64_linux_sc_reg_offset.
11271 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11272 Adjust for renamed functions and variables.
11273 (_initialize_amd64_linux_tdep): Renamed from
11274 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11276 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11277 Adjust for renamed functions.
11279 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11280 from x86_64_linux_gregset64_reg_offset.
11281 (amd64_linux_gregset32_reg_offset): Rename from
11282 x86_64_linux_gregset64_reg_offset.
11283 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11284 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11285 (amd64_linux_dr_set_control): Renamed from
11286 x86_64_linux_dr_set_control. Adjust for renamed functions.
11287 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11288 Adjust for renamed functions.
11289 (amd64_linux_dr_reset_addr): Renamed from
11290 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11291 (amd64_linux_dr_get_status): Renamed from
11292 x86_64_linux_dr_get_status. Adjust for renamed functions.
11293 (_initialize_amd64_linux_nat): Renamed from
11294 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11296 * config/i386/nm-x86-64linux.h: Update copyright year.
11297 Adjust for renamed functions.
11299 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11300 amd64fbsd_sigtramp_start.
11301 (amd64fbsd_sigtramp_end_addr): Renamed from
11302 amd64fbsd_sigtramp_end.
11303 (amd64fbsd_init_abi): Adjust for renamed variables.
11304 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11306 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11307 amd64fbsd_sigtramp_start.
11308 (amd64fbsd_sigtramp_end_addr): Renamed from
11309 amd64fbsd_sigtramp_end.
11311 2004-02-22 Andrew Cagney <cagney@redhat.com>
11313 * hppa-tdep.c (hppa32_return_value): New function.
11314 (hppa64_return_value): New function.
11315 (hppa_gdbarch_init): Set return_value; keep disabled.
11317 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11318 struct-return and inferior function call methods.
11320 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11322 (struct hppa_frame_cache): Define.
11323 (hppa_frame_cache, hppa_frame_this_id): New functions.
11324 (hppa_frame_prev_register): New function.
11325 (hppa_frame_unwind, hppa_frame_base): New variables.
11326 (hppa_frame_unwind_sniffer): New function.
11327 (hppa_frame_base_address, hppa_unwind_pc): New function.
11328 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11329 sniffer, and frame base sniffer; keep disabled.
11330 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11331 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11333 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11334 to predicates for "seriously old code".
11336 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11339 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11341 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11343 * config/pa/tm-hppa.h: Update copyright.
11344 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11345 (deprecated_init_frame_pc_default): Delete declaration.
11346 (hppa_frame_init_saved_regs): Delete declaration.
11347 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11348 * hppa-tdep.c: Include "arch-utils.h".
11349 (hppa_gdbarch_init): Set deprecated init_frame_pc
11350 and deprecated frame_init_saved_regs.
11351 (hppa_frame_init_saved_regs): Make static.
11353 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11355 Remove old 386BSD support.
11356 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11357 * configure.host: Remove i[34567]86-*-bsd*.
11358 * configure.tgt: Remove i[34567]86-*-bsd*.
11359 * i386b-nat.c: Removed.
11360 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11361 (i386b-nat.o): Remove dependencies.
11363 * config/i386/i386bsd.mh: Removed.
11364 * config/i386/i386bsd.mt: Removed.
11365 * config/i386/nm-i386bsd.h: Removed.
11366 * config/i386/tm-i386bsd.h: Removed.
11367 * config/i386/xm-i386bsd.h: Removed.
11369 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11371 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11372 (amd64fbsd_init_abi): Set link map offsets.
11373 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11374 (amd64nbsd_init_abi): Set link map offsets.
11375 * amd64obsd-tdep.c: Include "solib-svr4.h".
11376 (amd64obsd_init_abi): Set link map offsets.
11377 * i386fbsd-tdep.c: Include "solib-svr4.h".
11378 (i386fbsd_init_abi): Set link map offsets.
11379 * i386nbsd-tdep.c: Include "solib-svr4.h".
11380 (i386nbsdelf_init_abi): Set link map offsets.
11381 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11382 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11383 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11384 solib-legacy.o and core-aout.o. Reformat.
11385 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11386 solib-svr4.o, solib-legacy.o. Reformat.
11387 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11388 * config/i386/nbsdelf.mh: Reformat.
11389 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11390 solib-svr4.o, solib-legacy.o and corelow.o.
11391 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11392 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11393 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11394 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11395 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11396 (TM_FILE): Set to tm-fbsd.h.
11397 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11398 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11400 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11402 (TM_FILE): Set to nm-nbsd.h.
11403 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11404 Simplify shared library support. Don't include "elf/common.h".
11405 (SVR4_SHARED_LIBS): Don't define.
11406 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11408 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11409 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11410 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11411 Don't include "i386/tm-i386.h". Include "solib.h".
11412 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11413 Don't include "i386/tm-i386.h".
11414 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11415 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11416 Include "i386/xm-i386.h".
11417 (HOST_LONG_DOUBLE_FORMAT): Remove.
11419 Fix OpenBSD/i386 sigtramp recognition.
11420 * i386-tdep.h: Update copyright year.
11421 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11422 (i386bsd_sigtramp_end): New prototypes.
11423 (i386fbsd_sigtramp_start_addr): Renamed from
11424 i386fbsd_sigtramp_start.
11425 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11426 (i386obsd_sigtramp_start_addr): Renamed from
11427 i386obsd_sigtramp_start.
11428 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11429 * i386bsd-tdep.c: Update copyright year.
11430 (i386bsd_pc_in_sigtramp): Make public.
11431 * i386fbsd-nat.c: Update copyright year.
11432 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11433 * i386fbsd-tdep.c: Update copyright year.
11434 (i386fbsd_sigtramp_start_addr): Renamed from
11435 i386fbsd_sigtramp_start.
11436 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11437 (i386fbsdaout_init_abi): Adjust for renamed variables.
11438 * i386obsd-nat.c: Update copyright year.
11439 (_initialize_i386obsd_nat): Adjust for renamed variables.
11440 * i386obsd-tdep.c: Include "target.h".
11441 (i386obsd_page_size): New variable.
11442 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11443 (i386obsd_sigtramp_end): New functions.
11444 (i386obsd_sigtramp_start_addr): Renamed from
11445 i386obsd_sigtramp_start.
11446 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11447 (i386obsd_init_abi): Adjust for renamed variables. Set
11448 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11449 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11451 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11452 trampoline change in OpenBSD kernel.
11454 * amd64-nat.c: Update copyright year.
11455 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11456 architecture from REGCACHE.
11458 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11459 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11461 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11463 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11464 i[34567]86-*-openbsd3.[0-3].
11465 * config/i386/obsdaout.mh: New file.
11467 * config/i386/obsd.mh (MH_FLAGS): Remove.
11470 * i386obsd-tdep.c: Update copyright years. Include
11472 (i386obsd_init_abi): Don't set regset_from_core_section here.
11473 (i386obsd_aout_init_abi): New function. Set
11474 regset_from_core_section here.
11475 (i386obsd_elf_init_abi): New function.
11476 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11477 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11478 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11479 (TM_FILE): Set to tm-nbsd.h.
11481 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11484 * solib-svr4.h: Update copyright year.
11485 (svr4_ilp32_fetch_link_map_offsets)
11486 (svr4_lp64_fetch_link_map_offsets): New prototype.
11487 * solib-svr4.c: Update copyright year.
11488 (svr4_ilp32_fetch_link_map_offsets)
11489 (svr4_lp64_fetch_link_map_offsets): New function.
11491 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11493 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11494 to the partial symbol table.
11496 2004-02-20 J. brobecker <brobecker@gnat.com>
11498 * PROBLEMS: Add description of problem documented under gdb/1560.
11500 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11502 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11504 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11506 (amd64obsd_init_abi): Reorder initializations. Use
11507 amd64obsd_r_reg_offset to initialize the general-purpose register
11508 set details. Set regset_from_core_section.
11509 (_initialize_amd64obsd_tdep): Rename from
11510 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11511 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11512 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11514 * NEWS (New native configurations): Mention OpenBSD/alpha.
11515 * configure.tgt: Add alpha*-*-openbsd*.
11516 * configure.host: Add alpha*-*-openbsd*.
11517 * alphanbsd-tdep.c: Update copyright year.
11518 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11520 2004-02-20 Andrew Cagney <cagney@redhat.com>
11523 * configure.tgt: Delete target "none-*-*".
11524 * configure.host: Delete host "none-*-*".
11525 * config/none/none.mh: Delete file.
11526 * config/none/none.mt: Delete file.
11527 * config/none/xm-none.h: Delete file.
11528 * config/none/tm-none.h: Delete file.
11529 * config/none/nm-none.h: Delete file.
11531 2004-02-19 Fred Fish <fnf@redhat.com>
11533 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11534 cache->uses_fp prior to setting it.
11536 2004-02-19 Fred Fish <fnf@redhat.com>
11538 Fix for PR breakpoint/1558.
11539 * sh-tdep.c (IS_JSR): New macro.
11540 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11542 2004-02-19 Jim Blandy <jimb@redhat.com>
11544 * findvar.c (value_from_register): Doc fix.
11546 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11548 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11549 type being greater than sizeof of host's LONGEST. Always use
11550 unpack_long() unless format 'f' chosen.
11552 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11554 Committed by Elena Zannoni <ezannoni@redhat.com>
11556 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11557 contains a symbol wich is the best, non-exact match for the given
11558 pc. Update comments.
11560 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11562 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11563 macro, which was part of the now removed Mach 3 port.
11564 * utils.c (request_quit): Ditto.
11566 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11568 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11569 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11571 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11573 Committed by Mark Kettenis <kettenis@gnu.org>.
11575 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11578 2004-02-18 Andrew Cagney <cagney@redhat.com>
11580 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11581 CONFIG_INSTALL and CONFIG_UNINSTALL.
11582 * configure: Re-generate.
11583 * interps.h (INTERP_TUI): Define.
11584 * Makefile.in: Update dependencies.
11586 (tui-main.o): Specify dependencies.
11587 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11588 * tui/tui-main.c: New file.
11590 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11592 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11593 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11595 * configure.host: Add x86_64-*-openbsd*.
11596 * configure.tgt: Add x86_64-*-openbsd*.
11597 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11599 * tui/tui.c: Don't include <malloc.h>.
11601 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11602 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11605 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11606 static. Remove extraneous whitespace.
11607 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11610 2004-02-17 Jim Blandy <jimb@redhat.com>
11612 * findvar.c (value_from_register): Doc fix.
11614 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11616 Committed by Jim Blandy <jimb@redhat.com>.
11618 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11619 CORE_ADDR as type for selectors. Correct types for GNU run time
11620 message lookup function to use double indirection.
11621 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11622 * objc-lang.h (lookup_child_selector): Adapt prototype.
11624 * s390-nat.c (SUBOFF): New macro.
11625 (supply_gregset, fill_gregset): Use it to handle debugging
11626 of 32-bit exectuables running under a 64-bit kernel.
11627 * s390-tdep.c: Include "solib-svr4.h".
11628 (s390_svr4_fetch_link_map_offset): New function.
11629 (s390x_svr_fetch_link_map_offset): Likewise.
11630 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11631 * Makefile.in (s390-tdep.o): Update dependencies.
11633 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11635 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11636 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11637 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11638 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11639 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11640 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11641 S390_SIGNAL_FRAMESIZE,
11642 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11643 (struct frame_extra_info): Remove.
11644 (s390_memset_extra_info): Remove.
11645 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11646 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11647 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11648 (is_rse): Renamed to ...
11649 (is_rsy): ... this. Support long displacements.
11650 (is_rxe): Renamed to ...
11651 (is_rxy): ... this. Support long displacements.
11652 (compute_x_addr): Support long displacements.
11653 (struct s390_prologue_data): New data type.
11654 (s390_on_stack): Change API to use struct s390_prologue_data.
11655 (s390_store): Reimplement.
11656 (s390_load): New function.
11657 (s390_get_signal_frame_info): Remove.
11658 (s390_get_frame_info): Remove, replace by ...
11659 (s390_analyze_prolog): ... this new function.
11660 (s390_check_function_end): Remove.
11661 (s390_function_start): Remove.
11662 (s390_frameless_function_invokation): Remove.
11663 (s390_is_sigreturn): Remove.
11664 (s390_init_frame_pc_first): Remove.
11665 (s390_init_frame_extra_info): Remove.
11666 (s390_frame_init_saved_regs): Remove.
11667 (s390_frame_saved_pc_nofix): Remove.
11668 (s390_frame_saved_pc): Remove.
11669 (s390_frame_chain): Remove.
11670 (s390_fp_regnum, s390_read_fp): Remove.
11671 (s390_pop_frame_regular, s390_pop_frame): Remove.
11672 (s390_saved_pc_after_call): Remove.
11673 (s390_skip_prologue): Reimplement.
11674 (s390_in_function_epilogue_p): Support long displacements.
11675 (struct s390_unwind_cache): New data structure.
11676 (s390_frame_unwind_cache): New function.
11677 (s390_prologue_frame_unwind_cache): Likewise.
11678 (s390_backchain_frame_unwind_cache): Likewise.
11679 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11680 (s390_frame_unwind): Define.
11681 (s390_frame_sniffer): New function.
11682 (struct s390_pltstub_unwind_cache): New data structure.
11683 (s390_pltstub_frame_unwind_cache): New function.
11684 (s390_pltstub_frame_this_id): Likewise.
11685 (s390_pltstub_frame_prev_register): Likewise.
11686 (s390_pltstub_frame_unwind): Define.
11687 (s390_pltstub_frame_sniffer): New function.
11688 (struct s390_sigtramp_unwind_cache): New data structure.
11689 (s390_sigtramp_frame_unwind_cache): New function.
11690 (s390_sigtramp_frame_this_id): Likewise.
11691 (s390_sigtramp_frame_prev_register): Likewise.
11692 (s390_sigtramp_frame_unwind): Define.
11693 (s390_sigtramp_frame_sniffer): New function.
11694 (s390_frame_base_address, s390_local_base_address): New functions.
11695 (s390_frame_base): Define.
11696 (s390_unwind_pc, s390_unwind_sp): New function.
11697 (s390_push_dummy_call): Use new frame base location.
11698 (s390_unwind_dummy_id): Likewise.
11699 (s390_gdbarch_init): Remove calls to:
11700 set_gdbarch_frameless_function_invocation,
11701 set_gdbarch_deprecated_init_frame_pc,
11702 set_gdbarch_deprecated_frame_chain,
11703 set_gdbarch_deprecated_frame_init_saved_regs,
11704 set_gdbarch_deprecated_pop_frame,
11705 set_gdbarch_deprecated_init_extra_frame_info,
11706 set_gdbarch_deprecated_init_frame_pc_first,
11707 set_gdbarch_deprecated_target_read_fp,
11708 set_gdbarch_deprecated_frame_saved_pc,
11709 set_gdbarch_deprecated_saved_pc_after_call,
11710 set_gdbarch_deprecated_fp_regnum.
11712 set_gdbarch_in_solib_call_trampoline,
11713 frame_unwind_append_sniffer,
11714 frame_base_set_default,
11715 set_gdbarch_unwind_pc,
11716 set_gdbarch_unwind_sp.
11717 * Makefile.in (s390-tdep.o): Update dependencies.
11719 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11720 (S390_STACK_FRAME_OVERHEAD): Remove.
11721 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11722 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11723 (s390_promote_integer_argument): Remove.
11724 (s390_cannot_extract_struct_value_address): Remove.
11725 (s390_use_struct_convention, s390_store_struct_return): Remove.
11726 (s390_extract_return_value, s390_store_return_value): Remove.
11727 (s390_return_value_convention, s390_return_value): New functions.
11728 (is_float_singleton): Handle typedefs.
11729 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11730 Remove, replace by ...
11731 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11732 s390_function_arg_integer): ... these new functions.
11733 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11734 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11735 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11738 set_gdbarch_deprecated_store_struct_return,
11739 set_gdbarch_deprecated_extract_return_value,
11740 set_gdbarch_deprecated_store_return_value,
11741 set_gdbarch_use_struct_convention,
11742 set_gdbarch_extract_struct_value_address,
11743 set_gdbarch_deprecated_pc_in_call_dummy,
11744 set_gdbarch_deprecated_push_arguments,
11745 set_gdbarch_deprecated_save_dummy_frame_tos,
11746 set_gdbarch_deprecated_push_return_address,
11747 set_gdbarch_deprecated_sizeof_call_dummy_words,
11748 set_gdbarch_deprecated_call_dummy_words,
11749 set_gdbarch_deprecated_dummy_write_sp.
11751 set_gdbarch_push_dummy_call,
11752 set_gdbarch_unwind_dummy_id,
11753 set_gdbarch_return_value.
11755 * config/s390/nm-linux.h: Update comments.
11756 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11757 (STOPPED_BY_WATCHPOINT): Redefine.
11758 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11759 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11760 (s390_stopped_by_watchpoint): Likewise.
11761 (watch_area_cnt): Remove.
11762 * s390-nat.c: Update comments.
11763 (watch_area): Remove typedef.
11764 Global replace watch_area by struct watch_area.
11765 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11766 (s390_stopped_by_watchpoint): Remove pid argument,
11767 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11768 (s390_fix_watch_points): Remove pid argument,
11769 use s390_inferior_tid. Recompute area spanned by watchpoints.
11770 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11771 argument. Reimplement.
11773 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11774 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11775 (FETCH_INFERIOR_REGISTERS): Define.
11776 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11778 * config/s390/s390x.mt: Remove.
11779 * config/s390/tm-s390.h: Remove.
11780 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11781 (TARGET_ELF64): Remove.
11782 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11783 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11784 s390*-*-* case; always set gdb_target to s390.
11785 * regformats/reg-s390.dat: Remove control registers.
11786 * regformats/reg-s390x.dat: Likewise.
11787 * s390-tdep.h: New file.
11788 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11789 Include "inferior.h" and "s390-tdep.h".
11790 Remove private definition of offsetof.
11791 (s390_register_u_addr): Remove.
11792 (regmap_gregset, regmap_fpregset): Define.
11793 (supply_gregset, fill_gregset): Reimplement.
11794 (supply_fpregset, fill_fpregset): Likewise.
11795 (s390_inferior_tid): New function.
11796 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11797 (fetch_inferior_registers, store_inferior_registers): Likewise.
11798 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11799 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11800 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11801 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11802 (struct gdbarch_tdep): Define.
11803 (struct s390_register_info): Define.
11804 (s390_register_info): New variable.
11805 (s390_register_name): Reimplement.
11806 (s390_register_type): New function.
11807 (s390_register_raw_size, s390x_register_raw_size): Remove.
11808 (s390_cannot_fetch_register): Remove.
11809 (s390_register_byte): Remove.
11810 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11811 (s390_dwarf_regmap): New variable.
11812 (s390_dwarf_reg_to_regnum): New function.
11813 (s390_stab_reg_to_regnum): Remove.
11814 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11815 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11816 (s390_convert_register_p): Likewise.
11817 (s390_register_to_value, s390_value_to_register): Likewise.
11818 (s390_register_reggroup_p): Likewise.
11819 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11820 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11821 (s390_supply_regset, s390_regset_from_core_section): New functions.
11822 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11823 (S390_FPR_SIZE): Likewise.
11824 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11825 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11826 (S390_NUM_GPRS): Move here from tm-s390.h.
11827 (S390_NUM_FPRS): Likewise.
11828 (s390_in_function_epilogue_p): New function.
11829 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11830 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11831 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11832 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11833 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11835 set_gdbarch_deprecated_max_register_raw_size,
11836 set_gdbarch_deprecated_max_register_virtual_size,
11837 set_gdbarch_deprecated_register_byte,
11838 set_gdbarch_cannot_fetch_register,
11839 set_gdbarch_cannot_store_register,
11840 set_gdbarch_deprecated_register_size,
11841 set_gdbarch_deprecated_register_raw_size,
11842 set_gdbarch_deprecated_register_virtual_size,
11843 set_gdbarch_deprecated_register_virtual_type,
11844 set_gdbarch_deprecated_register_bytes.
11846 set_gdbarch_num_pseudo_regs,
11847 set_gdbarch_register_type,
11848 set_gdbarch_convert_register_p,
11849 set_gdbarch_register_to_value,
11850 set_gdbarch_value_to_register,
11851 set_gdbarch_register_reggroup_p,
11852 set_gdbarch_regset_from_core_section,
11853 set_gdbarch_pseudo_register_read,
11854 set_gdbarch_pseudo_register_write,
11855 set_gdbarch_in_function_epilogue_p.
11856 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11857 (s390_tdep_h): New variable.
11859 2004-02-17 Jim Blandy <jimb@redhat.com>
11861 * findvar.c (value_from_register): If the type has no length, just
11862 return an acceptable value --- don't report an internal error.
11864 * stabsread.c (read_type): If we find any type numbers that are
11865 forward references, complain if the references aren't resolved by
11866 the time we're finished reading.
11867 (cleanup_undefined_types): Make error message more appropriate for
11870 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11872 * Makefile.in (defs_h): Remove dependency on progress_h.
11873 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11875 * main.c (captured_main): Delete use of START_PROGRESS and
11878 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11880 * objfiles.c (terminate_minimal_symbol_table): Add back
11881 initialization of MSYMBOL_TYPE.
11883 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11885 Committed by Andrew Cagney.
11886 * Makefile.in (ia64_tdep_h): New macro.
11887 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11888 (ia64-tdep.o): Likewise.
11889 * ia64-tdep.h: New file.
11890 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11891 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11892 (ia64_aix_sigcontext_register_address): Likewise.
11893 (ia64_linux_getunwind_table): Delete declaration.
11894 * ia64-linux-tdep.c: Likewise.
11896 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11898 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11899 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11900 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11902 2004-02-17 Andrew Cagney <cagney@redhat.com>
11904 * symtab.c (skip_prologue_using_sal): New function.
11905 * symtab.h (skip_prologue_using_sal): Declare.
11906 * frv-tdep.c: Include "symtab.h".
11907 (skip_prologue_using_sal): Delete function.
11908 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11909 * rs6000-tdep.c (refine_prologue_limit): Mention
11910 skip_prologue_using_sal.
11911 * ia64-tdep.c (refine_prologue_limit): Ditto.
11912 * Makefile.in: Update dependencies.
11914 2004-02-16 Andrew Cagney <cagney@redhat.com>
11916 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11917 START_INFERIOR_TRAPS_EXPECTED.
11918 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11919 START_INFERIOR_TRAPS_EXPECTED.
11920 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11922 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11923 macro, moved to "nm-osf.h". Update copyright.
11924 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11927 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11928 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11929 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11930 frameless_look_for_prologue.
11931 * frame.h (legacy_frameless_look_for_prologue): Rename
11932 frameless_look_for_prologue.
11933 * gdbarch.h, gdbarch.c: Re-generate.
11934 * sh64-tdep.c (sh64_gdbarch_init): Update.
11935 * sh-tdep.c (sh_gdbarch_init): Update.
11936 * s390-tdep.c (s390_gdbarch_init): Update.
11937 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11938 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11939 * m68k-tdep.c (m68k_gdbarch_init): Update.
11940 (delta68_frame_args_address): Update.
11941 * m32r-tdep.c (m32r_gdbarch_init): Update.
11942 * hppa-tdep.c (hppa_gdbarch_init): Update.
11943 * h8300-tdep.c (h8300_gdbarch_init): Update.
11944 * frv-tdep.c (frv_gdbarch_init): Update.
11945 (frv_frameless_function_invocation): Update.
11946 * cris-tdep.c (cris_gdbarch_init): Update.
11947 (cris_frameless_function_invocation): Update.
11948 * avr-tdep.c (avr_gdbarch_init): Update.
11949 * arm-tdep.c (arm_gdbarch_init): Update.
11950 * stack.c (frame_info): Update, call predicate.
11951 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11952 * frame.c (legacy_get_prev_frame): Update, call predicate..
11953 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11954 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11955 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11957 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11958 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11959 * vax-tdep.c (vax_gdbarch_init): Ditto.
11961 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11964 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11966 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11969 2004-02-16 Andrew Cagney <cagney@redhat.com>
11971 * tui/tui-windata.c: Include "gdb_string.h".
11972 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11973 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11974 * Makefile.in: Update dependencies.
11976 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11978 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11979 * infrun.c: Include "gdb_assert.h".
11980 (singlestep_ptid, saved_singlestep_ptid)
11981 (stepping_past_singlestep_breakpoint): New variables.
11982 (resume): Set singlestep_ptid. Check for singlestep thread
11984 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11985 (handle_inferior_event): Handle singlestep thread hop.
11987 2004-02-16 Andrew Cagney <cagney@redhat.com>
11989 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11990 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11991 (dwarf2_frame_init_reg): Ditto.
11993 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11994 suggested by Joshua Neuheisel
11996 * configure.in: Always check for curses, including pdcurses.
11997 Warn, instead of error, when no curses are found. Enable TUI when
11998 curses is available.
11999 * configure: Re-generate.
12001 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12003 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12004 sh_sh4_register_convert_to_virtual.
12005 (sh_register_convert_to_raw): Rename from
12006 sh_sh4_register_convert_to_raw.
12007 (sh_pseudo_register_read): Accomodate above name change.
12008 (sh_pseudo_register_write): Ditto.
12010 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12012 * sh-tdep.c (sh_generic_register_name): Remove.
12013 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12015 2004-02-15 Andrew Cagney <cagney@redhat.com>
12017 * configure.in (build_warnings): Add -Wunused-function.
12018 * configure: Re-generate.
12020 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12021 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12023 * procfs.c (procfs_init_inferior): Assume that
12024 START_INFERIOR_TRAPS_EXPECTED is defined.
12025 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12026 * config/ns32k/tm-nbsd.h: Delete file,
12027 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12029 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12030 * config/vax/tm-vax.h: Delete file.
12032 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12033 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12034 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12035 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12036 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12037 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12038 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12040 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12042 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12043 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12044 (struct dwarf2_frame_ops): New.
12045 (dwarf2_frame_default_init_reg): New function, based on
12046 dwarf2_frame_init_reg.
12047 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12048 (dwarf2_frame_init_reg): Call architecture-specific function.
12049 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12050 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12051 instead of dwarf2_frame_data.
12052 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12053 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12055 2004-02-15 Andrew Cagney <cagney@redhat.com>
12057 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12058 register_gdbarch_swap.
12059 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12060 * f-lang.c (_initialize_f_language): Update, use
12061 DEPRECATED_REGISTER_GDBARCH_SWAP.
12062 * remote.c (_initialize_remote): Ditto.
12063 * regcache.c (_initialize_regcache): Ditto.
12064 * parse.c (_initialize_parse): Ditto.
12065 * infrun.c (_initialize_infrun): Ditto.
12066 * mi/mi-main.c (_initialize_mi_main): Ditto.
12067 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12069 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12070 poking .cacheable directly.
12071 * symfile.c (symfile_bfd_open): Ditto.
12073 * Makefile.in: Update all dependencies.
12075 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12076 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12077 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12078 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12079 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12081 2004-02-14 Andrew Cagney <cagney@redhat.com>
12083 * arch-utils.c (legacy_convert_register_p): Check
12084 DEPRECATED_REGISTER_CONVERTIBLE_P.
12085 * findvar.c (value_of_register): Ditto.
12087 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12088 * gdbarch.h, gdbarch.c: Re-generate.
12089 * arch-utils.c (deprecated_register_convertible_not): Delete.
12090 * arch-utils.h (deprecated_register_convertible_not): Delete.
12091 * mi/mi-main.c (get_register): Update. Update copyright.
12092 * infcmd.c (default_print_registers_info): Update.
12094 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12095 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12096 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12097 * gdbarch.h, gdbarch.c: Re-generate.
12098 * frame.c (deprecated_get_next_frame_hack): Delete function.
12099 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12100 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12102 * infcall.c (call_function_by_hand): Update.
12104 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12106 * symfile.c (init_entry_point_info, entry_point_address): Move
12108 * objfiles.c (init_entry_point_info, entry_point_address):..to
12110 * symfile.h (init_entry_point_info, entry_point_address): Remove
12112 * objfiles.h (init_entry_point_info, entry_point_address):Add
12114 * cris-tdep.c: Remove include of symfile.h. Add include of
12116 * infcall.c: Ditto.
12117 * mcore-tdep.c: Ditto.
12118 * mn10300-tdep.c: Ditto.
12119 * sh64-tdep.c: Ditto.
12120 * v850-tdep.c: Ditto.
12121 * arm-tdep.c: Remove include of symfile.h.
12122 * blockframe.c: Ditto.
12123 * coffread.c: Ditto.
12124 * dbxread.c: Ditto.
12125 * dwarf2read.c: Ditto.
12126 * dwarfread.c: Ditto.
12127 * frv-tdep.c: Ditto.
12128 * ia64-tdep.c: Ditto.
12129 * mdebugread.c: Ditto.
12130 * mipsread.c: Ditto.
12131 * rs6000-tdep.c: Ditto.
12132 * s390-tdep.c: Ditto.
12133 * sh-tdep.c: Ditto.
12134 * xstormy16-tdep.c: Ditto.
12135 * gdbarch.sh: Remove include of symfile.h.
12136 * gdbarch.c: Regenerate.
12137 * solib-irix.c (enable_break): Use entry_point_address().
12138 Add comment about include file.
12139 * xcoffread.c: Add comment about include file.
12140 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12141 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12142 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12143 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12144 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12146 2004-02-13 Andrew Cagney <cagney@redhat.com>
12148 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12149 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12151 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12153 2004-02-12 Fred Fish <fnf@redhat.com>
12155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12156 set_gdbarch_store_return_value.
12158 2004-02-12 Andrew Cagney <cagney@redhat.com>
12160 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12161 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12162 (interrupt_query): Ditto.
12163 (ofunc): Delete unused variable.
12164 * cris-tdep.c (cris_abi): Delete unused function.
12165 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12166 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12167 (cris_get_asr_quick_shift_steps): Ditto.
12168 (cris_skip_prologue_frameless_p): Ditto.
12169 * arm-tdep.c (arm_push_return_address): Delete unused function.
12170 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12171 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12172 * s390-tdep.c (s390_function_start): Delete unused function.
12174 2004-02-12 Andrew Cagney <cagney@redhat.com>
12176 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12177 gdbarch.h, gdbarch.c: Re-generate.
12178 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12179 to generic_prologue_frameless_p.
12180 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12181 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12183 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12185 * mips-linux-tdep.c: Include "frame.h".
12186 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12187 (mips_linux_skip_resolver): New functions.
12188 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12189 and set_gdbarch_in_solib_call_trampoline.
12190 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12191 to after set_gdbarch_in_solib_return_trampoline. Only set the
12192 solib hooks to mips16 functions if the OS ABI is unknown.
12193 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12194 including "config/tm-linux.h".
12195 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12196 * Makefile.in (mips-linux-tdep.o): Update.
12198 2004-02-11 David Carlton <carlton@kealia.com>
12200 * linespec.c (decode_compound): Only look for a class symbol when
12201 considering all but the rightmost component.
12203 2004-02-11 Andrew Cagney <cagney@redhat.com>
12205 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12206 abi code are are separatly grouped.
12208 2004-02-11 Andrew Cagney <cagney@redhat.com>
12210 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12211 * gdbarch.h, gdbarch.c: Re-generate.
12212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12213 * v850-tdep.c (v850_gdbarch_init): Update.
12214 * sh64-tdep.c (sh64_gdbarch_init): Update.
12215 * sh-tdep.c (sh_gdbarch_init): Update.
12216 * s390-tdep.c (s390_gdbarch_init): Update.
12217 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12218 * mips-tdep.c (mips_gdbarch_init): Update.
12219 * mcore-tdep.c (mcore_gdbarch_init): Update.
12220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12221 * m32r-tdep.c (m32r_gdbarch_init): Update.
12222 * ia64-tdep.c (ia64_gdbarch_init): Update.
12223 * hppa-tdep.c (hppa_gdbarch_init): Update.
12224 * h8300-tdep.c (h8300_gdbarch_init): Update.
12225 * frv-tdep.c (frv_gdbarch_init): Update.
12226 * d10v-tdep.c (d10v_gdbarch_init): Update.
12227 * cris-tdep.c (cris_gdbarch_init): Update.
12228 * avr-tdep.c (avr_gdbarch_init): Update.
12229 * arm-tdep.c (arm_gdbarch_init): Update.
12230 * alpha-tdep.c (alpha_gdbarch_init): Update.
12232 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12234 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12236 (sh_sh4al_dsp_register_name): Ditto.
12238 2004-02-10 Andrew Cagney <cagney@redhat.com>
12240 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12241 (mips_init_frame_pc_first): Delete function.
12242 (mips_frame_saved_pc): Delete function.
12243 (mips_frame_chain): Delete function.
12244 (mips_init_extra_frame_info): Delete function.
12245 (mips_xfer_register): Delete unused variable "reg".
12246 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12247 (mips_n32n64_return_value): Delete unused variable "reg".
12248 (mips_n32n64_return_value): Delete unused variable "pos".
12249 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12250 (mips_o32_return_value): Delete unused variable "pos".
12251 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12252 (mips_print_fp_register): Delete unused variable "namelen"
12253 (mips_print_fp_register): Delete unused variable "flt2"
12254 (get_frame_pointer): Delete function.
12255 (cached_proc_desc): Delete static variable.
12256 (mips_pop_frame): Delete function.
12257 (mips_find_saved_regs): Delete function.
12258 (mips_get_saved_register): Delete function.
12259 (mips_saved_pc_after_call): Delete function.
12260 (SIGFRAME_BASE): Delete macro.
12261 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12262 (SIGFRAME_PC_OFF): Delete macro.
12263 (SIGFRAME_REGSAVE_OFF): Delete macro.
12264 (mips_dump_tdep): Do not print deleted macro definitions.
12266 2004-02-10 Andrew Cagney <cagney@redhat.com>
12268 * Makefile.in (SFILES): Remove explictly listed tui files.
12269 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12271 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12273 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12274 to use paddr functions to format ia64 addresses and long values.
12275 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12276 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12277 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12278 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12279 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12281 2004-02-10 Andrew Cagney <cagney@redhat.com>
12283 * defs.h: Do not include "tui.h".
12284 * gdb_curses.h: New file.
12285 * tui/tui-hooks.h: New file.
12286 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12287 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12288 (tui_initialize_io): Delete declaration.
12289 (tui_initialize_readline: Delete redundant declaration.
12290 (struct tui_point): Delete definition.
12291 * tui/tui-data.h (struct tui_point): Define.
12292 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12293 * utils.c: Include "tui/tui.h".
12294 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12295 * printcmd.c [TUI]: Include "tui/tui.h".
12296 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12297 * tui/tui-command.c: Include "gdb_curses.h".
12298 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12299 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12300 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12301 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12302 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12303 * Makefile.in: Update all dependencies.
12304 (tui_hooks_h, gdb_curses_h): Define.
12305 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12307 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12309 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12310 auxf2. Add comments about some other rarely used fields.
12312 2004-02-10 Andrew Cagney <cagney@redhat.com>
12314 * Makefile.in (init.c): Fix script removing duplicates. Problem
12315 reported by Peter Schauer.
12317 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12319 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12320 obstack_specify_allocation.
12321 * objfiles.c (allocate_objfile): Ditto.
12322 * solib-sunos.c (solib_add_common_symbols)
12323 (allocate_rt_common_objfile): Ditto.
12324 * symfile.c (reread_symbols): Ditto.
12325 * gdb_obstack.h: Add comment.
12327 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12329 * linespec.c (decode_line_1, locate_first_half)
12330 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12331 commented out code.
12333 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12335 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12338 2004-02-09 Andrew Cagney <cagney@redhat.com>
12340 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12341 fails, try find_pc_section. Fix PR c++/1267.
12342 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12343 instead of find_pc_mapped_section.
12344 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12345 not default to the section containing PC. Fix PR symtab/1519.
12347 2004-02-09 Andrew Cagney <cagney@redhat.com>
12349 * Makefile.in (mips-tdep.o): Update dependencies.
12350 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12352 (mips_unwind_pc): Return the pseudo PC register.
12353 (mips_unwind_dummy_id): New function.
12354 (mips16_fetch_instruction): New function.
12355 (mips32_fetch_instruction): New function.
12356 (struct mips_frame_cache): Define.
12357 (mips_mdebug_frame_cache): New function.
12358 (mips_mdebug_frame_this_id): New function.
12359 (mips_mdebug_frame_prev_register): New function.
12360 (mips_mdebug_frame_unwind): Define.
12361 (mips_mdebug_frame_sniffer): New function.
12362 (mips_mdebug_frame_base_address): New function.
12363 (mips_mdebug_frame_base): Define.
12364 (mips_mdebug_frame_base_sniffer): New function.
12365 (mips_gdbarch_init): Append unwind and base sniffers. Set
12368 2004-02-08 Andrew Cagney <cagney@redhat.com>
12370 * frame.c: Print both the register number and name.
12372 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12373 and a sed into a single sed. Make .c and .o patterns more robust.
12375 (INIT_FILES): Replace OBS with COMMON_OBS.
12376 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12378 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12380 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12381 the PT_WCOOKIE request.
12383 2004-02-08 Andrew Cagney <cagney@redhat.com>
12385 * mips-tdep.c (mips_unwind_pc): New function.
12386 (mips_gdbarch_init): Set mips_unwind_pc.
12388 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12389 (get_frame_id): Allow the UNKNOWN_FRAME.
12390 (frame_register_unwind, get_frame_type): Ditto.
12392 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12393 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12394 unwind_dummy_id indicates a legacy frame.
12396 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12397 * configure: Re-generate.
12399 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12402 2004-02-08 Andrew Cagney <cagney@redhat.com>
12404 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12406 * configure: Re-generate.
12407 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12408 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12409 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12410 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12411 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12412 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12413 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12414 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12415 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12416 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12418 2004-02-07 Andrew Cagney <cagney@redhat.com>
12420 * Makefile.in: Update all dependencies.
12422 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12423 * configure: Re-generate.
12424 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12425 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12426 (COMMON_OBS): Add "main.o" and "annotate.o".
12427 (ANNOTATE_OBS): Delete.
12428 (OBS): Remove ANNOTATE_OBS.
12429 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12431 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12432 against CONFIG_OBS and "main.o".
12433 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12434 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12436 * tui/tui-command.c: Include "gdb_string.h", delete register
12437 attribute, use ISO-C function signatures.
12438 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12439 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12440 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12441 * tui/tui.c: Ditto.
12443 * tui/tui-command.c: Change variable and function names to lower
12445 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12446 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12447 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12448 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12449 * tui/tui-winsource.c, tui/tui.c: Ditto.
12451 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12453 * buildsym.c (free_pending_blocks, finish_block)
12454 (record_pending_block, make_blockvector, end_symtab): Replace
12455 symbol_obstack with objfile_obstack.
12456 * coffread.c (process_coff_symbol, coff_read_struct_type)
12457 (coff_read_enum_type): Ditto.
12458 * cp-namespace.c (initialize_namespace_symtab)
12459 (check_one_possible_namespace_symbol): Ditto.
12460 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12461 (dwarf2_symbol_mark_computed): Ditto.
12462 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12463 * elfread.c (elf_symtab_read): Ditto.
12464 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12465 (hpread_read_enum_type, hpread_read_function_type)
12466 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12468 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12469 (java_link_class_type): Ditto.
12470 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12471 (new_symbol): Ditto.
12472 * minsyms.c (install_minimal_symbols): Ditto.
12473 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12474 (terminate_minimal_symbol_table): Replace symbol_obstack with
12476 (free_objfile): Remove freeing of symbol_obstack.
12477 * objfiles.h: Remove symbol_obstack field.
12478 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12480 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12482 (solib_add_common_symbols): Replace symbol_obstack with
12484 * somsolib.c (som_solib_add): Ditto.
12485 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12486 (common_block_start, common_block_end): Ditto.
12487 * symfile.c (reread_symbols): Remove freeing and init of
12489 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12490 * symfile.h: Update comment.
12491 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12493 * symtab.c (symbol_set_names): Replace symbol_obstack with
12495 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12497 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12498 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12501 2004-02-07 Andrew Cagney <cagney@redhat.com>
12503 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12504 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12505 fields and variables.
12506 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12507 (m_beInvisible): Delete macro.
12508 * tui/tui-data.h: Fix case case fields and variables.
12509 (m_genWinPtrIsNull): Delete macro.
12510 (tui_win_list): Rename winList.
12511 (TUI_SRC_WIN): Rename srcWin.
12512 (TUI_DISASM_WIN): Rename disassemWin.
12513 (TUI_DATA_WIN): Rename dataWin.
12514 (TUI_CMD_WIN): Rename cmdWin.
12515 (m_genWinPtrNotNull): Delete macro.
12516 (m_winPtrIsNull): Delete macro.
12517 (m_winPtrNotNull): Delete macro.
12518 (tui_win_is_source_type): Replace m_winIsSourceType
12519 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12520 (tui_win_has_locator): Replace m_hasLocator.
12521 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12522 m_setWinHighlightOff.
12523 * tui/tui-data.c: Update references.
12524 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12525 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12526 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12527 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12528 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12529 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12530 * tui/tui-winsource.c, tui/tui.c: Ditto.
12532 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12534 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12535 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12538 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12539 variable `i6' to `i7'.
12540 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12542 2004-02-07 Andrew Cagney <cagney@redhat.com>
12544 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12545 (TuiPoint, TuiPointPtr): Ditto.
12546 (TuiStatus, TuiStatusPtr): Ditto.
12547 (TuiWinType, TuiWinTypePtr): Ditto.
12548 (struct tui_point): Rename _TuiPoint.
12549 (tui_get_low_disassembly_address): Rename
12550 tuiGetLowDisassemblyAddress.
12551 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12552 (tuiFree): Delete declaration.
12553 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12554 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12555 * tui/tui.c (tuiFree): Delete function.
12556 * cli/cli-cmds.c (disassemble_command): Update references.
12557 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12558 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12559 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12560 * tui/tui-winsource.c: Ditto.
12562 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12564 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12565 coffstab_build_psymtabs, elfstab_build_psymtabs)
12566 (stabsect_build_psymtabs): Replace psymbol_obstack with
12568 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12569 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12571 * dwarfread.c (scan_compilation_units): Ditto.
12572 * elfread.c (elfstab_offset_sections): Ditto.
12573 * hppa-tdep.c (read_unwind_info): Ditto.
12574 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12575 (hpread_end_psymtab): Ditto.
12576 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12577 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12579 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12580 * objfiles.c (add_to_objfile_sections)
12581 (build_objfile_section_table): Ditto.
12582 (allocate_objfile): Remove init of psymbol_obstack.
12583 (free_objfile): Remove freeing of psymbol_obstack.
12584 * objfiles.h (struct objfile): Remove field
12585 psymbol_obstack. Update comments.
12586 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12587 psymbol_obstack with objfile_obstack.
12588 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12590 * somread.c (som_symfile_offsets, init_import_symbols)
12591 (init_export_symbols): Replace psymbol_obstack with
12593 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12594 * symfile.c (default_symfile_offsets, syms_from_objfile)
12595 (reread_symbols): Remove freeing and init of psymbol_obstack.
12596 (cashier_psymtab): Update comment.
12597 * symmisc.c (print_objfile_statistics): Don't report stats for
12599 * symtab.h (struct general_symbol_info, struct partial_symtab):
12601 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12602 (xcoff_symfile_offsets): Replace psymbol_obstack with
12605 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12607 * objfiles.h (struct objfile): Add objfile_obstack field.
12608 Remove type_obstack field.
12610 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12611 read_structure_scope read_enumeration, new_symbol): Replace
12612 type_obstack with objfile_obstack.
12613 * dwarfread.c (struct_type, enum_type): Ditto.
12614 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12615 (lookup_fundamental_type): Ditto.
12616 * gdbtypes.h (TYPE_ALLOC): Ditto.
12617 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12618 (hpread_read_doc_function_type, hpread_read_struct_type)
12619 (fix_static_member_physnames, hpread_read_array_type)
12620 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12621 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12622 (java_link_class_type): Ditto.
12623 * mdebugread.c (parse_type): Ditto.
12624 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12625 * solib-sunos.c (solib_add_common_symbols): Ditto.
12626 * stabsread.c (define_symbol, read_type, read_member_functions,
12627 read_cpp_abbrev, read_one_struct_field): Ditto.
12628 * symfile.c (reread_symbols): Ditto.
12629 * symmisc.c (print_objfile_statistics): Ditto.
12631 2004-02-07 Andrew Cagney <cagney@redhat.com>
12633 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12634 (tui_exec_info_content): Rename TuiExecInfoContent.
12635 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12636 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12637 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12638 (TuiList, TuiListPtr): Ditto.
12639 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12640 (TuiDataType, TuiDataTypePtr): Ditto.
12641 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12642 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12643 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12644 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12645 (TuiDataElement, TuiDataElementPtr): Ditto.
12646 (TuiWinElement, TuiWinElementPtr): Ditto.
12647 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12648 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12649 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12650 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12651 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12652 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12653 * tui/tui-command.c, tui/tui-data.c: Update references.
12654 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12655 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12656 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12657 * tui/tui-winsource.c, tui/tui.c: Ditto.
12659 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12661 * dwarf2-frame.h: Update copyright.
12662 (enum dwarf2_frame_reg_rule): New.
12663 (struct dwarf2_frame_state_reg): New.
12664 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12665 * dwarf2-frame.c: Update copyright.
12666 (enum dwarf2_reg_rule): Remove.
12667 (struct dwarf2_frame_state): Remove defenition of `struct
12668 dwarf2_frame_state_reg'.
12669 (read_reg): Call get_frame_arch to get the architecture instead of
12670 using CURRENT_GDBARCH.
12671 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12673 (dwarf2_frame_init_reg): New function.
12674 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12675 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12676 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12677 tags with DWARF2_FRAME_.
12678 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12679 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12680 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12682 2004-02-06 Andrew Cagney <cagney@redhat.com>
12684 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12685 (enum tui_data_type): Rename _TuiDataType.
12686 (struct tui_layout_def): Rename _TuiLayoutDef.
12687 (struct tui_source_element): Rename _TuiSourceElement.
12688 (struct tui_data_element): Rename _TuiDataElement.
12689 (struct tui_command_element): Rename _TuiCommandElement.
12690 (struct tui_locator_element): Rename _TuiLocatorElement.
12691 (union tui_which_element): Define.
12692 (struct tui_win_element): Rename _TuiWinElement.
12693 (struct tui_data_info): Rename _TuiDataInfo.
12694 (struct tui_source_info): Rename _TuiSourceInfo.
12695 (struct tui_command_info): Rename _TuiCommandInfo.
12696 (tui_initialize_static_data): Rename initializeStaticData.
12697 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12698 (tui_alloc_win_info): Rename allocWinInfo.
12699 (tui_init_generic_part): Rename initGenericPart.
12700 (tui_init_win_info): Rename initWinInfo.
12701 (tui_alloc_content): Rename allocContent.
12702 (tui_add_content_elements): Rename addContentElements.
12703 (tui_init_content_element): Rename initContentElement.
12704 (tui_free_window): Rename freeWindow.
12705 (tui_free_win_content): Rename freeWinContent.
12706 (tui_free_data_content): Rename freeDataContent.
12707 (tui_free_all_source_wins_content): Rename
12708 freeAllSourceWinsContent.
12709 (tui_del_window): Rename tuiDelWindow.
12710 (tui_del_data_windows): Rename tuiDelDataWindows.
12711 (tui_partial_win_by_name): Rename partialWinByName.
12712 (tui_win_name): Rename winName.
12713 (tui_current_layout): Rename currentLayout.
12714 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12715 (tui_term_height): Rename termHeight.
12716 (tui_set_term_height_to): Rename setTermHeightTo.
12717 (tui_term_width): Rename termWidth.
12718 (tui_set_term_width_to): Rename setTermWidthTo.
12719 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12720 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12721 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12722 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12723 (tui_source_windows): Rename sourceWindows.
12724 (tui_clear_source_windows): Rename clearSourceWindows.
12725 (tui_clear_source_windows_detail): Rename
12726 clearSourceWindowsDetail.
12727 (tui_clear_win_detail): Rename clearWinDetail.
12728 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12729 (tui_default_tab_len): Rename tuiDefaultTabLen.
12730 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12731 (tui_win_with_focus): Rename tuiWinWithFocus.
12732 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12733 (tui_layout_def): Rename tuiLayoutDef.
12734 (tui_win_resized): Rename tuiWinResized.
12735 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12736 (tui_next_win): Rename tuiNextWin.
12737 (tui_prev_win): Rename tuiPrevWin.
12738 (tui_add_to_source_windows): Rename addToSourceWindows.
12739 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12740 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12741 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12742 * tui/tui.c, tui/tui-data.c: Ditto.
12743 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12744 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12746 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12747 (struct symtab): Declare.
12748 (tui_set_source_content): Rename tuiSetSourceContent.
12749 (tui_show_symtab_source): Rename tuiShowSource.
12750 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12751 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12752 * tui/tui-source.c: Update copyright. Update references.
12753 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12754 * tui/tui-stack.c: Update references.
12756 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12757 (struct tui_win_info): Declare.
12758 (tui_scroll_forward): Rename tuiScrollForward.
12759 (tui_scroll_backward): Rename tuiScrollBackward.
12760 (tui_scroll_left): Rename tuiScrollLeft.
12761 (tui_scroll_right): Rename tuiScrollRight.
12762 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12763 (tui_resize_all): Rename tuiResizeAll.
12764 (tui_refresh_all_win): Rename tuiRefreshAll.
12765 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12766 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12767 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12768 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12770 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12771 (tui_erase_data_content): Rename tuiEraseDataContent.
12772 (tui_display_all_data): Rename tuiDisplayAllData.
12773 (tui_check_data_values): Rename tuiCheckDataValues.
12774 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12775 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12776 (tui_first_data_element_no_in_line): Rename
12777 tuiFirstDataElementNoInLine.
12778 (tui_delete_data_content_windows): Rename
12779 tuiDeleteDataContentWindows.
12780 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12781 (tui_display_data_from): Rename tuiDisplayDataFrom.
12782 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12783 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12784 * tui/tui-win.c, tui/tui-regs.c: Update references.
12785 * tui/tui-layout.c, tui/tui.c: Update references.
12787 * tui/tui-wingeneral.h: Update copyright.
12788 (m_allBeVisible): Delete macro.
12789 (m_allBeInvisible): Delete macro.
12790 (struct tui_gen_win_info): Declare.
12791 (struct tui_win_info): Declare.
12792 (tui_unhighlight_win): Rename unhighlightWin.
12793 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12794 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12795 (tui_make_window): Rename makeWindow.
12796 (tui_copy_win): Rename copyWin.
12797 (tui_box_win): Rename boxWin.
12798 (tui_highlight_win): Rename highlightWin.
12799 (tui_check_and_display_highlight_if_needed): Rename
12800 checkAndDisplayHighlightIfNeeded.
12801 (tui_refresh_all): Rename refreshAll.
12802 (tui_delete_win): Rename tuiDelwin.
12803 (tui_refresh_win): Rename tuiRefreshWin.
12804 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12805 (tui_make_visible, tui_make_invisible): New functions.
12806 (tui_make_all_visible, tui_make_all_invisible): New functions.
12807 (make_all_visible): Rename makeAllVisible.
12808 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12809 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12810 * tui/tui-windata.c, tui/tui-win.c: Update references.
12811 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12812 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12814 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12816 * proc-api.c (write_with_trace): Initialize local variable to
12817 silence compiler warning.
12819 2004-02-06 Andrew Cagney <cagney@redhat.com>
12821 * tui/tui-source.h: Do not include "defs.h".
12822 (struct tui_win_info): Declare.
12823 (tui_set_source_content_nil): Declare.
12824 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12825 (union tui_line_or_address): Rename _TuiLineOrAddress.
12826 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12827 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12828 (tui_update_source_window_as_is): Rename
12829 tuiUpdateSourceWindowAsIs.
12830 (tui_update_source_windows_with_addr): Rename
12831 tuiUpdateSourceWindowsWithAddr.
12832 (tui_update_source_windows_with_line): Rename
12833 tuiUpdateSourceWindowsWithLine.
12834 (tui_clear_source_content): Rename tuiClearSourceContent.
12835 (tui_erase_source_content): Rename tuiEraseSourceContent.
12836 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12837 (tui_show_source_content): Rename tuiShowSourceContent.
12838 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12839 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12840 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12841 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12842 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12843 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12844 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12845 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12846 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12847 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12848 (struct tui_win_info): Declare.
12849 * tui/tui-stack.c: Update references.
12850 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12851 * tui/tui-win.c, tui/tui-source.c: Ditto.
12852 * tui/tui.c, tui/tui-disasm.c: Ditto.
12854 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12856 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12857 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12859 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12861 * infrun.c (handle_inferior_event): Allow for breakpoint
12862 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12863 and SIGEMT. Update comments.
12864 * NEWS (Revised SPARC target): Mention support for non-executable
12867 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12869 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12870 * inftarg.c: Update copyright year.
12871 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12872 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12873 (sparc_xfer_wcookie): New function.
12874 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12875 * Makefile.in (sparc-nat.o): Update dependencies.
12876 * config/sparc/nm-nbsd.h: Include "target.h".
12877 (NATIVE_XFER_WCOOKIE): New define.
12878 (sparc_xfer_wcookie): New prototype.
12880 2004-02-04 Andrew Cagney <cagney@redhat.com>
12882 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12883 SYSCALL_TRAP function.
12884 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12886 2004-02-04 Andrew Cagney <cagney@redhat.com>
12887 Daniel Jacobowitz <drow@mvista.com>
12889 * objfiles.h: Delete comments refering to inside_entry_func and
12890 DEPRECATED_FRAME_CHAIN_VALID.
12891 * defs.h (inside_entry_func): Update prototype..
12892 * blockframe.c (inside_entry_func): Rename to
12893 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12894 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12896 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12898 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12899 outside of #ifdef SOLIB_ADD region.
12900 (do_restore_lang_radix_cleanup): Ditto.
12901 (resolve_pending_breakpoint): Ditto.
12903 2004-02-03 Andrew Cagney <cagney@redhat.com>
12905 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12906 (process_note_abi_tag_sections): Delete unused function.
12907 (ia64_read_fp): Delete unused function.
12908 (gdbarch_extract_struct_value_address): Delete declaration.
12910 2004-02-02 Andrew Cagney <cagney@redhat.com>
12912 * vax-tdep.c (vax_frame_chain): Delete call to
12913 deprecated_inside_entry_file.
12914 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12916 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12918 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12919 column that's "empty" or "same value" when eliminating REG_RA
12922 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12924 * NEWS: Add information about new pending breakpoint support.
12926 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12928 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12929 and pending fields for pending breakpoint support.
12930 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12931 (condition_command): Only parse condition if not a pending
12933 (print_one_breakpoint): Add support for pending breakpoints.
12934 (describe_other_breakpoints): Add checks to verify we are not
12935 dealing with pending breakpoints.
12936 (check_duplicates): Don't check pending breakpoints.
12937 (set_raw_breakpoint): Initialize pending flag.
12938 (do_restore_lang_radix_cleanup): New cleanup routine.
12939 (resolve_pending_breakpoint): New function.
12940 (re_enable_breakpoints_in_shlibs): Try and resolve any
12941 pending breakpoints via resolve_pending_breakpoint.
12942 (mention): Add pending breakpoint support.
12943 (parse_breakpoint_sals): Add new parameter to pass to
12944 decode_line_1 to indicate silent errors when files or functions
12945 are not found. Change all callers.
12946 (do_captured_parse_breakpoint): New function.
12947 (break_command_1): Change prototype to return an rc value and to
12948 take an optional pending breakpoint pointer. Support creating
12949 a pending breakpoint if a "not found" form of error occurs when
12950 parsing the breakpoint. Also support resolving an existing pending
12951 breakpoint and be silent if the resolution fails.
12952 (create_breakpoints): Change prototype to take pending breakpoint
12953 pointer. When resolving a pending breakpoint, use the new pointer
12954 to provide a conditional or commands added by the end-user.
12955 (delete_breakpoint): Add appropriate check for pending.
12956 (breakpoint_re_set_one): Ditto.
12957 (do_enable_breakpoint): Ditto.
12959 2004-02-02 David Carlton <carlton@kealia.com>
12961 * valops.c (enum oload_classification): New.
12962 (find_overload_match): Break implementation into separate
12963 functions; delete #if 0'd code; look for symbols within
12965 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12966 (find_oload_champ,oload_method_static,classify_oload_match): New.
12967 * cp-support.h: Add declaration for cp_func_name; update
12968 declaration for make_symbol_overload_list.
12969 * cp-support.c (cp_func_name): New.
12970 (overload_list_add_symbol): Fix comment, use
12971 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12972 (make_symbol_overload_list): Take a function name and a namespace
12973 instead of a symbol; change implementation.
12974 (make_symbol_overload_list_using): New.
12975 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12977 2004-02-02 Fred Fish <fnf@redhat.com>
12979 * main.c (gdb_stdtarg): Move definition to group with other
12980 gdb_stdtarg definitions and update copyright years.
12981 * remote-sim.c (gdb_os_write_stderr): Write output to
12982 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12983 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12984 gdb_stderr stream and update copyright years.
12986 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12988 * Makefile.in (mips-linux-nat.o): Update dependencies.
12989 * mips-linux-nat.c: Include mips-tdep.h.
12991 2004-02-01 Roland McGrath <roland@redhat.com>
12993 * sol-thread.c (sol_thread_xfer_partial): New function.
12994 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12995 (init_sol_core_ops): Likewise.
12997 * procfs.c (procfs_xfer_partial): New function.
12998 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12999 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13001 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13002 procfs_xfer_auxv function.
13004 * procfs.c (procfs_make_note_section): If we can read
13005 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13006 * linux-proc.c (linux_make_note_section): Likewise.
13008 * auxv.h: New file.
13009 * auxv.c: New file.
13010 * Makefile.in (auxv_h): New variable.
13011 (COMMON_OBS): Add auxv.o here.
13012 (auxv.o): New target.
13014 * corelow.c (core_xfer_partial): New function.
13015 (init_core_ops): Use it for core_ops.to_xfer_partial.
13017 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13018 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13019 macro if that is defined.
13021 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13023 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13024 and check the specified thread for each breakpoint.
13025 * breakpoint.h (bpstat_stop_status): Update prototype.
13026 * infrun.c (handle_inferior_event): Update calls to
13027 bpstat_stop_status.
13029 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13031 * Makefile.in (cli-cmds.o): Add $(readline_h).
13033 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13035 * cli/cli-cmds.c: Include readline.h.
13036 (complete_command): Pass the start of the last word to
13039 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13041 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13042 argument, and change first argument to a CORE_ADDR.
13043 * breakpoint.h (bpstat_stop_status): Update prototype.
13044 * infrun.c (adjust_pc_after_break): Add a new comment.
13045 (handle_inferior_event): Update calls to bpstat_stop_status.
13047 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13049 * breakpoint.h: Update copyright years.
13051 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13053 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13054 (bpstat_stop_status): Don't decrement PC.
13055 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13057 * infrun.c (adjust_pc_after_break): New function.
13058 (handle_inferior_event): Call it, early. Remove later references
13059 to DECR_PC_AFTER_BREAK.
13060 (normal_stop): Add commentary.
13062 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13064 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13065 2004-01-27 double-free fix.
13067 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13069 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13070 (sparc32_frame_prev_register): Handle StackGhost.
13071 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13073 2004-01-29 Roland McGrath <roland@redhat.com>
13075 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13076 * configure: Regenerated.
13078 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13079 * Makefile.in (procfs.o): Add dep.
13081 2004-01-28 Andrew Cagney <cagney@redhat.com>
13083 * tui/tui-stack.h: Update copyright.
13084 (struct frame_info): Add opaque declaration.
13085 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13086 (tui_show_locator_content): Rename tuiShowLocatorContent.
13087 (tui_show_frame_info): Rename tuiShowFrameInfo.
13088 * tui/tui-stack.c: Update copyright. Update references.
13089 * tui/tui-winsource.c: Update references.
13090 * tui/tui-win.c: Update references.
13091 * tui/tui-layout.c: Update references.
13092 * tui/tui-hooks.c: Update copyright, update references.
13093 * tui/tui.c: Update copyright, update references.
13094 * tui/tui-disasm.c: Update references.
13096 2004-01-28 David Carlton <carlton@kealia.com>
13098 * dwarf2read.c (add_partial_structure): Use demangled name if
13099 namespace equals "".
13101 2004-01-27 Jim Blandy <jimb@redhat.com>
13103 Clean up misapplied patch:
13104 * dwarf2read.c (determine_prefix): Change one of the two forward
13105 declarations for 'determine_prefix_aux' to a declaration for this.
13106 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13107 argument to 'die_specification'.
13109 * dwarf2read.c (read_func_scope): Re-indent comment.
13111 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13113 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13114 b->exp to NULL after freeing so that error during re-parsing or
13115 evaluation of expressions associated with breakpoint don't
13116 eventually lead to re-freeing of storage.
13117 Committed by Andrew Cagney.
13119 2004-01-27 Andrew Cagney <cagney@redhat.com>
13121 * source.c (ambiguous_line_spec): Delete undefined declaration.
13122 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13123 (m32r_set_server_address, m32r_set_download_path): Ditto.
13124 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13126 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13128 * dwarf2read.c: Update calls to changed and renamed functions, and
13129 references to moved variables.
13131 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13132 language, language_defn, list_in_scope, and ftypes members.
13133 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13134 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13135 (baseaddr): Remove globals.
13137 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13138 (set_cu_language, die_is_declaration, die_specification)
13139 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13140 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13141 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13142 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13144 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13145 cu.list_in_scope. Don't initialize cu_header_offset.
13146 (add_partial_symbol): Add local baseaddr.
13147 (psymtab_to_symtab_1): Add local baseaddr. Use
13148 objfile->section_offsets for consistency. Don't initialize
13149 cu_header_offset; do initialize cu.header.offset and
13151 (read_file_scope, read_func_scope, read_lexical_block_scope)
13152 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13154 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13156 * PROBLEMS: Add gdb/1516.
13158 2003-12-29 Robert Millan <robertmh@gnu.org>
13160 Patch committed by Andrw Cagney.
13161 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13162 * configure.tgt: Match knetbsd*-gnu.
13164 2004-01-26 Andrew Cagney <cagney@redhat.com>
13166 * breakpoint.c (catch_command_1): Delete #ifdef code.
13167 (catch_fork_command_1): Delete #ifdef wrapper.
13168 (catch_exec_command_1): Ditto.
13169 (catch_load_command_1): Ditto.
13170 (catch_unload_command_1): Ditto.
13172 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13173 (catch_breakpoint): Delete #if0ed function.
13174 (disable_catch_breakpoint): Ditto.
13175 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13176 (disable_catch, enable_catch, delete_catch): Ditto.
13178 2004-01-26 Andrew Cagney <cagney@redhat.com>
13180 * remote.c (echo_check, quit_flag): Delete variables.
13181 (cisco_kernel_mode): Delete variable.
13182 (minitelnet_return, tty_input, escape_count): Delete variables.
13183 (remote_cisco_mode): Delete variable.
13184 (remote_cisco_open, remote_cisco_close): Delete function.
13185 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13186 (init_remote_cisco_ops): Delete function.
13187 (_initialize_remote): Do not install "remote cisco" code.
13188 (read_frame): Delete cisco specific code.
13189 (remote_info_process): Delete function.
13190 (remote_wait): Delete cisco specific code.
13191 (remote_cisco_section_offsets): Delete function.
13192 (remote_cisco_objfile_relocate): Delete function.
13193 (remote_async_wait): Delete cisco specific code.
13194 (minitelnet, readtty, readsocket): Delete function.
13196 2004-01-26 Andrew Cagney <cagney@redhat.com>
13198 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13199 comments mentioning extract_returned_value_address.
13200 * infcmd.c (print_return_value): Update. Add comments on
13201 extract_returned_value_address.
13202 * stack.c (return_command): Add comments on
13203 extract_returned_value_address.
13204 * values.c: Update comment.
13205 * m32r-tdep.c: Update comment.
13206 * sparc-tdep.c: Update comment.
13207 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13208 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13209 * sh64-tdep.c (sh64_gdbarch_init): Update.
13210 * sh-tdep.c (sh_gdbarch_init): Update.
13211 * s390-tdep.c (s390_gdbarch_init): Update.
13212 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13213 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13214 * m68k-tdep.c (m68k_gdbarch_init): Update.
13215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13216 * m32r-tdep.c (m32r_gdbarch_init): Update.
13217 * ia64-tdep.c (ia64_gdbarch_init): Update.
13218 * h8300-tdep.c (h8300_gdbarch_init): Update.
13219 * frv-tdep.c (frv_gdbarch_init): Update.
13220 * arm-tdep.c (arm_gdbarch_init): Update.
13221 * alpha-tdep.c (alpha_gdbarch_init): Update.
13223 2004-01-26 Andrew Cagney <cagney@redhat.com>
13225 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13226 SYMBOL_LOCATION_FUNCS
13227 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13228 "struct symbol_ops".
13229 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13230 type to "struct symbol_ops".
13231 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13232 (struct symbol): Replace ".aux_value.loc.funcs" and
13233 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13234 (SYMBOL_OBJFILE): Delete macro.
13235 (SYMBOL_LOCATION_FUNCS): Delete macro.
13236 (SYMBOL_LOCATION_BATON): Update.
13237 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13238 intead of SYMBOL_LOCATION_FUNCS.
13239 * ax-gdb.c (gen_var_ref): Ditto.
13240 * printcmd.c (address_info): Ditto.
13241 * findvar.c (read_var_value): Ditto.
13242 (symbol_read_needs_frame): Ditto.
13244 2004-01-26 Andrew Cagney <cagney@redhat.com>
13246 * dwarf2read.c (read_func_scope): Document frame-base hack.
13248 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13250 * infcmd.c (print_return_value): Plug memory leak; delete
13251 ui_stream object. Rename argument `structure_return' to
13254 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13256 * infcmd.c (print_return_value): Wrap long lines.
13257 (finish_command_continuation, finish_command): Remove unused
13258 variable `funcaddr'. Fix some coding-standards problems.
13260 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13261 SECT_SIZE is large enough, not whether it's exactly the right size.
13262 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13263 TDEP->fpregset to zero.
13265 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13266 floating-point registers for traditional NetBSD core files.
13267 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13268 TDEP->sizeof_fpregset here.
13270 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13272 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13273 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13274 function with code split out from
13275 sparc32nbsd_sigcontext_frame_cache.
13276 (sparc32nbsd_sigcontext_frame_cache): Use
13277 sparc32nbsd_sigcontext_saved_regs.
13278 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13280 * sparcobsd-tdep.c: New file.
13281 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13282 (sparcobsd-tdep.o): New dependency.
13283 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13284 * config/sparc/obsd.mt: New file.
13286 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13287 TDEP->fpregset to be initialized to enable core file register
13290 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13292 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13293 Add opaque declarations.
13294 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13295 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13296 function with code split out from
13297 sparc64nbsd_sigcontext_frame_cache.
13298 (sparc64nbsd_sigcontext_frame_cache): Use
13299 sparc64nbsd_sigcontext_saved_regs.
13300 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13302 * sparc64obsd-tdep.c: New file.
13303 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13304 (sparc64obsd-tdep.o): New dependency.
13305 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13306 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13307 * config/sparc/obsd64.mt: New file.
13309 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13310 read the instruction at PC.
13312 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13313 value of GDB_OSABI_DEFAULT.
13314 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13315 instead of GDB_OSABI_NETBSD_AOUT.
13317 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13319 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13322 2004-01-23 Andrew Cagney <cagney@redhat.com>
13324 * printcmd.c (display_command): Replace tui_set_display call with
13325 tui_set_layout_for_display_command.
13326 * tui/tui.h (enum tui_win_type): Define.
13327 (tui_set_layout): Delete declaration.
13328 (tui_set_layout_for_display_command): Rename set_tui_layout.
13329 * tui/tui-data.h (enum tui_layout_type): Define.
13330 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13332 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13333 (tui_default_win_height): Rename tuiDefaultWinHeight.
13334 (tui_default_win_viewport_height): Rename
13335 tuiDefaultWinViewportHeight.
13336 (tui_set_layout): RenametuiSetLayout.
13337 * tui/tui-layout.c: Update references.
13338 * tui/tui.c: Update references.
13339 * tui/tui-disasm.c: Update references.
13341 2004-01-23 David Carlton <carlton@kealia.com>
13343 Partial workaround for PR c++/1511:
13344 * cp-namespace.c: Include frame.h.
13345 (cp_lookup_transparent_type): New
13346 (cp_lookup_transparent_type_loop): New.
13347 * cp-support.h: Declare cp_lookup_transparent_type.
13348 * symtab.c (basic_lookup_transparent_type): Renamed from
13349 lookup_transparent_type.
13350 (lookup_transparent_type): Replace old body by a call to
13351 current_language->la_lookup_transparent_type.
13352 * symtab.h: Update copyright. Declare
13353 basic_lookup_transparent_type.
13354 * language.h: Update copyright.
13355 (struct language_defn): Add la_lookup_transparent_type.
13356 * language.c: Update copyright.
13357 (unknown_language_defn): Add basic_lookup_transparent_type.
13358 (auto_language_defn): Add basic_lookup_transparent_type.
13359 (local_language_defn): Add basic_lookup_transparent_type.
13360 * ada-lang.c: Update copyright.
13361 (ada_language_defn): Add basic_lookup_transparent_type.
13362 * c-lang.c: Update copyright.
13363 (c_language_defn): Add basic_lookup_transparent_type.
13364 (cplus_language_defn): Add basic_lookup_transparent_type.
13365 (asm_language_defn): Add basic_lookup_transparent_type.
13366 (minimal_language_defn): Add basic_lookup_transparent_type.
13367 * f-lang.c: Update copyright.
13368 (f_language_defn): Add basic_lookup_transparent_type.
13369 * jv-lang.c: Update copyright.
13370 (java_language_defn): Add basic_lookup_transparent_type.
13371 * m2-lang.c: Update copyright.
13372 (m2_language_defn): Add basic_lookup_transparent_type.
13373 * objc-lang.c: Update copyright.
13374 (objc_language_defn): Add basic_lookup_transparent_type.
13375 * p-lang.c: Update copyright.
13376 (p_language_defn): Add basic_lookup_transparent_type.
13377 * scm-lang.c: Update copyright.
13378 (scm_language_defn): Add basic_lookup_transparent_type.
13379 * Makefile.in (cp-namespace.o): Depend on frame.h.
13381 2004-01-23 David Carlton <carlton@kealia.com>
13383 Patch for PR c++/1520:
13384 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13385 properly if we have a specification die.
13386 (determine_prefix_aux): Rename from determine_prefix.
13387 (determine_prefix): Like the old determine_prefix, but never
13390 2004-01-23 Theodore A. Roth <troth@openavr.org>
13392 * avr-tdep.c: Update copyright.
13393 (avr_iaddr_p): Delete unused function.
13394 (avr_saddr_p): Delete unused function.
13396 2004-01-23 David Carlton <carlton@kealia.com>
13398 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13399 Fix for PR symtab/1534.
13401 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13403 * NEWS (New native configurations): Mention OpenBSD/sparc and
13405 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13406 * configure.host: Likewise.
13407 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13408 handler for OpenBSD.
13409 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13411 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13413 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13414 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13416 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13417 * cli/cli-cmds.c (shell_escape): Likewise.
13419 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13420 OpenBSD .note.openbsd.ident sections.
13422 2004-01-22 David Carlton <carlton@kealia.com>
13424 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13425 get_scope_pc_bounds.
13426 (read_file_scope): Ditto.
13427 (get_scope_pc_bounds): New function, produced by extracting code
13428 from the above two functions, consolidating it, and adding support
13429 for DW_TAG_namespace.
13431 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13433 * osabi.c (MAX_NOTESZ): New define.
13434 (check_note): New function.
13435 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13438 2004-01-21 Roland McGrath <roland@redhat.com>
13440 * MAINTAINERS (write after approval): Add myself.
13442 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13444 * utils.c (init_page_info): Move declarations of `rows' and
13445 `cols' before the __GO32__-specific code. Move the closing brace
13446 outside the #ifdef __GO32__..#endif block.
13447 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13449 2004-01-21 Paul Brook <paul@codesourcery.com>
13451 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13452 BPSTAT_WHAT_CHECK_SHLIBS.
13454 2004-01-21 Paul Brook <paul@codesourcery.com>
13456 * MAINTAINERS: Add myself to write-after-approval.
13458 2004-01-20 Andrew Cagney <cagney@redhat.com>
13460 * ax-gdb.c (print_axs_value): Delete unused function.
13461 * jv-lang.c (java_lookup_type): Delete unused function.
13462 * cli/cli-dump.c (dump_filetype): Delete unused function.
13463 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13464 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13465 (mips_getstring): Delete unused function.
13466 (pmon_insert_breakpoint): Delete #if0ed function.
13467 (PMON_MAX_BP): Delete #if0ed MACRO.
13468 (mips_pmon_bp_info): Delete #if0ed variable.
13469 (pmon_remove_breakpoint): Delete #if0ed function.
13470 * monitor.c (monitor_write_even_block): Delete unused function.
13471 (monitor_write_memory_block): Delete #if0ed code.
13472 * dink32-rom.c (dink32_load): Delete unused function.
13473 (_initialize_dink32_rom): Delete #if0ed code.
13474 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13476 * tui/tui-command.c: Update references.
13477 * tui/tui-io.c: Update references.
13478 * tui/tui-command.h: Update copyright.
13479 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13481 * source.c (ambiguous_line_spec): Delete never-defined function.
13482 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13483 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13484 * cli/cli-cmds.c (validate_comname): Ditto.
13486 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13488 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13489 (tui_show_disassem): Rename tuiShowDisassem.
13490 (tui_show_disassem_and_update_source): Rename
13491 tuiVerticalDisassemScroll.
13492 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13493 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13494 * tui/tui.h: Update copyright.
13495 (enum tui_status): Define.
13496 * tui/tui-data.h (enum tui_scroll_direction): Define.
13497 * tui/tui-disasm.c: Update copyright. Update references.
13498 * tui/tui-winsource.c: Update copyright. Update references.
13499 * tui/tui-win.c: Update references.
13500 * tui/tui-layout.c: Update references.
13502 2004-01-20 Andrew Cagney <cagney@redhat.com>
13504 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13505 sym2 to start of block.
13507 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13509 * MAINTAINERS: Delete mmalloc.
13510 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13511 * NEWS: Mention removal of --with-malloc.
13512 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13513 * config.in: Regenerate.
13514 * configure: Regenerate.
13515 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13516 USE_MMALLOC, MMCHECK_FORCE.
13517 * gdbinit.in: Remove mmalloc.
13518 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13519 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13520 * config/i386/go32.mh: Likewise.
13521 * config/i386/interix.mh: Likewise.
13522 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13524 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13526 * linespec.c (decode_variable, symtab_from_filename): Call
13527 error_silent with error message instead of throwing an exception
13529 * defs.h (error_silent, error_output_message): Add prototypes.
13530 (catch_exceptions_with_msg): Ditto.
13531 * utils.c (error_silent, error_output_message): New functions.
13532 * top.c (catch_exceptions_with_msg): New function.
13534 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13536 * mi/mi-cmds.h (enum print_values): Add definition.
13538 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13539 type and value for simple data types and just the name and type
13540 for complex ones, if required.
13542 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13543 children, if required.
13545 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13547 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13548 unused declarations.
13550 2004-01-19 Andrew Cagney <cagney@redhat.com>
13552 * top.h (mapped_symbol_files): Delete declaration.
13553 * main.c (captured_main): Delete option "m" and "mapped".
13554 * objfiles.c (mapped_symbol_files): Delete variable.
13555 * symfile.c (symbol_file_command): Delete mmap code.
13556 (symbol_file_add_with_addrs_or_offsets): Ditto.
13557 (add_symbol_file_command, reread_separate_symbols): Ditto.
13558 * objfiles.h (OBJF_MAPPED): Delete.
13559 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13560 (free_objfile) [USE_MMALLOC]: Ditto.
13561 (open_existing_mapped_file): Delete function.
13562 (open_mapped_file): Delete function.
13563 (map_to_file): Delete function.
13565 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13567 * infrun.c (step_into_function): Account for possible breakpoint
13568 adjustment when computing ``stop_func_start''.
13570 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13572 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13573 the region size against the size of a pointer, not the size of
13574 a register as given by DEPRECATED_REGISTER_SIZE.
13576 2004-01-19 Andrew Cagney <cagney@redhat.com>
13578 * tui/tui-regs.h: Include "tui-data.h".
13579 (tuiFirstRegElementNoInLine): Delete declaration.
13580 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13581 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13582 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13583 (tui_calculate_regs_column_count): Rename
13584 tuiCalculateRegsColumnCount.
13585 (tui_check_register_values): Rename tuiCheckRegisterValues.
13586 (tui_show_registers): Rename tuiShowRegisters.
13587 (tui_display_registers_from_line): Rename
13588 tuiDisplayRegistersFromLine.
13589 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13590 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13591 (tui_first_reg_element_no_inline): Rename
13592 tuiFirstRegElementNoInLine.
13593 * tui/tui-data.h: Update copyright.
13594 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13595 * tui/tui-windata.c: Update copyright, update references.
13596 * tui/tui-regs.c: Update copyright, update references.
13597 * tui/tui-win.c: Update copyright, update references.
13598 * tui/tui-layout.c: Update copyright, update references.
13600 2004-01-18 Andrew Cagney <cagney@redhat.com>
13602 * tui/tui-io.c: Update copyright.
13603 (key_is_end_sequence, key_is_backspace): New functions.
13604 (key_is_command_char, key_is_start_sequence): New function.
13605 (tui_getc): Update references.
13606 * tui/tui-io.h: Update copyright.
13607 (m_tuiStartNewLine): Delete macro.
13608 (m_isBackspace, m_isDeleteChar): Delete macros.
13609 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13610 (m_isNextPage, m_isPrevPage): Delete macros.
13611 (m_isLeftArrow, m_isRightArrow): Delete macros.
13612 (m_isXdbStyleCommandChar): Delete macro.
13613 (key_is_start_sequence): Declare, replace m_isStartSequence.
13614 (key_is_end_sequence): Declare, replace m_isEndSequence.
13615 (key_is_backspace): Declare ,replace m_isBackspace.
13616 (key_is_command_char): Declare, replace m_isCommandChar.
13617 * tui/tui-command.c: Update copyright.
13618 (tuiDispatchCtrlChar): Update references.
13620 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13623 * tui/tui-command.c: Rename tui/tuiCommand.c.
13624 * tui/tui-command.h: Rename tui/tuiCommand.h.
13625 * tui/tui-data.c: Rename tui/tuiData.c.
13626 * tui/tui-data.h: Rename tui/tuiData.h.
13627 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13628 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13629 * tui/tui-io.c: Rename tui/tuiIO.c.
13630 * tui/tui-io.h: Rename tui/tuiIO.h.
13631 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13632 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13633 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13634 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13635 * tui/tui-source.c: Rename tui/tuiSource.c.
13636 * tui/tui-source.h: Rename tui/tuiSource.h.
13637 * tui/tui-stack.c: Rename tui/tuiStack.c.
13638 * tui/tui-stack.h: Rename tui/tuiStack.h.
13639 * tui/tui-win.c: Rename tui/tuiWin.c.
13640 * tui/tui-win.h: Rename tui/tuiWin.h.
13641 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13642 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13643 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13644 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13645 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13646 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13647 * tui/tui-file.c: Update includes.
13648 * tui/tui-hooks.c: Update includes.
13649 * tui/tui-interp.c: Update includes.
13650 * tui/tui.c: Update includes.
13651 * Makefile.in: Update all tui/ dependencies.
13652 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13654 * Makefile.in: Update copyright. Update dependencies.
13656 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13659 2004-01-18 Andrew Cagney <cagney@redhat.com>
13661 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13662 instead of register_gdbarch_init.
13664 * remote-sds.c (tohex): Delete unused function. Update copyright.
13665 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13666 * v850-tdep.c (v850_register_virtual_size): Ditto.
13667 * target.c (normal_target_post_startup_inferior): Ditto.
13668 * source.c (ambiguous_line_spec): Ditto.
13669 * remote.c (adapt_remote_get_threadinfo): Ditto.
13670 * mi/mi-out.c (out_field_fmt): Ditto.
13671 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13672 (output_control_change_notification): Ditto.
13673 * m68k-tdep.c (m68k_register_byte): Ditto.
13674 (m68k_remote_breakpoint_from_pc): Ditto.
13675 * ui-out.c (init_ui_out_state): Delete unused declaration.
13676 * stabsread.c (search_value): Ditto.
13677 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13678 * maint.c (print_section_table): Ditto.
13679 * infrun.c (set_follow_fork_mode_command): Ditto.
13681 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13683 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13684 DW_CFA_def_cfa_exporession. Add support for
13685 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13686 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13688 2004-01-18 Andrew Cagney <cagney@redhat.com>
13690 * ocd.c: Update copyright.
13691 (bdm_read_register_command): Delete unused function.
13692 (_initialize_remote_ocd): Delete commented out reference.
13693 (get_quoted_char, reset_packet): Delete #if0ed function.
13694 (output_packet, put_quoted_char): Delete #if0ed function.
13695 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13696 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13697 (BDM_BREAKPOINT): Delete #if0ed macro.
13698 (remote_timeout): Delete #if0ed variable.
13700 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13702 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13703 (core-sol2.o): Remove dependency.
13704 * core-sol2.c: Remove file.
13706 2004-01-17 Andrew Cagney <cagney@redhat.com>
13708 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13709 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13712 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13714 * remote.c: Update copyright years.
13716 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13718 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13720 2004-01-17 Andrew Cagney <cagney@redhat.com>
13722 * mdebugread.c: Update copyright.
13723 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13724 (parse_type, parse_procedure): Ditto.
13725 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13727 * cris-tdep.c (cris_store_struct_return): Put back accidently
13730 * gdbarch.sh: Update copyright year.
13731 * gdbarch.h, gdbarch.c: Re-generate.
13733 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13735 Suggested by George Anzinger.
13736 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13737 correct stack offset. Include unknown opcode numbers in the error
13740 2004-01-17 Andrew Cagney <cagney@redhat.com>
13742 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13743 extract_struct_value_address, i386 does not set it.
13744 * sparc64-tdep.c (sparc64_init_abi): Do not set
13745 extract_struct_value_address, never called.
13746 (sparc64_extract_struct_value_address): Delete function.
13747 * m68hc11-tdep.c: Update copyright.
13748 (m68hc11_gdbarch_init): Delete redundant assignment of
13749 extract_struct_value_address.
13750 * i386-tdep.c: Update copyright.
13751 (i386_gdbarch_init): Do not set extract_struct_value_address,
13753 (i386_extract_struct_value_address): Delete function.
13754 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13755 extract_struct_value_address, never called.
13756 (sparc32_extract_struct_value_address): #if 0 function. Add
13757 comments explaining its future.
13759 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13761 * arm-tdep.c (arm_write_pc): New function.
13762 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13764 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13766 * breakpoint.c (must_shift_inst_regs): Delete.
13767 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13768 and SHIFT_INST_REGS.
13769 * infcmd.c (step_1, step_1_continuation): Delete references to
13771 * infrun.c (keep_going): Likewise.
13772 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13773 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13775 2004-01-17 Andrew Cagney <cagney@redhat.com>
13777 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13778 * gdbarch.h, gdbarch.c: Re-generate.
13779 * infcmd.c (print_return_value): Delete reference to
13780 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13782 * cris-tdep.c (cris_gdbarch_init): Do not set
13783 deprecated_extract_struct_value_address.
13785 * xstormy16-tdep.c: Update copyright.
13786 (xstormy16_extract_struct_value_address): Update to current
13787 extract struct value address interface.
13788 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13789 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13790 current extract struct value address interface.
13791 (sh64_gdbarch_init): Set extract_struct_value_address.
13793 * cris-tdep.c: Update copyright.
13794 (cris_extract_struct_value_address): Delete function.
13795 (struct_return_address): Delete variable.
13796 (cris_store_struct_return): Do not set struct_return_address.
13798 * mcore-tdep.c: Update copyright.
13799 (mcore_extract_struct_value_address): Delete function. Update
13801 (mcore_gdbarch_init): Update.
13802 * mn10300-tdep.c: Update copyright.
13803 (mn10300_extract_struct_value_address): Delete function.
13804 (mn10300_gdbarch_init): Update.
13805 * v850-tdep.c: Update copyright.
13806 (v850_extract_struct_value_address): Delete.
13807 (v850_gdbarch_init): Update.
13808 * ns32k-tdep.c: Update copyright.
13809 (ns32k_extract_struct_value_address): Delete.
13810 (ns32k_gdbarch_init): Update.
13811 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13812 (hppa_gdbarch_init): Update.
13813 * vax-tdep.c: Update copyright.
13814 (vax_extract_struct_value_address): Delete.
13815 (vax_gdbarch_init): Update.
13817 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13818 * gdbarch.h, gdbarch.c: Re-generate.
13819 * procfs.c (procfs_fetch_registers): Delete reference to
13820 DEPRECATED_NPC_REGNUM.
13821 (procfs_store_registers): Ditto.
13822 * regcache.c (generic_target_write_pc): Simplify.
13823 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13825 * core-sol2.c (fetch_core_registers): Replace
13826 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13828 * hppa-tdep.c: Update copyright year.
13829 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13831 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13833 * mips-tdep.c (mips_write_pc): New function.
13834 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13835 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13836 (mips_find_saved_regs, mips_software_single_step: Ditto.
13837 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13838 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13840 2004-01-17 Andrew Cagney <cagney@redhat.com>
13842 * mips-tdep.c: Re-indent. Group functions by ABI.
13844 2004-01-17 Andrew Cagney <cagney@redhat.com>
13846 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13847 * gdbarch.c: Re-generate.
13848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13849 DECR_PC_AFTER_BREAK to zero.
13850 * vax-tdep.c (vax_gdbarch_init): Ditto.
13851 * v850-tdep.c (v850_gdbarch_init): Ditto.
13852 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13853 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13854 * sh-tdep.c (sh_gdbarch_init): Ditto.
13855 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13856 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13857 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13858 * mips-tdep.c (mips_gdbarch_init): Ditto.
13859 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13860 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13861 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13862 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13863 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13864 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13865 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13866 * frv-tdep.c (frv_gdbarch_init): Ditto.
13867 * cris-tdep.c (cris_gdbarch_init): Ditto.
13868 * avr-tdep.c (avr_gdbarch_init): Ditto.
13869 * arm-tdep.c (arm_gdbarch_init): Ditto.
13870 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13872 2004-01-17 J. Brobecker <brobecker@gnat.com>
13874 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13875 Delete, no longer used.
13876 (read_subrange_type): New function, mostly extracted from
13878 (read_array_type): Replace extracted code by call to
13879 read_subrange_type().
13880 (dwarf2_get_attr_constant_value): New function.
13881 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13882 (add_partial_symbol): Likewise.
13883 (process_die): Likewise.
13884 (new_symbol): Likewise.
13885 (read_type_die): Likewise.
13887 2004-01-16 Andrew Cagney <cagney@redhat.com>
13889 * symfile.c: Update copyright year.
13890 (compare_symbols): Delete unused function.
13891 * stabsread.c: Update copyright year.
13892 (lrs_general_complaint): Delete unused function.
13893 (ref_search_value): Ditto.
13894 (get_substring): Delete declaration.
13895 * sh64-tdep.c: Update copyright year.
13896 (sh64_get_gdb_regnum): Delete unused function.
13897 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13898 Delete unused function.
13900 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13902 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13903 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13905 2004-01-16 Andrew Cagney <cagney@redhat.com>
13907 Changes from Peter Schauer.
13908 * rs6000-tdep.c: Update copyright year.
13909 (rs6000_push_dummy_call): Update the stack pointer before
13910 accessing the corresponding stack region.
13911 * rs6000-nat.c: Update copyright year.
13912 (set_host_arch): Set "info.abfd" to "exec_bfd".
13914 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13916 * blockframe.c: Update copyright year.
13917 (inside_entry_func): Don't treat a zero PC specially.
13919 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13921 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13923 (gcore_create_callback): Ditto. Skip any memory segment that has
13924 no permissions set.
13926 2004-01-14 David Carlton <carlton@kealia.com>
13928 Change symbols for C++ nested types to contain the fully qualified
13929 name, if possible. (At least in the DWARF-2 case.) Partial fix
13930 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13932 * c-exp.y (qualified_type): Handle types nested within classes.
13933 * cp-namespace.c: Update comments.
13934 (cp_set_block_scope): Delete #if 0.
13935 (cp_lookup_nested_type): Handle types nested within classes.
13936 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13938 (add_partial_symbol): Add the name of the enclosing namespace to
13940 (pdi_needs_namespace): New.
13941 (add_partial_namespace): Tweak comment.
13942 (add_partial_structure): New.
13943 (psymtab_to_symtab_1): Initialize processing_current_prefix
13945 (process_die): instead of here.
13946 (read_structure_scope): Try to figure out the name of the class or
13947 namespace that the structure might be defined within.
13948 (read_enumeration): Generate fully-qualified names, if possible.
13949 (read_namespace): Don't set name to NULL.
13950 (die_specification): New.
13951 (new_symbol): Generate fully-qualified names for types.
13952 (read_type_die): Determine appropriate prefix.
13953 (determine_prefix): New.
13954 (typename_concat): New.
13956 * valops.c (value_aggregate_elt): Pass NOSIDE to
13957 value_struct_elt_for_reference.
13958 (value_struct_elt_for_reference): Make static, add NOSIDE
13959 parameter, call value_maybe_namespace_elt as a last resort.
13960 (value_namespace_elt): Break out code into
13961 value_maybe_namespace_elt.
13962 (value_maybe_namespace_elt): New.
13964 2004-01-12 Andrew Cagney <cagney@redhat.com>
13966 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13967 cooked floating-point registers.
13968 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13969 and value_to_register.
13971 2004-01-13 Andrew Cagney <cagney@redhat.com>
13973 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13974 * gdbarch.c: Re-generate.
13975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13976 FUNCTION_START_OFFSET.
13977 * v850-tdep.c (v850_gdbarch_init): Ditto.
13978 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13979 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13980 * sh-tdep.c (sh_gdbarch_init): Ditto.
13981 * s390-tdep.c (s390_gdbarch_init): Ditto.
13982 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13983 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13984 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13985 * mips-tdep.c (mips_gdbarch_init): Ditto.
13986 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13987 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13989 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13990 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13991 * i386-tdep.c (i386_gdbarch_init): Ditto.
13992 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13993 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13994 * frv-tdep.c (frv_gdbarch_init): Ditto.
13995 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13996 * cris-tdep.c (cris_gdbarch_init): Ditto.
13997 * avr-tdep.c (avr_gdbarch_init): Ditto.
13998 * arm-tdep.c (arm_gdbarch_init): Ditto.
13999 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14001 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14003 * infrun.c (follow_fork_mode_ask): Remove.
14004 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14005 (follow_fork): Simplify and remove internal error for
14006 follow_fork_mode_ask.
14007 (_initialize_infrun): Update "set follow-fork-mode" help text.
14009 2004-01-13 Andrew Cagney <cagney@redhat.com>
14011 * configure.in: Update copyright year.
14012 (build_warnings): Add -Wunused-label.
14013 * configure: Re-generate.
14015 2004-01-12 Andrew Cagney <cagney@redhat.com>
14017 * exec.h (exec_ops): Make "extern".
14019 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14020 the function is void.
14021 (mips_pseudo_register_write): Ditto.
14023 2004-01-12 Andrew Cagney <cagney@redhat.com>
14025 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14026 call. Never defined.
14027 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14028 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14029 (struct sparc_gregset, struct regcache): Ditto.
14030 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14032 2004-01-12 Andrew Cagney <cagney@redhat.com>
14034 * mi/ChangeLog: Delete file. Renamed to ...
14035 * mi/ChangeLog-1999-2003: New file.
14036 * tui/ChangeLog: Delete file. Renamed to ...
14037 * tui/ChangeLog-1998-2003: New file.
14039 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14041 * sparc64nbsd-tdep.c: Include "regset.h".
14042 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14044 (fetch_core_registers): Remove function.
14045 (sparc64nbsd_core_fns): Remove variable.
14046 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14048 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14049 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14050 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14052 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14053 sparc_extract_struct_value_address.
14054 (sparc32_gdbarch_init): Set extract_struct_value_address.
14055 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14057 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14058 return_value_on_stack.
14060 * NEWS: Mention that %cs and %ss have been added to the AMD64
14063 * frame.c: Update copyright year.
14064 (get_prev_frame): Improve comment.
14066 * sparc64fbsd-tdep.c: Include "regset.h".
14067 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14069 (fetch_core_registers): Remove function.
14070 (sparc64fbsd_core_fns): Remove variable.
14071 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14073 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14074 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14075 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14077 * sparcnbsd-tdep.c: Include "regset.h".
14078 (fetch_core_registers): Remove function.
14079 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14080 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14082 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14084 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14086 * sparc-tdep.h (struct regset): Provide opaque declaration.
14087 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14088 fpregset and sizeof_fpregset members.
14089 * sparc-tdep.c (struct regset): Provide opaque declaration.
14090 (sparc_regset_from_core_section): New function.
14091 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14092 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14093 Set regset_from_core_section when appropriate.
14095 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14097 * x86-64-tdep.c (amd64_non_pod_p): New function.
14098 (amd64_classify_aggregate): Return class memory for non-POD
14099 C++ structure types.
14101 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14102 argument. Use it to reserve a register if necessary.
14103 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14104 amd64_push_arguments.
14106 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14108 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14109 register numbers in comments.
14110 * x86-64-tdep.h: Update copyright year.
14111 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14112 Adjust for addition of %cs and %ss.
14113 * amd64fbsd-nat.c: Update copyright year.
14114 (reg_offset): Add register offsets for %cs and %ss.
14115 * amd64fbsd-tdep.c: Update copyright year.
14116 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14117 (amd64fbsd_sc_reg_offset): Likewise.
14118 * x86-64-linux-nat.c: Update copyright year.
14119 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14121 * amd64nbsd-nat.c: Update copyright year.
14122 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14123 * amd64nbsd-tdep.c: Update copyright year.
14124 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14125 * x86-64-linux-tdep.c: Update copyright year.
14126 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14127 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14128 * regformats/reg-x86-64.dat: Add %cs and %ss.
14130 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14131 variables to prevent long lines. Update comments to reflect
14134 2004-01-09 David Carlton <carlton@kealia.com>
14136 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14137 * dwarf2read.c (read_namespace): Pull out name-generating code
14138 into namespace_name. Rename previous_namespace to previous_prefix
14139 and processing_current_namespace to processing_current_prefix..
14140 (namespace_name): New function.
14141 (add_partial_symbol): Substitute uses of pdi->name with
14143 * cp-support.h: Rename processing_current_namespace to
14144 processing_current_prefix.
14145 Update copyright year.
14146 * cp-namespace.c: Rename processing_current_namespace to
14147 processing_current_prefix.
14148 Update copyright year.
14150 2004-01-09 Andrew Cagney <cagney@redhat.com>
14152 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14154 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14156 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14158 (process_one_symbol): Deal with N_PATCH stabs.
14160 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14162 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14164 Update copyright year.
14166 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14168 * config/pa/tm-hppa.h: Update extern declarations for
14169 hppa32_hpux_frame_saved_pc_in_sigtramp,
14170 hppa32_hpux_frame_base_before_sigtramp, and
14171 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14173 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14175 * config/pa/tm-hppah.h: Update copyright years.
14177 2004-01-08 Andrew Cagney <cagney@redhat.com>
14179 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14180 (mips_o32_reg_struct_has_addr): Delete function.
14181 (mips_gdbarch_init): Update.
14182 (mips_extract_struct_value_address): Delete function.
14184 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14186 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14189 2004-01-07 Andrew Cagney <cagney@redhat.com>
14191 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14192 architecture's elf flags (when available).
14194 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14195 FPU to the start, check the MIPS FPU when looking for an old
14197 (set_mipsfpu_single_command): Update the architecture.
14198 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14200 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14201 (mips_mask_address_p): Add "tdep" parameter.
14202 (show_mask_address, mips_addr_bits_remove): Update.
14203 (mips_dump_tdep): Update.
14204 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14205 (MIPS_STACK_ARGSIZE): Delete macro.
14206 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14207 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14208 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14209 (mips_dump_tdep): Update.
14210 (MIPS_SAVED_REGSIZE): Delete macro.
14211 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14212 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14213 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14214 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14215 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14216 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14217 (mips_pop_frame, return_value_location): Update.
14218 (mips_n32n64_return_value, mips_dump_tdep): Update.
14220 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14223 * mips-tdep.c: Update copyright.
14224 (mips_gdbarch_init): Merge two code blocks handling the register
14225 name and number layout.
14227 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14229 * tracepoint.c (validate_actionline): Fix segv at EOF
14231 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14233 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14234 properly for static fields.
14236 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14237 Jason Molenda <jmolenda@apple.com>
14239 * disasm.c: Update copyright to include 2004.
14240 (do_mixed_source_and_assembly): For uiout asm list
14241 and tuple cleanups, initialize to null_cleanup instead of
14242 NULL and do so prior to loop. Only reset when we close off
14243 the tuple/list. Move check for whether to close off the
14244 asm tuple/list to after dump_insns call where it will be run
14245 on each loop iteration.
14247 2004-01-05 Andrew Cagney <cagney@redhat.com>
14249 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14250 should be a switch case and not a label.
14251 * mips-tdep.c (mips32_next_pc): Delete unused labels
14252 "greater_equal_branch" and "less_zero_branch".
14253 * jv-valprint.c (java_print_value_fields): Delete unused label
14256 * target.c (unpush_target): Only close a target that is in the
14259 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14261 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14262 address from [sp + 64] instead of %o2.
14264 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14265 fixes PR backtrace/1476.
14267 2004-01-05 Andrew Cagney <cagney@redhat.com>
14269 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14270 move to start of file.
14271 * i386-tdep.h (struct regcache): Add opaque declaration.
14272 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14274 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14275 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14276 * win32-nat.c (fake_create_process): Use ISO C style definition.
14277 * stabsread.c (define_symbol): Delete #ifndef
14278 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14279 stabs_argument_has_addr call, macro never defined.
14281 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14283 * op50-rom.c: Delete.
14284 * w89k-rom.c: Delete.
14285 * Makefile.in: Remove references.
14287 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14289 * x86-64-tdep.c: Update copyright year.
14290 (struct amd64_register_info): Rename from x86_64_register_info.
14291 (amd64_register_info): Rename from x86_64_register_info.
14292 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14293 (amd64_register_name): Rename from x86_64_register_name.
14294 (amd64_register_type): Rename from x86_64_register_type.
14295 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14296 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14297 (amd64_dwarf_reg_to_regnum): Rename from
14298 x86_64_dwarf_reg_to_regnum.
14299 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14300 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14301 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14302 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14303 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14304 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14305 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14306 (amd64_frame_cache): Rename from x86_64_frame_cache.
14307 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14308 (amd64_frame_prev_register): Rename from
14309 x86_64_frame_prev_register.
14310 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14311 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14312 (amd64_sigtramp_frame_cache): Rename from
14313 x86_64_sigtramp_frame_cache.
14314 (amd64_sigtramp_frame_prev_register): Rename from
14315 x86_64_sigtramp_frame_prev_register.
14316 (amd64_sigtramp_frame_unwind): Rename from
14317 x86_64_sigtramp_frame_unwind.
14318 (amd64_sigtramp_frame_sniffer): Rename from
14319 x86_64_sigtramp_frame_sniffer.
14320 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14321 (amd64_frame_base): Rename from x86_64_frame_base.
14322 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14323 (amd64_frame_align): Rename from x86_64_frame_align.
14324 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14325 (amd64_regset_from_core_section): Rename from
14326 x86_64_regset_from_core_section.
14327 (x86_64_init_abi): Update comments.
14329 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14331 * MAINTAINERS (write after approval): Add myself.
14333 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14335 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14338 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14340 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14341 such that it mentions a specific version of GCC that exhibits this
14344 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14346 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14347 structure that has a single `float' member, store it in %f1 in
14350 * sparc-sol2-nat.c: Add missing '\'.
14352 * sparc-tdep.c (sparc32_return_value): New function.
14353 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14355 (sparc32_gdbarch_init): Set return_value, don't set
14356 extract_return_value, store_return_value, use_struct_convention
14357 and return_value_on_stack.
14359 * sparc-sol2-nat.c: Add missing ')'.
14361 2004-01-03 J. Brobecker <brobecker@gnat.com>
14363 * infrun.c (handle_step_into_function): New function.
14364 (handle_inferior_event): Extract out some code into the new
14367 2004-01-03 J. Brobecker <brobecker@gnat.com>
14369 * infrun.c (handle_inferior_event): Move the declaration of
14370 real_stop_pc inside the if blocks where it is used.
14372 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14374 * sparc64-tdep.c (sparc64_16_byte_align_p)
14375 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14376 Use check_typedef to get subtypes of structures and unions.
14377 (sparc64_store_return_value): Fix calculation of the appropriate
14378 offset into VALBUF when storing a structure or union.
14379 (sparc64_return_value): New function.
14380 (sparc64_use_struct_convention): Remove function.
14381 (sparc64_init_abi): Set return_value, don't set
14382 extract_return_value, store_return_value and
14383 use_struct_convention.
14385 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14387 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14388 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14389 gdb/config/alpha/xm-alphaosf.h,
14390 gdb/config/powerpc/tm-ppcle-eabi.h,
14391 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14392 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14393 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14394 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14395 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14396 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14397 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14398 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14399 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14400 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14401 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14402 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14403 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14404 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14405 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14406 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14407 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14408 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14409 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14410 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14411 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14412 Remove lines for .cvsignore files.
14414 2004-01-03 J. Brobecker <brobecker@gnat.com>
14416 * infrun.c: Back out the previous change.
14418 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14420 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14421 sparc-*-sunos4* to the list of REMOVED configurations.
14423 * configure.tgt: Add back sparc-*-vxworks*.
14424 * remote-vxsparc.c: Remove all includes except for "defs.h",
14425 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14426 Include "sparc-tdep.h".
14427 (SPARC_R_G1): New define.
14428 (vxsparc_gregset): New variable.
14429 (ext_format_sparc): Remove extern declaration.
14430 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14431 sparc32_supply_fpregset.
14432 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14433 sparc_collect_rwindow and sparc32_collect_fpregset.
14434 * config/sparc/tm-vxworks.h: New file, based on recently removed
14436 * config/sparc/vxworks.mt: New file, based on recently removed
14439 2004-01-03 J. Brobecker <brobecker@gnat.com>
14441 * infrun.c (handle_step_into_function): New function.
14442 (handle_inferior_event): Extract out some code into the new
14445 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14447 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14448 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14449 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14450 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14451 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14452 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14453 (sparc_nat_h): New variable.
14454 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14455 (tm-sun4os4.h): Remove dependency.
14456 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14457 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14458 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14459 sparc-tdep.o): Update dependencies.
14460 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14461 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14462 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14464 * configure.host: Remove existing sparc-*-lynxos*,
14465 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14466 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14467 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14468 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14470 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14471 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14472 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14473 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14474 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14475 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14476 sparc64-*-solaris2* and sparc64-*-* triplets.
14477 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14478 "symtab.h" and "objfiles.h".
14479 (BIAS): Remove define.
14480 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14481 (X_DISP19): Remove macros.
14482 (sparc_fetch_instruction): Remove function.
14483 (struct gdbarch_tdep): Remove definition.
14484 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14485 (sparc_breakpoint_from_pc): Remove function.
14486 (struct sparc64_frame_cache): Remove definition.
14487 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14488 sparc64_unwind_pc): Remove functions.
14489 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14490 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14491 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14492 (sparc64_frame_cache): Change return type to `struct
14493 sparc_frame_cache *'. Simply call sparc_frame_cache.
14494 (sparc64_frame_this_id, sparc64_frame_prev_register,
14495 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14496 instead of `struct sparc64_frame_cache.
14497 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14498 sparc_analyze_control_transfer, sparc_software_single_step,
14499 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14500 _initialize_sparc64_tdep): Remove functions.
14501 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14502 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14504 (sparc64_supply_gregset, sparc64_collect_gregset,
14505 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14506 (sparc64_init_abi): New function.
14507 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14508 inclusion guard. Include "sparc-tdep.h".
14510 (r_tstate_offset, r_fprs_offset): New defines.
14511 (enum sparc_regnum): Remove defenition.
14512 (enum sparc64_regnum): Reformat.
14513 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14514 (sparc64_init_abi, sparc64_supply_gregset,
14515 sparc64_collect_gregset, sparc64_supply_fpregset,
14516 sparc64_collect_fpregset): New prototypes.
14517 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14518 Add extern declarations.
14519 (sparc64_sol2_init_abi): New prototype.
14520 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14521 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14523 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14525 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14527 (_initialize_sparc64fbsd_nat): Remove initialization of
14528 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14529 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14530 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14531 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14532 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14533 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14534 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14535 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14536 (sparc64fbsd_r_y_offset): Remove variables.
14537 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14538 Make static and const.
14539 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14540 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14542 (sparc64fbsd_gregset): New variable.
14543 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14544 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14545 and sparc64_supply_fpregset.
14546 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14547 (sparc64fbsd_sigtramp_frame_this_id)
14548 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14549 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14550 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14551 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14552 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14553 * sparcnbsd-tdep.c: Update copyright year. Include
14554 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14555 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14556 "value.h" and "sparcnbsd-tdep.h".
14557 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14558 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14559 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14560 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14562 (sparcnbsd_gregset): New variable.
14563 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14564 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14565 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14566 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14567 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14569 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14570 (sparc32nbsd_sigcontext_frame_this_id)
14571 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14572 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14573 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14574 (sparcnbsd_get_longjmp_target_32,
14575 sparcnbsd_get_longjmp_target_64): Remove functions.
14576 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14577 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14578 sparcnbsd_init_elf): Remove.
14579 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14580 (sparcnbsd_elf_init_abi): New functions.
14581 (_initialize_sparcnbsd_tdep): New prototype.
14582 (_initialize_sparnbsd_tdep): Update.
14583 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14584 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14585 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14586 * config/sparc/linux.mh: Update comment.
14587 (XM_FILE, HOST_IPC): Remove variables.
14588 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14590 * config/sparc/linux.mt: Update comment.
14591 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14592 * config/sparc/nbsd.mt: Reformat.
14593 * config/sparc/nbsd64.mh: Update comment.
14594 (NATDEPFILES): Add sparc-nat.o.
14595 * config/sparc/nbsd64.mt: Update comment.
14596 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14597 (TM_FILE): Set to tm-nbsd.h.
14598 * config/sparc/nbsdelf.mh: Update comment.
14599 (NATDEPFILES): Add sparc-nat.o.
14601 * config/sparc/nbsdaout.mh: Update comment.
14602 (NATDEPFILES): Add sparc-nat.o
14604 * config/sparc/nm-linux.h: Update copyright year. Don't include
14605 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14607 (KERNEL_U_SIZE): Remove define.
14608 (kernel_u_size): Remove prototype.
14609 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14610 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14612 (CHILD_PREPARE_TO_STORE): Remove define.
14613 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14614 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14615 sparcnbsd-nat.c: Rewrite files.
14616 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14617 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14618 sparcnbsd-tdep.h: Remove files.
14619 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14620 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14621 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14622 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14623 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14624 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14625 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14626 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14627 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14628 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14629 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14630 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14631 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14632 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14633 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14634 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14635 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14636 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14637 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14639 2004-01-02 Andrew Cagney <cagney@redhat.com>
14641 From 2003-12-18 Kazuhiro Inaoka:
14642 * configure.host: Add m32r-linux target.
14644 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14646 * top.c (print_gdb_version): Update year to 2004.
14648 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14650 * MAINTAINERS: Add myself to the write-after-approval category.
14652 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14654 From Bernardo Innocenti <bernie@develer.com>:
14655 * configure.tgt: Add uClinux target.
14657 2004-01-02 Andrew Cagney <cagney@redhat.com>
14659 * utils.c (do_my_cleanups): Make static, add forward declaration.
14660 * defs.h (do_my_cleanups): Delete declaration.
14662 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14664 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14665 bfd/ChangeLog-0203.
14667 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14669 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14670 in <machine/reg.h>.
14671 * configure, config.in: Regenerate.
14673 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14674 tui/ChangeLog-1998-2003.
14680 version-control: never