1 2004-11-29 Mark Kettenis <kettenis@gnu.org>
3 * fork-child.c (fork_inferior): Fork instead of vfork if
4 PRE_TRACE_FUN is non-null.
6 2004-11-24 Fred Fish <fnf@specifixinc.com>
8 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
9 compiler generated function calls made as part of a prologue.
11 2004-11-23 Mark Kettenis <kettenis@gnu.org>
13 * inf-ttrace.c: New file.
14 * inf-ttrace.h: New file.
15 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
16 Include "inf-ttrace.h".
17 (ss_mpsfu_high): Define to ss_tlsp if necessary.
18 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
19 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
21 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
22 instead of inf_ptrace_target.
23 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
24 * Makefile.in (inf_ttrace_h): New variable.
25 (hppa-hpux-nat.o): Update dependency.
26 (inf-ttrace.o): New dependency.
27 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
29 2004-11-23 Randolph Chung <tausq@debian.org>
31 * arch-utils.c (generic_instruction_nullified): New.
32 * arch-utils.h (generic_instruction_nullified): New.
33 * gdbarch.sh (instruction_nullified): New method.
34 * gdbarch.c: Regenerate.
35 * gdbarch.h: Regenerate.
36 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
37 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
39 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
40 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
41 static. Rewrite to work directly off the passed regcache.
42 (hppa_gdbarch_init): Set instruction_nullified method.
44 2004-11-23 Joel Brobecker <brobecker@gnat.com>
46 * sparc-tdep.c (sparc_is_unimp_insn): New function.
47 (sparc32_frame_cache): For functions where there is no debugging
48 information to help us determine whether it's a struct-return
49 function or not, fallback on checking whether the instruction
50 at the return address is an "unimp" instruction or not.
52 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
54 * MAINTAINERS: Add myself to write after approval section.
56 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
57 hpux-thread.c to suppress children from running.
58 (hppa_hpux_child_can_run): New function.
59 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
60 * hpux-thread.c: Include string.h and hppa-tdep.h.
61 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
62 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
63 (hpux_thread_store_registers): Replace deprecated_registers with
64 calls to regcache_raw_read.
65 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
67 2004-11-21 Mark Kettenis <kettenis@gnu.org>
69 * sparc64fbsd-nat.c: Update copyright year.
70 (_initialize_sparc64fbsd_nat): Construct and add target vector.
71 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
74 2004-11-21 Daniel Jacobowitz <dan@debian.org>
76 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
78 2004-11-21 Daniel Jacobowitz <dan@debian.org>
80 * linux-nat.c (my_waitpid): New function.
81 (linux_test_for_tracefork): Make more robust and verbose. Take
82 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
83 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
84 argument. Update calls to linux_test_for_tracefork.
85 (linux_enable_event_reporting, child_follow_fork)
86 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
87 (child_insert_exec_catchpoint): Update calls to
88 linux_supports_tracefork and linux_supports_tracevforkdone.
90 2004-11-21 Daniel Jacobowitz <dan@debian.org>
92 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
93 (value_subscripted_rvalue): Likewise.
94 * valops.c (search_struct_field, value_slice): Likewise.
96 2004-11-21 Mark Kettenis <kettenis@gnu.org>
98 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
99 Reorder includes a bit. Fix comment.
100 * Makefile.in (inf-ptrace.o): Update dependencies.
102 2004-11-21 Andreas Schwab <schwab@suse.de>
104 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
105 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
106 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
107 to glibc_skip_solib_resolver.
108 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
110 * Makefile.in (m68klinux-tdep.o): Update dependencies.
112 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
114 * infttrace.h (ttrace_write_reg_64): Add prototype.
115 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
117 (store_inferior_registers): Correct formatting. Replace uses of
118 deprecated_registers with calls to regcache_raw_read,
119 regcache_raw_write_part and regcache_raw_read_part.
121 2004-11-21 Mark Kettenis <kettenis@gnu.org>
123 * config/pa/hppahpux.mh: Remove file.
124 * config/pa/hpux1020.mh: Remove file.
126 2004-11-20 Andreas Schwab <schwab@suse.de>
128 * configure.host: Set host floatformat for m68k.
130 2004-11-20 Eli Zaretskii <eliz@gnu.org>
132 * config/djgpp/fnchange.lst: Resolve file-name clash between
133 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
135 2004-11-20 Mark Kettenis <kettenis@gnu.org>
137 * hppa-hpux-nat.c: New file.
138 * config/pa/hpux.mh (NATDEPFILES): New file.
139 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
140 (hppa-hpux-nat.o): New dependency.
141 * configure.host: Remove hppa*-*-hpux10.20.
142 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
144 * inf-ptrace.c: Fix coding style.
146 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
147 * infptrace.c (call_ptrace): Simply call ptrace with four
150 * dbxread.c (process_one_symbol): Fix a few coding standard
151 issues. Improve code formatting.
153 * dbxread.c: Include "gdb_string.h".
154 (record_minimal_symbol, read_ofile_symtab): Replace
155 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
156 * Makefile.in (dbxread.o): Update dependencies.
158 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
159 of bytes read for aligned LEB128 encodings.
161 2004-11-19 Mark Kettenis <kettenis@gnu.org>
163 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
164 parse_and_eval_address to u_long before converting it to a pointer
166 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
167 ps_strings from int to u_long.
168 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
169 u_long instead of CORE_ADDR.
171 2004-11-18 Mark Kettenis <kettenis@gnu.org>
173 * dbxread.c (process_one_symbol): Do not adjust address of first
174 N_SLINE stab for a function for code generated by non-GCC
177 2004-11-18 Kevin Buettner <kevinb@redhat.com>
179 * solib-null.c: New file.
181 2004-11-17 Andrew Cagney <cagney@gnu.org>
183 * MAINTAINERS: Drop MIPS and remote.
185 2004-11-15 Andrew Cagney <cagney@gnu.org>
187 * findvar.c (value_of_register): Set the frame ID.
188 * value.c (value_primitive_field): Copy the frame ID.
189 * valops.c (value_assign): Simplify lval_register case, there's
192 2004-11-14 Daniel Jacobowitz <dan@debian.org>
194 * Makefile.in (mips-linux-tdep.o): Update dependencies.
195 * mips-linux-tdep.c: Include "regcache.h".
196 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
198 2004-11-14 Daniel Jacobowitz <dan@debian.org>
200 * Makefile.in (linux-thread-db.o): Fix typo in last change.
202 2004-11-14 Daniel Jacobowitz <dan@debian.org>
204 * linux-thread-db.c: New file, renamed from thread-db.c.
205 * thread-db.c: Remove.
206 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
207 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
208 to linux-thread-db.o.
209 * config/arm/linux.mh (NATDEPFILES): Likewise.
210 * config/i386/linux.mh (NATDEPFILES): Likewise.
211 * config/i386/linux64.mh (NATDEPFILES): Likewise.
212 * config/ia64/linux.mh (NATDEPFILES): Likewise.
213 * config/m32r/linux.mh (NATDEPFILES): Likewise.
214 * config/m68k/linux.mh (NATDEPFILES): Likewise.
215 * config/mips/linux.mh (NATDEPFILES): Likewise.
216 * config/pa/linux.mh (NATDEPFILES): Likewise.
217 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
218 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
219 * config/s390/s390.mh (NATDEPFILES): Likewise.
220 * config/sparc/linux.mh (NATDEPFILES): Likewise.
221 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
223 2004-11-13 Andrew Cagney <cagney@gnu.org>
225 * config/i386/i386lynx.mh: Delete file.
226 * config/i386/i386lynx.mt: Delete file.
227 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
228 * i386ly-tdep.c: Delete.
230 * config/tm-lynx.h: Delete, inline contents ...
231 * config/rs6000/tm-rs6000ly.h: ... here.
233 * config/tm-sysv4.h: Delete file, inlining contents.
234 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
235 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
236 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
238 * regcache.h (deprecated_register_valid): Delete.
239 (deprecated_registers): Delete.
240 * regcache.c (deprecated_register_valid): Delete.
241 (deprecated_registers): Delete.
242 (deprecated_read_register_byte, _initialize_regcache)
243 (deprecated_write_register_bytes, build_regcache): Update.
244 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
246 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
247 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
249 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
250 v850-*-* under removed.
251 * configure.host: Delete ns32k-*-netbsd*.
252 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
253 ns32k-*-netbsd*, and v850*-*-*.
254 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
256 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
257 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
258 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
259 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
260 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
261 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
262 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
263 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
264 * v850-tdep.c: Delete.
266 2004-11-13 Joel Brobecker <brobecker@gnat.com>
268 * irix5-nat.c (fetch_core_registers): Replace use of
269 deprecated_registers by equivalent code.
271 2004-11-13 Joel Brobecker <brobecker@gnat.com>
273 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
274 with equivalent code.
275 (fill_fpregset): Likewise.
277 2004-11-13 Andrew Cagney <cagney@gnu.org>
279 * MAINTAINERS: Do not list "Deleted" architectures.
281 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
282 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
284 * NEWS: Mention that vxworks was deleted.
285 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
286 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
287 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
288 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
289 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
290 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
291 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
292 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
293 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
294 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
295 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
296 * remote-vxmips.c, remote-vx.c: Delete.
297 * remote-vx68.c: Delete.
298 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
299 * config/m68k/os68k.mt, ada-lang.h: Ditto.
300 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
301 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
303 2004-11-13 Eli Zaretskii <eliz@gnu.org>
305 * config/i386/xm-go32.h: Don't include fopen-bin.h.
306 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
308 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
309 branch that doesn't define CRLF_SOURCE_FILES; always use
311 (print_source_lines_base, forward_search_command)
312 (reverse_search_command): Enable the code that accepts DOS-style
313 CRLF line endings on all platforms (this removes the need for
316 * defs.h: Fix wording of the comment before FOPEN_RB.
317 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
319 * config/djgpp/fnchange.lst: Group renames for opcode directory
322 * config/djgpp/djconfig.sh: Replace file names that don't exist
323 anymore with existing files, for checking the unpacked
326 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
327 Export pre-cooked values in configure-* targets that begin with
328 "@test -f stage_last".
330 2004-11-12 Andrew Cagney <cagney@gnu.org>
332 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
333 * value.h (struct value): Update comment.
334 * valops.c (value_assign): Fold lval_reg_fame_relative into
336 * findvar.c (value_from_register, locate_var_value): Ditto.
338 2004-11-12 Randolph Chung <tausq@debian.org>
340 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
341 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
342 (write_exp_msymbol): Remove conditional check for symbols starting
343 with $. Update comments.
345 2004-11-12 Randolph Chung <tausq@debian.org>
347 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
348 so_lib_thread_start_addr.
349 * pa64solib.h (so_list): Forward declare.
350 (pa64_solib_thread_start_addr): Prototype.
351 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
352 (no_shared_libraries): Remove.
353 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
354 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
355 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
356 the elf solib handler to find the start address.
358 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
359 files to the target makefile.
360 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
361 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
362 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
364 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
365 files for symbol reading and shared library handling here.
366 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
367 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
368 without bringing in 64-bit support.
370 2004-11-12 Andrew Cagney <cagney@gnu.org>
372 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
373 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
374 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
375 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
376 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
377 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
378 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
380 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
381 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
382 (VALUE_REGNUM): Define.
383 (struct value): Delete location.regnum, rename "regno" to
385 * value.c, valops.c, valarith.c, findvar.c: Update.
387 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
388 (VALUE_BITPOS): Delete.
389 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
390 * value.c (value_type, value_offset, value_bitpos)
391 (value_bitsize): New functions. Update references.
392 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
393 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
394 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
395 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
396 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
397 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
398 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
399 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
400 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
402 2004-11-12 Andrew Cagney <cagney@gnu.org>
404 * cris-tdep.c (cris_register_offset): Delete, never called.
405 (cris_spec_reg_applicable): Delete cris_ver_sim.
406 * MAINTAINERS: List d10v as OBSOLETE.
407 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
408 FOPEN_WB et.al., defined by "fopen-bin.h".
410 2004-11-12 Randolph Chung <tausq@debian.org>
412 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
413 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
414 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
415 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
417 2004-11-12 Mark Kettenis <kettenis@jive.nl>
419 * tui/tui-io.c: Don't include "terminal.h".
420 * Makefile.in (tui-io.o): Update dependencies.
422 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
424 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
425 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
426 set_gdbarch_regset_from_core_section for core file support.
427 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
430 2004-11-11 Randolph Chung <tausq@debian.org>
432 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
433 stop_after_branch parameter and use it to determine if we should look
434 at the delay slot of the first branch insn to find prologue insns.
435 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
436 (hppa_frame_cache): Likewise.
438 2004-11-11 Randolph Chung <tausq@debian.org>
440 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
441 register so that it can be unwound from anywhere in the prologue.
443 2004-11-10 msnyder <msnyder@redhat.com>
445 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
446 must invalidate lr_reg (so we don't try to save it again).
447 Ditto for cr_offset and cr_reg.
449 2004-11-05 Jon Beniston <jon@beniston.com>
451 Committed by Andrew Cagney.
452 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
453 when an unexpected packet is received, as the target stubs
454 continually retransmit the same packet until ACKed.
456 2004-11-10 Randolph Chung <tausq@debian.org>
458 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
461 2004-11-10 Randolph Chung <tausq@debian.org>
463 * blockframe.c (inside_entry_func): Move to .....
464 * frame.c (inside_entry_func): ... here, and make static.
465 (backtrace_past_entry): New flag.
466 (get_prev_frame): Stop backtrace at the entry function if enabled
467 by flag. Update comments.
468 (_initialize_frame): Add command to set backtrace_past_entry flag.
469 * defs.h (inside_entry_func): Remove prototype.
471 2004-11-10 Mark Kettenis <kettenis@gnu.org>
473 * dwarf2read.c: Fix formatting.
475 2004-11-10 Andrew Cagney <cagney@gnu.org>
477 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
478 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
479 macros with function declarations.
480 * value.c (coerce_ref, coerce_array, coerce_number)
481 (coerce_enum): New functions.
482 (value_as_long, value_as_address): Update.
483 * ada-lang.c (ada_coerce_ref, ada_value_binop)
484 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
485 * jv-lang.c (evaluate_subexp_java): Update.
486 * valarith.c (value_less, value_neg, value_complement)
487 (value_binop, value_add, value_subscript, value_x_binop)
488 (value_logical_not, value_sub): Update.
489 * valops.c (check_field, value_struct_elt, value_ind)
490 (value_find_oload_method_list, value_cast, value_assign): Update.
491 * eval.c (evaluate_subexp_standard): Update.
493 2004-11-10 Mark Kettenis <kettenis@gnu.org>
495 * mips-tdep.c (mips32_relative_offset): Change return type to
496 LONGEST, change argument type to ULONGEST. Fix sign-extension.
498 2004-11-10 Randolph Chung <tausq@debian.org>
500 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
501 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
502 (hppa_fetch_pointer_argument): Likewise.
503 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
504 deprecated_read_memory_nobpt.
505 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
506 add_set_cmd sequence with add_setshow_boolean_cmd.
508 2004-11-09 Andrew Cagney <cagney@gnu.org>
510 GDB 6.3 released from GDB 6.3 branch.
512 2004-11-09 Andrew Cagney <cagney@gnu.org>
514 * values.c: Rename to ...
515 * value.c: ..., new file.
516 * Makefile.in: Update.
518 2004-11-09 Daniel Jacobowitz <dan@debian.org>
520 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
523 2004-11-09 Andrew Cagney <cagney@gnu.org>
527 * value.h (struct value): Delete field bfd_section.
528 (VALUE_BFD_SECTION): Delete macro.
529 (COERCE_REF): Update.
530 (value_at, value_at_lazy): Delete asection parameter.
531 * printcmd.c (print_formatted, x_command): Update.
532 (do_examine): Delete asection parameter.
533 (next_section): Delete variable.
534 * valops.c (value_cast, value_at, value_at_lazy)
535 (value_coerce_function, value_addr, value_ind, value_string)
536 (find_rt_vbase_offset, value_full_object): Update.
537 * hpacc-abi.c (hpacc_virtual_fn_field)
538 (hpacc_value_rtti_type): Update.
539 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
540 (gnuv3_baseclass_offset): Update.
541 * f-valprint.c (f_val_print): Update.
542 * c-valprint.c (c_val_print): Update.
543 * p-valprint.c (pascal_val_print): Update.
544 * jv-valprint.c (java_value_print): Update.
545 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
546 * ada-lang.c (ada_value_primitive_packed_val)
547 (ada_evaluate_subexp): Update.
548 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
549 * expprint.c (print_subexp_standard): Update.
550 * infcall.c (call_function_by_hand): Update.
551 * valarith.c (value_add): Update.
552 * eval.c (evaluate_subexp_standard): Update.
553 * values.c (allocate_value, value_copy, value_static_field): Update.
554 * findvar.c (read_var_value, locate_var_value): Update.
556 2004-11-09 Andrew Cagney <cagney@gnu.org>
558 * i386-linux-tdep.c: Include "dwarf2-frame.h".
559 * Makefile.in: Update all dependencies.
561 2004-11-08 Andrew Cagney <cagney@gnu.org>
563 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
564 (sentinel_frame_unwinder): Add the prev_pc method.
565 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
566 available. Do not handle the sentinel-frame case.
567 * frame-unwind.h (frame_prev_register_ftype): Define.
568 (struct frame_unwind): Add prev_pc;
570 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
572 * configure.in: Check for ncurses/term.h.
573 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
574 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
575 * tui/tui.c: Don't include term.h.
576 * configure, config.in: Rebuilt.
578 2004-11-08 Mark Kettenis <kettenis@gnu.org>
580 * m68kbsd-nat.c: Include "inf-ptrace.h".
581 (_initialize_m68kbsd_nat): Fix pasto.
582 * Makefile.in (m68kbsd-nat.o): Update dependencies.
584 2004-11-08 Randolph Chung <tausq@debian.org>
586 * infrun.c (debug_infrun): New variable.
587 (resume, proceed, wait_for_inferior): Annotate with debug messages.
588 (handle_inferior_event, keep_going): Likewise.
589 (_initialize_infrun): Register "set debug infrun" command.
591 2004-11-08 Andreas Schwab <schwab@suse.de>
593 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
594 PTRACE_EVENT_VFORKDONE.
595 (child_follow_fork): Adjust.
597 2004-11-08 Andrew Cagney <cagney@gnu.org>
599 * README: Refer to 6.3, not 6.2, update directory listing droppng
600 references to intl/ and mmalloc/.
601 * PROBLEMS: Refer to 6.3 not 6.2.
603 * PROBLEMS: Delete no-longer applicable problems.
605 2004-11-07 Andrew Cagney <cagney@redhat.com>
606 Daniel Jacobowitz <dan@debian.org>
607 Roland McGrath <roland@redhat.com>
609 * Makefile.in (symfile-mem.o): Update dependencies.
610 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
611 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
612 * inf-ptrace.c (inf_ptrace_attach): Call
613 observer_notify_inferior_created.
614 * inftarg.c (child_attach): Likewise.
615 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
616 (symbol_file_add_from_memory): Take NAME argument. Use it for
617 the new BFD's filename.
618 (add_symbol_file_from_memory_command): Update call to
619 symbol_file_add_from_memory.
620 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
621 (symbol_file_add_from_memory_wrapper): New.
622 (_initialize_symfile_mem): Register add_vsyscall_page as an
623 inferior_created observer.
625 2004-11-07 Mark Kettenis <kettenis@gnu.org>
627 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
628 fetch_inferior_registers. Make static.
629 (m68kbsd_store_inferior_registers): Rename from
630 store_inferior_registers. Make static.
631 (_initialize_m68kbsd_nat): Construct and add target vector.
632 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
633 inftarg.o. Add inf-ptrace.o.
634 (NAT_FILE): Set to tm-solib.h.
635 (LOADLIBES): New variable.
636 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
637 inftarg.o. Add inf-ptrace.o.
638 (NAT_FILE): Delete variable.
639 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
640 inftarg.o. Add inf-ptrace.o.
641 (NAT_FILE): Set to tm-solib.h.
642 * config/m68k/nm-nbsdaout.h: Remove file.
644 2004-11-07 Daniel Jacobowitz <dan@debian.org>
646 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
647 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
648 (dwarf2_signal_frame_unwind): New.
649 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
650 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
652 2004-11-07 Mark Kettenis <kettenis@gnu.org>
654 * Makefile.in (mips64obsd-tdep.o): Fix typo.
656 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
657 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
658 to only include the structure members we actually need.
659 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
660 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
661 only include the structure members we actually need.
662 (mipsnbsd_init_abi): Update.
664 * mips64obsd-nat.c: Include "mips-tdep.h".
665 (MIPS64OBSD_NUM_REGS): Remove define.
666 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
667 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
668 floating-point registers correctly.
669 * Makefile.in (mips64obsd-nat.o): Update dependencies.
671 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
673 (mips64obsd_sigframe_init): New function.
674 (mips64obsd_sigframe): New variable.
675 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
677 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
679 2004-11-06 Joel Brobecker <brobecker@gnat.com>
681 * alpha-mdebug-tdep.c: #include mdebugread.h.
682 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
683 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
685 2004-11-05 Andrew Cagney <cagney@gnu.org>
687 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
688 CFI and the init_reg method leave the register unspecified.
689 Include the register name in the "Incomplete CFI data" complaint.
690 Supress leading zeros in the address.
692 2004-11-05 Mark Kettenis <kettenis@gnu.org>
694 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
695 skipping a personality routine in a CIE augmentation.
697 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
699 * defs.h (fatal, vfatal): New function prototypes.
700 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
702 (backtrace_command): Change to call backtrace_command_stub via
703 catch_errors instead of calling backtrace_command_1 directly.
704 (backtrace_full_command): Ditto.
705 * utils.c (error_stream_1): New static function.
706 (verror): Change to call error_stream_1 instead of error_stream.
707 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
708 (vfatal, fatal): New functions.
710 2004-11-05 Andrew Cagney <cagney@gnu.org>
712 * stack.c (parse_frame_specification_1): Clear selected_frame_p
713 when not using selected frame.
715 2004-11-05 Mark Kettenis <kettenis@jive.nl>
717 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
718 personality routine in a CIE augmentation.
720 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
722 * stack.c (set_current_sal_from_frame): New function.
723 (print_args_stub): Use it.
724 (print_frame_info): Don't set sal here.
726 2004-11-04 Mark Kettenis <kettenis@gnu.org>
728 * dwarf2-frame.c (read_encoded_value): Change type of third
729 argument to `unsigned char *'. Add support for LEB128 encodings.
731 2004-11-04 Jim Blandy <jimb@redhat.com>
733 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
734 prevent cross-objfile references.
735 (make_cv_type): Doc fix. Don't create cross-objfile references,
737 (replace_type): Add assertion to prevent cross-objfile references.
738 (check_typedef): Never resolve a stub type by copying over a type
741 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
743 * Makefile.in (m32r-tdep.o): Update dependencies.
744 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
745 ABI-specific overrides.
747 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
749 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
750 unnecessary parallel execution bit.
751 (m32r_memory_remove_breakpoint): Ditto.
752 (m32r_breakpoint_from_pc): Update.
754 2004-11-03 Randolph Chung <tausq@debian.org>
756 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
757 frame_func_unwind to locate the unwind entry.
758 (hppa_frame_this_id): Likewise.
760 2004-11-03 Andrew Cagney <cagney@gnu.org>
762 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
763 packet, obsolete configurations, end-of-life deprecated_registers.
765 2004-11-02 Mark Kettenis <kettenis@gnu.org>
767 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
768 encodings as well as unsigned encodings.
770 2004-11-02 Andrew Cagney <cagney@gnu.org>
772 * value.h (COERCE_VARYING_ARRAY): Delete.
773 * valops.c (value_cast, value_slice): Delete use.
774 * valarith.c (value_subscript, value_concat): Delete use.
776 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
778 * NEWS: GDB understands GNAT Ada.
780 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
782 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
783 (amd64-sol2-tdep.o): Add dependencies.
784 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
785 config/i386/sol2-64.mt: New files.
786 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
787 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
788 (supply_gregset): Correct order of arguments to
789 amd64_supply_native_gregset.
790 (fill_gregset): Correct order of arguments to
791 amd64_collect_native_gregset.
792 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
793 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
794 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
795 for definition of NEW_PROC_API.
796 * configure: Regenerate.
798 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
800 * MAINTAINERS (Write After Approval): Add myself.
802 2004-11-01 Andrew Cagney <cagney@gnu.org>
804 * configure.tgt: Mark d10v-*-* as obsolete.
805 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
807 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
809 * values.c (modify_field): Correct handling of bit-fields that
810 don't fit in 32 bits. Use unsigned operations throughout and
811 simplify the code a bit. Document preconditions.
813 2004-10-31 Andrew Cagney <cagney@gnu.org>
815 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
816 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
817 (in_plt_section): Delete.
819 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
820 (mips_gdbarch_init): Do not set same.
822 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
823 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
825 * gdbarch.sh (in_solib_call_trampoline): Delete.
826 * gdbarch.h, gdbarch.c: Re-generate.
828 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
829 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
830 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
831 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
832 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
834 2004-10-31 Mark Kettenis <kettenis@gnu.org>
836 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
837 (mipsnbsd_fetch_inferior_registers): Rename from
838 fetch_inferior_registers. Make static.
839 (mipsnbsd_store_inferior_registers): Rename from
840 store_inferior_registers. Make static.
841 (_initialize_mipsnbsd_nat): New function and prototype.
842 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
843 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
844 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
847 2004-10-31 Andrew Cagney <cagney@gnu.org>
849 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
850 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
851 delete corresponding unused function.
852 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
853 in_solib_call_trampoline.
854 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
855 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
856 * config/mips/tm-nbsd.h: Ditto.
857 * config/arm/tm-linux.h: Ditto.
858 * config/mips/tm-linux.h: Ditto.
860 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
861 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
862 in_solib_call_trampoline, delete corresponding unused function.
863 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
864 (vaxnbsd_aout_init_abi): Ditto.
865 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
866 (sparc32nbsd_aout_init_abi): Ditto.
867 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
868 (ppc_linux_init_abi): Ditto.
869 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
870 (ns32knbsd_init_abi_aout): Ditto.
871 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
872 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
873 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
874 (m68kbsd_aout_init_abi): Ditto.
875 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
876 (i386_cygwin_init_abi): Ditto.
877 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
878 (i386bsd_init_abi): Ditto.
880 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
881 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
882 isn't used by this architecture.
883 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
884 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
885 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
886 * s390-tdep.c (s390_gdbarch_init): Ditto.
887 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
888 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
889 * i386-tdep.c (i386_svr4_init_abi): Ditto.
890 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
891 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
892 * amd64-tdep.c (amd64_init_abi): Ditto.
894 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
895 in_solib_call_trampoline to its default value of
896 generic_in_solib_call_trampoline.
897 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
898 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
899 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
900 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
901 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
902 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
904 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
906 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
908 * config/mips/tm-mips.h: Delete file.
909 * remote-mips.c: Delete tm-mips.h from comment.
910 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
911 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
912 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
913 * config/mips/tm-linux.h: Don't include tm-mips.h.
914 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
915 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
916 * config/mips/tm-wince.h: Don't include.
918 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
919 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
920 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
921 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
923 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
924 * mdebugread.c (ecoff_relocate_efi): Delete function.
925 * objfiles.c (objfile_relocate): Delete #ifdef
926 MDEBUG_EFI_SYMBOL_NAME code.
928 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
929 Andrew Cagney <cagney@gnu.org>
931 * gdbarch.sh (single_step_through_delay): Add.
932 * gdbarch.h, gdbarch.c: Re-generate.
933 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
934 (mips_step_skips_delay): Delete.
935 * mips-tdep.c (mips_single_step_through_delay): Replace
936 mips_step_skips_delay.
937 (mips_gdbarch_init): Set single_step_through_delay.
938 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
940 2004-10-31 Mark Kettenis <kettenis@gnu.org>
942 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
943 from TRAMP_FRAME frame type.
945 2004-10-31 Andrew Cagney <cagney@gnu.org>
947 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
949 * mips-tdep.c (mips_ignore_helper): Delete.
950 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
951 * infrun.c (handle_inferior_event): Delete #ifdef
952 DEPRECATED_IGNORE_HELPER_CALL code.
954 * config/mips/tm-mips.h (RA_REGNUM): Delete.
956 2004-10-31 Mark Kettenis <kettenis@gnu.org>
958 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
959 (fill_fpregset): Do not compile for 64-bit systems.
960 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
961 * Makefile.in (i386-sol2-nat.o): Update dependencies.
962 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
964 2004-10-30 Andrew Cagney <cagney@gnu.org>
966 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
967 (struct mdebug_extra_func_info): Define.
968 * config/alpha/tm-alpha.h: Delete same.
969 * config/mips/tm-mips.h: Delete same.
970 * mdebugread.c: Delete same.
971 * Makefile.in: Update dependencies.
972 * mips-mdebug-tdep.c: Include "mdebugread.h".
974 * objfiles.c: Include "mdebugread.h".
975 * mdebugread.c: Include "mdebugread.h".
976 (ecoff_relocate_cfi): Delete.
977 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
978 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
979 * mdebugread.h (ecoff_relocate_efi): New file.
980 * Makefile.in: Update dependencies.
982 * mips-tdep.c (struct frame_extra_info): Delete.
983 (temp_proc_desc): Delete.
985 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
986 MIPS_EFI_SYMBOL_NAME.
987 (mips_extra_func_info_t, mips_extra_func_info): Delete.
988 (struct mdebug_extra_func_info): Replace struct
989 alpha_extra_func_info and alpha_extra_func_info_t.
990 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
991 MIPS_EFI_SYMBOL_NAME.
992 (struct mdebug_extra_func_info): Replace struct
993 alpha_extra_func_info and alpha_extra_func_info_t.
994 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
995 * mdebugread.c, alpha-mdebug-tdep.c:
997 Suggested by Mark Kettenis.
998 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
999 fields frame_adjust and high_addr.
1000 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1001 (non_heuristic_proc_desc): Delete references.
1003 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1004 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1005 * mips-tdep.c: Update.
1007 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1008 (MIPS_LAST_EMBED_REGNUM): Add.
1009 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1010 (LAST_EMBED_REGNUM): Delete.
1011 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1013 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1014 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1015 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1016 * mips-linux-nat.c: Update.
1018 * mips-tdep.h: Add comments on registers.
1019 (MIPS_UNUSED_REGNUM): Define.
1020 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1021 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1022 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1023 * mips-linux-nat.c, remote-mips.c: Update.
1025 * config/mips/tm-mips.h (t_insn): Delete.
1026 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1027 Replace t_insn with ULONGEST.
1029 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1031 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1032 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1033 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1034 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1035 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1036 (mipsnbsd_core_osabi_sniffer): New function.
1037 (mipsnbsd_init_abi): Set regset_from_core_section.
1038 (_initialize_mipsnbsd_tdep): Remove calls to
1039 deprecated_add_core_fns.
1040 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1041 (mipsnbsd_regset_from_core_section): New functions.
1042 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1043 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1045 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1046 Remove optimization for DEPRECATED_FP_REGNUM.
1048 2004-10-30 Andrew Cagney <cagney@gnu.org>
1050 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1051 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1052 (alpha_setup_arbitrary_frame): Delete.
1053 * mips-tdep.c (setup_arbitrary_frame): Delete.
1054 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1055 (setup_arbitrary_frame): Delete.
1056 * stack.c (parse_frame_specification_1): When specified, call
1057 create_new_frame with two parameters. Delete #ifdef
1058 SETUP_ARBITRARY_FRAME.
1060 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1061 (MIPS_INSTLEN): Delete.
1062 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1063 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1064 * remote-mips.c, mips-tdep.c: Update.
1066 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1067 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1068 * mips-tdep.c (mips_mdebug_frame_cache)
1069 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1070 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1071 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1072 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1073 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1074 (mips_gdbarch_init): Do not append mdebug sniffers.
1075 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1076 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1077 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1078 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1079 * Makefile.in: Update dependencies.
1081 * mips-tdep.h (mips_abi_regsize): Declare.
1082 * mips-tdep.c (mips_abi_regsize): Make non-static.
1084 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1085 (make_mips16_addr): Delete.
1087 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1089 * i386-sol2-nat.c: New file.
1090 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1092 (i386-sol2-nat.o): Update dependencies.
1093 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1096 2004-10-30 Andrew Cagney <cagney@gnu.org>
1098 Total breakage identified by Joel Brobecker.
1099 * mips-tdep.c (after_prologue): Delete.
1100 (mips_skip_prologue): Use skip_prologue_using_sal.
1101 (heuristic_proc_desc): Delete, unused.
1103 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1105 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1106 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1107 Cleanup coding style.
1109 2004-10-30 Andrew Cagney <cagney@gnu.org>
1111 * mips-tdep.h (mips_pc_is_mips16): Declare.
1112 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1113 non-static. Update calls.
1115 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1116 * command.h (add_setshow_enum_cmd): Declare.
1117 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1119 * mips-tdep.c (_initialize_mips_tdep): Use
1120 add_setshow_zinteger_cmd.
1122 * mips-tdep.c (mips_eabi_extract_return_value)
1123 (mips_o64_extract_return_value, mips_o64_store_return_value)
1124 (return_value_location, mips_eabi_reg_struct_has_addr)
1125 (mips_eabi_use_struct_convention)
1126 (mips_eabi_store_return_value): Delete.
1127 (mips_eabi_store_return_value): New function.
1128 (mips_eabi_return_value): New function.
1129 (mips_gdbarch_init): For O64 and EABI, delete
1130 extract_return_value, store_return_value, use_struct_convention
1131 and reg_struct_has_addr, add return_value.
1133 * mips-tdep.c (read_signed_register): Use
1134 regcache_cooked_read_signed.
1136 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1138 * mipsread.c: Cleanup coding style.
1139 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1140 (mipscoff_symfile_finish): Remove prototypes.
1142 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1144 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1145 (mips_mdebug_frame_cache, mips16_scan_prologue)
1146 (mips32_scan_prologue, mips_stub_frame_cache)
1147 (heuristic_proc_start, heuristic_proc_desc)
1148 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1149 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1150 (mips_o32_return_value, mips_o64_push_dummy_call)
1151 (mips_step_skips_delay, mips_skip_trampoline_code)
1152 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1153 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1154 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1155 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1156 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1157 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1158 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1159 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1160 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1161 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1163 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1164 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1166 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1168 * mipsnbsd-nat.c: Include "mips-tdep.h".
1169 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1170 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1172 2004-10-29 Andrew Cagney <cagney@gnu.org>
1174 * stack.c (parse_frame_specification_1): New function based on
1175 parse_frame_specification. Add message and selected_frame_p
1176 paramters. Truely always return non-NULL.
1177 (parse_frame_specification): Call parse_frame_specification_1.
1178 (frame_info): Update. Eliminate target_has_stack check.
1179 (select_frame_command): Update.
1181 2004-10-29 Andrew Cagney <cagney@gnu.org>
1183 * frame.h (get_selected_frame): Add message parameter.
1184 * frame.c (get_selected_frame): Add and use message parameter.
1185 * stack.c (current_frame_command, return_command, locals_info)
1186 (catch_info, args_info, up_silently_base, down_silently_base): Use
1187 get_selected_frame with an explicit message.
1188 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1189 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1190 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1191 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1192 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1193 * breakpoint.c: Update.
1195 2004-10-29 Andrew Cagney <cagney@gnu.org>
1197 * trad-frame.c (trad_frame_get_prev_register): Use
1198 frame_unwind_register instead of frame_register_unwind, do not
1199 recurse the register's location.
1200 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1201 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1202 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1203 * sh-tdep.c (sh_frame_prev_register): Ditto.
1204 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1205 * i386-tdep.c (i386_frame_prev_register): Ditto.
1206 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1207 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1209 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1211 * proc-events.c: Fix several coding-style issues. Consistently
1212 use #ifdef instead of #if defined().
1213 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1215 (_initialize_proc_events): New prototype.
1217 * proc-why.c: Fix several coding-style issues.
1218 (proc_prettyfprint_why): Use ARRAY_SIZE.
1220 2004-10-27 Jim Blandy <jimb@redhat.com>
1222 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1223 manner independent of the host byte order.
1225 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1227 * mips-tdep.c (id_delayed): Remove prototype.
1229 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1231 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1232 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1233 to enum with register numbers.
1234 (enum mips_insn_size): New enum.
1236 2004-10-26 Andrew Cagney <cagney@gnu.org>
1238 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1239 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1240 (mips_gdbarch_init): Update.
1241 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1243 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1244 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1245 IN_SOLIB_RETURN_TRAMPOLINE.
1246 * mips-tdep.c (mips_dump_tdep): Do not print
1247 IN_SOLIB_RETURN_TRAMPOLINE.
1248 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1249 (mips_gdbarch_init): Update.
1251 * mips-tdep.h (mips_software_single_step): Move to here ...
1252 * config/mips/tm-mips.h: ... from here.
1253 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1254 (SOFTWARE_SINGLE_STEP): Delete.
1255 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1257 2004-10-25 Andrew Cagney <cagney@gnu.org>
1259 * NEWS: Add Changes since GDB 6.3 section.
1261 2004-10-23 Andreas Schwab <schwab@suse.de>
1263 * ada-lang.c (grow_vect): Return the new array instead of
1264 expecting pointer to pointer to avoid violation of aliasing rules.
1265 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1267 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1269 * s390-tdep.c (enum pv_boolean): Remove.
1270 (pv_is_array_ref): Remove.
1271 (s390_on_stack): Remove.
1272 (S390_NUM_SPILL_SLOTS): Remove.
1273 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1274 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1275 (s390_store): Track all stores of orginal incoming registers to the
1276 stack constant offsets relative to the CFA, instead of only tracking
1277 stores into specific spill slots.
1278 (s390_load): Likewise.
1279 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1280 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1281 defined as call-saved by the ABI.
1282 (s390_push_dummy_call): Use bottom of dummy call argument save area
1283 as return value, not the top. Do not store to the called function's
1285 (s390_unwind_dummy_id): Adapt accordingly.
1287 2004-10-23 Andrew Cagney <cagney@gnu.org>
1289 * objfiles.h (struct objfile): Rename obj_private to
1290 deprecated_obj_private, sym_private to deprecated_sym_private, and
1291 sym_stab_info to deprecated_sym_stab_info.
1292 * gdb-stabs.h: Update.
1293 * elfread.c: Update.
1294 * dbxread.c: Update.
1295 * coffread.c: Update.
1296 * xcoffread.c: Update.
1297 * symfile.c: Update.
1298 * somread.c: Update.
1299 * nlmread.c: Update.
1300 * mdebugread.c: Update.
1302 * coffread.c: Update.
1304 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1306 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1307 * configure.host: Add mips64*-*-openbsd*.
1308 * configure.tgt: Add mips64*-*-openbsd*.
1309 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1311 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1312 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1314 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1316 * symtab.c (symbol_search_name): Minor reformatting.
1318 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1320 * symtab.h: Fix typo in comment.
1322 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1324 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1325 (dwarf_decode_line_header): Likewise.
1327 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1329 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1331 2004-10-19 Andrew Cagney <cagney@gnu.org>
1333 GDB 6.3 branch created.
1334 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1336 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1338 * dwarf2read.c (set_cu_language): Set language to Ada for
1339 DW_LANG_Ada83 and DW_LANG_Ada95.
1341 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1343 From Andreas Schwab <schwab@suse.de>:
1344 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1345 for xmalloc and xrealloc.
1347 2004-10-15 Andrew Cagney <cagney@gnu.org>
1349 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1350 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1351 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1352 Update dependencies.
1354 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1356 * ada-lang.c (ada_lookup_symbol): Correct comment.
1357 (ada_evaluate_subexp): Change error message for
1358 OP_FUNCALL case so as not to indicate an internal error.
1360 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1362 Committed by Paul Hilfinger.
1363 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1364 type sizes in XVE/XVU types, and emit a warning when that happens,
1365 instead of rounding up the size of the resulting type.
1366 Some minor reformatting.
1367 (ada_is_aligner_type): Do not consider a type as an aligner type
1368 if there is a corresponding XVS type as well.
1369 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1370 have several levels of pointer indirection to the array.
1372 2004-10-15 Jerome Guitton <guitton@gnat.com>
1374 Committed by Paul Hilfinger.
1375 * ada-lang.c (check_size): New function.
1376 (coerce_unspec_val_to_type): call check_size to make sure
1377 that the object size is reasonable.
1378 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1379 Implements the case when we get a reference when we evaluate
1380 the expression of one of the bounds of the slice.
1381 (ada_value_struct_elt): when a packed array field is
1382 a reference, use ada_coerce_ref to dereference it; use
1383 ada_value_ind only if it is a pointer.
1385 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1387 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1388 a bit to avoid the necessity of an advance declaration. Remove
1390 (set_reg_offset): Move implemenation up.
1391 (mips16_get_imm): Likewise.
1392 (mips16_scan_prologue): Likewise.
1393 (reset_saved_regs): Likewise.
1394 (mips32_scan_prologue): Likewise.
1396 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1398 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1399 Remove sp as a parameter, compute it internally instead. Move
1400 prologue scanning limit from heuristic_proc_desc to here.
1401 (mips16_scan_prologue): Likewise.
1402 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1403 by call to mips16_scan_prologue.
1404 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1405 by call to mips32_scan_prologue.
1406 (heuristic_proc_desc): Remove code that's no longer necessary.
1407 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1408 (mips_skip_prologue): Update calls to mips16_scan_prologue
1409 and mips32_scan_prologue.
1411 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1413 * mips-tdep.c (mips16_scan_prologue): Merge code from
1414 mips16_skip_prologue. Now return the address of the first
1415 instruction past the function prologue.
1416 (mips16_skip_prologue): Remove, no longer necessary.
1417 (mips_skip_prologue): Replace call to mips16_skip_prologue
1418 by call to mips16_scan_prologue.
1420 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1422 * mips-tdep.c (mips32_scan_prologue): Merge code from
1423 mips32_skip_prologue. Now return the address of the first
1424 instruction past the function prologue.
1425 (mips32_skip_prologue): Remove. No longer necessary.
1426 (mips16_skip_prologue): Add parameter end_pc instead of
1428 (mips_skip_prologue): Compute the upper limit for the
1429 prologue scanning. Update call to mips16_skip_prologue.
1430 Replace call to mips32_skip_prologue by call to
1431 mips32_scan_prologue.
1433 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1435 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1436 NetBSD system call stubs that store %rp in the ERP slot of the
1439 * source.c: Always define O_BINARY to 0 if not defined already.
1440 (openp): Unconditionally use O_BINARY.
1442 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1443 * event-top.c (gdb_readline2): Likewise.
1445 2004-10-14 Orjan Friberg <orjanf@axis.com>
1447 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1448 deprecated_add_core_fns which was removed by mistake.
1450 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1452 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1453 references to deprecated_registers[] with equivalent code.
1455 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1457 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1458 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1459 instead of explicit test and print statement.
1461 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1463 * sparc-nat.c: Include "inf-ptrace.h".
1464 (sparc_target): New function.
1465 * sparc-nat.h: Update copyright year.
1466 (sparc_target): New prototype.
1467 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1468 (_initialize_sparcnbsd_nat): Construct and add target vector.
1469 * sparc64nbsd-nat.c: Include "target.h".
1470 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1471 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1472 Update dependencies.
1473 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1474 inftarg.o, add inf-ptrace.o.
1475 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1476 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1477 (NAT_FILE): Set to nm-bsd.h.
1478 (LOADLIBES): New variable.
1479 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1480 infarg.o, add inf-ptrace.o.
1481 * config/sparc/nm-nbsdaout.h: Remove file.
1482 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1483 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1484 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1486 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1487 "fopen-same.h". Update comment.
1489 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1491 * i386gnu-nat.c: Include "gdb_string.h".
1492 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1493 registers when the floating-point state isn't initialized.
1494 * Makefile.in (i386gnu-nat.o): Update dependencies.
1496 2004-10-11 David Anderson <davea@sgi.com>
1498 * regcache.c (regcache_raw_read): Comment was missing "to".
1499 Extraneous ' removed.
1500 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1501 comment now describes use.
1503 2004-10-11 Orjan Friberg <orjanf@axis.com>
1505 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1506 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1507 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1508 (cris_sigtramp_frame_sniffer): New functions.
1509 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1510 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1511 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1512 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1513 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1515 (cris_version_update): Remove, replace with ...
1516 (set_cris_version): New function.
1517 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1518 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1519 (_initialize_cris_tdep): Remove CRIS mode command.
1520 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1521 cris-fpless-backtrace command.
1522 (cris_scan_prologue): Fix prologue scanning limit.
1523 (cris_register_type): Update to reflect actual registers.
1524 (cris_register_bytes_ok) Remove.
1525 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1526 Remove set_gdbarch_deprecated_register_size,
1527 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1529 2004-10-10 Andrew Cagney <cagney@gnu.org>
1531 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1534 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1536 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1538 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1540 * mips-tdep.c (mips16_scan_prologue): Renames
1541 mips16_heuristic_proc_desc. Update comment.
1542 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1543 (heuristic_proc_desc): Update calls to the 2 functions above.
1545 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1547 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1548 Update comments. Also immediately return empty cache when the start
1549 address of our function could not be found.
1550 (mips_insn32_frame_cache): Likewise.
1552 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1554 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1555 (mips_insn16_frame_cache): Pass frame cache in call to
1556 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1557 Remove code that became redundant as a consequence.
1558 (mips32_heuristic_proc_desc): No longer compute a fake
1559 procedure descriptor. Compute the full frame cache instead.
1560 Some minor comment reformatting.
1562 2004-10-10 Jim Blandy <jimb@redhat.com>
1564 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1565 reader, tracing bytecode stuff): Remove self.
1567 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1569 * sparc64-linux-tdep.c: Update copyright year. Don't include
1571 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1572 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1573 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1575 * sparc-linux-tdep.c: Update copyright year.
1576 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1577 to struct frame_info *. Use safe_frame_unwind_memory instead of
1578 deprecated_read_memory_nobpt.
1579 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1580 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1581 changed signature of sparc_linux_sigtramp_start.
1582 (sparc32_linux_pc_in_sigtramp): Remove function.
1583 (sparc32_linux_sigtramp_p): New function.
1584 (sparc32_linux_sigtramp_frame_sniffer): Use
1585 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1587 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1589 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1591 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1592 (decode_packed_array_type, value_subscript_packed)
1593 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1594 argument in call to lim_warning.
1596 * configure.in: Really disable the TUI if an enhanced curses
1597 library isn't found.
1598 * configure: Regenerate.
1600 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1602 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1603 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1604 * config/i386/nm-nbsdaout.h: Remove file.
1605 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1606 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1607 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1608 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1609 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1610 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1611 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1612 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1613 (ldd, ld_un, ld_2): Remove defines.
1614 * config/i386/nm-obsd.h: Likewise.
1616 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1618 * ada-lex.l: Remove useless rule whose right-context clause
1619 causes unreferenced static function warning for yyrealloc.
1620 (ada_flex_use): Remove the artificial reference to yyrealloc.
1622 2004-10-08 Andrew Cagney <cagney@gnu.org>
1624 * target.h (struct target_ops): Rename to_xfer_memory to
1625 deprecated_xfer_memory.
1627 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1629 * win32-nat.c: Update.
1630 * v850ice.c: Update.
1631 * uw-thread.c: Update.
1632 * thread-db.c: Update.
1633 * sol-thread.c: Update.
1635 * remote-vx.c: Update.
1636 * remote-st.c: Update.
1637 * remote-sim.c: Update.
1638 * remote-sds.c: Update.
1639 * remote-rdp.c: Update.
1640 * remote-rdi.c: Update.
1641 * remote-mips.c: Update.
1642 * remote-m32r-sdi.c: Update.
1643 * remote-e7000.c: Update.
1645 * ppc-bdm.c: Update.
1646 * nto-procfs.c: Update.
1647 * monitor.c: Update.
1648 * linux-nat.c: Update.
1649 * inftarg.c: Update.
1650 * hpux-thread.c: Update.
1651 * go32-nat.c: Update.
1652 * gnu-nat.c: Update.
1654 * corelow.c: Update.
1655 * bsd-kvm.c: Update.
1656 * aix-thread.c: Update.
1658 2004-10-08 Andrew Cagney <cagney@gnu.org>
1660 * target.c (debug_target): Move to near start of file.
1661 (target_stopped_data_address_p): Re-org logic, add casts.
1663 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1665 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1666 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1667 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1668 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1671 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1673 * target.h (to_stopped_data_address): Change prototype to
1674 take a CORE_ADDR pointer and return an int.
1675 * target.c (update_current_target): Change to_stopped_data_address
1676 to match new prototype.
1677 (debug_to_stopped_data_address): Change appropriately.
1678 * breakpoint.c (bpstat_stop_status): Change call to
1679 target_stopped_data_address to use new prototype.
1680 * frv-tdep.c (frv_have_stopped_data_address): New function.
1681 (frv_stopped_data_address): Change to new prototype and
1683 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1684 prototype and functionality.
1685 (ia64_stopped_by_watchpoint): New function.
1686 * i386-nat.c (i386_stopped_data_address): Change to new
1687 prototype and functionality.
1688 (i386_stopped_by_watchpoint): New function.
1689 * remote.c (remote_stopped_data_address): Change to new prototype
1691 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1692 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1693 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1694 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1695 new i386_stopped_by_watchpoint function.
1696 (i386_stopped_by_watchpoint): New prototype.
1697 (i386_stoppped_data_address): Change to new prototype.
1698 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1699 new ia64_stopped_by_watchpoint function.
1700 (ia64_stopped_by_watchpoint): New prototype.
1701 (ia64_stopped_data_address): Ditto.
1703 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1705 * ada-typeprint.c (ada_print_type): Use int_string for printing
1706 modulus of modular type.
1707 * ada-lang.h (ada_modulus): Change return type to unsigned.
1708 * ada-lang.c (ada_language_arch_info): Correct type of
1710 (ada_modulus): Return unsigned result.
1711 (ada_lookup_symbol): Remove user disambiguation and modify comment
1714 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1716 Committed by Paul Hilfinger.
1717 * ada-lang.c (decode_packed_array): On big-endian targets,
1718 left-justify the value if it comes with a modular type.
1720 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1722 Committed by Paul Hilfinger.
1723 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1724 (is_name_suffix): Add support for "___JM" suffixes.
1725 (ada_check_typedef): Renames ada_completed_type.
1726 Update all users of CHECK_TYPEDEF, check_typedef, and
1727 ada_complete_type to call ada_check_typedef.
1728 * ada-typeprint.c: Likewise.
1729 * ada-valprint.c: Likewise.
1731 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1733 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1735 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1737 * MAINTAINERS: Update e-mail address.
1739 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1741 From Maciej W. Rozycki <macro@mips.com>:
1742 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1743 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1745 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1747 * m32r-tdep.c (decode_prologue): Support functions written
1748 in assembler language. Recognize trap instructions as the
1750 (m32r_frame_unwind_cache): Ditto.
1751 (m32r_skip_prologue): Extend search limit. Quit analyzing
1752 prologue if pc's location is not readable.
1754 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1756 * Makefile.in (.l.c): Do conversions of names of alloc and free
1757 functions that are done for .y.c files, plus special one
1758 for yy_flex_realloc. Also, correct missing-file tests here.
1759 * ada-lex.l (malloc, free): Remove macros.
1760 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1762 (ada_flex_use): Dummy definition to remove warnings about unused
1764 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1765 to suppress warning.
1767 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1769 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1771 (sh_return_value_fpu): Ditto for CPUs with FPU.
1772 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1773 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1774 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1775 RETURN_VALUE functions.
1777 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1779 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1780 (sh_pseudo_register_write): Ditto.
1782 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1784 * sh-tdep.c (IS_MACL_STS): New define.
1786 (IS_MACL_LDS): Ditto.
1787 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1788 instructions in prologue.
1789 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1790 instructions in epilogue.
1792 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1794 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1795 (sh_sh_register_name): Add eight empty register names.
1796 (sh_sh3_register_name): Ditto.
1797 (sh_sh3e_register_name): Ditto.
1798 (sh_sh2e_register_name): Ditto.
1799 (sh_sh2a_register_name): New function, defining SH2A register set.
1800 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1802 (sh_sh_dsp_register_name): Add eight empty register names.
1803 (sh_sh3_dsp_register_name): Ditto.
1804 (sh_sh4_register_name): Ditto.
1805 (sh_sh4_nofpu_register_name): Ditto.
1806 (sh_sh4al_dsp_register_name): Ditto.
1807 (sh2a_show_regs): New function.
1808 (sh2a_nofpu_show_regs): New function.
1809 (sh_sh2a_register_type): New function.
1810 (do_bank_register_info): New function.
1811 (sh_print_pseudo_register): Call do_bank_register_info.
1812 Call sh_print_pseudo_register for valid "bank" register.
1813 (sh_sh2a_register_sim_regno): New function.
1814 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1815 Increment pseudo register count by one for all sh variants with
1816 pseudo registers to accomodate pseudo bank register.
1817 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1818 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1819 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1820 Increment pseudo register numbers.
1822 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1824 * dwarf2read.c (read_subroutine_type): Call make_function_type
1825 instead of lookup_function_type.
1827 2004-10-05 Jim Blandy <jimb@redhat.com>
1829 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1830 (Previous change missed some uses.)
1832 2004-10-05 Andrew Cagney <cagney@gnu.org>
1834 * target.h (deprecated_child_ops): Rename child_ops.
1835 * wince.c: Update copyright. Rename child_ops.
1836 * win32-nat.c: Rename child_ops.
1837 * target.c: Rename child_ops.
1838 * rs6000-nat.c: Rename child_ops.
1839 * linux-nat.c: Rename child_ops.
1840 * infttrace.c: Rename child_ops.
1841 * inftarg.c: Rename child_ops.
1842 * infptrace.c: Rename child_ops.
1843 * hppah-nat.c: Update copyright. Rename child_ops.
1844 * hpux-thread.c: Update copyright. Rename child_ops.
1846 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1848 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1850 2004-10-05 Andrew Cagney <cagney@gnu.org>
1852 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1854 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1856 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1857 (die_ref_table): Remove.
1858 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1859 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1860 the usage of this type.
1861 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1862 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1863 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1864 (dwarf2_create_include_psymtab): Update comment.
1865 (find_partial_die): Remove third argument. Remove unreachable call
1867 (dwarf2_find_containing_comp_unit): Update comments. Change one
1868 assertion to an error. Remove an unreachable error.
1869 (dwarf2_find_comp_unit): Update comments.
1870 (type_at_offset): Remove dead code.
1871 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1872 (store_in_ref_table): Add CU argument.
1873 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1874 inter-compilation-unit references.
1875 (load_full_comp_unit, process_full_comp_unit): New functions, based
1876 on psymtab_to_symtab_1.
1877 (psymtab_to_symtab_1): Use them.
1878 (dwarf2_add_dependence): New function.
1879 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1880 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1881 (partial_die_parent_scope, guess_structure_name): Update for changes
1882 to find_partial_die.
1883 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1884 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1885 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1886 (read_die_and_children): Update call to store_in_ref_table.
1887 (do_free_die_list_cleanup): Remove.
1888 (fixup_partial_die): Update for changes to find_partial_die.
1889 (read_full_die): Handle queueing absolute references.
1890 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1891 (dwarf2_attr, die_specification, die_type)
1892 (die_containing_type, dwarf2_extension): Update calls to
1894 (dump_die): Update DW_FORM_ref* handling.
1895 (dwarf2_get_ref_die_offset): Likewise.
1896 (free_one_comp_unit): Release the dies list.
1897 (dwarf2_mark_helper): New function.
1898 (dwarf2_mark): Use it.
1900 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1902 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1903 when writing to memory.
1905 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1907 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1908 (m32r_extract_struct_value_address): Delete function.
1909 (m32r_return_value): New function.
1910 (m32r_gdbarch_init): Instead of store_return_value,
1911 extract_return_value, deprecated_extract_struct_value_address
1912 and deprecated_use_struct_convention, set return_value.
1914 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1916 * dwarf2read.c (read_subrange_type): Add comment for variable
1919 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1921 * Makefile.in (.l.c): Modify rule for compatibility with recent
1922 versions of flex, and remove most command-line options.
1923 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1926 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1928 Turn on initial Ada support (mainly expression evaluation).
1930 * Makefile.in (SFILES): Remove ada-tasks.c.
1931 (HFILES_NO_SRCDIR): Add ada-lang.h.
1932 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1933 (YYOBJ): Add ada-exp.o.
1934 (rule .l.c): Generalize to not mention ada.
1935 * symtab.c: Include ada-lang.h.
1936 (symbol_natural_name, symbol_demangled_name)
1937 (symbol_search_name): Add Ada case.
1939 2004-10-01 Andrew Cagney <cagney@gnu.org>
1941 * Makefile.in (COMMON_OBS): Add inf-child.o.
1942 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1943 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1944 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1945 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1946 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1947 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1948 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1949 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1950 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1951 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1952 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1953 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1954 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1956 * target.c (xfer_using_stratum): Change return type to LONGEST.
1957 On each iteration offset, readbuf and writebuf.
1958 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1959 partial_length, and read/modify/write predicate, update comments.
1960 Pass buffer.word to ptrace write.
1962 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1964 * symfile.c (init_filename_language_table): Add extensions for
1966 * defs.h (enum language): Add language_ada.
1967 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1968 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1969 (add_symbols_from_enclosing_procs): Make a no-op for now.
1970 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1971 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1972 (find_line_in_linetable, find_next_line_in_linetable)
1973 (read_all_symtabs, is_plausible_func_for_line)
1974 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1975 (is_runtime_sym_defined, check_size): Remove declaration.
1976 (function_name_from_pc, ada_translate_error_message)
1977 (ada_lookup_minimal_symbol): Remove definition.
1978 (ada_add_block_symbols): Remove useless label.
1979 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1980 useless declaration.
1981 (ada_is_exception_sym): Likewise.
1983 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1985 Add m32r-linux support.
1986 * configure.tgt: Add m32r*-*-linux*.
1987 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1988 and m32r-linux-tdep.c.
1989 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1990 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1991 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1993 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1994 config/m32r/linux.mh, config/m32r/linux.mt,
1995 config/m32r/nm-linux.h: New files.
1997 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1999 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2000 (mips32_fetch_instruction): Remove, unused.
2002 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2004 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2005 conditions that will always be true.
2007 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2009 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2010 (vaxbsd_fetch_inferior_registers): Rename from
2011 fetch_inferior_registers. Make static.
2012 (vaxbsd_store_inferior_registers): Rename from
2013 store_inferior_registers. Make static.
2014 (_initialize_vaxbsd_nat): Construct and add target vector.
2015 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2016 inftarg.o. Add inf-child.o and inf-ptrace.o.
2017 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2018 inftarg.o. Add inf-child.o and inf-ptrace.o.
2020 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2021 inftarg.o. Add inf-child.o and inf-ptrace.o.
2023 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2025 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2026 (m88kbsd_fetch_inferior_registers): Rename from
2027 fetch_inferior_registers. Make static.
2028 (m88kbsd_store_inferior_registers): Rename from
2029 store_inferior_registers. Make static.
2030 (_initialize_m88kbsd_nat): New prototype and function.
2031 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2032 inftarg.o. Add inf-child.o and inf-ptrace.o.
2034 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2036 2004-09-30 Andrew Cagney <cagney@gnu.org>
2038 * target.c (target_xfer_partial): New function.
2039 (target_read_memory_partial, target_write_memory_partial)
2040 (default_xfer_partial, target_read_partial, target_write_partial)
2041 (xfer_using_stratum): Use.
2042 (debug_to_xfer_partial): Delete function.
2043 (setup_target_debug): Do not override to_xfer_partial.
2045 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2047 * fork-child.c: Update copyright year. Fix coding style.
2049 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2051 * defs.h (msavestring, mstrsave): Remove prototypes.
2052 * utils.c (msavestring, mstrsave): Remove functions.
2053 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2054 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2056 * source.c (find_and_open_source): Use xstrdup instead of
2059 2004-09-30 Andrew Cagney <cagney@gnu.org>
2061 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2062 (inf_ptrace_xfer_memory): Delete.
2063 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2064 (target_read_memory, target_write_memory): Use xfer_using_stratum
2065 when target_xfer_partial_p.
2066 (debug_target): Move to start of file.
2067 (target_read_memory_partial, target_write_memory_partial): Use
2068 to_xfer_partial when target_xfer_partial_p.
2070 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2071 inf_ptrace_xfer_memory with equivalent code.
2072 * inftarg.c (child_xfer_partial): When performing a write, pass
2073 writebuf to child_xfer_memory.
2075 * target.c (target_read_string): Use target_read_memory instead of
2078 2004-09-29 Andrew Cagney <cagney@gnu.org>
2080 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2081 the address of status.
2083 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2084 (kill_inferior): Inline ptrace_wait call.
2085 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2086 * inftarg.c (child_wait): Inline ptrace_wait call.
2088 * target.h (struct target_ops): Delete field to_post_wait.
2089 (target_post_wait): Delete macro.
2090 (child_post_wait): Delete declaration.
2091 * target.c (update_current_target, update_current_target)
2092 (debug_to_post_wait, setup_target_debug): Delete functions and
2094 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2095 * inftarg.c (child_post_wait): Delete.
2096 (init_child_ops): Do not set to_post_wait.
2097 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2098 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2099 * inf-child.c (inf_child_post_wait): Delete.
2100 (inf_child_target): Do not set to_post_wait.
2101 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2102 (inf_ptrace_target): Do not set to_post_wait.
2104 * wince.c (child_ops): Delete.
2105 * win32-nat.c (child_ops): Delete.
2107 * inftarg.c (inftarg_set_find_memory_regions)
2108 (inftarg_set_make_corefile_notes): Delete functions.
2109 (_initialize_linux_nat): Inline calls.
2111 * target.h (child_ops): Declare.
2112 * inftarg.c (child_ops): Move from here ...
2113 * target.c (child_ops): ... to here.
2114 * wince.c (child_ops): Delete extern declaration.
2115 * win32-nat.c (child_ops): Delete extern declaration.
2116 * linux-nat.c (child_ops): Delete extern declaration.
2117 * hpux-thread.c (child_ops): Delete extern declaration.
2119 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2121 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2123 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2125 * configure.in: Only set host_makefile_frag when building a native
2127 * configure: Regenerate.
2129 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2132 2004-09-28 Andrew Cagney <cagney@gnu.org>
2134 Problem identified by Paul Hilfinger.
2135 * Makefile.in (ada_lex_c): Define.
2136 (ada-lex.o): Delete rule.
2138 * linux-proc.c: Delete file.
2139 * Makefile.in: Update.
2140 * config/sparc/linux64.mh (NATDEPFILES):
2141 * config/sparc/linux.mh (NATDEPFILES): Update.
2142 * config/s390/s390.mh (NATDEPFILES): Update.
2143 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2144 * config/powerpc/linux.mh (NATDEPFILES): Update.
2145 * config/pa/linux.mh (NATDEPFILES): Update.
2146 * config/mips/linux.mh (NATDEPFILES): Update.
2147 * config/m68k/linux.mh (NATDEPFILES): Update.
2148 * config/ia64/linux.mh (NATDEPFILES): Update.
2149 * config/i386/linux64.mh (NATDEPFILES): Update.
2150 * config/i386/linux.mh (NATDEPFILES): Update.
2151 * config/arm/linux.mh (NATDEPFILES): Update.
2152 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2153 * linux-nat.c: Update copyright. Include <sys/param.h>,
2154 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2155 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2156 (O_LARGEFILE): Possibly define.
2157 (_initialize_linux_nat, linux_proc_pending_signals)
2158 (add_line_to_sigset, linux_proc_xfer_memory)
2159 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2160 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2161 (struct linux_corefile_thread_data)
2162 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2163 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2165 2004-09-16 Andrew Cagney <cagney@gnu.org>
2167 * lin-lwp.c: Delete file.
2168 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2169 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2170 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2171 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2172 (linux_nat_attach, detach_callback, linux_nat_detach)
2173 (resume_callback, resume_clear_callback, linux_nat_resume)
2174 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2175 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2176 (status_callback, running_callback, count_events_callback)
2177 (select_singlestep_lwp_callback, select_event_lwp_callback)
2178 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2179 (child_wait, stop_and_resume_callback, linux_nat_wait)
2180 (kill_callback, kill_wait_callback, linux_nat_kill)
2181 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2182 (linux_nat_xfer_memory, linux_nat_thread_alive)
2183 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2184 (_initialize_linux_nat): New functions.
2185 * Makefile.in: Update all dependencies.
2186 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2187 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2188 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2189 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2190 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2191 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2192 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2193 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2194 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2195 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2196 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2197 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2198 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2200 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2202 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2203 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2205 * configure.in: Don't comment out NATDEPFILES in the generated
2206 Makefile if NAT_FILE is unset.
2207 * configure: Regenerate.
2209 2004-09-27 Andrew Cagney <cagney@gnu.org>
2211 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2212 (insert_step_resume_breakpoint): Delete.
2213 (insert_step_resume_breakpoint_at_frame): New function.
2214 (insert_step_resume_breakpoint_at_sal): New function.
2215 (handle_inferior_event, step_into_function)
2216 (insert_step_resume_breakpoint): Simplify by using same.
2218 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2220 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2222 * fbsd-proc.c: Remove file.
2223 * Makefile.in (fbsd-proc.o): Remove dependency.
2225 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2228 * config/i386/nm-fbsd64.h: Remove file.
2229 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2231 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2233 * amd64-nat.h: Update copyright year.
2234 (amd64bsd_target): New prototype.
2235 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2236 (amd64bsd_target): New function.
2237 (amd64bsd_fetch_inferior_registers): Rename from
2238 fetch_inferior_registers. Make static.
2239 (amd64bsd_store_inferior_registers): Rename from
2240 store_inferior_registers. Make static.
2241 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2242 (_initialize_amd64fbsd_nat): Construct and add target vector.
2243 * amd64nbsd-nat.o: Include "target.h".
2244 (_initialize_amd64nbsd_nat): Construct and add target vector.
2245 * amd64obsd-nat.c: Include "target.h".
2246 (_initialize_amd64obsd_nat): Construct and add target vector.
2247 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2248 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2249 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2251 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2252 Remove infptrace.o and inftarg.o. Add inf-child.o and
2254 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2255 (amd64obsd-nat.o): Update dependencies.
2257 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2259 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2260 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2261 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2262 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2263 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2265 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2267 (inf_ptrace_detach): Inline detach call.
2269 * configure.in: Check for waddstr instead of mvwaddstr when
2270 searching for curses library. Check for wborder.
2271 * configure, config.in: Regenerate.
2272 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2275 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2277 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2279 Committed by Andrew Cagney.
2280 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2281 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2283 (fetch_register_using_p): Implement 'p' packet. Based on code by
2285 (remote_fetch_registers): Call fetch_register_using_p.
2286 (init_all_packet_configs, show_remote_cmd)
2287 (_initialize_remote): Add p-packet.
2289 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2291 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2292 instead of call_ptrace. Call wait directly instead of
2294 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2295 (inf_ptrace_wait): Inline ptrace_wait call.
2297 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2299 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2300 rolled back instead.
2302 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2304 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2305 the new argument order.
2307 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2309 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2310 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2311 (struct gdbarch_tdep): Remove.
2312 (struct xstormy16_frame_cache): New frame cache structure.
2313 (xstormy16_register_byte, xstormy16_register_raw_size)
2314 (xstormy16_reg_virtual_type, xstormy16_register_type)
2315 (xstormy16_push_arguments, xstormy16_push_return_address)
2316 (xstormy16_pop_frame, xstormy16_store_struct_return)
2317 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2318 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2319 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2320 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2321 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2322 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2323 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2324 (xstormy16_extract_return_value, xstormy16_store_return_value):
2325 Regcachify. Drop useless struct convention handling.
2326 (xstormy16_register_type, xstormy16_return_value)
2327 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2328 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2329 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2330 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2331 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2332 (xstormy16_unwind_dummy_id) : New functions.
2333 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2334 of xstormy16_scan_prologue.
2335 (xstormy16_frame_unwind): New frame_unwind structure.
2336 (xstormy16_frame_base): New frame_base structure.
2337 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2338 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2340 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2342 * language.c (language_gdbarch_post_init): Fix off-by one error.
2344 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2346 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2347 (struct dwarf2_offset_and_type): New.
2348 (set_die_type, reset_die_and_siblings_types, get_die_type)
2349 (offset_and_type_hash, offset_and_type_eq): New functions.
2350 (read_structure_type, read_enumeration_type, read_array_type)
2351 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2352 (read_tag_reference_type, read_tag_const_type)
2353 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2354 (read_typedef, read_base_type, read_subrange_type): Use
2357 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2359 * Makefile.in (dwarf2read.o): Update dependencies.
2360 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2361 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2363 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2364 mark, and has_form_ref_addr.
2365 (struct dwarf2_per_cu_data): New.
2366 (dwarf2_max_cache_age): New.
2367 (dwarf2_build_psymtabs_hard): Free cached compilation units
2368 after loading. Create and manage the list of compilation units.
2369 Remove unnecessary NULL initialization. Fix indentation.
2370 (psymtab_to_symtab_1): Initialize all of CU.
2371 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2372 (find_partial_die): Use dwarf2_find_containing_comp_unit
2374 (free_stack_comp_unit): Update comments. Clear the per-cu
2375 pointer. Handle aging.
2376 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2377 (age_cached_comp_units, free_one_cached_comp_unit)
2378 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2379 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2380 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2381 (show_dwarf2_cmd): New.
2382 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2383 and "maint show dwarf2 max-cache-age".
2384 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2386 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2389 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2391 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2392 and dwarf2_cu struct pointer as arguments. Change function to use
2393 obstack if provided and use dwarf2_cu to determine language-specific
2395 (partial_die_parent_scope): Change comment to include java. Use
2396 new version of typename_concat instead of obconcat.
2397 (partial_die_full_name): Use typename_concat.
2398 (read_namespace): Ditto.
2399 (read_enumeration_type): Use typename_concat instead of obconcat.
2400 (new_symbol): Ditto.
2401 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2402 (guess_structure_name): Ditto.
2403 (read_subroutine_type): Ditto.
2404 (read_structure_type): Ditto.
2405 (is_vtable_name): Add Java support.
2406 (determine_class_name): Switch to new typename_concat call.
2407 (determine_prefix): Switch to new typename_concat call.
2408 * jv-exp.y (FuncStart): New pattern.
2409 (MethodInvocation): Add support for simple function calls. Change
2410 warning message for other forms of inferior call currently not
2412 * valarith.c (value_subscript): Treat an array with upper-bound
2413 of -1 as unknown size.
2415 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2417 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2418 (lookup_partial_symtab): Use symtab_to_fullname.
2420 2004-09-19 Jim Blandy <jimb@redhat.com>
2422 * minsyms.c (lookup_minimal_symbol): Doc fix.
2424 2004-09-20 Andrew Cagney <cagney@gnu.org>
2426 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2428 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2429 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2431 * infptrace.c: Update.
2433 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2435 * symtab.c (output_source_filename): Mark first argument as const.
2436 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2437 for "info sources" output.
2439 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2441 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2442 <machine/vmparam.h>.
2443 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2444 (register_u_addr): Remove prototype.
2446 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2448 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2449 (i386bsd_fetch_inferior_registers): Rename from
2450 fetch_inferior_registers. Make static.
2451 (i386bsd_store_inferior_registers): Rename from
2452 store_inferior_registers. Make static.
2453 (i386bsd_target): New function.
2454 * i386bsd-nat.h: New file.
2455 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2457 (i386fbsd_resume): Rename from child_resume. Make static.
2458 (_initialize_i386fbsd_nat): Construct and add target vector.
2459 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2460 (_initialize_i386nbsd_nat): Construct and add target vector.
2461 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2463 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2464 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2465 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2466 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2467 (LOADLIBES): New variable.
2468 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2469 inf-ptrace.o. Remove inftarg.o.
2470 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2471 inf-ptrace.o. Remove inftarg.o.
2472 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2473 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2474 (LOADLIBES): New variable.
2475 * Makefile.in (i386bsd_nat_h): New variable.
2476 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2479 * sparc64nbsd-tdep.c: Include "objfiles.h".
2480 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2481 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2482 svr4_lp64_fetch_link_map_offsets.
2483 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2485 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2486 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2487 svr4_lp64_fetch_link_map_offsets.
2488 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2491 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2492 * fbsd-nat.h: New file.
2493 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2494 (fbsd_nat_h): New variable.
2495 (fbsd-nat.o): New dependency.
2497 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2498 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2500 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2503 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2505 * ada-exp.y (type_int): New function to add layer of abstraction
2506 around references to expression types.
2508 (type_long_long): Ditto.
2509 (type_float): Ditto.
2510 (type_double): Ditto.
2511 (type_long_double): Ditto.
2513 (type_system_address): Ditto.
2514 (simple_exp): Use type_* functions in place of builtin_*
2517 (write_var_from_name): Ditto.
2518 (write_object_renaming): Ditto.
2519 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2521 (build_ada_types): Remove, replacing with...
2522 (ada_language_arch_info): New function to initialize primitive
2523 type vector in language_arch_info.
2524 (ada_array_length): Remove use of builtin_type_ada_int.
2525 (value_pos_atr): Ditto.
2526 (ada_evaluate_subexp): Ditto.
2527 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2528 builtin_type_ada_long_long, builtin_type_ada_char,
2529 builtin_type_ada_float, builtin_type_ada_double,
2530 builtin_type_ada_long_double, builtin_type_ada_natural,
2531 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2532 (ada_builtin_types): Remove.
2533 (ada_language_defn): Remove entries for la_builtin_type_vector and
2534 string_char_type and use ada_language_arch_info.
2535 (_initialize_ada_language): Do type-vector initialization along
2536 the lines of c-lang.c.
2537 (ada_create_fundamental_type): Break up line.
2538 (ada_dump_symtab): Remove unused function.
2539 (enum ada_primitive_types): Define.
2540 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2541 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2542 builtin_type_ada_float, builtin_type_ada_double,
2543 builtin_type_ada_long_double, builtin_type_ada_natural,
2544 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2545 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2546 (processInt): Ditto.
2547 (processReal): Ditto.
2548 (name_lookup): Ditto.
2549 * ada-typeprint.c (print_range): Use builtin_type_int, not
2550 builtin_type_ada_int.
2552 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2554 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2556 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2557 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2558 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2559 * configure.in: Improve checks for curses library by checking for
2560 mvwaddstr instead of initscr. Drop HP curses in favour of
2561 standard curses on HP-UX.
2562 * configure: Regenerated.
2564 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2566 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2567 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2568 Minor formatting changes.
2569 (empty_array): Slight rewrite for formatting.
2570 (emit_char,parse,ada_language_defn,build_ada_types,
2571 ada_is_exception_sym, _initialize_ada_language): Move
2573 (ada_dump_symtab): Remove unused definition.
2574 (ada_maybe_exception_partial_symbol): Remove unused definition.
2576 2004-09-16 Andrew Cagney <cagney@gnu.org>
2578 * inf-child.c: Include "gdb_string.h".
2579 (inf_child_core_file_to_sym_file): Delete.
2580 (inf_child_target): Set to_fetch_registers and to_store_registers.
2581 * inf-ptrace.c: Include "gdb_string.h".
2582 * Makefile.in: Update all dependencies.
2584 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2587 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2589 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2590 call to heuristic_proc_desc. Remove code that became redundant
2592 (read_next_frame_reg): Remove special case for SP_REGNUM.
2593 (set_reg_offset): Fix small typo.
2594 (reset_saved_regs): New procedure.
2595 (mips32_heuristic_proc_desc): No longer compute a fake
2596 procedure descriptor. Compute the full frame cache instead.
2597 Some minor comment reformatting.
2599 2004-09-14 Andrew Cagney <cagney@gnu.org>
2601 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2604 * thread-db.c (thread_db_new_objfile): Assume that there is a
2607 2004-09-13 Jim Blandy <jimb@redhat.com>
2609 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2610 so that its storage isn't referenced after its lifetime ends.
2612 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2613 and never assigned to. Delete it, and the 'if (use_buffer)'
2614 clauses. Delete 'raw_buffer', since it is now unused.
2616 2004-09-13 Andrew Cagney <cagney@gnu.org>
2618 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2619 * configure: Re-generate.
2620 * nlm/Makefile.in (TAGS): Update.
2621 * Makefile.in (TAGS): Update.
2622 * config/vax/nbsd.mt (TM_FILE): Update.
2623 * config/sparc/vxworks.mt (TM_FILE): Update.
2624 * config/sparc/sol2.mt (TM_FILE): Update.
2625 * config/sparc/sol2-64.mt (TM_FILE): Update.
2626 * config/sparc/obsd64.mt (TM_FILE): Update.
2627 * config/sparc/obsd.mt (TM_FILE): Update.
2628 * config/sparc/nbsd64.mt (TM_FILE): Update.
2629 * config/sparc/nbsd.mt (TM_FILE): Update.
2630 * config/sparc/linux64.mt (TM_FILE): Update.
2631 * config/sparc/linux.mt (TM_FILE): Update.
2632 * config/sparc/fbsd.mt (TM_FILE): Update.
2633 * config/sh/wince.mt (TM_FILE): Update.
2634 * config/sh/nbsd.mt (TM_FILE): Update.
2635 * config/sh/linux.mt (TM_FILE): Update.
2636 * config/sh/embed.mt (TM_FILE): Update.
2637 * config/s390/s390.mt (TM_FILE): Update.
2638 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2639 * config/rs6000/rs6000.mt (TM_FILE): Update.
2640 * config/rs6000/aix4.mt (TM_FILE): Update.
2641 * config/powerpc/vxworks.mt (TM_FILE): Update.
2642 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2643 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2644 * config/powerpc/obsd.mt (TM_FILE): Update.
2645 * config/powerpc/nbsd.mt (TM_FILE): Update.
2646 * config/powerpc/linux.mt (TM_FILE): Update.
2647 * config/powerpc/aix.mt (TM_FILE): Update.
2648 * config/pa/obsd.mt (TM_FILE): Update.
2649 * config/pa/linux.mt (TM_FILE): Update.
2650 * config/pa/hppahpux.mt (TM_FILE): Update.
2651 * config/pa/hppa64.mt (TM_FILE): Update.
2652 * config/pa/hppa.mt (TM_FILE): Update.
2653 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2654 * config/mips/wince.mt (TM_FILE): Update.
2655 * config/mips/vxmips.mt (TM_FILE): Update.
2656 * config/mips/nbsd.mt (TM_FILE): Update.
2657 * config/mips/linux.mt (TM_FILE): Update.
2658 * config/mips/irix6.mt (TM_FILE): Update.
2659 * config/mips/irix5.mt (TM_FILE): Update.
2660 * config/mips/embed.mt (TM_FILE): Update.
2661 * config/m68k/vxworks68.mt (TM_FILE): Update.
2662 * config/m68k/st2000.mt (TM_FILE): Update.
2663 * config/m68k/os68k.mt (TM_FILE): Update.
2664 * config/m68k/obsd.mt (TM_FILE): Update.
2665 * config/m68k/nbsd.mt (TM_FILE): Update.
2666 * config/m68k/monitor.mt (TM_FILE): Update.
2667 * config/m68k/linux.mt (TM_FILE): Update.
2668 * config/m68k/cisco.mt (TM_FILE): Update.
2669 * config/ia64/linux.mt (TM_FILE): Update.
2670 * config/ia64/aix.mt (TM_FILE): Update.
2671 * config/ia64/ia64.mt (TM_FILE): Update.
2672 * config/i386/vxworks.mt (TM_FILE): Update.
2673 * config/i386/obsd64.mt (TM_FILE): Update.
2674 * config/i386/obsd.mt (TM_FILE): Update.
2675 * config/i386/nto.mt (TM_FILE): Update.
2676 * config/i386/nbsd64.mt (TM_FILE): Update.
2677 * config/i386/nbsd.mt (TM_FILE): Update.
2678 * config/i386/linux64.mt (TM_FILE): Update.
2679 * config/i386/linux.mt (TM_FILE): Update.
2680 * config/i386/i386sol2.mt (TM_FILE): Update.
2681 * config/i386/i386lynx.mt (TM_FILE): Update.
2682 * config/i386/fbsd64.mt (TM_FILE): Update.
2683 * config/i386/fbsd.mt (TM_FILE): Update.
2684 * config/i386/cygwin.mt (TM_FILE): Update.
2685 * config/h8300/h8300.mt (TM_FILE): Update.
2686 * config/frv/frv.mt (TM_FILE): Update.
2687 * config/cris/cris.mt (TM_FILE): Update.
2688 * config/arm/wince.mt (TM_FILE): Update.
2689 * config/arm/nbsd.mt (TM_FILE): Update.
2690 * config/arm/linux.mt (TM_FILE): Update.
2691 * config/arm/embed.mt (TM_FILE): Update.
2692 * config/alpha/nbsd.mt (TM_FILE): Update.
2693 * config/alpha/fbsd.mt (TM_FILE): Update.
2694 * config/alpha/alpha.mt (TM_FILE): Update.
2695 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2696 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2698 Eliminate event_loop_p, always has the value 1.
2699 * defs.h (event_loop_p): Delete macro.
2700 * breakpoint.c (until_break_command): Simplify.
2701 * utils.c (prompt_for_continue): Simplify.
2702 * tracepoint.c (read_actions): Simplify.
2703 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2704 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2705 (set_prompt, init_main): Simplify.
2706 (init_signals, disconnect): Delete, unused.
2707 * remote.c (remote_async_resume)
2708 (extended_remote_async_create_inferior): Simplify.
2709 * mi/mi-interp.c (mi_input): Delete, unused.
2710 (mi_interpreter_resume, mi_command_loop): Simplify.
2711 * interps.c (current_interp_command_loop): Simplify.
2712 * infrun.c (proceed): Simplify.
2713 * infcmd.c (run_command, continue_command, step_1, jump_command)
2714 (until_command, advance_command, finish_command)
2715 (interrupt_target_command): Simplify.
2716 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2718 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2719 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2720 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2721 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2722 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2723 * mips-tdep.c (mips_dump_tdep): Do not print same.
2725 2004-09-12 Andrew Cagney <cagney@gnu.org>
2727 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2729 * Makefile.in (valprint.o): Delete explict rule.
2731 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2732 reported by Dave Anderson.
2734 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2736 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2738 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2739 Andrew Cagney <cagney@gnu.org>
2741 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2742 (mi_cmd_data_list_register_values)
2743 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2744 the register number computation.
2746 2004-09-12 Andrew Cagney <cagney@gnu.org>
2748 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2749 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2750 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2751 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2753 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2754 inf-ptrace.o and inf-child.o.
2755 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2756 * Makefile.in: Update dependencies.
2758 2004-09-11 Andrew Cagney <cagney@gnu.org>
2760 * language.c (hex_string, hex_string_custom): Move from here ...
2761 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2762 (CELLSIZE): Increase to 50.
2763 * language.h (hex_string, hex_string_custom): Move from here ...
2764 * defs.h: ... to here.
2765 * Makefile.in: Update all dependencies.
2767 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2769 * language.c (local_hex_format_custom): Remove.
2770 (local_hex_string): Rename to hex_string, use C format, and move to
2772 (local_hex_string_custom): Rename to hex_string_custom and change
2773 interface. Now uses C format. Move to utils.c
2774 (local_octal_format_custom): Remove.
2775 (local_decimal_format_custom): Remove.
2776 (unknown_language_defn): Remove language-specific number
2778 (auto_language_defn): Ditto.
2779 (local_language_defn): Ditto.
2780 * language.h (struct language_format_info): Delete declaration.
2781 (struct language_defn): Remove language_format_info fields
2782 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2783 (local_binary_format): Remove macro.
2784 (local_binary_format_prefix): Remove macro.
2785 (local_binary_format_specifier): Remove macro.
2786 (local_binary_format_suffix): Remove macro.
2787 (local_octal_format): Remove macro.
2788 (local_octal_format_prefix): Remove macro.
2789 (local_octal_format_specifier): Remove macro.
2790 (local_octal_format_suffix): Remove macro.
2791 (local_decimal_format): Remove macro.
2792 (local_decimal_format_prefix): Remove macro.
2793 (local_decimal_format_specifier): Remove macro.
2794 (local_decimal_format_suffix): Remove macro.
2795 (local_hex_format): Remove macro.
2796 (local_hex_format_prefix): Remove macro.
2797 (local_hex_format_specifier): Remove macro.
2798 (local_hex_format_suffix): Remove macro.
2799 (local_decimal_format_custom): Remove.
2800 (local_octal_format_custom): Remove.
2801 (local_hex_format_custom): Remove.
2802 (local_hex_string): Rename to hex_string and move to defs.h.
2803 (local_hex_string_custom): Rename to hex_string_custom, change
2804 interface, and move to defs.h.
2805 * utils.c: (int_string): New function.
2806 (hex_string): New function (from language.c).
2807 (hex_string_custom): New function (from language.c).
2808 (octal2str): New function.
2809 (decimal2str): Add width parameter.
2810 (paddr_u): Use new decimal2str interface.
2812 * defs.h (hex_string): Declare.
2813 (hex_string_custom): Declare.
2814 (int_string): Declare.
2815 * printcmd.c (print_scalar_formatted): Remove localized binary
2817 * valprint.c (print_longest): Use int_string.
2818 (print_floating): Use C hex format.
2819 (print_hex_chars): Ditto.
2820 (print_binary_chars): Remove language-specific formatting.
2821 (print_octal_chars): Use C octal format.
2822 (print_decimal_chars): Delocalize format.
2823 (print_decimal): Remove.
2824 * ada-lang.c (ada_language_defn): Remove language-specific number
2826 * p-lang.c (pascal_language_defn): Ditto.
2827 * c-lang.c (c_language_defn): Ditto.
2828 (cplus_language_defn): Ditto.
2829 (asm_language_defn): Ditto.
2830 (minimal_language_defn): Ditto.
2831 * f-lang.c (f_language_defn): Ditto.
2832 * jv-lang.c (java_language_defn): Ditto.
2833 * m2-lang.c (m2_language_defn): Ditto.
2834 * scm-lang.c (scm_language_defn): Ditto.
2835 * objc-lang.c (objc_language_defn): Ditto.
2836 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2838 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2839 * ui-out.c (ui_out_field_core_addr): Ditto.
2840 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2841 * exec.c (print_section_info): Ditto.
2842 * i387-tdep.c (print_i387_status_word): Ditto.
2843 (print_i387_control_word): Ditto.
2844 (i387_print_float_info): Ditto.
2845 * maint.c (maint_print_section_info): Ditto.
2846 * solib.c (info_sharedlibrary_command): Ditto.
2847 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2848 * symtab.c (print_msymbol_info): Ditto.
2849 * tracepoint.c (tracepoints_info): Ditto.
2850 * solib-frv.c (lm_base): Ditto.
2851 (frv_current_sos): Ditto.
2852 (enable_break2): Ditto.
2853 (enable_break): Ditto.
2854 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2855 (process_one_symbol): Ditto.
2856 * infcmd.c (program_info): Ditto.
2857 * mdebugread.c (parse_partial_symbols): Ditto.
2858 * symfile.c (add_symbol_file_command): Ditto.
2859 * cli/cli-cmds.c (edit_command): Ditto.
2860 (list_command): Ditto.
2861 * infcall.c (call_function_by_hand): Ditto.
2862 * remote-vx.c (vx_run_files_info): Ditto.
2867 * aix-thread.c (pdc_symbol_addrs): Ditto.
2868 (pdc_read_regs): Ditto.
2869 (pdc_write_regs): Ditto.
2870 (pdc_read_data): Ditto.
2871 (pdc_write_data): Ditto.
2872 * d10v-tdep.c (display_trace): Ditto.
2873 * rs6000-nat.c (find_toc_address): Ditto.
2874 * aix-thread.c: Don't include language.h.
2875 * buildsym.c: Ditto.
2877 * mdebugread.c: Ditto.
2878 * rs6000-nat.c: Ditto.
2879 * buildsym.c (make_blockvector): Use renamed hex_string.
2881 2004-09-10 Jason Molenda (jmolenda@apple.com)
2883 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2884 chars after 'if' or 'while' commands in user-defined commands.
2886 2004-09-08 Jim Blandy <jimb@redhat.com>
2888 Fix bug reported and analyzed by Olivier Crete:
2889 * symfile.c (copy_section_addr_info): New function.
2890 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2891 original set of address arguments, instead of handwritten code
2892 that uses one length to allocate and a different length to
2893 initialize. Use make_cleanup_free_section_addr_info.
2894 * symfile.h (copy_section_addr_info): New declaration.
2895 * utils.c: #include "symfile.h".
2896 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2898 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2899 * Makefile.in (utils.o): Update dependencies.
2901 2004-09-08 Andrew Cagney <cagney@gnu.org>
2903 * thread-db.c (keep_thread_db): Delete.
2904 (thread_db_new_objfile, thread_db_create_inferior)
2905 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2907 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2909 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2910 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2911 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2912 (i386_frameless_signal_p): Remove prototype.
2913 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2914 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2916 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2917 instead of FP0_REGNUM.
2918 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2919 of FP0_REGNUM and FPC_REGNUM.
2921 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2922 (sunos_solib_create_inferior_hook): Don't call
2923 sunos_relocate_main_executable.
2925 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2926 solib_svr4_fetch_link_map_offsets to
2927 svr4_ilp32_fetch_link_map_offsets.
2928 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2929 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2930 svr4_ilp32_fetch_link_map_offsets.
2931 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2933 2004-09-07 Jim Blandy <jimb@redhat.com>
2935 * frame.h (frame_register): Doc fix.
2937 2004-09-07 Andrew Cagney <cagney@gnu.org>
2939 * vx-share/wait.h: Delete #ifdef USG.
2940 * utils.c (request_quit): Ditto.
2941 * tui/tui.c (tui_reset): Ditto.
2943 * remote-sds.c: Ditto.
2944 * remote-rdi.c: Ditto.
2945 * mdebugread.c: Ditto.
2946 * m68klinux-nat.c: Ditto.
2947 * infttrace.c: Ditto.
2948 * infptrace.c: Ditto.
2949 * i386v-nat.c: Ditto.
2952 * core-aout.c: Ditto.
2954 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2956 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2957 heuristic_proc_desc.
2958 (mips_insn32_frame_cache): Likewise.
2960 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2962 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2963 left behind by error.
2965 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2967 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2968 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2970 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2972 * config/rs6000/xm-aix4.h: Remove this file.
2973 * config/rs6000/aix4.mh (XM_FILE): Delete.
2975 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2977 * config/rs6000/xm-rs6000.h: Remove this file.
2978 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2980 2004-09-03 Andrew Cagney <cagney@gnu.org>
2982 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2983 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2986 * mips-tdep.c (temp_saved_regs): Delete.
2987 (set_reg_offset): Replace saved_regs parameter with this_cache.
2988 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2989 (mips32_heuristic_proc_desc): Add this_cache parameter.
2990 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2991 (after_prologue): Pass a NULL this_cache.
2993 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2994 non-kernel trap prologues.
2996 * mips-tdep.c (find_proc_desc): Delete function.
2997 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2999 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3000 mips_insn32_frame_cache.
3002 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3003 Simplify as NEXT_FRAME is NULL.
3004 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3006 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3008 (mips_skip_prologue): Update.
3010 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3011 "cur_frame" parameter.
3012 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3013 (mips_insn32_frame_cache, find_proc_desc): Update
3015 * config/vax/nm-obsd.h: Delete file.
3016 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3017 * config/vax/nm-nbsd.h: Delete file.
3018 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3019 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3020 * config/sh/nm-nbsd.h: Delete file.
3021 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3022 * config/rs6000/nm-rs6000ly.h: Delete file.
3023 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3024 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3025 * config/powerpc/nm-obsd.h: Delete file.
3026 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3027 * config/powerpc/nm-nbsd.h: Delete file.
3028 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3029 * config/pa/nm-obsd.h: Delete file.
3030 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3031 * config/mips/nm-nbsd.h: Delete file.
3032 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3033 * config/m88k/nm-obsd.h: Delete file.
3034 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3035 * config/m68k/nm-nbsd.h: Delete file.
3036 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3037 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3038 * config/i386/nm-nbsd.h: Delete file.
3039 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3040 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3041 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3042 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3043 * config/i386/nm-i386lynx.h: Delete file.
3044 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3045 * config/arm/nm-nbsd.h: Delete file.
3046 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3047 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3049 * config/i386/tm-fbsd.h: Delete file.
3050 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3051 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3053 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3054 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3055 * config/rs6000/aix4.mt (TM_FILE): Set to
3056 config/rs6000/tm-rs6000.h.
3057 * config/powerpc/tm-ppc-aix.h: Delete file.
3058 * config/powerpc/aix.mt (TM_FILE): Set to
3059 config/rs6000/tm-rs6000.h.
3060 * config/m68k/tm-linux.h: Delete file.
3061 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3062 * config/i386/tm-linux64.h: Delete file.
3063 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3064 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3066 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3067 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3068 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3069 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3070 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3071 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3072 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3073 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3074 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3076 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3079 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3081 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3082 Minor reformatting. Some code factoring.
3084 2004-09-02 Andrew Cagney <cagney@gnu.org>
3086 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3087 * config/vax/tm-nbsd.h: Delete file.
3088 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3089 * config/sparc/tm-vxworks.h: Delete file.
3090 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3091 * config/sparc/tm-nbsd.h: Delete file.
3092 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3093 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3094 * config/sparc/tm-linux.h: Delete file.
3095 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3096 * config/s390/tm-linux.h: Delete file.
3097 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3098 * config/pa/tm-bsd.h: Delete file.
3099 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3100 * config/m68k/tm-obsd.h: Delete file.
3101 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3102 * config/m68k/tm-nbsd.h: Delete file.
3103 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3104 * config/i386/tm-vxworks.h: Delete file.
3105 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3106 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3107 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3108 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3109 * config/i386/tm-nbsd.h: Delete file.
3110 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3111 * config/i386/tm-i386lynx.h: Delete file.
3112 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3113 * config/cris/tm-cris.h: Delete file.
3115 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3116 * configure: Re-generate.
3117 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3118 * config/arm/tm-nbsd.h: Delete file.
3120 * config/powerpc/tm-ppcle-sim.h: Delete.
3121 * config/powerpc/tm-ppcle-eabi.h: Delete.
3122 * config/powerpc/tm-nbsd.h: Delete.
3123 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3124 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3127 * config/i386/nto.mh (NAT_FILE): Delete.
3128 * config/i386/nm-nto.h: Delete.
3130 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3131 * config/m68k/tm-os68k.h: Ditto.
3132 * config/m68k/tm-monitor.h: Ditto.
3133 * config/m68k/tm-cisco.h: Ditto.
3134 * config/m68k/st2000.mt (TM_FILE): Delete.
3135 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3136 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3137 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3138 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3140 * config/m68k/tm-st2000.h: Delete.
3141 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3142 * config/sparc/fbsd.mt (TM_FILE): Delete.
3143 * config/sparc/tm-fbsd.h: Delete.
3145 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3146 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3147 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3149 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3150 GDB_TM_FILE and GDB_XM_FILE.
3151 * gdbarch.c: Re-generate.
3152 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3153 quotes in macro definition.
3154 * configure.in: Re-generate.
3156 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3157 validating architecture methods.
3158 * gdbarch.c: Re-generate.
3160 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3161 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3162 GDB_MULTI_ARCH_PARTIAL.
3163 * gdbarch.h: Re-generate.
3165 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3166 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3167 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3168 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3169 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3170 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3171 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3172 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3173 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3174 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3175 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3176 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3178 2004-09-01 Andrew Cagney <cagney@gnu.org>
3180 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3181 and main_func_highpc.
3182 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3183 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3184 * nlmread.c (nlm_symfile_read): Update.
3186 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3188 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3189 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3190 (find_proc_desc): Remove dead code.
3192 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3194 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3196 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3198 * observer.sh: Add struct so_list declaration.
3199 * Makefile.in: Add dependencies on observer.h for solib.c and
3201 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3203 (_initialize_breakpoint): Register
3204 disable_breakpoints_in_unloaded_shlib as an observer of the
3205 "solib unloaded" observation event.
3206 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3207 call decode_line_1 so unfound breakpoint errors are silent.
3208 * solib.c (update_solib_list): When a solib is discovered to have
3209 been unloaded by the program, notify all observers of the
3210 "solib unloaded" observation event.
3212 2004-09-01 Andrew Cagney <cagney@gnu.org>
3214 * frame.c: Include "objfiles.h".
3215 (inside_main_func): New function.
3216 (get_prev_frame): Use new inside_main_func.
3217 * Makefile.in (frame.o): Update dependencies.
3218 * defs.h (inside_main_func): Delete declaration.
3219 * blockframe.c (inside_main_func): Delete function.
3221 2004-08-31 Jim Blandy <jimb@redhat.com>
3223 * dwarf2read.c (is_vtable_name): New function, based on logic from
3224 read_structure_type, but passing the correct length to strncmp,
3225 and using 'sizeof' instead of 'strlen'.
3226 (read_structure_type): Call it.
3228 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3230 * config/powerpc/aix.mh: Add comment.
3232 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3234 * MAINTAINERS: Add self to Write-After-Approval.
3236 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3238 * MAINTAINERS: Add self to Write-After-Approval.
3240 2004-08-30 Andrew Cagney <cagney@gnu.org>
3242 Fix PR breakpoints/1757.
3243 * infrun.c (struct execution_control_state): Replace
3244 remove_breakpoints_on_following_step with
3245 step_after_step_resume_breakpoint.
3246 (init_execution_control_state): Update.
3247 (handle_inferior_event): For signals, when stepping off a
3248 breakpoint, set step_after_step_resume_breakpoint. When
3249 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3250 (keep_going): Delete code handling
3251 remove_breakpoints_on_following_step.
3253 2004-08-29 David Lecomber <david@streamline-computing.com>
3256 * language.h (enum array_ordering): New enum.
3257 * language.h (struct language_defn): New la_array_ordering
3259 * language.c (unknown_language_defn, auto_language_defn)
3260 (local_language_defn): Ditto.
3261 * ada-lang.c (ada_language_defn): Ditto.
3262 * c-lang.c (c_language_defn, cplus_language_defn)
3263 (asm_language_defn, minimal_language_defn): Ditto.
3264 * f-lang.c (f_language_defn): Ditto.
3265 * jv-lang.c (java_language_defn): Ditto.
3266 * m2-lang.c (f_language_defn): Ditto.
3267 * objc-lang.c (objc_language_defn): Ditto.
3268 * p-lang.c (pascal_language_defn): Ditto.
3269 * scm-lang.c (scm_language_defn): Ditto.
3270 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3271 oriented large to small in type structure.
3272 * dwarf2read.c (read_array_order): New function.
3273 (read_array_type): Use read_array_order to check row/column
3276 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3278 * target.c (target_resize_to_sections): Check
3279 current_target.to_sections for an old value when updating.
3281 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3283 * procfs.c (dbx_link_bpt_addr): New static global variable.
3284 (dbx_link_shadow_contents): New static global variable.
3285 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3286 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3288 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3289 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3291 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3292 after the inferior has been forked.
3293 (remove_dbx_link_breakpoint): New function.
3294 (dbx_link_addr): New function.
3295 (insert_dbx_link_bpt_in_file): New function.
3296 (insert_dbx_link_bpt_in_region): New function.
3297 (insert_dbx_link_breakpoint): New function.
3298 (proc_trace_syscalls_1): New function, extracted from
3299 proc_trace_syscalls.
3300 (proc_trace_syscalls): Replace extract code by call to
3301 proc_trace_syscalls_1.
3302 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3305 2004-08-25 Jim Blandy <jimb@redhat.com>
3307 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3309 2004-08-25 Andrew Cagney <cagney@gnu.org>
3311 * infrun.c (struct execution_control_state): Delete field
3312 "stepping_through_sigtramp".
3313 (init_execution_control_state): Do not set same.
3314 (context_switch): Do not pass same to save_infrun_state and
3316 * gdbthread.h (struct thread_info): Delete field
3317 stepping_through_sigtramp.
3318 (save_infrun_state, load_infrun_state): Delete parameter
3319 stepping_through_sigtramp.
3320 * thread.c (load_infrun_state, save_infrun_state): Update.
3322 * infrun.c: Re-indent. Move expression operators to the beginning
3323 of the line. Remove long disabled #if 0 code.
3325 2004-08-24 Andrew Cagney <cagney@gnu.org>
3327 * doublest.h (floatformat_ieee_quad): Rename
3328 floatformat_ia64_quad.
3329 * doublest.c (floatformat_ieee_quad): Rename
3330 floatformat_ia64_quad.
3331 (_initialize_doublest): Update.
3333 2004-08-24 Jim Blandy <jimb@redhat.com>
3335 * dwarf2expr.h (struct dwarf_expr_context): New members
3336 'num_pieces' and 'pieces', for returning the result of an
3337 expression that uses DW_OP_piece.
3338 (struct dwarf_expr_piece): New struct type.
3339 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3341 (free_dwarf_expr_context): Free pieces, if any.
3342 (add_piece): New function.
3343 (execute_stack_op): Implement DW_OP_piece.
3344 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3345 expression is a list of pieces, print an error message.
3346 (dwarf2_loc_desc_needs_frame): If the expression yields
3347 pieces, and any piece is in a register, then we need a frame.
3349 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3350 the stack until we've decided what sort of result the evaluation
3351 has produced. Use separate variables, with more specific names.
3353 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3355 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3356 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3357 (arm_netbsd_init_abi_common): Register them.
3359 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3361 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3363 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3364 safe_frame_unwind_memory instead of target_read_memory.
3366 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3368 (fetch_register, store_register): Remove prototypes.
3369 (child_resume): Reorganize code and comments such that it is
3370 grouped a bit more logically.
3371 (attach): Explicitly compare errno against 0.
3372 (detach): Likewise. Use perror_with_name instead of
3374 * Makefile.in (infptrace.o): Update dependencies.
3376 * ia64-linux-nat.c: Update copyright year.
3377 (fetch_debug_register, store_debug_register)
3378 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3380 * config/ia64/nm-linux.h: Update copyright year.
3381 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3383 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3384 from CORE_ADDR to struct frame_info *. Use
3385 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3386 (amd64_linux_sigtramp_p): Adjust for changed signature of
3387 and64_linux_sigtramp_start
3389 * gdb_ptrace.h: GNU/Linux.
3391 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3394 * infptrace.c: Include "gdb_assert.h".
3395 (PTRACE_XFER_TYPE): Remove define.
3396 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3397 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3399 (fetch_inferior_registers, store_inferior_registers): Remove
3400 redundant culry braces. Tweak comment. s/regno/regnum.
3401 * Makefile.in (infptrace.o): Update dependencies.
3403 * configure.in: Change test for return type of ptrace to default
3404 to `long' instead of `int'.
3405 * configure: Regenerate.
3407 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3409 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3411 * configure.in: Check for ttrace function.
3412 * configure, config.in: Regenerate.
3414 * gdb_ptrace.h: New file.
3415 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3417 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3418 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3419 (attach): Don't define PT_ATTACH.
3420 (detach): Don't define PT_DETACH.
3421 * Makefile.in (gdb_ptrace_h): New variable.
3422 (infptrace.o): Update dependencies.
3424 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3426 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3427 instead of `int' if not already defined.
3428 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3430 * infptrace.c (call_ptrace): Revert change that replaced
3431 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3433 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3435 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3438 * linux-nat.c (kill_inferior): Add missing third and fourth
3439 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3441 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3444 * proc-why.c (proc_prettyfprint_why): Fix format string.
3446 * solib-osf.c (osf_current_sos): Remove unsused label.
3448 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3450 * configure, config.in: Regenerate.
3451 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3452 <ncurses/ncurses.h>.
3454 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3455 * config/nm-nbsd.h: Update copyright year.
3456 (PTRACE_ARG3_TYPE): Remove define.
3458 * sparc-nat.c (fetch_inferior_registers)
3459 (store_inferior_registers, sparc_xfer_wcookie):
3460 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3462 * alphabsd-nat.c (fetch_inferior_registers):
3463 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3465 * amd64bsd-nat.c (fetch_inferior_registers)
3466 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3468 * armnbsd-nat.c: Update copyright year.
3469 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3470 (store_register, store_regs, store_fp_register, store_fp_regs):
3471 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3472 * hppabsd-nat.c (fetch_inferior_registers)
3473 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3475 * i386bsd-nat.c (fetch_inferior_registers)
3476 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3477 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3478 * m68kbsd-nat.c (fetch_inferior_registers)
3479 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3481 * m88kbsd-nat.c (fetch_inferior_registers)
3482 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3484 * mipsnbsd-nat.c: Update copyright year.
3485 (fetch_inferior_registers, store_inferior_registers):
3486 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3487 * ns32knbsd-nat.c: Update copyright year.
3488 (fetch_inferior_registers, store_inferior_registers):
3489 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3490 * ppcnbsd-nat.c (fetch_inferior_registers):
3491 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3493 * ppcobsd-nat.c (fetch_inferior_registers):
3494 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3496 * shnbsd-nat.c: Update copyright year.
3497 (fetch_inferior_registers, store_inferior_registers):
3498 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3499 * vaxbsd-nat.c (fetch_inferior_registers)
3500 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3503 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3505 * infptrace.c (call_ptrace, child_resume, attach, detach)
3506 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3507 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3508 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3511 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3513 * defs.h: Remove out-of-date comment.
3514 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3515 [!GETENV_PROVIDED] (getenv): Remove prototype.
3517 * standalone.c: Remove file.
3518 * Makefile.in (standalone.o): Remove dependency.
3520 * i386-linux-nat.c (dummy_sse_values): Remove function and
3522 (i386_linux_dr_get): Fix typo in comment.
3523 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3525 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3527 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3529 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3532 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3534 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3535 parenthesis in definition.
3536 * configure: Regenerated.
3538 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3540 * PROBLEMS: Mention build/1411.
3542 2004-08-09 Robert Millan <robertmh@gnu.org>
3544 Committed by Nathanael Nerode.
3545 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3546 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3548 2004-08-12 Andrew Cagney <cagney@gnu.org>
3550 * NEWS: Mention fixes in GDB 6.2.1.
3551 * PROBLEMS: Remove mention of mips-irix.
3553 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3555 * config/powerpc/xm-aix.h: Delete.
3556 * config/powerpc/aix.mh (MH_FILE): Remove.
3557 * config/powerpc/aix432.mh (MH_FILE): Remove.
3559 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3561 * config/powerpc/aix.mh: Remove obsolete comment.
3562 * config/powerpc/aix432.mh: Likewise.
3564 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3566 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3568 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3570 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3571 this file is now empty.
3572 * config/xm-aix4.h: Remove, this file is no longer included
3575 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3577 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3578 that file is now empty.
3579 (termdef): Remove prototype, function no longer used.
3581 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3583 * doc/gdbint.texinfo (Host Definition): Remove documentation
3584 for USE_O_NOCTTY, no longer used.
3585 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3586 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3588 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3590 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3591 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3592 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3594 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3596 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3597 instead of FIVE_ARG_PTRACE.
3599 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3600 (new_tty): Use O_NOCTTY unconditionally.
3602 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3604 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3605 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3608 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3610 * xcoff_symfile_finish: Replace last call to xmfree by call
3613 2004-08-10 Andrew Cagney <cagney@gnu.org>
3615 * main.c (captured_main): Delete call to init_malloc.
3616 * defs.h (init_malloc): Delete declaration.
3617 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3618 (init_malloc): Delete functions.
3620 * defs.h (xmfree): Delete.
3621 * utils.c (xmfree): Delete function.
3622 (xfree): Inline calls to xmfree and mfree.
3623 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3624 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3625 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3626 * somread.c (som_symfile_finish): Ditto.
3627 * objfiles.c (allocate_objfile, free_objfile):
3628 * nlmread.c (nlm_symfile_finish): Ditto.
3629 * hpread.c (hpread_symfile_finish): Ditto.
3630 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3631 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3632 * coffread.c (coff_symfile_finish): Ditto.
3634 * defs.h (xmcalloc): Delete declaration.
3635 * utils.c (xmcalloc): Delete.
3636 (xcalloc): Inline calls to xmcalloc and mcalloc.
3637 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3639 * symtab.c (create_demangled_names_hash): Ditto.
3641 * defs.h (xmrealloc): Delete.
3642 * utils.c (xmrealloc): Delete.
3643 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3644 * symmisc.c (extend_psymbol_list): Use xrealloc.
3645 * source.c (find_source_lines): Ditto.
3646 * hpread.c (hpread_lookup_type): Ditto.
3647 * dbxread.c (add_bincl_to_list): Ditto.
3649 * utils.c (xmmalloc): Delete.
3650 (xmalloc): Inline xmmalloc and mmalloc calls.
3651 (msavestring): Use xmalloc.
3652 * defs.h (xmmalloc): Delete declaration.
3653 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3655 * symmisc.c (extend_psymbol_list): Ditto.
3656 * symfile.c (init_psymbol_list): Ditto.
3657 * source.c (find_source_lines): Ditto.
3658 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3659 * elfread.c (elf_symtab_read): Ditto.
3660 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3661 * coffread.c (coff_symfile_init): Ditto.
3663 2004-08-10 David Carlton <carlton@bactrian.org>
3665 * MAINTAINERS: Remove David Carlton from c++ testsuite
3668 2004-08-10 Jerome Guitton <guitton@gnat.com>
3670 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3671 print a line feed before the prompt.
3673 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3675 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3677 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3679 General cleanup of the AIX xm include file:
3680 * config/xm-aix4.h (fd_set): Remove undefine.
3681 Remove include of <sys/select.h>.
3682 (HAVE_TERMIO): Remove define.
3684 (NULL): Remove redefine.
3685 (alloca): Remove #pragma.
3686 (vfork): Remove define.
3688 (SIGWINCH_HANDLER): Remove.
3689 (SIGWINCH_HANDLER_BODY): Remove.
3691 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3693 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3694 GDB_OSABI_OPENBSD_ELF.
3696 2004-08-07 Robert Millan <robertmh@gnu.org>
3698 * bsd-kvm.c: Check for nlist.h before including it.
3700 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3702 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3703 sigcontext' offset consistency checks for ancient BSD.
3705 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3707 * configure.in: Check for <sys/types.h>. Check return and
3708 argument types of ptrace.
3709 * configure, config.in: Regenerate.
3711 2004-08-09 Jim Blandy <jimb@redhat.com>
3713 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3714 rs6000_register_sim_regno): Doc fixes.
3716 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3718 * mips-tdep.c: Include "floatformat.h".
3719 (n32n64_floatformat_always_valid): New function.
3720 (floatformat_n32n64_long_double_big): New constant.
3721 (mips_gdbarch_init): Set size and format of long double
3722 for N32 and N64 ABIs.
3723 * Makefile.in (mips-tdep.o): Update dependencies.
3725 2004-08-08 Andrew Cagney <cagney@gnu.org>
3727 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3728 print. Improve script's error messages.
3729 * gdbarch.h: Re-generate.
3731 * gdbarch.sh (pformat): New function.
3732 (float_format, double_format, long_double_format): List with bit
3733 members. Use pformat when printing.
3734 * gdbarch.c, gdbarch.h: Re-generate.
3736 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3738 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3739 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3740 (ppcnbsd_supply_pcb): New function.
3741 (_initialize_ppcnbsd_nat): New prototype and function.
3742 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3743 (LOADLIBES): New variable.
3744 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3746 2004-08-08 Andrew Cagney <cagney@gnu.org>
3748 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3749 (builtin_type_ieee_double, builtin_type_ia64_quad)
3750 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3751 BE/LE floating-point types.
3752 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3753 (builtin_type_ieee_double, builtin_type_ia64_quad)
3754 (builtin_type_ia64_spill): Declare.
3755 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3756 (floatformat_ieee_double, floatformat_arm_ext)
3757 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3758 of LE/BE floatformats.
3759 * doublest.h: (struct floatformat, floatformat_ieee_single)
3760 (floatformat_ieee_double, floatformat_arm_ext)
3761 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3763 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3765 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3767 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3768 instead of regcache_raw_supply when storing the registers.
3770 * i386gnu-nat.c: Update copyright year.
3771 (gnu_store_registers): Don't use deprecated_registers and
3772 deprecated_registers_valid. Use regcache_valid_p and
3773 regcache_raw_supply instead.
3775 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3778 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3779 variables. Incapitalized "process".
3781 * configure.in: Add cursesX to the list of possible curses libs.
3782 Add cursesX.h to the list of possible curses headers.
3783 * configure, config.in: Regenerate.
3785 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3787 * configure.in: Test for struct lwp in <sys/lwp.h>.
3788 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3789 the offset of l_addr in struct lwp.
3791 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3793 * bsd-kvm.c: Include "gdbcore.h"
3794 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3796 2004-08-07 Andrew Cagney <cagney@gnu.org>
3798 * gdbtypes.c (build_flt, build_complex): New functions.
3799 (gdbtypes_post_init): Use.
3801 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3803 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3804 through to builtin_type_uint128.
3806 * c-exp.y: Use builtin_type function to obtain builtin types.
3808 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3810 * gdbtypes.c (gdbtypes_post_init): Update.
3811 (build_gdbtypes): Move initialization of builtin_type_int0
3812 through to builtin_type_uint128 from here ...
3813 (_initialize_gdbtypes): ... to here.
3814 * d10v-tdep.c (d10v_register_type): Update.
3816 * doublest.c: Update copyright.
3817 (floatformat_from_length): Call error when floatformat is NULL.
3818 (extract_floating_by_length): Remove NULL fmt check.
3819 (store_floating_by_length): Ditto.
3821 2004-08-07 Andrew Cagney <cagney@gnu.org>
3823 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3824 that the register is valid.
3826 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3828 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3829 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3830 struct frame_info *. Use safe_frame_unwind_memory instead of
3831 deprecated_read_memory_nobpt.
3832 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3833 changed signature of i386_linux_sigtramp_start and
3834 i386_linux_rt_sigtramp_start.
3836 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3837 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3838 instead of deprecated_read_memory_nobpt.
3839 (i386nbsd_sigtramp_p): Adjust for changed signature of
3840 i386nbsd_sigtramp_offset.
3842 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3843 safe_frame_unwind_memory instead of target_read_memory.
3845 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3847 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3848 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3849 (_initialize_kernel_u_addr): Remove prototype and function.
3850 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3852 * xcoffread.c: Likewise.
3854 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3856 * vax-nat.c: New file.
3857 * vaxbsd-nat.c: Tweak comment.
3858 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3860 (vax-nat.o): New dependency.
3861 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3862 (vax-*-ultrix2*): Remove.
3863 * config/vax/vax.mh: New file.
3864 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3865 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3866 (vax_register_u_addr): New prototype.
3867 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3868 * config/vax/vaxult2.mh: Remove file.
3869 * config/vax/vaxult.mh: Remove file.
3870 * config/vax/vaxbsd.mh: Remove file.
3871 * config/vax/vax.mt (TM_FILE): Remove.
3872 * config/vax/tm-vaxbsd.h: Remove file.
3874 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3876 * aix-thread.c (get_signaled_thread): New function.
3877 (iter_trap): Delete, no longer used.
3878 (iter_tid): New function.
3879 (pd_update): Find the thread that received the SIGTRAP signal
3880 by first locating the kernel thread, and then finding its
3883 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3885 * lin-lwp.c (child_wait): Continue inferior after processing
3886 PTRACE_EVENT_CLONE event.
3888 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3890 * MAINTAINERS: Add self to Write-After-Approval.
3892 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3894 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3895 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3897 2004-08-05 Andrew Cagney <cagney@gnu.org>
3899 * config/xm-sysv4.h: Delete file.
3900 * config/mips/xm-irix5.h: Delete file.
3901 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3902 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3903 * config/ia64/xm-aix.h: Delete file.
3904 * config/ia64/aix.mh (XM_FILE): Delete.
3905 * config/pa/xm-hppah.h: Delete file.
3906 * config/pa/hpux11w.mh (XM_FILE): Delete.
3907 * config/pa/hpux11.mh (XM_FILE): Delete.
3908 * config/pa/hpux1020.mh (XM_FILE): Delete.
3909 * config/pa/hppahpux.mh (XM_FILE): Delete.
3911 * config/alpha/xm-alphalinux.h: Delete file.
3912 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3913 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3914 * config/alpha/xm-alphaosf.h: Delete file.
3915 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3916 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3917 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3918 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3920 * config/i386/xm-i386v.h: Delete file.
3921 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3922 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3923 * config/i386/xm-i386sco.h: Delete file.
3924 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3925 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3926 * config/i386/xm-i386v4.h: Delete file.
3927 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3928 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3929 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3930 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3932 * config/vax/xm-vax.h: Delete file.
3933 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3934 * config/vax/xm-vaxult2.h: Delete file.
3935 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3936 * config/vax/vaxult2.mh (XM_FILE): Delete.
3937 * config/vax/xm-vaxult.h: Delete file.
3938 * config/vax/vaxult.mh (XM_FILE): Delete.
3939 * config/vax/xm-vaxbsd.h: Delete file.
3940 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3942 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3943 * gdbarch.h, gdbarch.c: Re-generate.
3944 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3945 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3946 * frame.h: Delete deprecated_read_fp from comments.
3947 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3948 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3950 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3952 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3953 trampoline in OpenBSD 3.5-current.
3955 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3958 * Makefile.in: Remove embedded page breaks.
3960 2004-08-04 Jim Blandy <jimb@redhat.com>
3962 * regcache.c (regcache_raw_read): Assert that, after calling
3963 target_fetch_registers, the register we're reading is cached.
3965 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3966 a call to 'internal_error', with a more helpful error message.
3967 * rs6000-tdep.c (e500_pseudo_register_read,
3968 e500_pseudo_register_write, rs6000_store_return_value): Same.
3970 2004-08-04 Andrew Cagney <cagney@gnu.org>
3972 * Makefile.in: Update dependencies.
3974 2004-08-04 Jim Blandy <jimb@redhat.com>
3976 Change the layout of the PowerPC E500 raw register cache to allow
3977 the lower 32-bit halves of the GPRS to be their own raw registers,
3978 not pseudoregisters.
3979 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3980 add ppc_ev0_upper_regnum flag.
3981 * rs6000-tdep.c: #include "reggroups.h".
3982 (spe_register_p): Recognize the ev upper half registers as SPE
3984 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3986 (e500_move_ev_register): New function.
3987 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3988 vector registers are the pseudo-registers now, formed by splicing
3989 together the gprs and the upper-half registers.
3990 (e500_register_reggroup_p): New function.
3992 (P8, A4): New macro.
3993 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3994 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3996 (registers_e500): Rearrange register set so that the raw register
3997 set contains 32-bit GPRs and upper-half registers, and the SPE
3998 vector registers become pseudo-registers.
3999 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4000 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4001 register numbers are now the same for the E500 as they are for
4002 other PowerPC variants. Register e500_register_reggroup_p as the
4003 register group function for the E500.
4004 * Makefile.in (rs6000-tdep.o): Update dependencies.
4006 Adapt PPC E500 native support to the new raw regcache layout.
4007 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4008 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4009 (fetch_spe_register, store_spe_register): Handle fetching/storing
4010 all the SPE registers at once, if regno == -1. These now take
4011 over the job of fetch_spe_registers and store_spe_registers.
4012 (fetch_spe_registers, store_spe_registers): Deleted.
4013 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4014 unconditionally; they're always raw. Fetch/store SPE upper half
4015 registers, if present, instead of ev registers.
4016 (fetch_register, store_register): Remove sanity checks: gprs are
4017 never pseudo-registers now, so we never need to even mention any
4018 registers that are ever pseudoregisters.
4020 Use a fixed register numbering when communicating with the PowerPC
4022 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4023 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4024 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4026 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4027 init_sim_regno_table.
4028 * Makefile.in (gdb_sim_ppc_h): New variable.
4029 (rs6000-tdep.o): Update dependencies.
4031 2004-08-02 Andrew Cagney <cagney@gnu.org>
4033 * cris-tdep.c (cris_register_size): Restore function, still used
4036 * gdbarch.sh (deprecated_target_read_fp)
4037 (deprecated_frame_locals_address, deprecated_frame_args_address)
4038 (deprecated_frame_chain_valid, deprecated_frame_chain)
4039 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4040 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4041 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4042 * gdbarch.h, gdbarch.c: Re-generate.
4043 * regcache.c (deprecated_read_fp): Do not call
4044 DEPRECATED_TARGET_READ_FP_P.
4045 * infcmd.c (default_print_registers_info): Do not call
4046 DEPRECATED_DO_REGISTERS_INFO.
4047 * frame-base.c (default_frame_locals_address): Do not call
4048 DEPRECATED_FRAME_LOCALS_ADDRESS.
4049 (default_frame_args_address): Do not call
4050 DEPRECATED_FRAME_ARGS_ADDRESS.
4052 * gdbarch.sh (deprecated_register_raw_size)
4053 (deprecated_register_virtual_size:int): Delete.
4054 * gdbarch.h, gdbarch.c: Re-generate.
4055 * cris-tdep.c (cris_register_size): Delete.
4056 (cris_gdbarch_init): Update.
4057 * alpha-tdep.c (alpha_register_raw_size)
4058 (alpha_register_virtual_size): Delete.
4059 (alpha_gdbarch_init): Update.
4061 * gdbarch.sh (deprecated_register_virtual_type)
4062 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4063 (deprecated_dummy_write_sp): Delete.
4064 * gdbarch.h, gdbarch.c: Re-generate.
4066 * gdbarch.sh (deprecated_register_bytes): Delete.
4067 * gdbarch.h, gdbarch.c: Re-generate.
4068 * regcache.c (deprecated_register_bytes): New function.
4069 * regcache.h (deprecated_register_bytes): Declare.
4070 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4071 * v850-tdep.c (v850_gdbarch_init): Update.
4072 * sh64-tdep.c (sh64_gdbarch_init): Update.
4073 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4074 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4075 * mcore-tdep.c (mcore_gdbarch_init): Update.
4076 * cris-tdep.c (cris_gdbarch_init): Update.
4077 * arm-tdep.c (arm_gdbarch_init): Update.
4078 * remote.c (init_remote_state): Update.
4079 * remote-vx.c (vx_prepare_to_store): Update.
4080 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4081 * irix5-nat.c (fetch_core_registers): Update.
4082 * cris-tdep.c (cris_register_bytes_ok): Update.
4083 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4085 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4086 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4087 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4088 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4089 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4090 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4091 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4092 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4093 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4094 with mips_insn16 and mips_insn32.
4096 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4097 * rs6000-tdep.c (rs6000_push_dummy_call)
4098 (rs6000_extract_return_value): Use register_size.
4099 * xstormy16-tdep.c (xstormy16_get_saved_register)
4100 (xstormy16_extract_return_value): Ditto.
4101 * valops.c (value_assign): Ditto.
4102 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4103 * v850-tdep.c (v850_extract_return_value): Ditto.
4104 * tracepoint.c (collect_symbol): Ditto.
4105 * target.c (debug_print_register): Ditto.
4106 * stack.c (frame_info): Ditto.
4107 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4108 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4109 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4110 (store_register_using_P): Ditto.
4111 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4112 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4113 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4114 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4115 * regcache.c (deprecated_read_register_bytes)
4116 (deprecated_write_register_bytes, read_register)
4117 (write_register): Ditto.
4118 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4119 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4120 * monitor.c (monitor_supply_register, monitor_fetch_register)
4121 (monitor_store_register): Ditto.
4122 * mn10300-tdep.c (mn10300_pop_frame_regular)
4123 (mn10300_print_register): Ditto.
4124 * mipsv4-nat.c (fill_fpregset): Ditto.
4125 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4126 (mips64_fill_fpregset): Ditto.
4127 * mi/mi-main.c (register_changed_p, get_register)
4128 (mi_cmd_data_write_register_values): Ditto.
4129 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4130 * irix5-nat.c (fill_gregset, fetch_core_registers):
4131 * infrun.c (write_inferior_status_register): Ditto.
4132 * infptrace.c (fetch_register, store_register): Ditto.
4133 * infcmd.c (default_print_registers_info): Ditto.
4134 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4135 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4136 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4137 * hpux-thread.c (hpux_thread_fetch_registers)
4138 (hpux_thread_store_registers): Ditto.
4139 * hppah-nat.c (store_inferior_registers, fetch_register):
4140 * findvar.c (value_from_register): Ditto.
4141 * dve3900-rom.c (fetch_bitmapped_register):
4142 * cris-tdep.c (cris_gdbarch_init): Ditto.
4143 * alpha-tdep.h: Ditto.
4144 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4146 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4147 DEPRECATED_REGISTER_RAW_SIZE from comments.
4148 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4149 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4150 DEPRECATED_REGISTER_RAW_SIZE.
4151 * findvar.c (value_of_register): Simplify by assuming that the
4152 registers raw and virtual sizes are identical.
4153 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4155 * arch-utils.c (generic_register_size): Simplify by assuming
4158 * regcache.c (legacy_read_register_gen, real_register)
4159 (legacy_write_register_gen): Delete, not used.
4161 * regcache.c (struct regcache_descr): Delete legacy_p.
4162 (init_legacy_regcache_descr): Delete function.
4163 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4164 Do not use deprecated register functions.
4165 (regcache_raw_read, deprecated_write_register_gen):
4166 (deprecated_read_register_gen, regcache_raw_write): Delete code
4167 predicated on legacy_p.
4168 (register_size): Delete check against register raw size.
4170 * cris-tdep.c (cris_register_type): Replace
4171 cris_register_virtual_type.
4172 (cris_gdbarch_init): Update, set register_type.
4174 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4175 * gdbarch.h, gdbarch.c: Re-generate.
4176 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4177 (arm_gdbarch_init) Do not set frameless function invocation.
4178 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4179 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4180 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4181 (frv_gdbarch_init): Do not set frameless function invocation.
4182 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4183 * sh-tdep.c (sh_gdbarch_init): Ditto.
4184 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4185 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4186 * avr-tdep.c (avr_gdbarch_init): Ditto.
4188 * blockframe.c (legacy_frame_chain_valid): Delete function.
4190 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4191 and pc. Update comments.
4192 (pc_in_dummy_frame): Delete function.
4193 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4195 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4196 call_hi, top and pc, use the id.
4197 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4199 * dummy-frame.c: Include "gdb_string.h".
4200 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4201 (generic_save_dummy_frame_tos): Delete.
4202 (dummy_frame_push): New function, replaces above.
4203 * dummy-frame.h: Update copyright.
4204 (dummy_frame_push): Declare.
4205 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4206 (generic_save_call_dummy_addr): Delete declarations.
4207 * infcall.c: Include "dummy-frame.h".
4208 (call_function_by_hand): Add locals caller_regcache,
4209 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4210 with call to frame_save_as_regcache plus cleanup. Delete calls to
4211 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4212 Move clear_proceed_status to just before the resume, add call to
4213 dummy_frame_push (discard cleanup).
4214 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4215 (dummy-frame.o): Add $(gdb_string_h).
4217 2004-08-01 Andrew Cagney <cagney@gnu.org>
4219 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4220 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4221 * dummy-frame.c (find_dummy_frame): Delete.
4222 (struct dummy_frame_cache, dummy_frame_sniffer)
4223 (dummy_frame_prev_register, dummy_frame_this_id)
4224 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4225 frame unwinder using a dummy_frame_cache.
4227 2004-08-01 Andrew Cagney <cagney@gnu.org>
4229 * frame.h (frame_save_as_regcache): Declare.
4230 * frame.c (frame_save_as_regcache): New function.
4231 (do_frame_read_register): Replace do_frame_unwind_register.
4232 (frame_pop): Use frame_save_as_regcache.
4233 * dummy-frame.c (generic_push_dummy_frame): Use
4234 frame_save_as_regcache.
4236 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4238 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4239 file as included until we record the first line in the linetable.
4241 2004-08-01 Andrew Cagney <cagney@gnu.org>
4243 * frame.h (deprecated_pop_dummy_frame)
4244 (deprecated_read_register_dummy)
4245 (deprecated_generic_find_dummy_frame): Delete.
4246 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4247 (deprecated_read_register_dummy)
4248 (deprecated_find_dummy_frame_regcache)
4249 (discard_innermost_dummy)
4250 (deprecated_pop_dummy_frame): Delete.
4251 (dummy_frame_this_id): Simplify.
4252 (struct dummy_frame): Delete "fp" and "sp".
4253 (find_dummy_frame): Simplify.
4254 (generic_push_dummy_frame): Do not set "fp" or "sp".
4255 (fprint_dummy_frames): Do not print "fp" and "sp"
4257 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4259 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4260 (struct i386_insn): New structure.
4261 (i386_match_insn): New function.
4262 (i386_frame_setup_skip_insns): New variable.
4263 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4264 array i386_frame_setup_insns of instructions that should be
4265 skipped inside the frame setup sequence.
4267 2004-08-01 Andrew Cagney <cagney@gnu.org>
4269 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4270 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4271 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4272 * stack.c (frame_info): Delete references to
4273 DEPRECATED_FRAME_INIT_SAVED_REGS and
4274 deprecated_get_frame_saved_regs.
4275 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4276 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4277 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4278 (frame_unwind_register_signed)
4279 (frame_unwind_register_unsigned)
4280 (frame_unwind_unsigned_register): Use register_size.
4281 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4282 (deprecated_frame_xmalloc_with_cleanup)
4283 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4284 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4286 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4287 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4288 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4289 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4291 * infcall.c (call_function_by_hand): Do not use
4292 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4293 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4294 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4295 DEPRECATED_STACK_ALIGN.
4297 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4299 Committed by Andrew Cagney.
4300 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4302 2004-08-01 Andrew Cagney <cagney@gnu.org>
4304 * mips-tdep.c (mips16_frame_cache)
4305 (mips16_frame_this_id, mips16_frame_prev_register)
4306 (mips16_frame_unwind, mips16_frame_sniffer)
4307 (mips16_frame_base_address, mips16_frame_base)
4308 (mips16_frame_base_sniffer, mips32_frame_cache)
4309 (mips32_frame_this_id, mips32_frame_prev_register)
4310 (mips32_frame_unwind, mips32_frame_sniffer)
4311 (mips32_frame_base_address, mips32_frame_base)
4312 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4313 separate heuristic mips16 and mips32 unwinders.
4314 (mips_stub_frame_cache, mips_stub_frame_this_id)
4315 (mips_stub_frame_prev_register)
4316 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4317 (mips_stub_frame_base_address, mips_stub_frame_base)
4318 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4319 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4320 match true mdebug frames.
4321 (non_heuristic_proc_desc): Add forward declaration.
4323 2004-08-01 Andrew Cagney <cagney@gnu.org>
4325 * config/mips/tm-irix6.h: Delete file.
4326 * config/mips/tm-irix5.h: Delete file.
4327 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4328 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4330 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4331 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4332 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4333 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4334 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4335 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4336 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4337 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4338 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4339 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4340 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4341 (TARGET_SIGNAL_RAW_VALUES): Delete.
4342 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4344 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4345 (TARGET_HW_WATCH_LIMIT): Delete.
4346 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4347 * minimon.h: Delete file.
4349 * trad-frame.c (trad_frame_get_this_base)
4350 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4352 * trad-frame.h (trad_frame_set_this_base)
4353 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4355 2004-07-31 Andrew Cagney <cagney@gnu.org>
4357 * trad-frame.c (trad_frame_get_prev_register): Rename
4358 trad_frame_get_prev_register.
4359 * vax-tdep.c (vax_frame_prev_register): Update.
4360 * trad-frame.h: Update.
4361 * trad-frame.c (trad_frame_get_register): Update.
4362 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4363 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4365 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4366 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4368 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4370 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4372 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4374 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4376 * s390-tdep.c (s390_frame_prev_register)
4377 (s390_stub_frame_prev_register)
4378 (s390_sigtramp_frame_prev_register): Update.
4379 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4380 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4381 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4382 * m88k-tdep.c (m88k_frame_prev_register)
4383 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4384 * m32r-tdep.c (m32r_frame_prev_register): Update.
4385 * hppa-tdep.c (hppa_frame_prev_register_helper)
4386 * frv-tdep.c (frv_frame_prev_register): Update.
4387 * d10v-tdep.c (d10v_frame_prev_register): Update.
4388 * cris-tdep.c (cris_frame_prev_register): Update.
4389 * avr-tdep.c (avr_frame_prev_register): Update.
4390 * arm-tdep.c (arm_prologue_prev_register)
4391 (arm_sigtramp_prev_register): Update.
4393 2004-07-31 Andrew Cagney <cagney@gnu.org>
4395 * frame.h (legacy_saved_regs_unwind)
4396 (legacy_frame_chain_valid, legacy_frame_p)
4397 (enum frame_type): Delete UNKNOWN_FRAME.
4398 * dummy-frame.c (dummy_frame_this_id): Simplify.
4399 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4400 * frame.c (struct frame_info): Delete the field "type".
4401 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4402 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4403 (legacy_saved_regs_unwind, legacy_frame_p)
4404 (frame_type_from_pc): Delete.
4405 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4406 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4408 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4410 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4413 * mips-nat.c: Remove file.
4414 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4415 (mips-nat.o): Remove dependency.
4417 * infptrace.c: Update copyright year.
4418 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4419 explicitly setting the buffer to all zeroes.
4421 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4422 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4424 2004-07-30 Andrew Cagney <cagney@gnu.org>
4426 * GDB 6.2 released from gdb_6_2-branch.
4428 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4430 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4432 * exec.c (exec_file_attach):
4433 * nto-tdep.c (nto_find_and_open_solib):
4434 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4435 * solib.c (solib_open):
4436 * somsolib.c (som_solib_sizeof_symbol_table):
4437 * source.c (is_regular_file, openp, open_source_file):
4438 * symfile.c (symfile_bfd_open):
4439 * wince.c (upload_to_device): Differentiate between the search for
4440 binary and source files.
4442 2004-07-30 Andrew Cagney <cagney@gnu.org>
4444 * complaints.c (_initialize_complaints): Pass NULL to
4445 add_setshow_zinteger_cmd for help_doc.
4446 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4448 2004-07-30 Andrew Cagney <cagney@gnu.org>
4451 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4452 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4453 $(PACKAGE).pot and update-po.
4454 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4455 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4456 (update-po): New rules.
4457 (localedir): Define using autoconf.
4458 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4459 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4460 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4461 * configure.in: Generate CATALOGS and LINGUAS from contents of
4462 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4463 * configure: Re-generate.
4464 * po/gdbtext: New file
4466 2004-07-30 Jerome Guitton <guitton@gnat.com>
4468 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4471 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4473 * dwarf2read.c (read_file_scope): Set producer if attribute
4475 (struct dwarf2_cu): Added new member producer.
4477 2004-07-30 Jerome Guitton <guitton@gnat.com>
4479 * inflow.c (kill_command): release file handles in BFD.
4480 * exec.c (exec_file_attach): Ditto.
4481 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4483 2004-07-29 Andrew Cagney <cagney@gnu.org>
4485 * PROBLEMS (mips-irix): Note that it is broken.
4487 2004-07-29 Andrew Cagney <cagney@gnu.org>
4489 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4490 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4492 * config/xm-nbsd.h: Delete file.
4493 * config/arm/xm-nbsd.h: Delete file.
4494 * config/i386/xm-nbsd.h: Delete file.
4495 * config/ns32k/xm-nbsd.h: Delete file.
4496 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4497 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4498 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4499 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4500 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4502 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4503 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4504 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4505 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4506 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4507 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4509 * config/powerpc/xm-linux.h: Delete empty file.
4510 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4511 * config/powerpc/linux.mh (XM_FILE): Delete.
4512 * config/m68k/xm-linux.h: Delete empty file.
4513 * config/m68k/linux.mh (XM_FILE): Delete.
4514 * config/ia64/xm-linux.h: Delete empty file.
4515 * config/ia64/linux.mh (XM_FILE): Delete.
4516 * config/arm/xm-linux.h: Delete empty file.
4517 * config/arm/linux.mh (XM_FILE): Delete.
4519 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4520 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4521 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4522 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4523 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4524 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4525 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4526 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4528 * config/m68k/xm-m68k.h: Delete file.
4529 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4531 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4532 * config/pa/xm-linux.h: Delete empty file.
4533 * config/pa/linux.mh (XM_FILE): Delete.
4534 * config/i386/xm-i386.h: Delete empty file.
4535 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4537 * config/i386/obsdaout.mh (XM_FILE): Delete.
4538 * config/i386/obsd64.mh (XM_FILE): Delete.
4539 * config/i386/fbsd64.mh (XM_FILE): Delete.
4540 * config/i386/nto.mh (XM_FILE): Delete.
4541 * config/i386/obsd.mh (XM_FILE): Delete.
4542 * config/i386/linux64.mh (XM_FILE): Delete.
4543 * config/i386/linux.mh (XM_FILE): Delete.
4544 * config/i386/i386sol2.mh (XM_FILE): Delete.
4545 * config/i386/i386gnu.mh (XM_FILE): Delete.
4546 * config/i386/fbsd.mh (XM_FILE): Delete.
4547 * config/i386/nbsd64.mh (XM_FILE): Delete.
4549 2004-07-29 Andrew Cagney <cagney@gnu.org>
4551 * config/pa/xm-linux.h: Do not include "floatformat.h".
4552 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4553 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4554 * config/i386/xm-i386.h: Do not include "floatformat.h".
4555 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4556 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4557 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4558 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4559 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4560 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4561 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4562 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4563 * configure, config.in: Regenerate.
4564 * configure.host (gdb_host_float_format, gdb_host_double_format)
4565 (gdb_host_long_double_format): Set according to the host.
4567 2004-07-29 Andrew Cagney <cagney@gnu.org>
4569 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4571 2004-07-28 Andrew Cagney <cagney@gnu.org>
4573 * PROBLEMS: Mention threads/1650.
4574 * NEWS: Mention the NPTL fix.
4576 2004-07-28 Andrew Cagney <cagney@gnu.org>
4578 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4579 (add_setshow_cmd_full): Make static.
4580 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4581 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4582 * cli/cli-decode.c (add_setshow_filename_cmd)
4583 (add_setshow_string_cmd): New functions.
4584 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4585 * mips-tdep.c (_initialize_mips_tdep): Update.
4586 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4587 * cli/cli-logging.c (_initialize_cli_logging): Update.
4588 * complaints.c (_initialize_complaints): Update.
4589 * remote.c (_initialize_remote): Update.
4591 2004-07-28 Andrew Cagney <cagney@gnu.org>
4593 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4594 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4595 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4596 print parameters. Make string parameters constant.
4597 * command.h: Update. Update copyright.
4598 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4599 * observer.c (_initialize_observer): Ditto.
4600 * frame.c (_initialize_frame): Ditto.
4601 * complaints.c (_initialize_complaints): Ditto.
4602 * maint.c (_initialize_maint_cmds): Ditto.
4603 * target.c (initialize_targets): Ditto.
4604 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4605 * infcall.c (_initialize_infcall): Ditto.
4606 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4607 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4608 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4609 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4610 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4612 2004-07-28 Andrew Cagney <cagney@gnu.org>
4614 * gdbtypes.c (lookup_primitive_typename): Delete function.
4615 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4616 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4617 * gdbtypes.c (lookup_typename): Ditto.
4618 * f-exp.y (yylex): Ditto.
4619 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4621 * scm-lang.c (c_builtin_types): Delete extern declaration.
4622 (scm_language_defn): Replace
4623 string_char_type and primitive_type_vector with
4624 la_language_arch_info.
4625 * jv-lang.c (java_language_defn): Replace
4626 string_char_type and primitive_type_vector with
4627 la_language_arch_info.
4628 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4629 c_builtin_types in comment.
4630 * c-lang.h (struct language_arch_info): Declare opaque.
4631 (c_language_arch_info): Declare.
4632 (c_builtin_types): Delete declaration.
4633 * c-lang.c (c_language_arch_info): Set string_char_type to
4634 builtin_char, not builtin_true_char. Make global.
4635 (c_builtin_types): Delete array.
4636 (asm_language_defn, minimal_language_defn): Replace
4637 string_char_type and primitive_type_vector with
4638 la_language_arch_info.
4640 2004-07-28 Andrew Cagney <cagney@gnu.org>
4642 * gdbtypes.h (struct builtin_type): Rename true_char to
4644 * gdbtypes.c (gdbtypes_post_init): Update.
4645 * c-lang.c (arch_info): New function.
4646 (enum c_primitive_types): New enum.
4647 (c_language_defn): Instead of string_char_type and
4648 primitive_type_vector set la_language_arch_info.
4650 2004-07-28 Andrew Cagney <cagney@gnu.org>
4652 * language.h (struct language_arch_info): Fix typo
4653 s/primative/primitive/.
4654 * gdbtypes.c (lookup_primitive_typename): Ditto.
4655 * language.c (language_lookup_primitive_type_by_name)
4656 (unknown_language_arch_info): Ditto.
4658 2004-07-27 Andrew Cagney <cagney@gnu.org>
4660 * defs.h (enum language): Add nr_languages.
4661 * language.h (struct language_arch_info): Define.
4662 (struct language_defn): Add la_language_arch_info.
4663 (language_lookup_primative_type_by_name): Declare.
4664 (language_string_char_type): Declare.
4665 * language.c (_initialize_language, language_gdbarch_post_init)
4666 (struct language_gdbarch, language_gdbarch_data): Implement
4667 per-architecture language information.
4668 (unknown_language_arch_info, language_string_char_type)
4669 (language_lookup_primative_type_by_name): New functions.
4670 (unknown_language_defn, auto_language_defn)
4671 (local_language_defn): Set la_language_arch_info to
4672 unknown_language_arch_info.
4673 (unknown_builtin_types): Delete.
4674 * gdbtypes.c (lookup_primitive_typename): Use
4675 language_lookup_primative_type_by_name.
4676 (create_string_type): Use language_string_char_type.
4677 * values.c (value_from_string): Use language_string_char_type.
4678 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4679 * p-lang.c (pascal_language_defn): Ditto.
4680 * m2-lang.c (m2_language_defn): Ditto.
4681 * jv-lang.c (java_language_defn): Ditto.
4682 * objc-lang.c (objc_language_defn): Ditto.
4683 * f-lang.c (f_language_defn): Ditto.
4684 * c-lang.c (c_language_defn, cplus_language_defn)
4685 (asm_language_defn, minimal_language_defn): Ditto.
4687 2004-07-27 Andrew Cagney <cagney@gnu.org>
4689 * gdbtypes.h (struct builtin_type): Declare.
4690 (builtin_type): Declare.
4691 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4692 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4693 (gdbtypes_post_init): New function.
4694 (builtin_type): New function.
4696 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4698 * remote-m32r-sdi.c: Fix breakpoint bug.
4699 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4700 recv_char_data, recv_long_data): New functions to replace communication
4703 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4705 Document PR threads/1650.
4706 * PROBLEMS (Threads): Document problem with many threads
4708 2004-07-26 Andrew Cagney <cagney@gnu.org>
4710 * gdb-mi.el: Move from here ...
4711 * mi/gdb-mi.el: ... to here.
4713 2004-07-26 Andrew Cagney <cagney@gnu.org>
4715 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4716 * main.c (captured_main): When in batch mode always detach.
4718 2004-07-26 Andrew Cagney <cagney@gnu.org>
4720 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4721 and h8300 as broken.
4722 * NEWS: END-OF-LIFE frame compatibility module.
4723 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4726 2004-07-26 Andrew Cagney <cagney@gnu.org>
4728 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4729 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4730 * wince.c (_initialize_wince): Update.
4731 * win32-nat.c (_initialize_win32_nat): Update.
4732 * varobj.c (_initialize_varobj): Update.
4733 * valops.c (_initialize_valops): Update.
4734 * utils.c (initialize_utils, initialize_utils): Update.
4735 * tui/tui-win.c (_initialize_tui_win): Update.
4736 * top.c (init_main): Update.
4737 * symfile.c (_initialize_symfile): Update.
4738 * source.c (_initialize_source): Update.
4739 * somsolib.c (_initialize_som_solib): Update.
4740 * solib.c (_initialize_solib): Update.
4741 * solib-frv.c (_initialize_frv_solib): Update.
4742 * serial.c (_initialize_serial): Update.
4743 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4744 * remote.c (_initialize_remote, _initialize_remote): Update.
4745 * remote-vx.c (_initialize_vx): Update.
4746 * remote-utils.c (_initialize_sr_support): Update.
4747 * remote-sds.c (_initialize_remote_sds): Update.
4748 * remote-mips.c (_initialize_remote_mips): Update.
4749 * remote-e7000.c (_initialize_remote_e7000): Update.
4750 * proc-api.c (_initialize_proc_api): Update.
4751 * printcmd.c: Update.
4752 * parse.c (_initialize_parse): Update.
4753 * pa64solib.c (_initialize_pa64_solib): Update.
4754 * p-valprint.c (_initialize_pascal_valprint): Update.
4755 * monitor.c (_initialize_remote_monitors): Update.
4756 * mips-tdep.c (_initialize_mips_tdep): Update.
4757 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4758 * maint.c (_initialize_maint_cmds): Update.
4759 * lin-lwp.c (_initialize_lin_lwp): Update.
4760 * language.c (_initialize_language): Update.
4761 * kod.c (_initialize_kod): Update.
4762 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4763 * i386-tdep.c (_initialize_i386_tdep): Update.
4764 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4765 * gdbarch.sh: Update.
4766 * gdbarch.c: Re-generate.
4767 * gdb-events.sh: Update.
4768 * gdb-events.c: Re-generate.
4769 * frame.c (_initialize_frame): Update.
4771 * demangle.c (_initialize_demangler): Update.
4772 * dcache.c (_initialize_dcache): Update.
4773 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4774 * cp-valprint.c (_initialize_cp_valprint): Update.
4775 * corefile.c (_initialize_core): Update.
4776 * command.h: Update.
4777 * cli/cli-decode.h: Update.
4778 * cli/cli-cmds.c (init_cli_cmds): Update.
4779 * charset.c (_initialize_charset): Update.
4780 * breakpoint.c (_initialize_breakpoint): Update.
4781 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4782 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4783 * aix-thread.c (_initialize_aix_thread): Update.
4785 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4787 Partial fix for PR backtrace/1718.
4788 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4789 that GCC migrates into the prolugue. Don't handle any
4790 instructions that clobber %ebx.
4792 2004-07-23 Andrew Cagney <cagney@gnu.org>
4794 Use regcache_raw_collect instead of regcache_collect.
4795 * regcache.h (regcache_collect): Delete declaration.
4796 * regcache.c (regcache_colect): Delete function.
4797 * win32-nat.c (do_child_store_inferior_registers): Update.
4798 * sol-thread.c (sol_thread_store_registers): Update.
4799 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4800 * rs6000-nat.c (store_register): Update.
4801 * remote.c (store_register_using_P, remote_store_registers): Update.
4802 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4803 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4804 (fill_vrregset, store_spe_registers, fill_gregset)
4805 (fill_gregset): Update.
4806 * nto-procfs.c (procfs_store_registers): Update.
4807 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4808 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4809 * m68klinux-nat.c (store_register, fill_gregset): Update.
4810 * m68k-tdep.c (fill_gregset): Update.
4811 * infptrace.c (store_register): Update.
4812 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4813 * i386-linux-nat.c (store_register, fill_gregset): Update.
4814 * hppa-linux-nat.c (fill_gregset): Update.
4815 * go32-nat.c (store_register): Update.
4816 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4817 (store_fp_regs): Update.
4818 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4819 (store_nwfpe_extended, store_fpregister, store_fpregs)
4820 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4821 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4822 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4823 (store_regs_user_thread, store_regs_kernel_thread): Update.
4825 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4827 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4828 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4830 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4831 member of `struct comp_unit'.
4833 2004-07-23 Andrew Cagney <cagney@gnu.org>
4835 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4836 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4838 2004-07-23 Martin Hunt <hunt@redhat.com>
4839 Kevin Buettner <kevinb@redhat.com>
4841 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4842 alignment was being added to the offset instead of multiplied.
4844 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4846 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4847 changed signal trampoline in OpenBSD 3.5-current.
4849 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4850 <machine/pcb.h> and "bsd-kvm.h".
4851 (sparc64nbsd_supply_pcb): New function.
4852 (_initialize_sparc64nbsd_nat): Renamed from
4853 _initialize_sparcnbsd_nat. Enable libkvm interface.
4854 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4855 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4856 (LOADLIBES): New variable.
4858 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4860 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4862 2004-07-21 Andrew Cagney <cagney@gnu.org>
4864 Use regcache_raw_supply instead of supply_register.
4865 * regcache.h (supply_register): Delete declaration.
4866 * regcache.c (supply_register): Delete function.
4867 * wince.c (do_child_fetch_inferior_registers): Update.
4868 * win32-nat.c (do_child_fetch_inferior_registers)
4869 (fetch_elf_core_registers): Update.
4870 * v850ice.c (v850ice_fetch_registers): Update.
4871 * thread-db.c (thread_db_store_registers): Update.
4872 * sol-thread.c (sol_thread_store_registers): Update.
4873 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4874 * rs6000-nat.c (fetch_register): Update.
4875 * rom68k-rom.c (rom68k_supply_one_register): Update.
4876 * remote.c (remote_wait, remote_async_wait): Update.
4877 * remote-st.c (get_hex_regs): Update.
4878 * remote-sim.c (gdbsim_fetch_register): Update.
4879 * remote-sds.c (sds_fetch_registers): Update.
4880 * remote-rdp.c (remote_rdp_fetch_register): Update.
4881 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4882 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4883 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4884 * remote-hms.c (init_hms_cmds): Update.
4885 * remote-est.c (init_est_cmds): Update.
4886 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4887 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4888 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4889 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4890 (fetch_register, supply_vrregset, supply_vrregset)
4891 (fetch_spe_registers): Update.
4892 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4893 * monitor.c (monitor_supply_register): Update.
4894 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4895 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4896 (mipsnbsd_supply_fpreg): Update.
4897 * mips-nat.c (fetch_inferior_registers)
4898 (fetch_core_registers): Update.
4899 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4900 (supply_fpregset, mips64_supply_gregset)
4901 (mips64_supply_fpregset): Update.
4902 * m68klinux-nat.c (fetch_register, supply_gregset)
4903 (supply_fpregset): Update.
4904 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4905 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4906 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4907 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4908 * infptrace.c (fetch_register): Update.
4909 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4910 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4911 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4912 (gnu_fetch_registers, gnu_store_registers): Update.
4913 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4914 * i386-linux-nat.c (fetch_register, supply_gregset)
4915 (dummy_sse_values): Update.
4916 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4917 * hppah-nat.c (fetch_register): Update.
4918 * hppa-linux-nat.c (fetch_register, supply_gregset)
4919 (supply_fpregset): Update.
4920 * go32-nat.c (fetch_register): Update.
4921 * dve3900-rom.c (fetch_bitmapped_register)
4922 (_initialize_r3900_rom): Update.
4923 * cris-tdep.c (supply_gregset): Update.
4924 * abug-rom.c (init_abug_cmds): Update.
4925 * core-aout.c (fetch_core_registers): Update.
4926 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4927 (fetch_register, fetch_fp_register): Update.
4928 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4929 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4930 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4931 * alphanbsd-tdep.c (fetch_core_registers): Update.
4932 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4933 * alpha-nat.c (fetch_osf_core_registers)
4934 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4935 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4936 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4938 2004-07-21 Andrew Cagney <cagney@gnu.org>
4940 * PROBLEMS: Mention breakpoints/1702.
4941 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4942 that is known to work.
4944 2004-07-21 Andrew Cagney <cagney@gnu.org>
4946 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4947 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4948 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4949 (handle_inferior_event): Wrap call to deprecated
4950 IGNORE_HELPER_CALL in #ifdef.
4951 * config/mips/tm-nbsd.h: Update.
4953 2004-07-20 Jim Blandy <jimb@redhat.com>
4955 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4956 bfd_mach_ppc has no segment registers.
4958 Include PowerPC SPR numbers for special-purpose registers.
4959 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4960 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4961 new member in initializer.
4962 (S, S4, SN4, S64): New macros for defining special-purpose
4964 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4965 registers_403, registers_403GC, registers_505, registers_860,
4966 registers_601, registers_602, registers_603, registers_604,
4967 registers_750, registers_e500): Use them.
4969 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4970 replace references with expression used to initialize variable.
4972 2004-07-20 Andrew Cagney <cagney@gnu.org>
4974 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4976 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4977 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4978 (s390_sigtramp_frame_sniffer): Update.
4979 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4980 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4981 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4982 (mips32_fetch_instruction): Update.
4983 * mcore-tdep.c (get_insn): Update.
4984 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4985 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4986 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4987 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4988 (i386_linux_rt_sigtramp_start): Update.
4989 * i386-linux-nat.c (child_resume): Update.
4990 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4991 * hppa-linux-tdep.c (insns_match_pattern): Update.
4992 * gdbcore.h: Update.
4993 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4994 * frame.c (safe_frame_unwind_memory): Update.
4995 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4996 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4997 * alpha-tdep.c (alpha_read_insn): Update.
4999 2004-07-20 Andrew Cagney <cagney@gnu.org>
5001 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5002 containing both bytes and mask. Add "frame_type".
5003 * tramp-frame.c (tramp_frame_start): Update.
5004 (tramp_frame_prepend_unwinder): Update.
5005 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5006 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5007 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5008 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5010 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5012 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5013 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5014 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5015 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5017 2004-07-17 Andrew Cagney <cagney@gnu.org>
5019 * NEWS, PROBLEMS: Update for 6.2.
5021 * README: Update to 6.2.
5023 * utils.c (xvasprintf): Call xstrvprintf.
5025 * parse.c: Update copyright.
5026 (null_post_parser): Eliminate ARGSUSED.
5028 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5029 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5030 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5032 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5033 * ppc-linux-nat.c: Use "Linux kernel".
5034 * hppa-linux-tdep.c: Use GNU/Linux.
5035 * hppa-linux-nat.c: Use GNU/Linux.
5036 * dwarfread.c: Add [sic] to use of Linux.
5038 * hppa-linux-nat.c: Do not include <string.h>.
5039 (supply_fpregset): Remove "register" attribute.
5041 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5043 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5045 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5046 * configure, config.in: Regenerated.
5048 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5050 (vaxbsd_supply_pcb): New function.
5051 (_initialize_vaxbsd_nat): New prototype and function.
5052 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5054 (LOADLIBES): New variable.
5055 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5056 (LOADLIBES): New variable.
5057 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5058 (LOADLIBES): New variable.
5059 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5061 2004-07-16 Andrew Cagney <cagney@gnu.org>
5063 * defs.h (event_loop_p): Replace variable declaration with macro,
5065 * main.c (captured_main): Delete options "-async" and "-noasync".
5066 (event_loop_p): Delete variable.
5067 * NEWS: Mention that "-async" and "-noasync" were removed.
5069 2004-07-16 Andrew Cagney <cagney@gnu.org>
5071 * remote-m32r-sdi.c: Re-indent.
5073 2004-07-16 Jim Blandy <jimb@redhat.com>
5075 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5076 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5077 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5078 missing MPC823 SPRs.
5079 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5080 incorrect. (This was corrected in GDB's register name tables on
5083 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5084 should be "esasrr" ("ESA Save and Restore Register").
5086 2004-07-16 Andrew Cagney <cagney@gnu.org>
5088 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5089 calls, no longer applicable. Update comments and rename parameter
5090 "step_frame" to "return_frame".
5092 2004-07-16 Andrew Cagney <cagney@gnu.org>
5094 * frame.c (fprint_field): New function.
5095 (fprint_frame_id): Use fprint_field.
5097 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5099 * ada-lang.c (ada_language_defn): Remove commented out code.
5101 2004-07-15 Jim Blandy <jimb@redhat.com>
5103 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5104 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5106 2004-07-14 Jim Blandy <jimb@redhat.com>
5108 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5110 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5112 * ppc-tdep.h (ppc_num_srs): New enum constant.
5114 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5115 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5116 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5117 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5118 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5119 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5120 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5121 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5122 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5123 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5124 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5125 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5126 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5127 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5128 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5129 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5130 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5131 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5132 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5133 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5134 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5135 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5136 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5137 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5138 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5139 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5140 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5141 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5142 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5143 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5144 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5145 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5146 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5147 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5148 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5149 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5150 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5151 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5152 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5153 special-purpose register numbers.
5155 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5156 manual mentions 'md_twb', but many mention 'm_twb', and at that
5157 point in the register list.)
5159 2004-07-14 Andrew Cagney <cagney@gnu.org>
5161 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5162 instead of "internal-error".
5164 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5166 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5167 that was inserted inside a comment.
5169 2004-07-10 Randolph Chung <tausq@debian.org>
5171 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5173 (hppa_hpux_push_dummy_code): New function.
5174 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5175 Set find_global_pointer method.
5177 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5179 * NEWS: Mention BSD libkvm interface.
5181 2004-07-10 Michael Snyder <msnyder@redhat.com>
5183 * symfile.c (generic_load): Comment typo.
5184 * stack.c (get_selected_block): Ditto.
5185 * regcache.c (regcache_cooked_read): Ditto.
5186 * monitor.c (monitor_debug): Ditto.
5187 * mips-tdep.c (mips_read_pc): Ditto.
5188 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5189 * gdb_mbuild.sh: Ditto.
5190 * gdbarch.sh: Ditto.
5193 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5195 * ada-tasks.c: Remove file.
5197 Remove ARI problems:
5199 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5202 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5204 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5205 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5206 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5207 (UMIN_OF_SIZE): Remove.
5208 (max_of_type): New function to replace orphan macro in gdbtypes.h
5209 (min_of_type): Ditto.
5210 (discrete_type_high_bound): Use max_of_type.
5211 (discrete_type_low_bound): Use min_of_type.
5212 (possible_user_operator_p): Move operator to beginning of line.
5213 (ada_is_variant_part): Ditto.
5214 (ensure_lval): Rewrite to avoid deprecated operations.
5215 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5216 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5217 (ada_enum_name): Remove assignments in 'if' statements.
5218 (build_ada_types): Add gdbarch parameter.
5219 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5220 with gdbarch_data_register_post_init.
5221 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5224 * ada-valprint.c (inspect_it): Remove declaration.
5225 (repeat_count_threshold): Remove declaration.
5226 (ada_print_floating): Remove assignments in 'if' statements.
5227 (print_str): Move operator to beginning of line.
5229 2004-07-08 Jim Blandy <jimb@redhat.com>
5231 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5233 2004-07-08 Bob Rossi <bob@brasko.net>
5235 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5237 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5239 * language.h (struct_language_defn): Add new function pointer:
5240 la_class_name_from_physname. Also add new prototype for
5241 language_class_name_from_physname.
5242 * language.c (language_class_name_from_physname): New function.
5243 (unk_lang_class_name): Ditto.
5244 (unknown_language_defn, auto_language_defn): Change
5245 to add unk_lang_class_name function pointer for
5246 la_class_name_from_physname.
5247 (local_language_defn): Ditto.
5248 * dwarf2read.c (guess_structure_name): Change to call
5249 language_class_name_from_physname.
5250 (determine_class_name): Ditto.
5251 * cp-support.c (class_name_from_physname): Renamed.
5252 (cp_class_name_from_physname): New name of function.
5253 * cp-support.h: Ditto.
5254 * c-lang.c (c_language_defn): Change to add NULL
5255 for class_name_from_physname function pointer.
5256 (cplus_language_defn): Change to add cp_class_name_from_physname.
5257 * jv-lang.c (java_class_name_physname): New function.
5258 (java_find_last_component): New static routine.
5259 (java_language_defn): Add java_class_name_from_physname pointer.
5260 * ada-lang.c (ada_language_defn): Change to add NULL
5261 for class_name_from_physname function pointer.
5262 * f-lang.c (f_language_defn): Ditto.
5263 * m2-lang.c (m2_language_defn): Ditto.
5264 * objc-lang.c (objc_language_defn): Ditto.
5265 * p-lang.c (pascal_language_defn): Ditto.
5266 * scm-lang.c (scm_language_defn): Ditto.
5268 2004-07-06 Andrew Cagney <cagney@gnu.org>
5270 Patch from Bart Robinson.
5271 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5272 (O_LARGEFILE): Define to 0, if not defined.
5274 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5276 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5277 <machine/pcb.h> and "bsd-kvm.h".
5278 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5279 (m68kbsd_supply_pcb): New function.
5280 (_initialize_m68kbsd_nat): New prototype and function.
5281 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5282 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5283 (LOADLIBES): New variable.
5284 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5285 (LOADLIBES): New variable.
5287 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5289 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5291 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5293 (bsd_kvm_cmdlist): New variable.
5294 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5295 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5296 command and "kvm proc" command.
5297 * Makefile.in (bsd-kvm.o): Update dependencies.
5299 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5301 * osabi.c: Update copyright year.
5302 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5303 notes if EI_OSABI is set to ELFOSABI_HPUX.
5305 2004-07-01 Michael Snyder <msnyder@redhat.com>
5307 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5308 that seems to have gotten whacked out of line.
5310 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5312 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5315 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5317 * ada-lang.c (decode_packed_array): Minor change to comment.
5318 (ada_value_slice_ptr): New function.
5319 (ada_value_slice): New function.
5320 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5321 test. Don't know why it is there.
5322 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5323 to avoid dereferencing huge arrays from which one is slicing.
5324 (empty_array): Correct to return an array rather than
5326 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5327 on empty arrays (let'em use 'FIRST instead).
5329 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5331 Address complaints from gdb_ari.sh:
5333 * ada-exp.y: Include gdb_string.h rather than string.h.
5334 (convert_char_literal): Reformat declaration.
5335 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5336 * ada-lex.l: Change use of free to xfree (the macro would do so
5337 anyway, but this is harmless).
5338 Include gdb_string.h rather than string.h.
5339 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5341 * ada-lang.c (parse): Remove K&Rism in parameter list.
5342 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5344 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5346 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5349 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5351 * alphabsd-nat.c: Update copyright year.
5352 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5354 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5356 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5357 (i386_cygwin_in_solib_call_trampoline): New function.
5358 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5359 and skip_trampoline_code gdbarch methods.
5361 2004-06-29 Jim Blandy <jimb@redhat.com>
5363 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5364 name actually used in the dependency lists.
5366 2004-06-29 Randolph Chung <tausq@debian.org>
5368 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5370 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5372 * win32-nat.c (child_pid_to_exec_file): New function.
5373 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5376 2004-06-28 Andrew Cagney <cagney@gnu.org>
5378 * defs.h (xstrvprintf): Declare.
5379 * utils.c (xstrvprintf): New function.
5380 (internal_vproblem, xstrprintf, xasprintf)
5381 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5382 * serial.c (serial_printf): Ditto.
5383 * complaints.c (vcomplaint): Ditto.
5385 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5387 * infcmd.c (attach_command): Move call to target_terminal_inferior
5388 behind loading symbol table.
5390 2004-06-28 Andrew Cagney <cagney@gnu.org>
5392 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5393 change - add back extern deprecated_ui_loop_hook declaration.
5395 2004-06-28 Andrew Cagney <cagney@gnu.org>
5397 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5399 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5400 (c_value_of_variable): Ditto.
5401 * utils.c (internal_vproblem): Ditto.
5402 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5403 * remote.c (add_packet_config_cmd): Ditto.
5404 * remote-rdp.c (rdp_set_command_line): Ditto.
5405 * regcache.c (regcache_dump): Ditto.
5406 * frv-tdep.c (new_variant, new_variant): Ditto.
5407 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5408 (fbsd_find_memory_regions): Ditto.
5409 * breakpoint.c (create_thread_event_breakpoint)
5410 (create_breakpoints): Ditto.
5411 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5412 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5414 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5416 * ada-lang.c: Re-indent file, with some massaging to help indent
5417 a bit when the result is otherwise really too ugly.
5419 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5421 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5422 code_addr_p and special_addr_p to 'unsigned int'.
5424 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5426 * i386v4-nat.c: Update copyright year and tweak comment.
5427 (regmap): Remove trailing comma.
5428 (supply_gregset): Rename local variable i to regnum. Call
5429 regcache_raw_supply instead of supply_register.
5430 (fill_gregset): Rename argument regno to regnum. Call
5431 regcache_raw_collect instead of regcache_collect.
5433 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5435 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5437 (frame_id_build, frame_id_build_special): Update comments.
5438 (frame_id_build_wild): New prototype.
5439 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5440 struct frame_id fields.
5441 (frame_id_build_wild): New function.
5442 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5444 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5446 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5449 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5451 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5453 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5455 * ada-lang.c: Re-indent file.
5457 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5459 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5460 (no_symtab_msg): Likewise.
5462 2004-06-27 Andreas Schwab <schwab@suse.de>
5464 * source.c: Fix whitespace.
5466 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5468 * configure.in: Include <sys/param.h> for td_pcb test.
5469 * configure: Regenerated.
5471 * i386nbsd-nat.c: New file.
5472 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5473 i386obsd-nat.c and i386obsd-tdep.c.
5474 (i386nbsd-nat.o): New dependency.
5475 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5477 (LOADLIBES): New variable.
5478 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5480 (LOADLIBES): New variable.
5482 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5483 (LOADLIBES): New variable.
5485 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5486 fetching from BSD_KVM_PADDR. Correctly lookup address for
5489 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5491 (amd64fbsd_supply_pcb): New funcion.
5492 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5494 2004-06-27 <david@streamline-computing.com>
5496 Partial fix for PR cli/1056.
5497 * valarith.c: Check for zero in division and remainder
5500 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5502 * i387-tdep.c: Remove excessive whitespace.
5504 2004-06-26 Andrew Cagney <cagney@gnu.org>
5506 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5507 * gdb-events.h, gdb-events.c: Re-generate.
5508 * tui/tui-hooks.c (tui_install_hooks): Update.
5509 (tui_remove_hooks): Update.
5510 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5512 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5514 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5515 (gregset_t, fpregset_t): Remove typedefs.
5516 (REG_OFFSET): Rename argument.
5517 (amd64bsd_r_reg_offset): Rename from reg_offset.
5518 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5520 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5522 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5524 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5526 * vax-tdep.c: Tweak comment.
5528 Add OpenBSD/hppa support.
5529 * NEWS (New native configurations): Mention OpenBSD/hppa.
5530 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5531 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5533 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5534 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5535 * configure.host: Add hppa*-*-openbsd*.
5536 * configure.tgt: Add hppa*-*-openbsd*.
5538 2004-06-25 Andrew Cagney <cagney@gnu.org>
5540 * defs.h (deprecated_ui_loop_hook): Deprecated.
5541 * wince.c (child_wait): Update.
5542 * win32-nat.c (child_wait): Update.
5543 * v850ice.c (v850ice_wait): Update.
5544 * top.c (deprecated_ui_loop_hook): Update.
5546 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5547 (do_unix_readchar): Update.
5548 * ser-tcp.c (net_open): Update.
5549 * remote-sim.c (gdb_os_poll_quit): Update.
5550 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5552 2004-06-24 Andrew Cagney <cagney@gnu.org>
5554 * defs.h (deprecated_pre_add_symbol_hook)
5555 (deprecated_post_add_symbol_hook): Deprecated.
5556 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5557 (symbol_file_add_with_addrs_or_offsets): Update references.
5559 2004-06-24 Andrew Cagney <cagney@gnu.org>
5561 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5562 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5563 * wince.c (ui_loop_hook): Delete extern declaration.
5564 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5565 * v850ice.c (ui_loop_hook): Delete extern declaration..
5566 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5567 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5568 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5569 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5570 ui_loop_hook declaration.
5572 2004-06-24 Andrew Cagney <cagney@gnu.org>
5574 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5575 entry_func_highpc fields.
5576 * objfiles.c (init_entry_point_info): Do not clear
5577 entry_func_lowpc and entry_func_highpc.
5578 (objfile_relocate): Do not relocate entry_func_lowpc and
5580 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5582 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5584 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5585 entry_func_lowpc and entry_func_highpc with call to
5588 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5590 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5591 quad-precision floating point arguments in registers.
5593 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5595 From Michael Mueller <m.mueller99@kay-mueller.de>:
5596 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5599 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5601 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5603 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5604 untriggered watchpoints to a separate if clause. Update function
5605 comment regarding STOPPED_BY_WATCHPOINT argument.
5607 2004-06-22 Jim Blandy <jimb@redhat.com>
5609 * gdbarch.sh: Doc fix.
5611 2004-06-21 Martin Hunt <hunt@redhat.com>
5612 Kevin Buettner <kevinb@redhat.com>
5614 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5615 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5616 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5617 to set_gdbarch_sp_regnum(). Use cooked register number.
5618 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5620 2004-06-21 Andrew Cagney <cagney@gnu.org>
5622 * gdbarch.sh: When the macro field is empty, do not generate a
5623 macro definition. When the macro field is "=", generate the macro
5624 name from the upper-case function name.
5625 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5626 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5627 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5628 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5629 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5630 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5631 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5632 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5633 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5634 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5635 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5636 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5637 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5638 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5639 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5640 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5641 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5642 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5643 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5644 (DEPRECATED_USE_STRUCT_CONVENTION)
5645 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5646 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5647 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5648 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5649 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5650 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5651 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5652 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5653 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5654 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5655 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5656 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5657 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5658 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5659 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5660 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5661 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5662 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5664 2004-06-21 Andrew Cagney <cagney@gnu.org>
5666 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5667 macro name, and the function rather than macro value. Only wrap
5668 macro print statements in #ifdef. Move format logic to where it
5670 * gdbarch.c: Re-generate.
5672 * gdbarch.sh (read): Delete "print_p" and "description", add
5673 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5674 Delete references to print_p.
5675 (TARGET_ARCHITECTURE): Delete print predicate.
5676 * gdbarch.c: Re-generate.
5678 * gdbarch.sh: Check that multi-arch methods do not provide a
5680 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5681 (print_registers_info, print_float_info, print_vector_info)
5682 (adjust_breakpoint_address, remote_translate_xfer_address)
5683 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5684 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5685 name from the multi-arch definition.
5687 2004-06-20 Andrew Cagney <cagney@gnu.org>
5689 * gdbarch.sh: Sort by the function, instead of macro name.
5690 * gdbarch.c: Re-generate.
5692 2004-06-20 Andrew Cagney <cagney@gnu.org>
5694 * gdbarch.sh: Use the function, instead of macro name in
5695 errors and the log file.
5696 (return_value): Remove stray ":" in spec.
5698 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5699 * gdbarch.h, gdbarch.c: Re-generate.
5700 * Makefile.in (arch-utils.o): Update dependencies.
5701 * values.c (using_struct_return): Move code calling
5702 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5703 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5704 to legacy_return_value, simplify.
5705 * infcmd.c (print_return_value): Move code calling
5706 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5707 to legacy_return_value, simplify.
5708 * infcall.c (call_function_by_hand): Move code calling
5709 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5710 * arch-utils.c: Update copyright. Include "gdbcore.h".
5711 (legacy_return_value): New function.
5712 * arch-utils.h: Update copyright.
5713 (legacy_return_value): Declare.
5715 2004-06-20 Andrew Cagney <cagney@gnu.org>
5717 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5718 * gdbarch.h, gdbarch.c: Re-generate.
5719 * values.c (using_struct_return): Update call.
5720 * mcore-tdep.c: Update comment.
5721 * infcall.c (call_function_by_hand): Update comment.
5722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5723 * arch-utils.h (always_use_struct_convention): Update.
5724 * v850-tdep.c (v850_gdbarch_init): Update.
5725 * sh64-tdep.c (sh64_gdbarch_init): Update.
5726 * sh-tdep.c (sh_gdbarch_init): Update.
5727 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5728 * mips-tdep.c (mips_gdbarch_init): Update.
5729 * mcore-tdep.c (mcore_gdbarch_init): Update.
5730 * m32r-tdep.c (m32r_gdbarch_init): Update.
5731 * ia64-tdep.c (ia64_gdbarch_init): Update.
5732 * h8300-tdep.c (h8300_gdbarch_init): Update.
5733 * frv-tdep.c (frv_gdbarch_init): Update.
5734 * cris-tdep.c (cris_gdbarch_init): Update.
5735 * arm-tdep.c (arm_gdbarch_init): Update.
5736 * alpha-tdep.c (alpha_gdbarch_init): Update.
5738 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5740 * PROBLEMS: Add more specific information, and a work-around,
5743 2004-06-18 Andrew Cagney <cagney@gnu.org>
5745 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5746 * gdbarch.h, gdbarch.c: Re-generate.
5747 * ada-lang.c (ada_finish_decode_line_1): Update.
5748 * infrun.c (handle_inferior_event): Update.
5749 * infcall.c (find_function_addr): Update.
5750 * linespec.c (minsym_found): Update.
5751 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5753 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5754 * cli/cli-cmds.c (disassemble_command): Update.
5755 * vax-tdep.c (vax_gdbarch_init): Update.
5757 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5759 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5761 2004-06-17 Andrew Cagney <cagney@gnu.org>
5763 GDB 6.1.1 released from the GDB 6.1 branch.
5764 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5767 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5770 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5771 operation as a uleb128. Found by Michael Coulter.
5773 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5775 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5777 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5778 to ada-lang.h; this is needed to be able to implement the kill command
5781 (task_entry): Ditto.
5783 (ada_build_task_list): Ditto.
5785 * ada-lang.c: Conditionalize routines and data structures related
5786 to breakpoints, exceptions, completion, and symbol caching on
5787 GNAT_GDB, since these are not yet used in the submitted public sources.
5788 (ada_main_name): Editorial: Move definition out of exception-related
5791 2004-06-15 Andrew Cagney <cagney@gnu.org>
5793 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5794 deprecated_pc_in_call_dummy.
5796 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5798 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5799 bfd_get_section_size_before_reloc or _raw_size.
5800 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5801 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5802 (dwarf2_read_section): Likewise.
5803 * elfread.c (elf_locate_sections): Likewise.
5804 * gcore.c (derive_heap_segment): Likewise.
5805 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5806 * remote-e7000.c (e7000_load): Likewise.
5807 * remote-m32r-sdi.c (m32r_load): Likewise.
5808 * remote-mips.c (mips_load_srec): Likewise.
5809 (pmon_load_fast): Likewise.
5810 * remote.c (compare_sections_command): Likewise.
5811 * symfile.c (add_section_size_callback): Likewise.
5812 (load_section_callback): Likewise.
5813 (pc_in_unmapped_range): Likewise.
5814 (pc_in_mapped_range): Likewise.
5815 (sections_overlap): Likewise.
5816 (list_overlays_command): Likewise.
5817 (simple_overlay_update_1): Likewise.
5818 (simple_overlay_update): Likewise.
5819 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5820 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5822 2004-06-14 Randolph Chung <tausq@debian.org>
5824 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5825 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5827 (hppa_hpux_inferior_created): New function.
5828 (hppa_hpux_init_abi): Register observer.
5829 * symfile.c (hp_cxx_exception_support_initialized)
5830 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5831 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5833 2004-06-14 Randolph Chung <tausq@debian.org>
5835 * MAINTAINERS (Write After Approval): Alphabetize my entry
5838 2004-06-14 Andrew Cagney <cagney@gnu.org>
5840 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5841 testsuite maintainer.
5843 2004-06-13 Andrew Cagney <cagney@gnu.org>
5845 * infcmd.c (print_return_value): Fix logic, allow
5846 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5848 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5849 defining any macros.
5850 * gdbarch.h: Re-generate.
5852 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5853 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5854 * gdbarch.h: Re-generate.
5856 * values.c (generic_use_struct_convention): Don't check gcc_p.
5858 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5859 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5860 * gdbarch.h, gdbarch.c: Regenerate.
5861 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5862 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5863 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5864 deprecated_max_register_raw_size and
5865 deprecated_max_register_virtual_size.
5866 * v850-tdep.c (v850_gdbarch_init): Ditto.
5867 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5868 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5869 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5870 * cris-tdep.c (cris_gdbarch_init): Ditto.
5872 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5873 * gdbarch.h, gdbarch.c: Re-generate.
5874 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5875 (m68hc11_use_struct_convention): Delete function.
5876 (m68hc11_extract_struct_value_address): Delete function.
5877 (m68hc11_return_value): New function.
5878 (m68hc11_gdbarch_init): Instead of store_return_value,
5879 extract_return_value, return_value_on_stack,
5880 deprecated_extract_struct_value_address and use_struct_convention,
5882 * values.c (using_struct_return): Do not call
5883 RETURN_VALUE_ON_STACK.
5884 * arch-utils.h (generic_return_value_on_stack_not): Delete
5886 * arch-utils.c (generic_return_value_on_stack_not): Delete
5889 2004-06-12 Andrew Cagney <cagney@gnu.org>
5891 * values.c (register_value_being_returned): Delete function.
5892 * infcmd.c (legacy_return_value): Delete function.
5893 * infcall.c (call_function_by_hand): Inline
5894 "register_value_being_returned", simplify.
5895 * values.c (using_struct_return): Update comment, refer to
5896 print_return_value instead of register_value_being_returned.
5897 * infcmd.c (print_return_value): Inline calls to
5898 register_value_being_returned and legacy_return_value. Simplify.
5900 2004-06-11 Randolph Chung <tausq@debian.org>
5902 * somread.c (som_symtab_read): Exclude gcc local symbols.
5904 2004-06-11 Randolph Chung <tausq@debian.org>
5906 * infrun.c (handle_inferior_event): Handle the case when a
5907 trampoline ends up in the runtime resolver, and if the trampoline
5908 has no name. Rearrange the code so that all the trampoline
5909 processing happens before other step-out-of-range handling.
5911 2004-06-11 Martin Hunt <hunt@redhat.com>
5913 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5916 2004-06-10 Andrew Cagney <cagney@gnu.org>
5918 * blockframe.c (legacy_inside_entry_func): Delete.
5919 (legacy_frame_chain_valid): Inline call to
5920 legacy_inside_entry_func, simplify.
5922 2004-06-10 Bob Rossi <bob@brasko.net>
5924 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5925 * dwarf2read.c (partial_die_info): Add dirname field.
5926 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5927 (read_partial_die): Save away DW_AT_comp_dir.
5928 * defs.h (symtab_to_filename): Removed.
5929 * source.c (find_and_open_source): Added.
5930 (open_source_file): Just calls find_and_open_source.
5931 (symtab_to_filename): Removed.
5932 (symtab_to_fullname, psymtab_to_fullname): Added.
5933 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5934 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5936 * symtab.h (partial_symtab): Add dirname field.
5937 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5938 (mi_cmd_file_list_exec_source_file): Call new function
5939 symtab_to_fullname to find fullname.
5940 (mi_cmd_file_list_exec_source_files): Added.
5941 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5942 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5944 2004-06-10 Andrew Cagney <cagney@gnu.org>
5946 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5947 to generic_use_struct_convention, the default value.
5949 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5952 * ns32k-tdep.c (ns32k_push_arguments): New function.
5953 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5954 * infcall.c (call_function_by_hand): Call error instead of
5955 legacy_push_arguments.
5956 * value.h (legacy_push_arguments): Delete declaration.
5957 * valops.c (legacy_push_arguments): Delete function.
5958 (value_push): Delete function.
5960 2004-06-10 Brian Ford <ford@vss.fsi.com>
5962 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5963 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5965 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5967 2004-06-10 Andrew Cagney <cagney@gnu.org>
5969 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5970 * gdbarch.h, gdbarch.c: Re-generate.
5971 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5973 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5974 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5975 deprecated_pc_in_call_dummy instead of
5976 DEPRECATED_PC_IN_CALL_DUMMY.
5977 (arm_skip_prologue): Ditto.
5978 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5979 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5980 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5981 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5983 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5984 (sh64_init_extra_frame_info, sh64_get_saved_register)
5985 (sh64_pop_frame): Ditto.
5986 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5987 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5988 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5989 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5990 (h8300_pop_frame): Ditto.
5991 * blockframe.c (legacy_inside_entry_func)
5992 (legacy_frame_chain_valid): Ditto.
5993 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5994 to deprecated_pc_in_call_dummy.
5996 2004-06-09 Andrew Cagney <cagney@gnu.org>
5998 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5999 provide a default value.
6000 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6001 * gdbarch.h, gdbarch.c: Re-generate.
6002 * arch-utils.c (generic_convert_register_p): Rename
6003 legacy_convert_register_p
6004 (legacy_register_to_value, legacy_value_to_register): Delete
6006 * arch-utils.h (generic_convert_register_p): Rename
6007 legacy_convert_register_p.
6008 (legacy_register_to_value, legacy_value_to_register): Delete
6011 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6012 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6013 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6014 * gdbarch.h, gdbarch.c: Re-generate.
6015 * infcmd.c (default_print_registers_info): Simplify.
6016 * findvar.c (value_of_register): Simplify.
6017 * mi/mi-main.c (get_register): Simplify.
6018 * arch-utils.c (legacy_convert_register_p): Always return 0.
6019 (legacy_register_to_value, legacy_value_to_register): Always call
6022 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6023 #ifdef CLEAR_INSN_CACHE code.
6024 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6025 Delete #ifdef CLEAR_DEFERRED_STORES code.
6027 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6029 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6031 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6033 * config/mips/mipsv4.mh: Delete file.
6035 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6037 (hpread_adjust_stack_address): Delete declaration.
6039 2004-06-08 Andrew Cagney <cagney@gnu.org>
6041 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6042 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6043 PTRACE_ATTACH / PTRACE_DETACH available call error.
6044 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6045 * infttrace.c (update_thread_state_after_attach, attach, detach):
6046 Remove #ifdef wrappers.
6047 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6048 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6049 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6050 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6051 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6052 * config/nm-linux.h (ATTACH_DETACH): Delete.
6053 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6054 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6055 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6056 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6057 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6059 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6061 * configure.in: Set $configdir to the right OS specific value.
6062 Use value when setting $tcldir and $tkdir.
6063 * configure: Regenerate.
6065 2004-06-06 Paul Brook <paul@codesourcery.com>
6067 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6070 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6072 * ada-lang.c (lookup_symbol_in_language): New function to allow
6073 re-use of another language's symbol lookup code. (Placed here
6074 temporarily while Ada support is being integrated into the public
6076 (restore_language): New auxiliary function for
6077 lookup_symbol_in_language.
6078 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6079 temporarily while Ada support is being integrated into the public
6082 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6084 * Makefile.in (check//%): New.
6086 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6087 (mn10300_store_return_value): Rewrite.
6088 (mn10300_type_align): New.
6089 (mn10300_use_struct_convention): Rewrite.
6090 (mn10300_return_value): New, using all of the above.
6091 (mn10300_pop_frame_regular): Add saved_regs_size.
6092 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6094 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6095 regs if PC is on movm.
6097 2004-06-07 Jim Blandy <jimb@redhat.com>
6099 Add native Linux support for the PowerPC E500.
6100 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6101 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6102 all architectures except the E500.
6103 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6105 (struct gdb_evrregset_t): New type.
6106 (have_ptrace_getsetevrregs): New variable.
6107 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6108 fetch_spe_registers): New functions.
6109 (fetch_register): Call fetch_spe_register as appropriate.
6110 Assert that we're only passed raw register numbers.
6111 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6112 Don't fetch gprs if they're pseudoregisters.
6113 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6114 store_spe_registers): New functions.
6115 (store_register): Call store_spe_register as appropriate.
6116 Assert that we're only passed raw register numbers.
6117 (store_ppc_registers): Call store_spe_registers as appropriate.
6118 Don't store gprs if they're pseudoregisters.
6120 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6122 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6123 struct if one exists, even if we are dealing with a zombie thread.
6125 2004-06-07 Andrew Cagney <cagney@gnu.org>
6127 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6128 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6129 Rename PC_REQUIRES_RUN_BEFORE_USE.
6130 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6133 2004-06-07 Randolph Chung <tausq@debian.org>
6135 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6136 unwinding after sp has been saved to the stack but before the end
6137 of the prologue, and after the fp has been modified but before it has
6138 been saved to the stack.
6139 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6140 Remove superfluous definitions.
6141 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6143 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6145 Committed by Randolph Chung.
6146 * hppa-linux-nat.c: Include the correct version of the header file
6147 depending on the kernel version.
6149 2004-06-06 Randolph Chung <tausq@debian.org>
6151 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6152 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6154 2004-06-06 Randolph Chung <tausq@debian.org>
6156 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6157 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6158 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6159 * hppa-tdep.c (hppa_symbol_address): New function definition.
6160 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6162 2004-06-06 Randolph Chung <tausq@debian.org>
6164 * hppa-tdep.h (struct value): Forward declaration.
6165 (gdbarch_tdep): Define tdep find_global_pointer method.
6166 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6167 associated with the function we are trying to call, and write it
6169 (hppa32_convert_from_funct_ptr_addr): New function.
6170 (hppa_find_global_pointer): New function.
6171 (hppa_gdbarch_init): Set default find_global_pointer method; set
6172 convert_from_func_ptr_addr method.
6173 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6174 (hppa_linux_init_abi): Set find_global_pointer method.
6175 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6177 2004-06-06 Randolph Chung <tausq@debian.org>
6179 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6180 to struct value *function.
6181 * gdbarch.c: Regenerate.
6182 * gdbarch.h: Likewise.
6183 * infcall.c (call_function_by_hand): Pass entire function value
6186 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6187 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6188 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6189 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6190 * arm-tdep.c (arm_push_dummy_call): Likewise.
6191 * avr-tdep.c (avr_push_dummy_call): Likewise.
6192 * cris-tdep.c (cris_push_dummy_call): Likewise.
6193 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6194 * frv-tdep.c (frv_push_dummy_call): Likewise.
6195 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6196 * hppa-tdep.c (hppa32_push_dummy_call)
6197 (hppa64_push_dummy_call): Likewise.
6198 * i386-tdep.c (i386_push_dummy_call): Likewise.
6199 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6200 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6201 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6202 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6203 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6204 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6205 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6206 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6207 (ppc64_sysv_abi_push_dummy_call): Likewise.
6208 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6209 (ppc64_sysv_abi_push_dummy_call): Likewise.
6210 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6211 * s390-tdep.c (s390_push_dummy_call): Likewise.
6212 * sh-tdep.c (sh_push_dummy_call_fpu)
6213 (sh_push_dummy_call_nofpu): Likewise.
6214 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6215 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6216 * vax-tdep.c (vax_push_dummy_call): Likewise.
6218 2004-06-04 Jim Blandy <jimb@redhat.com>
6220 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6221 gdbarch argument to register_size.
6223 * rs6000-tdep.c (rs6000_store_return_value): Use
6224 regcache_cooked_write_part instead of
6225 deprecated_write_register_bytes.
6226 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6227 not gdbarch_deprecated_store_return_value.
6229 * ppc-linux-nat.c (store_register, fetch_register): Remove
6230 incorrect assertions. Simplify and generalize handling of
6231 transfers whose sizes are not multiples of, or less than, sizeof
6234 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6236 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6237 as a new thread event.
6238 * thread-db.c (thread_get_info_callback): If the thread is a
6239 zombie, return TD_THR_ZOMBIE.
6240 (thread_from_lwp): If thread_get_info_callback returns
6241 TD_THR_ZOMBIE, check if the thread is still on the thread list
6242 and return a -1 ptid if not found.
6243 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6244 change the status to TARGET_WAITKIND_SPURIOUS.
6246 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6248 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6249 double values in little endian mode.
6251 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6253 Committed by Andrew Cagney.
6254 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6255 after last enum constant to avoid error from IBM C
6258 2004-06-02 Jim Blandy <jimb@redhat.com>
6260 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6261 to 'message', and make it local to the lone block that uses it.
6263 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6265 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6267 * ada-exp.y: Update copyright notice.
6270 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6271 SPECIAL_VARIABLE and unify the treatment of these cases.
6273 (write_attribute_call0): Remove.
6274 (write_attribute_call1): Remove.
6275 (write_attribute_calln): Remove.
6276 (save_qualifier): Add missing semicolon.
6278 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6279 temporarily disabled to allow compilation with FSF head version.
6281 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6282 use individual operators (OP_*) for all attributes.
6283 (exp syntax): Use write_int.
6284 Handle STRING literals with OP_STRING.
6285 (variable syntax): Add limit parameter to calls to
6286 write_object_renaming.
6288 (temp_parse_space): New definition to hold entities that need
6289 only live until the next call to ada_parse.
6290 (string_to_operator): Rename fields of ada_opname_table entries.
6292 (write_var_from_sym): Record block.
6293 (write_var_from_name): Minor reformatting.
6294 Make sure saved name is properly encoded in the case of multiple
6295 matches, and set its language to Ada.
6297 Modify to indicate unresolved name as symbol in the UNRESOLVED
6298 namespace, allocated in temp_parse_space.
6299 (write_int): New function.
6301 (write_object_renaming): Add max_depth parameter to limit
6302 chains of object renamings.
6303 Handle case where root of renaming expression is itself a renaming.
6304 Use temp_parse_space for temporary name buffer.
6305 Handle renamings to dereferenced pointers (___XEXA suffices).
6307 (ada_parse, yyerror, string_to_operator,
6308 write_var_from_sym, write_var_from_name, write_attribute_call0,
6309 write_attribute_call1, write_attribute_calln,
6310 write_object_renaming): Protoize.
6312 (_initialize_ada_exp): New function.
6314 * ada-lang.c: Update copyright notice.
6315 General terminology change to conform to GNAT compiler usage:
6316 mangle => encode, demangle => decode
6317 Include gdb_obstack.h.
6326 (ADA_RETAIN_DOTS): Make sure this is defined.
6327 (TRUNCATION_TOWARDS_ZERO): Define.
6328 (struct string_vector): Define.
6329 (unresolved_names): Remove definition.
6330 (xnew_string_vector): New function.
6331 (string_vector_append): New function.
6332 (extract_string): Make static.
6333 (ada_unqualified_name): New function.
6334 (add_angle_brackets): New function.
6335 (function_name_from_pc): New function.
6336 (place_on_stack): Rename to ensure_lval.
6338 (ensure_lval): Renamed from place_on_stack.
6339 Make identity on lvals.
6341 (is_nonfunction): New interface.
6342 Only symbols in LOC_CONST class can be enumerals.
6343 (fill_in_ada_prototype): Remove; now independent of language.
6344 (add_defn_to_vec): Add obstack and symtab arguments.
6345 Use obstack to hold collected definitions.
6346 (num_defns_collected): New function.
6347 (defns_collected): New function.
6348 (ada_resolve_subexp): Rename to resolve_subexp.
6349 (resolve_subexp): Renamed from ada_resolve_subexp.
6350 (ada_op_name): Return non-const result.
6351 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6354 (to_fixed_array_type): Add declaration.
6355 (coerce_unspec_val_to_type): Remove offset parameter.
6356 (find_sal_from_funcs_and_line): New interface.
6357 (find_line_in_linetable): Ditto.
6359 (all_sals_for_line): Rename to ada_sals_for_line and make
6361 Add new parameter. When set, do not ask the user to choose the
6362 instance, but use the first one found instead.
6363 Use given line number in returned sals.
6365 Skip the prologue if funfirstline is set.
6366 Correct for memory leak when 0 lines found.
6368 (value_pos_atr): Use pos_atr.
6369 (pos_atr): New function.
6370 (standard_lookup): Add block parameter.
6372 (makeTimeStart): Remove declaration and uses.
6373 (makeTimeStop): Remove declaration and uses.
6375 (ada_completer_word_break_characters): Allow for VMS.
6376 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6377 (raise_sym_name): New constant.
6378 (raise_unhandled_sym_name): New constant.
6379 (raise_assert_sym_name): New constant.
6380 (process_raise_exception_name): New constant.
6381 (longest_exception_template): New constant.
6382 (warning_limit): New variable to limit warnings during expression
6384 (warnings_issued): New variable to keep track of warnings issued.
6385 (known_runtime_file_name_patterns): New constant.
6386 (known_auxiliary_function_name_patterns): New constant.
6387 (symbol_list_obstack): New variable.
6389 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6390 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6391 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6392 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6393 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6394 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6395 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6396 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6399 (ada_get_field_index): New function.
6400 (lim_warning): New function.
6401 (ada_translate_error_message): New function.
6402 (MAX_OF_SIZE): New function.
6403 (MIN_OF_SIZE): New function.
6404 (UMAX_OF_SIZE): New function.
6405 (UMIN_OF_SIZE): New function.
6406 (discrete_type_high_bound): New function.
6407 (discrete_type_low_bound): New function.
6408 (base_type): New function.
6409 (do_command): Remove.
6411 (ada_update_initial_language): Use language_ada, not language_unknown.
6412 (ada_encode): Renamed from ada_mangle.
6413 Obey ADA_RETAIN_DOTS.
6414 (ada_decode): Renamed from ada_demangle.
6415 Update coding conventions.
6416 (decoded_names_store): New hash table.
6417 (ada_decode_symbol): New function.
6418 (ada_la_decode): New function.
6420 (modify_general_field): Correct computations of offset and bit
6422 (desc_base_type): Handle ref types, too.
6423 (ada_is_direct_array_type): New function.
6425 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6426 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6427 (ada_is_bogus_array_descriptor,ada_type_of_array,
6428 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6429 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6430 ada_is_array_descriptor_type.
6432 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6433 (ada_is_packed_array_type): Handle pointers or
6434 references to packed arrays as well.
6435 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6436 (decode_packed_array_type): Search for the packed array type
6437 symbol in the currently selected block and associated
6439 Use lookup_symbol again.
6441 (decode_packed_array): Handle pointers and references.
6442 Update call to coerce_unspec_val_to_type.
6443 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6444 (ada_value_primitive_packed_val): Improve comment.
6446 (ada_index_type): Substitute int type for "undefined".
6447 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6448 ada_array_langth, ada_is_string_type): Use renamed
6449 ada_is_simple_array_type.
6450 (empty_array): New function.
6452 (ada_resolve): Rename to resolve.
6453 (resolve): Make static.
6454 Call renamed resolve_subexp.
6456 (ada_resolve_subexp): Rename to resolve_subexp.
6457 (resolve_subexp): Update comment.
6458 Decomment disabled code.
6459 Add LOC_COMPUTED* cases.
6460 Modify to use temporary struct symbols (marked as being in
6461 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6462 OP_UNRESOLVED_VALUE.
6463 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6466 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6467 Use new ada_lookup_symbol_list interface.
6468 Use new ada_resolve_function interface.
6469 Remove OP_TYPE case.
6471 (ada_args_match): Idiot proof against null actuals.
6472 Use intermediate variables to clarify.
6473 (ada_resolve_function): Update comment and interface.
6474 (mangled_ordered_before): Rename to encoded_ordered_before and
6476 (sort_choices): Update comment and interface.
6477 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6478 (user_select_syms): New interface.
6479 Use new sort_choices interface.
6480 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6481 (possible_user_operator_p): Idiot-proof against null values.
6482 (ada_simple_renamed_entity): Don't make cleanup; rely on
6483 caller to free result string.
6484 Remove const from return type.
6485 (make_array_descriptor): Rename uses of place_on_stack to
6487 Make sure that arrays are on stack.
6489 (HASH_SIZE): Define.
6490 (struct cache_entry): Define.
6491 (cache_space): Define.
6493 (clear_ada_sym_cache): New function.
6494 (find_entry): New function.
6495 (lookup_cached_symbol): New function.
6496 (defn_vector_size): Define.
6497 (cache_symbol): New function.
6498 (defn_symbols): Remove.
6500 (standard_lookup): Use lookup_symbol_in_language to get effect of
6504 (symbol_completion_match): New function.
6505 (symbol_completion_add): New function.
6506 (ada_make_symbol_completion_list): New function.
6508 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6509 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6510 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6511 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6513 (ada_lookup_simple_minsym): New function.
6514 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6516 (add_symbols_from_enclosing_procs): New interface.
6517 Conditionalize more helpfully.
6518 Don't bother if program isn't running.
6519 Use new interface to get_frame_block.
6520 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6522 (remove_extra_symbols): New interface.
6523 (xget_renaming_scope): New function.
6524 (is_package_name): New function.
6525 (renaming_is_visible): New function.
6526 (remove_out_of_scope_renamings): New function.
6528 (ada_lookup_symbol_list): New interface.
6529 Properly reinitialize the symbol list obstack.
6530 Don't call add_symbols_from_enclosing_procs if we start from a
6531 static or global block.
6532 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6533 add_symbols_from_enclosing_procs.
6534 Add symtab data to cached entries.
6535 Handle symbols prefixed with
6536 "standard__" specially; strip prefix and don't look in local symbols.
6537 Do not include out of scope renaming symbols in list of
6539 Add const to block parameter.
6540 Move check for non-local, non-global symbols earlier.
6541 Remove timing stuff.
6542 (ada_lookup_symbol): New interface.
6543 Find symtab as well.
6544 (ada_lookup_symbol_nonlocal): New function.
6546 (is_name_suffix): Enhance suffix detection to recognize
6547 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6548 (is_dot_digits_suffix): New function.
6549 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6551 (ada_add_block_symbols): New interface. Use obstack to return results
6552 in a vector of struct ada_symbol_infos. Add symtab argument.
6553 Use new interface to add_defn_to_vec.
6554 Remove calls to fill_in_ada_prototype.
6555 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6557 (ada_finish_decode_line_1): Add const qualification to local to fix
6559 Start looking in static block for functions to avoid attempts
6560 to search frame chain for up-level variables.
6561 Adapt to new ada_sals_for_line interface.
6562 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6563 Handle quoting of the function name inside the spec string.
6564 Skip prologue when funfirstline is set and update the
6565 function documentation to that effect.
6567 (debug_print_lines, debug_print_block, debug_print_blocks,
6568 debug_print_symtab): Remove.
6570 (ada_main_name): New function.
6571 (ada_exception_breakpoint_type): New function.
6572 (is_known_support_routine): New function.
6573 (ada_find_printable_frame): Renamed from find_printable_frame and made
6575 Remove level parameter.
6576 Use new interface to select_frame.
6578 (begin_command): Remove.
6579 (ada_adjust_exception_stop): New function.
6580 (ada_print_exception_stop): New function.
6581 (exception_name_from_cond): New function.
6582 (ada_report_exception_break): Replace disabled code with
6583 conditionalization on GNAT_GDB.
6584 Get the exception name from the condition string.
6585 Remove and move functionality into new functions
6586 ada_print_exception_breakpoint_task and
6587 ada_print_exception_breakpoint_nontask.
6588 (error_breakpoint_runtime_sym_not_found): New function.
6589 (is_runtime_sym_defined): New function.
6590 (ada_breakpoint_rewrite): Uncomment suppressed code.
6591 Use symbolic error-message and runtime-symbol names.
6592 Surround runtime symbol names in quotes.
6593 Allow non-specific breakpoints on exceptions and assertions before
6596 (ada_is_tagged_type): Add parameter.
6597 (ada_is_tag_type): New function.
6598 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6599 (ada_variant_discrim_type): Ditto.
6600 (value_tag_from_contents_and_address): New function.
6601 (type_from_tag): New function.
6602 (struct tag_args): New structure used to communicate with
6604 (ada_tag_name_1): New function.
6605 (ada_tag_name): New function.
6607 (ada_scan_number): Update comment.
6608 (find_struct_field): New function.
6609 (ada_search_struct_field): Make static.
6610 (ada_value_struct_elt): New version that returns references when
6611 given pointers or references to structs.
6612 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6613 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6615 (ada_value_ind): Use new ada_to_fixed_value interface.
6616 (ada_coerce_ref): Ditto.
6617 (field_offset): Remove.
6619 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6620 (ada_find_renaming_symbol): New function.
6621 (ada_prefer_type): Prefer named types over unnamed ones.
6622 (variant_field_index): New function.
6623 (contains_variant_part): Removed: subsumed by variant_field_index.
6624 (ada_template_to_fixed_record_type): New function, mostly from
6625 template_to_fixed_record_type.
6626 (template_to_fixed_record_type):
6627 Do not scan the type fields beyond the last one; prevents a
6629 Handle case where variant field is listed BEFORE discriminant it
6631 Fix calculation of record length when bit length is
6632 not evenly divisible by char length.
6633 Move code to ada_template_to_fixed_record_type and call it.
6635 (template_to_static_fixed_type): Revise comment.
6636 Modify to work on ordinary record types as well as templates,
6637 so as to handle fields that use ___XVE or ___XVU encodings.
6638 (to_record_with_fixed_variant_part): Fill out comment.
6639 Initialize C++ stuff in right type.
6640 Allow case where DVAL is null.
6641 Handle case where variant field is not last.
6642 Fix typo concerning record length.
6643 (to_fixed_record_type): Decomment disabled code.
6644 (to_fixed_record_type): Use variant_field_index instead of
6645 contains_variant_part.
6646 (to_fixed_variant_branch_type): Ditto.
6647 (to_fixed_array_type): Decomment disabled code.
6648 (ada_to_fixed_type): Convert tagged types to the specific type.
6649 Deactivate the size-check for array types in order to avoid
6650 some false size alarms.
6651 (to_static_fixed_type): Decomment disabled code.
6652 Modify to call template_to_static_fixed_type
6653 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6654 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6655 Remove valaddr argument, as it is never really used.
6656 (ada_to_fixed_value): Change interface to act on single struct value*
6658 (adjust_pc_past_prologue): New function.
6659 (ada_attribute_name): Modify to take enum exp_opcode argument.
6661 (ada_enum_name): Recognize new homonym-distinguishing convention.
6662 Adjust local variable's type to remove compiler warning.
6663 Fix a small problem in the part that unqualifies the enumeration name.
6664 (ada_value_binop): New function.
6665 (ada_value_equal): New function.
6667 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6668 Don't give error message when not doing normal evaluation
6669 and a tagged type doesn't seem to contain a structure member.
6670 Give error message for packed arrays.
6671 For indexing arrays, handle pointers to packed arrays correctly.
6672 Handle case of 'first and 'last attributes of bare integral type
6673 without encoded subtype info.
6674 Remove some unnecessary casts.
6675 Fix uninitialized value of type in computing 'first, 'last, or 'length
6677 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6678 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6680 Attributes are now exp_opcode values.
6681 Correct treatment of 'modulus.
6682 Better error message for taking 'length of wrong kind of type;
6684 Change EVAL_NORMAL to noside for consistency.
6685 Use ada_value_binop for DIV, MOD, REM.
6686 Make special case out of array of length 0, since an argument
6687 of 0 upsets some platforms' malloc.
6688 Use OP_STRING instead of OP_ARRAY.
6689 For slice, add check that we have an array type before extracting
6690 a slice out of it. Avoids a SEGV.
6691 When evaluating an array slice, if the array type is a reference to
6692 an aligner type, then replace the aligner type by the actual type.
6693 Decomment disabled code.
6694 Remove some dead code.
6695 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6696 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6697 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6698 and UNOP_MBR to UNOP_IN_RANGE.
6699 If an array type has a parallel ___XVE type, then use it.
6700 Turn arrays into pointers for lvalue arrays.
6701 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6702 bounds error and handle 0-length slices.
6704 When selecting fields, apply ada_to_fixed_value (because the fields
6705 might have ___XVU or ___XVE encodings even if not dynamic.)
6706 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6707 (ada_is_system_address_type): New function.
6709 (get_var_value): Use new interface to ada_lookup_symbol_list.
6710 (get_int_var_value): New interface.
6711 (to_fixed_range_type): Allow unknown bound, with warning.
6712 (ada_is_modular_type): Decomment disabled code.
6713 (ADA_OPERATORS): New definition.
6714 (ada_operator_length): New function.
6715 (ada_expr_op_name): New function.
6716 (ada_forward_operator_length): New function.
6717 (ada_dump_subexp_body): New function.
6718 (ada_print_subexp): New function.
6719 (ada_exp_descriptor): New constant.
6720 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6721 (ada_language_defn): Add ada_exp_descriptor entry.
6722 Change ada_parse => parse.
6723 Add post-parser entry.
6724 Use ada-specific non-local symbol lookup.
6725 Don't use C-style arrays.
6726 String lower-bound is 1.
6727 Decomment disabled code.
6728 (parse): New function.
6729 New fields ada_translate_error_message, ada_lookup_symbol,
6730 ada_lookup_minimal_symbol.
6732 * ada-lang.h: Update copyright dates.
6733 Replace the mangle/demangle terminology throughout by the
6734 more appropriate encode/decode one.
6735 Include breakpoint.h.
6736 Forward declare struct partial_symbol, struct block.
6737 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6738 (EXTRACT_ADDRESS): Remove.
6739 (EXTRACT_INT): Remove.
6740 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6741 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6742 (MAX_RENAMING_CHAIN_LENGTH): Define.
6743 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6745 (enum task_states): Remove.
6746 ada_task_states: Remove.
6747 (fat_string): Remove.
6748 (struct entry_call): Remove.
6749 (struct task_fields): Remove.
6750 (struct task_entry): Remove.
6752 (struct ada_symbol_info): Define.
6753 (enum ada_attribute): Remove.
6754 (enum ada_operator): Define.
6756 (ada_get_field_index): Declare.
6757 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6758 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6759 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6760 (ada_lookup_symbol_list): New interface.
6761 (ada_decode_symbol): Declare.
6762 (ada_decode): Declare.
6763 (ada_lookup_symbol): New interface.
6764 (ada_update_initial_language): Declare.
6765 (ada_lookup_simple_minsym): Declare.
6766 (user_select_syms): New interface.
6767 (ada_sals_for_line): Declare.
6768 (ada_is_tagged_type): New interface.
6769 (ada_tag_name): Declare.
6770 (ada_lookup_struct_elt_type): Remove declaration.
6771 (ada_search_struct_field): Remove declaration.
6772 (ada_attribute_name): New interface.
6773 (ada_is_system_address_type): Declare.
6774 (ada_to_fixed_value): Remove declaration.
6775 (ada_template_to_fixed_record_type_1): Declare.
6776 (get_int_var_value): New interface.
6777 (ada_find_any_symbol): Declare.
6778 (ada_find_renaming_symbol): Declare.
6779 (ada_mangle): Rename to ada_encode.
6780 (ada_simple_renamed_entity): Remove const.
6781 (ada_main_name): Declare.
6782 (get_current_task): Rename to ada_get_current_task.
6783 (get_entry_number): Remove declaration.
6784 (ada_report_exception_break): Remove declaration.
6785 (ada_print_exception_breakpoint_nontask): Declare.
6786 (ada_print_exception_breakpoint_task): Declare.
6787 (ada_find_printable_frame): Declare.
6789 * ada-lex.l: Update copyright notices.
6790 Use xmalloc and xfree instead of malloc and free.
6791 Use new interface to name_lookup.
6792 Use new interface to
6793 ada_mangle=>ada_encode.
6794 Redo handling of '$...' variable to parallel current treatment
6796 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6797 digit_to_int, strtoulst, processInt, processReal, processId,
6798 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6801 (processInt): Use cast to remove harmless warning.
6802 (processReal): Modify to get rid of compiler warning on scan formats.
6804 (processId): Replace xmalloc with obstack_alloc for name and remove
6805 call to ada_name_string_cleanup.
6806 Remove obsolete disabled code.
6807 (name_lookup): Ditto.
6809 Use obsavestring on temp_parse_space instead of savestring
6810 on name, and remove call to ada_name_string_cleanup.
6811 Free string returned from ada_simple_renamed_entity.
6812 Use new interface to ada_lookup_symbol_list.
6813 Decomment disabled code.
6814 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6816 When a type name lookup succeeds as a result of
6817 lookup_primitive_typename, check for regular type entry that has not
6819 Limit length of chain of renamed symbols we are willing to follow.
6820 Do not break names beginning with "standard__" into segments.
6821 (block_lookup): Use new interface to ada_lookup_symbol_list.
6823 * ada-typeprint.c: Update copyright notice.
6824 (demangled_type_name): Rename to decoded_type_name.
6825 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6826 (print_range_bound): Correct handling of negative
6827 bounds that make the index type looked unsigned under STABS.
6828 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6829 (print_range_type_named): Use the builtin int type if no type
6830 corresponding to the given type name could be found.
6831 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6832 Add some bullet-proofing.
6833 (print_variant_clauses): Allow for variant branches with ___XVU
6834 encodings that are not dynamic fields.
6835 Use new interface to ada_is_tagged_type.
6836 (print_record_type): Allow for fields with ___XVE encodings that
6837 are not dynamic fields.
6838 Use new interface to ada_is_tagged_type.
6839 (ada_print_type): ada_is_array_descriptor =>
6840 ada_is_array_descriptor_type.
6842 * ada-valprint.c: Update copyright notice.
6843 Include gdb_string.h
6845 (ui_memcpy): New function.
6846 (ada_print_floating): New function.
6847 (ada_print_str): Order arguments correctly.
6848 Correct handling of empty arrays and arrays of 0-length items.
6849 ada_is_array_descriptor => ada_is_array_descriptor_type
6850 Print values of type System.Address in hexadecimal format.
6851 Use ada_print_floating to print floating-point numbers in Ada format.
6852 Print class tag values with type names.
6853 No longer print the address of reference values. Avoids
6854 a potential confusion.
6855 (ada_value_print): Stop printing the object type for reference
6856 values, but preserve that behavior for access types. Avoids
6857 a potential confusion.
6858 Simplify one conditional expression, as the first part is now
6860 ada_is_array_descriptor => ada_is_array_descriptor_type
6861 Add check for arrays for null records, and print them by hand.
6863 2004-06-01 Jim Blandy <jimb@redhat.com>
6865 * ppc-tdep.h: Delete unused 'regoff' member.
6866 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6868 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6871 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6872 (hpread_read_struct_type): Likewise.
6874 2004-06-01 Andrew Cagney <cagney@gnu.org>
6876 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6877 instead of xasprintf.
6878 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6879 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6880 (mi_cmd_data_list_register_names)
6881 (mi_cmd_data_list_changed_registers)
6882 (mi_cmd_data_list_register_values)
6883 (get_register, mi_cmd_data_write_register_values)
6884 (mi_cmd_data_write_register_values)
6885 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6886 (mi_cmd_target_download, mi_cmd_target_select)
6887 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6888 (mi_execute_cli_command, mi_execute_async_cli_command)
6889 (mi_execute_async_cli_command): Ditto.
6890 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6891 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6893 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6894 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6895 error_last_message instead of mi_error_last_message.
6896 * mi/mi-main.c (mi_error_last_message): Delete function.
6898 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6899 "invalid number of columns" error. Delete redundant "out of
6902 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6904 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6905 (gregset_t, fpregset_t): Remove typedefs.
6906 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6907 (REG_OFFSET): Rename argument.
6908 (i386bsd_r_reg_offset): Rename from reg_offset.
6909 (REG_ADDR): Remove macro.
6910 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6912 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6913 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6914 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6915 instead of supply_gregset.
6916 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6917 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6918 instead of fill_gregset.
6919 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6921 * i386bsd-nat.c: Don't include "gregset.h".
6922 (supply_gregset, fill_gregset): Make static.
6923 (supply_fpregset, fill_fpregset): Remove.
6924 * Makefile.in (i386bsd-nat.o): Update dependencies.
6926 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6928 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6929 "gdb_assert.h". Con't include "gregset.h".
6930 (fbsd_make_corefile_notes): Use regset-based core file support
6931 instead off fill_gregset and fill_fpregset.
6932 * Makefile.in (fbsd-proc.o): Update dependencies.
6934 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6936 (m88k_frame_prev_register): Simplify code a bit.
6938 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6939 (amd64_collect_fpregset): New function.
6940 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6942 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6944 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6945 (i386_collect_gregset): New function.
6946 (i386_supply_fpregset): Adjust comment.
6947 (i386_collect_fpregset): New function.
6948 (i386_regset_from_core_section): Use i386_collect_gregset and
6949 i386_collect_fpregset.
6951 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6952 handle VALUEP being null.
6954 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6956 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6958 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6960 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6961 assembler in OpenBSD 3.5-current.
6962 (amd64obsd_sigcontext_addr): Likewise.
6964 2004-05-28 Jim Blandy <jimb@redhat.com>
6966 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6967 register set, so our regcache isn't declared "legacy" and our E500
6968 pseudoregister read and write functions aren't ignored.
6969 (rs6000_register_byte, rs6000_register_raw_size,
6970 rs6000_register_virtual_type, rs6000_register_convertible,
6971 rs6000_register_convert_to_virtual,
6972 rs6000_register_convert_to_raw): Deleted.
6973 (rs6000_register_type, rs6000_convert_register_p,
6974 rs6000_register_to_value, rs6000_value_to_register): New
6976 (rs6000_gdbarch_init): Don't register
6977 gdbarch_deprecated_register_size,
6978 gdbarch_deprecated_register_bytes,
6979 gdbarch_deprecated_register_byte,
6980 gdbarch_deprecated_register_raw_size,
6981 gdbarch_deprecated_register_virtual_type,
6982 gdbarch_deprecated_register_convertible,
6983 gdbarch_deprecated_register_convert_to_virtual, or
6984 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6985 register gdbarch_register_type, gdbarch_convert_register_p,
6986 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6988 2004-05-26 Jim Blandy <jimb@redhat.com>
6990 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6991 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6992 functions, updated to match the register numberings used in GCC.
6993 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6994 rs6000_dwarf2_reg_to_regnum as register number conversions
6995 functions for STABS and Dwarf2.
6997 2004-05-26 Randolph Chung <tausq@debian.org>
6999 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7002 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7004 * NEWS: Document new "start" command.
7006 2004-05-25 Randolph Chung <tausq@debian.org>
7008 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7011 2004-05-25 Randolph Chung <tausq@debian.org>
7013 * hppa-hpux-tdep.c (offsetof): Define.
7014 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7015 (hppa32_hpux_frame_base_before_sigtramp)
7016 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7017 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7018 (hppa64_hpux_frame_base_before_sigtramp)
7019 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7021 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7022 (hppa_hpux_sigtramp_frame_unwind_cache)
7023 (hppa_hpux_sigtramp_frame_this_id)
7024 (hppa_hpux_sigtramp_frame_prev_register)
7025 (hppa_hpux_sigtramp_frame_unwind)
7026 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7027 (hppa_hpux_init_abi): Register sigtramp unwinder.
7028 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7030 2004-05-25 Randolph Chung <tausq@debian.org>
7032 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7033 and multiple stack unwinds.
7034 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7036 2004-05-25 Andrew Cagney <cagney@gnu.org>
7038 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7039 * symfile-mem.h: Delete file.
7040 * symfile-mem.c: Do not include "symfile-mem.h".
7041 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7042 "struct bfd_section". When an error do not bother returning NULL.
7043 (add_symbol_file_from_memory_command): Use "struct bfd" and
7044 "struct bfd_section".
7045 * Makefile.in (symfile_mem_h): Delete.
7046 (symfile-mem.o): Update dependencies.
7048 2004-05-25 Nick Roberts <nickrob@gnu.org>
7050 * gdb-mi.el: New file.
7052 2004-05-25 Andrew Cagney <cagney@gnu.org>
7054 * inftarg.c: Include "observer.h".
7055 (child_attach, child_create_inferior): Notify inferior_created.
7056 * corelow.c: Include "observer.h".
7057 (core_open): Notify inferior_created.
7058 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7060 2004-05-25 Andrew Cagney <cagney@gnu.org>
7062 * target.h (struct target_ops): Add from_tty to
7064 (target_create_inferior, find_default_create_inferior): Update.
7065 * infcmd.c (run_command): Update.
7066 * wince.c (child_create_inferior): Update.
7067 * win32-nat.c (child_create_inferior): Update.
7068 * uw-thread.c (uw_thread_create_inferior): Update.
7069 * thread-db.c (thread_db_create_inferior): Update.
7070 * target.c (debug_to_create_inferior)
7071 (find_default_create_inferior): Update.
7072 (maybe_kill_then_create_inferior): Update.
7073 * sol-thread.c (sol_thread_create_inferior): Update.
7074 * remote.c (extended_remote_async_create_inferior)
7075 (extended_remote_create_inferior): Update.
7076 * remote-vx.c (vx_create_inferior): Update.
7077 * remote-st.c (st2000_create_inferior): Update.
7078 * remote-sim.c (gdbsim_create_inferior): Update.
7079 * remote-sds.c (sds_create_inferior): Update.
7080 * remote-rdp.c (remote_rdp_create_inferior): Update.
7081 * remote-rdi.c (arm_rdi_create_inferior): Update.
7082 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7083 * remote-e7000.c (e7000_create_inferior): Update.
7084 * procfs.c (procfs_create_inferior): Update.
7085 * ocd.c (ocd_create_inferior): Update.
7086 * ocd.h (ocd_create_inferior): Update.
7087 * nto-procfs.c (procfs_create_inferior): Update.
7088 * monitor.c (monitor_create_inferior): Update.
7089 * lin-lwp.c (lin_lwp_create_inferior): Update.
7090 * inftarg.c (child_create_inferior): Update.
7091 * hpux-thread.c (hpux_thread_create_inferior): Update.
7092 * gnu-nat.c (gnu_create_inferior): Update.
7094 2004-05-25 Andrew Cagney <cagney@gnu.com>
7096 * MAINTAINERS: Update e-mail address.
7098 2004-05-24 Randolph Chung <tausq@debian.org>
7100 * thread.c (info_threads_command, thread_apply_all_command)
7101 (thread_apply_command, thread_command, do_captured_thread_select):
7102 Remove HPUXHPPA-specific code.
7104 2004-05-24 Randolph Chung <tausq@debian.org>
7106 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7108 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7111 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7113 * infcmd.c (kill_if_already_running): New function, extracted
7115 (run_command): Replace extracted code by call to
7116 kill_if_already_running().
7117 (start_command): New function.
7118 (_initialize_infcmd): Add "start" command.
7120 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7122 Add OpenBSD/m88k support.
7123 * NEWS (New native configurations): Mention OpenBSD/m88k.
7124 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7125 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7126 * Makefile.in (m88k_tdep_h): New variable.
7127 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7128 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7129 * configure.host: Add m88*-*-openbsd*.
7130 * configure.tgt: Add m88*-*-openbsd*.
7132 2004-05-24 Jim Blandy <jimb@redhat.com>
7134 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7137 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7139 * symtab.c (fixup_section): Search section table when lookup by
7142 2004-05-24 Randolph Chung <tausq@debian.org>
7144 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7147 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7149 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7150 register number in regcache_raw_collect call.
7151 (m68kbsd_collect_fpregset): Likewise.
7152 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7154 * regset.h (struct regset): Add back `regset' member.
7156 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7158 * configure.in: Check for td_pcb in `struct thread'.
7159 * configure, config.in: Regenerated.
7161 * dpx2-nat.c: Remove file.
7162 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7163 (dpx2-nat.o): Remove dependencies.
7165 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7166 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7167 (amd64obsd_supply_pcb): New function.
7168 (_initialize_amd64obsd_nat): Enable libkvm interface.
7169 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7170 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7171 (LOADLIBES): New variable.
7173 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7174 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7175 (sparc32nbsd_supply_pcb): New function.
7176 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7177 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7178 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7179 (LOADLIBES): New variable.
7181 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7183 * bsd-kvm.c, bsd-kvm.h: New files.
7184 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7186 (i386fbsd_supply_pcb): New function.
7187 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7188 (i386fbsd-nat.o): Update dependencies.
7189 (bsd_kvm_h): New variable.
7190 (bsd-kvm.o): New dependency.
7191 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7192 (LOADLIBES): New variable.
7194 * regset.c: Tweak comment.
7195 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7197 * regset.h: Update copyright year.
7198 (struct regset): Remove `descr' member, add `gdbarch' member.
7199 (regset_alloc): Adjust prototype and comment.
7200 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7201 (i386_supply_fpregset): Likewise.
7202 (i386_regset_from_core_section): Update call to regset_alloc.
7203 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7205 (i386obsd_aout_regset_from_core_section): Update call to
7207 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7209 (i386nbsd_aout_regset_from_core_section): Update call to
7211 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7213 (amd64_regset_from_core_section): Update call to regset_alloc.
7214 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7216 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7217 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7218 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7219 (sparc32nbsd_init_abi): Update call to regset_alloc.
7220 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7221 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7222 (sparc64obsd_init_abi): Update call to regset_alloc.
7223 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7224 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7225 (sparc64nbsd_init_abi): Update call to regset_alloc.
7226 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7227 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7228 (sparc64fbsd_init_abi): Update call to regset_alloc.
7230 2004-05-22 Jim Blandy <jimb@redhat.com>
7232 * ppc-tdep.h (spe_register_p): New declaration.
7233 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7235 * rs6000-tdep.c (spe_register_p): New function.
7236 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7238 (rs6000_gdbarch_init): Initialize the new members of the tdep
7241 2004-05-21 Jim Blandy <jimb@redhat.com>
7243 * ppc-linux-nat.c (fetch_register): Move code back to be next
7244 to the comment that describes it. (Moved code, instead of
7245 comment, for symmetry with store_register.)
7247 Allocate regset structures in the gdbarch's obstack, not using
7249 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7250 Add 'arch' argument. Allocate the regset on arch's obstack, not
7252 * regset.h (regset_alloc): Update declaration.
7253 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7255 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7256 * i386-tdep.c (i386_regset_from_core_section): Same.
7257 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7258 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7259 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7260 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7261 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7262 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7264 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7266 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7268 2004-05-21 Jim Blandy <jimb@redhat.com>
7270 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7271 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7273 2004-05-20 Jim Blandy <jimb@redhat.com>
7275 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7277 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7279 * regset.h: Make prototype const-correct.
7280 * regset.c (regset_xmalloc): Make const-correct.
7282 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7284 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7285 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7286 (symbol_search_name): Declare.
7288 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7289 (iter_name_next_hashed): Ditto.
7290 (iter_name_next_linear): Ditto.
7291 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7293 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7294 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7295 (symbol_search_name): New function.
7297 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7299 * minsyms.c (build_minimal_symbol_hash_tables): Change
7300 test for adding to demangled hash table to check for difference
7301 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7303 2004-05-19 Jim Blandy <jimb@redhat.com>
7305 Use a constructor function to create regset structures.
7306 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7307 (struct regset): Use supply_regset_ftype. Add new
7308 'collect_regset' member.
7309 (regset_xmalloc): New declaration.
7310 * regset.c: New file.
7311 * am64-tdep.c (amd64_regset_from_core_section): Use
7312 regset_xmalloc to construct regset structures.
7313 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7314 * i386-tdep.c (i386_regset_from_core_section): Same.
7315 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7316 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7317 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7318 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7319 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7320 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7321 * Makefile.in (COMMON_OBS): Add regset.o.
7322 (regset.o): New rule.
7324 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7326 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7327 and pthread_cond_wait.c.
7329 2004-05-18 Jim Blandy <jimb@redhat.com>
7331 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7332 before the mach-specific switch, and then let the individual cases
7333 override the defaults, rather than leaving them uninitialized
7334 until the switch and then setting them in each case.
7336 2004-05-18 Randolph Chung <tausq@debian.org>
7338 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7339 millicode functions.
7341 2004-05-18 Randolph Chung <tausq@debian.org>
7343 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7344 references to dld_flags_buffer consistent.
7346 2004-05-18 Randolph Chung <tausq@debian.org>
7348 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7349 it for unwinding the stack.
7351 2004-05-18 Randolph Chung <tausq@debian.org>
7353 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7354 Undefine these so we can overide them using gdbarch.
7356 2004-05-18 Randolph Chung <tausq@debian.org>
7358 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7359 handling for 64-bit HPUX (elf).
7361 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7363 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7365 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7366 * ia64-tdep.c (examine_prologue): Likewise.
7367 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7368 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7370 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7372 * vax-tdep.c (vax_return_value): Implement
7373 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7375 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7377 * vax-tdep.c (vax_return_value): Fix typo.
7379 2004-05-17 Andrew Cagney <cagney@redhat.com>
7381 * MAINTAINERS: Mark Salter was also responsible for
7384 * NEWS: Mention signal fixes.
7386 2004-05-17 Randolph Chung <tausq@debian.org>
7388 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7389 check to see if we are unwinding an export stub. Export stubs clobber
7390 the %rp in the call path and stores the original rp in a stack slot.
7392 2004-05-17 Jim Blandy <jimb@redhat.com>
7394 * MAINTAINERS: Update address for J.T. Conklin.
7396 2004-05-17 Randolph Chung <tausq@debian.org>
7398 * hppa-tdep.c: Remove superfluous #include's.
7399 * Makefile.in (hppa-tdep.o): Update dependencies.
7401 2004-05-17 Randolph Chung <tausq@debian.org>
7403 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7404 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7405 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7406 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7407 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7408 Remove static function declarations.
7410 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7412 * alphabsd-nat.c: Update copyright year.
7413 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7415 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7418 * m68k-tdep.c (m68k_svr4_return_value): Implement
7419 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7421 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7423 * sol-thread.c Update copyright year. Fix various coding
7424 standards violations. Tweak a few comments.
7425 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7428 2004-05-15 Randolph Chung <tausq@debian.org>
7430 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7431 as pointer instead of array reference since HPUX compiler does
7432 not accept unsized array arguments.
7433 * somsolib.c (dld_flags_buffer): Use constant array size.
7435 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7437 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7438 offset with decimal offset.
7439 (amd64obsd_sigcontext_addr): Return correct address for entire
7442 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7443 instead of get_frame_base.
7445 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7446 (fill_gregset): Use regcache_raw_collect.
7448 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7451 * config/sparc/tm-nbsd64.h: Remove file.
7452 * config/tm-sunos.h: Remove file.
7454 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7456 * rs6000-tdep.c (store_param_on_stack_p): New function,
7457 an improved version of some code extracted from skip_prologue().
7458 (skip_prologue): Use store_param_on_stack_p() to detect
7459 instructions saving a parameter on the stack. Detect when r0
7460 is used to save a parameter.
7461 Do not mark "li rx, SIMM" instructions as part of the prologue,
7462 unless the following instruction is also part of the prologue.
7464 2004-05-14 Andrew Cagney <cagney@redhat.com>
7466 * infrun.c (handle_inferior_event): Simplify
7467 STEP_OVER_UNDEBUGGABLE.
7469 * infrun.c (handle_step_into_function): Delete function.
7470 (handle_inferior_event): Inline calls to
7471 handle_step_into_function.
7473 2004-05-14 Jerome Guitton <guitton@gnat.com>
7475 * rs6000-nat.c: Fix a comment.
7477 2004-05-12 David Anderson <davea@sgi.com>
7479 Committed by Jim Blandy <jimb@redhat.com>:
7480 * regcache.c (struct regcache_descr): fix comment spelling.
7482 2004-05-13 J. Brobecker <brobecker@gnat.com>
7484 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7485 Fixes a link link failure.
7487 2004-05-13 J. Brobecker <brobecker@gnat.com>
7489 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7490 error that was causing the build to fail.
7492 2004-05-13 J. Brobecker <brobecker@gnat.com>
7494 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7495 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7497 2004-05-13 Andrew Cagney <cagney@redhat.com>
7499 * infrun.c (handle_inferior_event): Check for
7500 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7501 calls. Update comments.
7503 2004-05-13 Jim Blandy <jimb@redhat.com>
7505 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7506 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7507 (store_regs_user_thread, store_regs_kernel_thread): Use
7508 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7509 * ppc-linux-nat.c (fill_gregset): Same.
7510 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7511 (ppc_linux_sigtramp_cache): Same.
7512 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7513 (ppcnbsd_sigtramp_cache_init): Same.
7514 * rs6000-nat.c (fetch_core_registers): Same.
7515 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7516 (rs6000_frame_cache): Same.
7518 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7519 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7520 of assuming that the gprs are numbered starting with zero.
7521 * ppc-linux-nat.c (fill_gregset): Same.
7522 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7523 * ppcnbsd-nat.c (getregs_supplies): Same.
7524 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7525 * rs6000-nat.c (fetch_core_registers): Same.
7526 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7528 2004-05-07 Michael Snyder <msnyder@redhat.com>
7530 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7531 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7533 2004-05-13 Andrew Cagney <cagney@redhat.com>
7535 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7537 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7539 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7540 base_address for shared libraries.
7542 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7544 * MAINTAINERS (write after approval): Add myself.
7546 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7548 * breakpoint.c (bpstat_stop_status): Add new argument
7549 STOPPED_BY_WATCHPOINT. Use it instead of testing
7550 target_stopped_data_address agaist 0 to check whether
7551 or not we stopped due to a hardware watchpoint.
7552 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7553 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7556 2004-05-12 Jim Blandy <jimb@redhat.com>
7558 * configure.in: When checking whether we should use the -bbigtoc
7559 option, don't forget to restore the original value of LDFLAGS.
7560 * configure: Regenerated.
7562 2004-05-12 Andrew Cagney <cagney@redhat.com>
7564 * thread.c (load_infrun_state): Delete step_sp.
7565 * infrun.c (context_switch): Ditto.
7566 * inferior.h (step_sp): Ditto.
7567 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7568 * gdbthread.h (struct thread_info, save_infrun_state)
7569 (restore_infrun_state): Ditto.
7571 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7573 * MAINTAINERS (write after approval): Add myself.
7575 2004-05-12 Andrew Cagney <cagney@redhat.com>
7577 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7578 eliminate reference to step_sp.
7579 (struct execution_control_state, init_execution_control_state)
7580 (handle_inferior_event, keep_going): Delete update_step_sp and
7582 * infcmd.c (step_sp): Note that variable is unused.
7584 2004-05-11 Andrew Cagney <cagney@redhat.com>
7586 * infrun.c (step_over_function): Delete function.
7587 (handle_step_into_function): Use insert_step_resume_breakpoint.
7588 (insert_step_resume_breakpoint): Fix assertion.
7590 2004-05-11 Nick Roberts <nickrob@gnu.org>
7592 * utils.c (defaulted_query): Just use the normal query input type
7593 when printing the annotations.
7595 2004-05-11 Andrew Cagney <cagney@redhat.com>
7597 * infrun.c (handle_inferior_event): Simplify code handling
7598 step-into or return-from a signal trampoline.
7600 2004-05-11 Andrew Cagney <cagney@redhat.com>
7602 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7603 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7605 2004-05-10 Jim Blandy <jimb@redhat.com>
7607 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7608 with a call to internal_error.
7610 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7611 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7612 processor variant lacks those registers.
7613 (ppc_floating_point_unit_p): Change description to make it clear
7614 that this returns info about the ISA, not the ABI.
7615 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7616 return true or false by checking tdep->ppc_fp0_regnum and
7617 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7618 arch/mach switching done in rs6000_gdbarch_init; it's better to
7619 keep that logic there, and just check the results here.
7620 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7621 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7622 floating-point registers.
7623 (ppc_supply_fpregset, ppc_collect_fpregset)
7624 (rs6000_push_dummy_call, rs6000_extract_return_value)
7625 (rs6000_store_return_value): Assert that we have floating-point
7627 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7628 (rs6000_frame_cache): Don't note the locations at which
7629 floating-point registers were saved if we have no fprs.
7630 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7632 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7633 (store_regs_user_thread, store_regs_kernel_thread): Only call
7634 supply_fprs / fill_fprs if we actually have floating-point
7636 (special_register_p): Check ppc_fpscr_regnum before matching
7638 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7639 supply / collect fpscr if we don't have it.
7640 * ppc-bdm.c: #include "gdb_assert.h".
7641 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7642 have floating-point registers, since I can't test this code on
7643 FP-free systems to adapt it.
7644 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7645 fpscr and floating point register numbers if they don't exist.
7646 (fetch_register): Assert that we have floating-point registers
7647 before we reach the code that handles them.
7648 (store_register): Same. And use tdep instead of calling
7650 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7652 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7653 fprs and fpscr if we don't have them.
7654 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7656 * ppcnbsd-nat.c: #include "gdb_assert.h".
7657 (getfpregs_supplies): Assert that we have floating-point registers.
7658 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7659 * ppcobsd-tdep.c: #include "gdb_assert.h".
7660 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7661 have floating-point registers.
7662 * rs6000-nat.c (regmap): Don't match against the fpscr and
7663 floating point register numbers if they don't exist.
7664 (fetch_inferior_registers, store_inferior_registers,
7665 fetch_core_registers): Only fetch / store / supply the
7666 floating-point registers and the fpscr if we have them.
7667 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7668 (ppcobsd-tdep.o): Update dependencies.
7670 2004-05-10 Andrew Cagney <cagney@redhat.com>
7672 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7673 (context_switch): Do not switch through_sigtramp_breakpoint.
7674 * gdbthread.h (save_infrun_state, load_infrun_state)
7675 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7676 and structure member.
7677 * thread.c (load_infrun_state, save_infrun_state): Update.
7679 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7681 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7683 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7685 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7687 * aclocal.m4: Regenerate.
7689 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7691 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7693 2004-05-10 Andrew Cagney <cagney@redhat.com>
7695 * infrun.c (check_sigtramp2): Delete function.
7696 (handle_inferior_event): When single stepping, and taking a
7697 signal, set a breakpoint at the signal return address. Delete
7698 redundant calls to check_sigtramp2.
7699 (insert_step_resume_breakpoint): New function.
7700 (through_sigtramp_breakpoint, handle_inferior_event)
7701 (follow_exec, wait_for_inferior, fetch_inferior_event)
7702 (currently_stepping, keep_going): Delete most uses of
7703 through_sigtramp_breakpoint, not that it should be deleted.
7704 (delete_breakpoint_current_contents): Delete function.
7706 2004-05-10 Randolph Chung <tausq@debian.org>
7708 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7710 * config/pa/tm-linux.h: New file.
7712 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7714 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7715 of prefixes. Don't print the prefix twice in the CLI.
7717 2004-05-10 Jim Blandy <jimb@redhat.com>
7719 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7720 collect all the gprs.
7722 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7723 loop collecting gprs.
7725 2004-05-09 Andrew Cagney <cagney@redhat.com>
7727 * remote-vx.c (net_step): Delete step-range code.
7728 * remote.c (remote_resume, init_all_packet_configs)
7729 (set_remote_protocol_E_packet_cmd)
7730 (show_remote_protocol_E_packet_cmd)
7731 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7732 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7733 (show_remote_protocol_e_packet_cmd): Ditto.
7735 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7737 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7739 * hppa-tdep.h: Update copyright year.
7740 (struct trad_frame_saved_reg): Add opaque declaration.
7742 * amd64-tdep.c (amd64_return_value): Implement
7743 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7745 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7746 (m68k_value_to_register): New functions.
7747 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7750 * defs.h (enum return_value_convention): Add
7751 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7752 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7753 * infcmd.c (legacy_return_value): New function.
7754 (print_return_value): Rwerite to implement
7755 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7756 * values.c (using_struct_return): Check for inequality to
7757 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7758 RETURN_VALUE_STRUCT_CONVENTION.
7759 * i386-tdep.c (i386_return_value): Implement
7760 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7762 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7763 include "symtab.h", "opcode/vax.h" and "inferior.h".
7764 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7765 to read_memory_unsigned_integer.
7766 (vax_gdbarch_init): Reorder.
7767 (_initialize_vax_tdep): Spell out prototype.
7768 * Makefile.in (vax-tdep.o): Update dependencies.
7770 2004-05-08 Andrew Cagney <cagney@redhat.com>
7772 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7773 * target.c (target_detach, target_disconnect): Ditto.
7775 * infcall.c (call_function_by_hand): When no
7776 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7777 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7778 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7779 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7780 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7782 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7783 * gdbarch.h, gdbarch.c: Re-generate.
7784 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7785 deprecated_fix_call_dummy.
7786 * v850-tdep.c (v850_gdbarch_init): Ditto.
7787 * infcall.c (call_function_by_hand): Do not call
7788 DEPRECATED_FIX_CALL_DUMMY.
7790 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7791 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7792 * gdbarch.h, gdbarch.c: Re-generate.
7793 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7794 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7795 deprecated_sizeof_call_dummy_words.
7796 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7797 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7798 * v850-tdep.c (v850_gdbarch_init): Ditto.
7799 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7800 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7801 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7802 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7803 * arch-utils.h (legacy_call_dummy_words)
7804 (legacy_sizeof_call_dummy_words): Delete declarations.
7805 * arch-utils.c (legacy_call_dummy_words)
7806 (legacy_sizeof_call_dummy_words): Delete variables.
7808 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7809 * gdbarch.h, gdbarch.c: Re-generate.
7810 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7811 * infcall.c (call_function_by_hand): Eliminate call to
7812 DEPRECATED_PUSH_DUMMY_FRAME.
7813 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7815 (ns32k_push_dummy_frame): Delete function.
7817 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7818 deprecated_call_dummy_breakpoint_offset or
7819 deprecated_call_dummy_start_offset.
7820 * dummy-frame.c, arm-tdep.c: Update comments.
7821 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7822 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7823 * gdbarch.h, gdbarch.c: Re-generate.
7825 * infcall.c (legacy_push_dummy_code): Delete function.
7826 (push_dummy_code): Delete call.
7828 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7829 * gdbarch.h, gdbarch.c: Re-generate.
7830 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7831 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7832 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7833 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7835 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7836 (struct frame_info): Delete opaque declaration.
7837 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7838 * frame.c (get_frame_type): Delete call.
7840 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7842 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7843 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7845 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7847 * alphanbsd-tdep.c: Include "gdb_string.h".
7848 * armnbsd-tdep.c: Update copyright year.
7849 Include "gdb_string.h".
7850 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7853 * delta68-nat.c: Remove file.
7854 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7855 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7856 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7857 (delta68-nat.o): Remove dependency.
7859 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7861 (m68k_gdbarch_init): Don't set
7862 deprecated_frameless_function_invocation.
7864 2004-05-07 Randolph Chung <tausq@debian.org>
7866 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7867 read_memory_nobpt for code reading when doing frame unwinding.
7868 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7870 2004-05-07 Randolph Chung <tausq@debian.org>
7872 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7873 instead of sp, handle sigaltstack case.
7874 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7875 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7876 signal handler and not that of the caller.
7877 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7878 hppa_linux_sigtramp_find_sigcontext.
7880 2004-05-07 Randolph Chung <tausq@debian.org>
7882 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7884 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7885 * hppa-linux-nat.c (fetch_register, store_register): Define.
7886 (fetch_inferior_registers, store_inferior_registers): Define.
7887 (supply_gregset): Add comment and clean up some unneeded code.
7888 (fill_gregset): Add comment and fix so that it saves registers in
7889 the right place in the gregset.
7890 (fill_fpregset): Fix buffer overrun problem.
7891 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7893 2004-05-07 Randolph Chung <tausq@debian.org>
7895 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7896 do common handling of the pcoqt register.
7897 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7898 to use helper function.
7899 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7900 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7901 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7902 generic fallback unwinder when all else fails.
7903 (hppa_gdbarch_init): Add fallback sniffer.
7904 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7905 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7906 to use helper function.
7908 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7910 * config/djgpp/fnchange.lst: Add translation rules for
7911 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7913 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7915 * frame.c (get_prev_frame_1): Work around GCC bug.
7916 * frame.h: Add comment about GCC bug.
7918 2004-05-07 Andrew Cagney <cagney@redhat.com>
7920 * observer.c: Include "commands.h" and "gdbcmd.h".
7921 (observer_debug, _initialize_observer): Add the
7922 command "set/show debug observer".
7923 * observer.sh: When observer debugging, log notify calls.
7924 * Makefile.in (observer.o): Update dependencies.
7926 2004-05-07 Jason Molenda (jmolenda@apple.com)
7928 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7930 2004-05-07 Jim Blandy <jimb@redhat.com>
7932 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7933 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7934 to recognize gpr regnums, instead of assuming that
7935 tdep->ppc_fp0_regnum marks the end of the general-purpose
7938 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7939 the given architecture has floating-point registers.
7941 2004-05-07 Andrew Cagney <cagney@redhat.com>
7943 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7945 * gdbarch.h, gdbarch.c: Re-generate.
7946 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7947 deprecated_use_generic_dummy_frames.
7949 2004-05-07 Brian Ford <ford@vss.fsi.com>
7951 * NEWS: Mention Cygwin DWARF 2 support.
7953 2004-05-07 Andrew Cagney <cagney@redhat.com>
7955 * objfiles.h (struct entry_info): Delete unused fields
7956 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7957 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7958 * mipsread.c (mipscoff_symfile_read): Update.
7959 * mdebugread.c (parse_partial_symbols): Update.
7960 * dwarfread.c (read_file_scope): Update.
7961 * dwarf2read.c (read_file_scope): Update.
7962 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7963 * coffread.c (complete_symtab): Update.
7965 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7967 * infcall.c (_initialize_infcall): Fix typo.
7969 2004-05-07 Andrew Cagney <cagney@redhat.com>
7971 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7972 * command.h (add_setshow_zinteger_cmd): Declare.
7974 2004-05-06 Randolph Chung <tausq@debian.org>
7976 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7977 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7978 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7979 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7980 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7981 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7982 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7984 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7985 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7986 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7987 (hppa64_hpux_frame_find_saved_regs_in_sig)
7988 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7989 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7990 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7991 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7992 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7993 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7994 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7995 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7996 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7997 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7998 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7999 (hppa32_register_type, hppa_cannot_store_register)
8000 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8001 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8002 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8003 * pa64solib.c (pa64_solib_have_load_event)
8004 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8005 (pa64_solib_unloaded_library_pathname): Likewise.
8006 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8007 (som_solib_library_pathname): Likewise.
8009 2004-05-05 Jim Ingham <jingham@apple.com>
8011 * breakpoint.c (create_breakpoints): Copy the ignore count and
8012 thread id over from the pended breakpoint to the actual
8015 2004-05-05 Andrew Cagney <cagney@redhat.com>
8017 * gdbarch.sh (PARM_BOUNDARY): Delete.
8018 gdbarch.h, gdbarch.c: Re-generate.
8019 * valops.c (PARM_BOUNDARY): Delete macro.
8020 (value_push): Delete PARM_BOUNDARY code.
8021 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8023 2004-05-04 Jim Blandy <jimb@redhat.com>
8025 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8026 Don't assume that the gprs, fprs, and UISA sprs are
8027 contiguous, start at register number zero, and end with fpscr.
8028 Instead, use the numbers from the tdep structure.
8030 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8031 should no longer be used in code specific to the RS6000 and its
8033 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8034 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8035 tdep->ppc_fp0_regnum.
8036 (ppc_supply_fpregset, ppc_collect_fpregset)
8037 (rs6000_push_dummy_call, rs6000_extract_return_value)
8038 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8039 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8041 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8042 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8044 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8045 bdm_ppc_store_registers): Same.
8046 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8047 (store_register, fill_fpregset): Same.
8048 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8049 (ppc_linux_supply_fpregset): Same.
8050 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8051 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8053 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8054 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8055 ppc64_sysv_abi_return_value): Same.
8056 * rs6000-nat.c (regmap, fetch_inferior_registers)
8057 (store_inferior_registers, fetch_core_registers): Same.
8059 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8061 * m68knbsd-nat.c: Remove file.
8062 * m68knbsd-tdep.c: Remove file.
8063 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8065 * configure.host: Add m68k-*-netbsdelf*.
8066 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8067 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8068 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8070 * config/m68k/nbsdelf.mh: New file.
8071 * config/m68k/nbsd.mt: New file.
8072 * config/m68k/nbsdaout.mt: Remove file.
8073 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8074 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8075 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8076 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8077 (use_struct_convention): Remove prototype.
8078 (USE_STRUCT_CONVENTION): Remove define.
8079 * config/m68k/xm-nbsd.h: Remove file.
8081 2004-05-04 Michael Snyder <msnyder@redhat.com>
8083 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8084 reg_struct_return method (as gcc usually does for cross targets).
8086 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8088 Committed by Andrew Cagney.
8089 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8090 alignment padding when accessing ucontext struct members.
8092 2004-05-04 Jim Blandy <jimb@redhat.com>
8094 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8095 'ppc_gplast_regnum' member.
8096 (ppc_num_gprs): New enum constant.
8097 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8098 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8099 * rs6000-nat.c (regmap, fetch_inferior_registers,
8100 store_inferior_registers): Same.
8101 * rs6000-tdep.c (e500_pseudo_register_read)
8102 (e500_pseudo_register_write): Same.
8103 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8105 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8106 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8107 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8108 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8110 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8112 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8113 * rs6000-nat.c (regmap, fetch_inferior_registers)
8114 (store_inferior_registers): Same.
8116 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8119 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8121 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8122 failure detected by recent versions of GCC.
8123 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8124 to be consistent with the usage in dwarf2_create_include_psymtab.
8126 2004-05-03 Michael Snyder <msnyder@redhat.com>
8128 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8129 (heuristic_proc_start): Whitespace cleanup.
8131 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8133 * sun3-nat.c: Remove file.
8134 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8136 (ALLDEPFILES): Remove sun3-nat.c.
8137 (sun3-nat.o): Remove dependencies.
8139 * i386-interix-nat.c, i386-interix-tdep.c,
8140 config/i386/nm-interix.h, config/i386/interix.mh,
8141 config/i386/interix.mt: Remove files.
8142 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8145 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8147 * m68k-tdep.h (struct gdbarch_tdep): Add member
8148 struct_value_regnum.
8149 (m68k_svr4_init_abi): New prototype.
8150 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8151 different calling conventions.
8152 (m68k_extract_return_value): Remove code dealing with single-field
8154 (m68k_store_return_value): Remove code dealing with single-field
8155 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8156 (m68k_extract_struct_value_address): Remove function.
8157 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8158 (m68k_reg_struct_return_p, m68k_return_value)
8159 (m68k_svr4_return_value): New functions.
8160 (m68k_use_struct_convention): Remove function.
8161 (m68k_push_dummy_call): Use new struct_value_regnum member of
8162 `struct gdbarch_tdep' instead of hardcoded register number to
8164 (m68k_svr4_init_abi): New function.
8165 (m68k_gdbarch_init): Don't set extract_return_value,
8166 store_return_values, deprecated_extract_struct_value_address and
8167 use_struct_convention. Set return_value instead. Initialize new
8168 struct_value_regnum member of `struct gdbarch_tdep'.
8169 * m68klinux-tdep.c: Update copyright year.
8170 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8171 (m68k_linux_extract_struct_value_address): Remove function.
8172 (m68k_linux_init_abi): Don't set extract_return_value,
8173 store_return_values, deprecated_extract_struct_value_address and
8174 use_struct_convention. Call m68k_svr4_init_abi but override the
8175 new struct_value_regnum member of `struct gdbarch_tdep'.
8176 * Makefile.in (m68k-tdep.o): Update dependencies.
8178 2004-05-03 J. Brobecker <brobecker@gnat.com>
8180 * dwarf2read.c (line_header): Add new included_p field in
8182 (partial_die_info): New field has_stmt_list. New field line_offset.
8183 (dwarf2_create_include_psymtab): New function.
8184 (dwarf2_build_include_psymtabs): New function.
8185 (add_file_name): Add forward declaration. Initialize new field.
8186 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8187 to be able to determine the list of files included by the
8188 given unit, and build their associated psymtabs.
8189 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8191 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8192 (read_file_scope): Update call to dwarf_decode_lines.
8193 (read_partial_die): Handle DW_AT_stmt_list attributes.
8195 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8198 * configure.in: Revert special case for osf5.*.
8199 * configure: Regenerate.
8201 2004-05-02 Jim Blandy <jimb@redhat.com>
8203 Move the symbol-file-from-memory functions into their own file.
8204 * symfile-mem.c, symfile-mem.h: New files.
8205 * symfile.c (symbol_file_add_from_bfd): New function.
8206 (symbol_file_add): Call symbol_file_add_from_bfd.
8207 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8208 Moved to symfile-mem.c.
8209 (_initialize_symfile): Move definition of
8210 add-symbol-file-from-memory command to symfile-mem.c.
8211 * symfile.h (symbol_file_add_from_bfd): New declaration.
8212 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8213 * config/powerpc/linux.mt (TDEPFILES): Same.
8214 * Makefile.in (SFILES): Add symfile-mem.c.
8215 (symfile_mem_h): New variable.
8216 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8217 (symfile-mem.o): New rule.
8219 2004-05-01 Andrew Cagney <cagney@redhat.com>
8221 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8222 frame_find_by_id instead of frame_relative_level.
8223 (do_enable_breakpoint): Ditto.
8224 * thread.c: Update copyright.
8225 (info_threads_command): Ditto, simplify.
8227 * frame.c (deprecated_generic_get_saved_register): Delete
8228 function, moved to "xstormy16-tdep.c".
8229 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8230 deprecated_generic_get_saved_register from "frame.c".
8231 (xstormy16_frame_saved_register): Call
8232 xstormy16_get_saved_register.
8233 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8235 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8236 * frame.h (deprecated_generic_get_saved_register): Delete.
8238 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8240 * dwarfread.c: Update documentation on the state of dwarf-1.
8242 2004-05-01 Andrew Cagney <cagney@redhat.com>
8244 * stack.c (select_frame_command): Delete call to
8245 frame_relative_level.
8246 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8248 (frame_info): Do not print FRAMELESS.
8249 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8250 (catch_info): Delete #if0 code.
8252 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8253 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8254 of frame_relative_level.
8255 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8257 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8258 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8259 frame_relative_level.
8261 * frame.h (deprecated_set_frame_type): Delete declaration.
8262 * frame.c (deprecated_set_frame_type): Delete function, update
8265 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8266 * gdbarch.h, gdbarch.c: Re-generate.
8267 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8268 (shnbsd_pc_in_sigtramp): Delete.
8269 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8271 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8273 * frame.h: Update comments.
8274 * ppc-linux-tdep.c: Update comments.
8275 * breakpoint.c (bpstat_what): Update comments.
8277 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8278 m68klinux-tdep.o's dependencies, were previously added to
8281 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8282 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8283 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8284 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8285 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8287 * Makefile.in (m68klinux-nat.o): Update dependencies.
8288 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8289 (m68k_linux_sigtramp_frame_cache)
8290 (m68k_linux_sigtramp_frame_this_id)
8291 (m68k_linux_sigtramp_frame_prev_register)
8292 (m68k_linux_sigtramp_frame_unwind)
8293 (m68k_linux_sigtramp_frame_sniffer)
8294 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8295 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8296 names, use trad-frame.h.
8297 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8298 (struct m68k_sigtramp_info): Delete.
8299 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8300 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8301 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8302 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8305 * infrun.c (check_sigtramp2): Delete check for
8306 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8308 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8310 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8312 2004-05-01 Andrew Cagney <cagney@redhat.com>
8314 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8315 (frv_linux_sigtramp_frame_cache)
8316 (frv_linux_sigtramp_frame_this_id)
8317 (frv_linux_sigtramp_frame_prev_register)
8318 (frv_linux_sigtramp_frame_unwind)
8319 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8320 include "linux" in function and variable names, directly call
8321 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8322 the latest trad-frame code.
8323 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8324 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8325 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8326 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8327 * frv-tdep.c (frv_sigtramp_frame_cache)
8328 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8329 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8331 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8332 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8333 (frv_set_sigcontext_reg_addr): Delete function.
8335 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8336 (DEPRECATED_SIGTRAMP_END): Delete.
8337 * gdbarch.h, gdbarch.c: Re-generate.
8338 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8339 * config/vax/tm-vaxbsd.h: Update copyright.
8340 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8341 (DEPRECATED_IN_SIGTRAMP): Define.
8342 * config/m68k/tm-nbsd.h: Update copyright.
8343 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8344 (DEPRECATED_IN_SIGTRAMP): Define.
8346 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8348 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8349 encondings. Fixes PR gdb/1628.
8351 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8352 DW_CFA_restore state without a matching DW_CFA_remember_state
8353 instead of aborting. Fixes PR backtrace/1589.
8355 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8357 * MAINTAINERS: Add self as AIX maintainer.
8358 Update my e-mail address in write-after-approval section.
8360 2004-04-30 Andrew Cagney <cagney@redhat.com>
8362 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8363 (legacy_get_prev_frame): Ditto.
8365 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8366 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8367 * mipsread.c (sigtramp_address): Delete extern variable.
8368 (mipscoff_new_init): Delete reference.
8369 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8370 (fixup_sigtramp): Delete function.
8371 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8372 (fixup_sigtramp): Delete declarations.
8374 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8375 deprecated_pc_in_sigtramp.
8376 (ppcnbsd_pc_in_sigtramp): Delete function.
8378 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8380 * config/m68k/nm-nbsd.h: Tweak comments.
8381 * config/m68k/nm-nbsdaout.h: Likewise.
8383 2004-04-30 Andrew Cagney <cagney@redhat.com>
8385 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8386 legacy_pc_in_sigtramp.
8387 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8389 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8391 Add OpenBSD/m68k support.
8392 * NEWS (New native configurations): Mention OpenBSD/m68k.
8393 * m68kbsd-tdep.c: New file.
8394 * m68kbsd-nat.c: New file.
8395 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8396 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8397 * configure.host: Add m68k-*-openbsd.
8398 * configure.tgt: Add m68k-*-openbsd.
8399 * config/m68k/tm-obsd.h: New file.
8400 * config/m68k/obsd.mt: New file.
8401 * config/m68k/obsd.mh: New file.
8402 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8405 2004-04-30 Andrew Cagney <cagney@redhat.com>
8407 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8408 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8410 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8412 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8413 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8415 2004-04-30 Brian Ford <ford@vss.fsi.com>
8417 Revert 2004-04-16 change.
8418 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8419 (i386_coff_init_abi): Remove.
8420 * i386-tdep.h (i386_coff_init_abi): Remove.
8421 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8423 2004-04-30 Andrew Cagney <cagney@redhat.com>
8425 * blockframe.c (find_pc_partial_function): Delete use of
8426 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8427 DEPRECATED_SIGTRAMP_END.
8429 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8430 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8431 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8432 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8433 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8435 * defs.h (deprecated_inside_entry_file): Delete declaration.
8436 * blockframe.c (deprecated_inside_entry_file): Delete function.
8437 (legacy_frame_chain_valid): Delete call.
8438 * sh64-tdep.c (sh64_frame_chain): Delete call.
8439 * objfiles.h: Update comments.
8440 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8442 * frame.c (get_prev_frame): Delete call, update comments.
8444 2004-04-30 Brian Ford <ford@vss.fsi.com>
8446 * MAINTAINERS (Write After Approval): Add myself.
8448 2004-04-30 Andrew Cagney <cagney@redhat.com>
8450 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8451 * gdbarch.h, gdbarch.c: Re-generate.
8452 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8455 2004-04-30 Andrew Cagney <cagney@redhat.com>
8457 * gdb-events.sh (selected_thread_changed)
8458 (selected_frame_level_changed, target_changed): Delete.
8459 * gdb-events.h, gdb-events.c: Re-generate.
8460 * valops.c (value_assign): Update.
8461 * stack.c (select_frame_command, up_silently_base)
8462 (down_silently_base): Update.
8464 2004-04-29 Andrew Cagney <cagney@redhat.com>
8466 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8467 registers correctly.
8468 (print_gp_register_row, mips32_heuristic_proc_desc)
8469 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8470 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8471 references to mips_isa_regsize.
8473 2004-04-29 Andrew Cagney <cagney@redhat.com>
8475 * mips-tdep.c (struct gdbarch_tdep): Delete
8476 mips_fp_register_double.
8477 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8479 (mips_gdbarch_init): Do not set mips_fp_register_double.
8480 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8482 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8484 Committed by Andrew Cagney.
8485 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8488 2004-04-29 Andrew Cagney <cagney@redhat.com>
8490 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8491 gdbarch, use mips_abi, update callers.
8492 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8493 mips_abi_regsize, update callers.
8494 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8495 mips_default_abi_regsize.
8496 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8497 mips_default_abi_regsize.
8499 2004-04-29 Andrew Cagney <cagney@redhat.com>
8501 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8502 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8503 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8504 mips_default_abi_regsize.
8505 (mips_isa_regsize): Rename mips_regisze.
8506 * mipsnbsd-tdep.c: Update.
8507 * mips-linux-tdep.c: Update.
8508 * irix5-nat.c: Update.
8509 * mips-tdep.h (mips_isa_regsize): Update.
8511 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8512 Delete all disabled code.
8513 * gdb-events.h, gdb-events.c: Re-generate.
8515 2004-04-19 Jerome Guitton <guitton@gnat.com>
8516 Mark Kettenis <kettenis@gnu.org>
8518 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8519 the function begins with a branch instruction.
8521 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8523 * i386-tdep.c: Fix spelling mistakes.
8525 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8526 Andrew Cagney <cagney@redhat.com>
8528 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8530 * acconfig.h: Provide default _KMEMUSER value.
8531 * config.in, configure: Re-generate.
8532 * NEWS: Mention fix.
8534 2004-04-24 Randolph Chung <tausq@debian.org>
8536 * configure.host (hppa*-*-linux*): New target.
8537 * configure.tgt (hppa*-*-linux*): Likewise.
8538 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8539 gdbarch_init_osabi() call earlier so that osabi-specific frame
8540 unwinders can be registered first.
8541 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8543 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8544 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8545 * config/pa/linux.mh: New file.
8546 * config/pa/linux.mt: New file.
8547 * config/pa/nm-linux.h: New file.
8548 * config/pa/xm-linux.h: New file.
8549 * hppa-linux-nat.c: New file.
8550 * hppa-linux-tdep.c: New file.
8552 2004-04-28 Randolph Chung <tausq@debian.org>
8554 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8556 (hppa32_push_dummy_call): Fix small struct and floating point argument
8557 passing, and make sure the stack frame is properly aligned.
8559 2004-04-28 Andrew Cagney <cagney@redhat.com>
8561 * stack.c (print_stack_frame): Fix description.
8563 * NEWS: Mention gdb/gdbserver/configure execute permission
8564 changed. PR server/519.
8566 2004-04-28 Andrew Cagney <cagney@redhat.com>
8568 * stack.c (print_stack_frame_stub): Delete declaration.
8569 (struct print_stack_frame_args, print_stack_frame)
8570 (print_frame_info, print_frame): Replace "source" with print what.
8571 Replace "print" with "print_level". Replace "args" with
8573 * frame.h (show_and_print_stack_frame, print_stack_frame)
8574 (print_frame_info): Update declarations.
8575 * stack.c (select_and_print_frame, frame_command)
8576 (current_frame_command, up_command, down_command): Update calls -
8577 use get_selected_frame, pass "enum print_what" for source, do not
8578 call frame_relative_level.
8579 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8580 * remote-rdp.c (remote_rdp_open): Ditto.
8581 * remote-mips.c (common_open): Ditto.
8582 * remote-e7000.c (e7000_start_remote): Ditto.
8583 * ocd.c (ocd_start_remote): Ditto.
8584 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8585 * infrun.c (normal_stop): Ditto.
8586 * inflow.c (kill_command): Ditto.
8587 * infcmd.c (finish_command): Ditto.
8588 * corelow.c (core_open): Ditto.
8589 * tracepoint.c (finish_tfind_command): Ditto.
8590 * thread.c (info_threads_command, info_threads_command)
8591 (restore_current_thread, do_captured_thread_select): Ditto.
8592 * ada-tasks.c (task_command): Ditto.
8594 2004-04-26 Orjan Friberg <orjanf@axis.com>
8596 * frame.c: Include "observer.h".
8597 (frame_observer_target_changed): New function.
8598 (_initialize_frame): Attach target_changed observer.
8599 * regcache.c: Include "observer.h".
8600 (regcache_observer_target_changed): New function.
8601 (_initialize_regcache): Attach target_changed observer.
8602 * valops.c: Include "observer.h".
8603 (value_assign): Notify target_changed event when modifying register.
8604 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8606 2004-04-26 Orjan Friberg <orjanf@axis.com>
8608 From Paul Koning <pkoning@equallogic.com>:
8609 * breakpoint.c (free_valchain): New function.
8610 (insert_bp_location, delete_breakpoint): Use free_valchain.
8611 (remove_breakpoint): Do not remove the valchain.
8612 (bpstat_stop_status): If not stopped by watchpoint, skip
8613 watchpoints when generating stop status list.
8614 * infrun.c (handle_inferior_event): Make
8615 stepped_after_stopped_by_watchpoint a global variable.
8616 * remote.c (remote_stopped_data_address): Return watch data
8617 address rather than zero if stepped_after_stopped_by_watchpoint is
8620 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8623 * configure.in: Check for curses after termcap.
8624 On osf5.*, do not check for ncurses.
8625 * configure: Regenerate.
8627 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8629 * ppcobsd-nat.c: Include "ppc-tdep.h".
8630 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8632 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8633 Fixes PR tdep/1623 and PR tdep/1624.
8635 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8637 * xmodem.h, xmodem.c: Remove files.
8638 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8640 2004-04-23 Randolph Chung <tausq@debian.org>
8642 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8643 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8644 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8645 for handling stackless frames.
8646 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8648 2004-04-23 Randolph Chung <tausq@debian.org>
8650 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8651 starts at a pc before the frame is created.
8653 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8655 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8657 2004-04-23 Jerome Guitton <guitton@gnat.com>
8659 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8660 use convert_typed_floating to get the appropriate format.
8662 2004-04-22 Randolph Chung <tausq@debian.org>
8664 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8665 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8666 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8667 (hppa_sign_extend): Add prototype.
8668 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8669 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8670 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8671 hppa targets will also use these functions.
8672 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8673 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8674 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8675 (hppa_gdbarch_init): Remove gdbarch setting of
8676 skip_trampoline_code, in_solib_call_trampoline and
8677 in_solib_return_trampoline.
8678 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8679 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8680 hppa_in_solib_call_trampoline.
8681 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8682 Moved from hppa-tdep.c.
8683 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8684 in_solib_call_trampoline and in_solib_return_trampoline.
8686 2004-04-22 Randolph Chung <tausq@debian.org>
8688 * hppa-tdep.c (hppa_debug): New variable.
8689 (find_unwind_entry, hppa_frame_cache): Add debug output.
8690 (_initialize_hppa_tdep): Add command to set debug flag.
8692 2004-04-22 Andrew Cagney <cagney@redhat.com>
8694 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8696 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8697 signal trampoline unwinder.
8698 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8700 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8702 Add OpenBSD/powerpc support.
8703 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8704 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8705 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8706 (ppc_collect_fpregset): New prototypes.
8707 * ppcobsd-nat.c: New file.
8708 * ppcobsd-tdep.c: New file.
8709 * ppcobsd-tdep.h: New file.
8710 * rs6000-tdep.c: Include "regset.h".
8711 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8712 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8714 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8715 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8716 (rs6000-tdep.o): Update dependencies.
8717 * configure.host: Add powerpc-*-openbsd.
8718 * configure.tgt: Add powerpc-*-openbsd.
8719 * config/powerpc/obsd.mh: New file.
8720 * config/powerpc/nm-obsd.h: New file.
8721 * config/powerpc/obsd.mt: New file.
8723 2004-04-22 Andrew Cagney <cagney@redhat.com>
8725 * frame.h (show_frame_info): Delete declaration.
8727 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8728 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8729 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8730 * frv-tdep.c (frv_frame_this_id): Ditto.
8731 * avr-tdep.c (avr_frame_this_id): Ditto.
8733 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8735 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8737 2004-04-22 Jim Blandy <jimb@redhat.com>
8739 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8740 register number zero.
8742 2004-04-21 Michael Snyder <msnyder@redhat.com>
8744 * mips-tdep.c (heuristic_proc_start):
8745 Warning() already prefixes "Warning: ".
8747 2004-04-21 Andrew Cagney <cagney@redhat.com>
8749 * annotate.h (deprecated_annotate_starting_hook)
8750 (deprecated_annotate_stopped_hook)
8751 (deprecated_annotate_exited_hook)
8752 (deprecated_annotate_signal_hook)
8753 (deprecated_annotate_signalled_hook): Deprecate.
8754 * tracepoint.h (deprecated_create_tracepoint_hook)
8755 (deprecated_delete_tracepoint_hook)
8756 (deprecated_modify_tracepoint_hook)
8757 (deprecated_trace_find_hook)
8758 (deprecated_trace_start_stop_hook): Deprecate.
8759 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8760 * remote.h (deprecated_target_resume_hook)
8761 (deprecated_target_wait_loop_hook): Deprecate.
8762 * gdbcore.h (deprecated_exec_file_display_hook)
8763 (deprecated_file_changed_hook): Deprecate.
8764 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8765 * defs.h (deprecated_modify_breakpoint_hook)
8766 (deprecated_command_loop_hook, deprecated_show_load_progress)
8767 (deprecated_print_frame_info_listing_hook)
8768 (deprecated_query_hook, deprecated_warning_hook)
8769 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8770 (deprecated_delete_breakpoint_hook)
8771 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8772 (deprecated_readline_begin_hook, deprecated_readline_hook)
8773 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8774 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8775 (deprecated_context_hook, deprecated_target_wait_hook)
8776 (deprecated_attach_hook, deprecated_detach_hook)
8777 (deprecated_call_command_hook, deprecated_set_hook)
8778 (deprecated_error_hook, deprecated_error_begin_hook)
8779 (deprecated_ui_load_progress_hook): Deprecate.
8780 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8781 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8782 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8783 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8784 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8785 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8786 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8787 * annotate.c, aix-thread.c: Update.
8789 2004-04-21 Andrew Cagney <cagney@redhat.com>
8791 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8792 * vaxnbsd-tdep.c: Include "gdb_string.h".
8794 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8795 (add_symbol_file_from_memory_command): #if 0 function body, call
8798 2004-04-21 Andrew Cagney <cagney@redhat.com>
8800 * gdbcore.h: Update copyright.
8801 (deprecated_add_core_fns): Rename add_core_fns.
8802 * win32-nat.c (_initialize_core_win32): Update.
8803 * sun3-nat.c (_initialize_core_sun3): Update.
8804 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8805 * rs6000-nat.c (_initialize_core_rs6000): Update.
8806 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8807 * nto-tdep.c (_initialize_nto_tdep): Update.
8808 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8809 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8810 * mips-nat.c (_initialize_core_mips): Update.
8811 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8812 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8813 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8814 * lynx-nat.c (_initialize_core_lynx): Update.
8815 * irix5-nat.c (_initialize_core_irix5): Update.
8816 * i386-interix-nat.c (_initialize_core_interix): Update.
8817 * cris-tdep.c (_initialize_cris_tdep): Update.
8818 * corelow.c (deprecated_add_core_fns): Update.
8819 * core-regset.c (_initialize_core_regset): Update.
8820 * core-aout.c (_initialize_core_aout): Update.
8821 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8822 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8823 * alpha-nat.c (_initialize_core_alpha): Update.
8825 2004-04-21 Jim Blandy <jimb@redhat.com>
8827 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8829 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8831 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8833 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8834 (read_attribute_value): Update calls to dwarf_alloc_block.
8835 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8837 (psymtab_to_symtab_1): Likewise. Clean up using
8838 free_stack_comp_unit.
8839 (add_to_cu_func_list): Use the comp_unit_obstack.
8841 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8843 * dwarf2read.c (dwarf2_flag_true_p): New function.
8844 (die_is_declaration): Use the function above. Add some comments.
8846 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8848 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8849 architecture when registering sparcnbsd_core_osabi_sniffer.
8852 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8854 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8857 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8858 * i386-tdep.c: Correct register numbering scheme comments
8860 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8861 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8862 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8863 (i386_gdb_arch_init): Likewise.
8865 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8866 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8869 * m68k-tdep.h: Tweak comments.
8870 * m68k-tdep.c: Tweak comment.
8872 2004-04-17 Randolph Chung <tausq@debian.org>
8874 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8875 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8876 (hppa_hpux_som_init_abi): Set is_elf to 0.
8877 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8878 * hppa-tdep.c (low_text_segment_address): Remove global.
8879 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8880 section offset to calculate segment address.
8881 (internalize_unwinds): Define low_text_segment_address as local and
8882 pass to record_text_segment_lowaddr for ELF targets.
8883 (hppa_gdbarch_init): Zero fill tdep structure.
8884 (hppa_dump_tdep): Print tdep structure.
8885 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8887 2004-04-17 Randolph Chung <tausq@debian.org>
8889 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8890 (hppa_gdbarch_init): Set pseudo_register_read.
8891 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8892 * regcache.c (supply_register): Remove check for
8893 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8895 2004-04-17 Randolph Chung <tausq@debian.org>
8897 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8898 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8899 (hpread_adjust_stack_address): Move to hpread.c.
8900 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8901 obj_private_struct): Move from tm-hppa.h.
8902 * hpread.c (hppa-tdep.h): Include.
8903 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8904 (hpread_read_function_type, hpread_read_doc_function_type)
8905 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8907 * pa64solib.c (hppa-tdep.h): Include.
8908 * somsolib.c (hppa-tdep.h): Include.
8909 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8910 inferior_status): Remove unused forward declarations.
8911 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8912 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8913 obj_private_struct): Move to hppa-tdep.h.
8914 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8916 2004-04-17 Randolph Chung <tausq@debian.org>
8918 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8919 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8920 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8921 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8922 Remove forward declaration and make static.
8923 (hppa_reg_struct_has_addr): Remove.
8925 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8927 * observer.sh: Move comments in sed command to first column.
8929 2004-04-16 Jason Molenda (jmolenda@apple.com)
8931 * frame.c: Minor typeo corrections in comments.
8933 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8935 * observer.c (observer_test_first_notification_function): Update
8937 (observer_test_second_notification_function): Likewise.
8938 (observer_test_third_notification_function): Likewise.
8940 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8942 From Brian Ford <ford@vss.fsi.com>:
8943 * i386-tdep.c (i386_coff_init_abi): New function.
8944 * i386-tdep.h (i386_coff_init_abi): New prototype.
8945 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8946 register number translation functions for DWARF and DWARF 2.
8948 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8950 * dwarf2read.c: Back out my previous change, it was incorrect.
8952 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8954 * dwarf2read.c: Include "hashtab.h".
8955 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8957 (struct partial_die_info): Add comments. Use bitfields to reduce
8958 memory footprint. Add scope, scope_set, has_specification,
8959 spec_offset, die_parent, die_child, and die_sibling.
8960 (peek_die_abbrev): Add prototype.
8961 (partial_read_comp_unit_head): New function, broken out from
8962 dwarf2_build_psymtabs_hard.
8963 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8964 Use partial_read_comp_unit_head. Initialize the CU and
8965 comp_unit_obstack. Update calls to read_partial_die and
8966 scan_partial_symbols. Use free_stack_comp_unit and
8968 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8969 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8970 Update calls to helper functions. Remove NAMESPACE argument.
8972 (partial_die_parent_scope, partial_die_full_name): New functions.
8973 (add_partial_symbol): Remove namespace argument. Update call to
8974 pdi_needs_namespace. Use partial_die_full_name. Handle
8975 DW_TAG_namespace. Check has_namespace_info flag.
8976 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8977 tag. Handle namespaces.
8978 (add_partial_namespace, add_partial_enumeration): Simplify.
8979 (guess_structure_name): New function, derived from
8980 add_partial_structure.
8981 (add_partial_structure): Remove.
8982 (determine_class_name): Update comment.
8983 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8984 (is_type_tag_for_partial, load_partial_dies): New functions.
8985 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8986 Record specifications instead of following them immediately.
8987 (find_partial_die_in_comp_unit, find_partial_die)
8988 (fixup_partial_die, free_stack_comp_unit)
8989 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8990 (partial_die_hash, partial_die_eq): New functions.
8991 * Makefile.in (hashtab_h): Define.
8992 (dwarf2read.o): Update dependencies.
8993 (observer_inc, observer_h): Move to the correct section.
8995 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8997 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8998 (die_is_declaration): Use the function above. Add comment.
9000 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9002 * dwarf2read.c (read_structure_scope): Identify stub types
9003 using die_is_declaration() only.
9005 2004-04-15 Roland McGrath <roland@redhat.com>
9007 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9008 argument instead of NAME.
9009 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9010 in call to symbol_file_add_with_addrs_or_offsets.
9011 (build_addr_info): New function, helper for ...
9012 (symbol_file_add_from_memory): New function.
9013 (add_symbol_file_from_memory_command): New function using that.
9014 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9015 (pre_add_symbol_hook): Add const to argument type.
9016 * symfile.h (symbol_file_add_from_memory): Declare it.
9018 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9020 * NEWS (New native configurations): Mention OpenBSD/vax.
9021 * configure.host: Add vax-*-openbsd*.
9022 * config/vax/obsd.mh: New file.
9023 * config/vax/nm-obsd.h: New file.
9025 * vax-tdep.c: Include "regset.h".
9026 (vax_supply_gregset): New function.
9027 (vax_gregset): New variable.
9028 (vax_regset_from_core_section): New function.
9029 (vax_gdbarch_init): Set regset_from_core_section.
9030 * Makefile.in (vax-tdep.o): Update dependencies.
9032 2004-04-15 Andrew Cagney <cagney@redhat.com>
9034 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9035 (observer_normal_stop_notification_stub)
9036 (observer_attach_normal_stop, observer_detach_normal_stop):
9037 Delete, replaced by #include "observer.inc".
9038 * infrun.c (normal_stop): Pass "stop_bpstat" to
9039 observer_notify_normal_stop.
9040 * Makefile.in (observer_inc): Define.
9041 (observer.o): Update dependencies.
9042 (observer.h, observer.inc): New rules.
9043 * observer.h: Delete file.
9044 * observer.sh: New file.
9046 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9048 * vax-tdep.c (vax_frame_cache): Fix typo.
9050 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9052 * NEWS (New native configurations): Mention NetBSD/vax.
9053 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9054 * config/vax/nbsdelf.mh: New file.
9055 * config/vax/nbsdaout.mh: New file.
9056 * config/vax/nm-nbsd.h: New file.
9057 * config/vax/nm-nbsdaout.h: New file.
9059 * vaxnbsd-tdep.c: New file.
9060 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9061 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9062 * config/vax/nbsd.mt: New file.
9063 * config/vax/tm-nbsd.h: New file.
9065 * Makefile.in (vaxbsd-nat.o): New dependency.
9067 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9068 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9069 struct_addr arguments. Don't push return value address.
9070 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9071 arguments to vax_store_arguments. Store return value address in
9073 (vax_store_struct_return, vax_extract_return_value)
9074 (vax_store_return_value): Remove functions.
9075 (vax_return_value): New function.
9076 (vax_gdbarch_init): Set return value. Don't set
9077 deprecated_store_struct_return, deprecated_extract_struct_return
9078 and deprecated_store_return_value.
9080 2004-04-14 Andreas Schwab <schwab@suse.de>
9082 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9084 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9086 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9088 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9089 (vax_unwind_dummy_id): New functions.
9090 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9091 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9093 (vax_fix_call_dummy): Remove function.
9094 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9095 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9096 call_dummy_location, deprecated_call_dummy_words,
9097 deprecated_sizeof_call_dummy_words,
9098 deprecated_call_dummy_breakpoint_offset,
9099 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9100 and deprecated_dummy_write_sp.
9102 2004-04-13 David Carlton <carlton@kealia.com>
9104 * MAINTAINERS: Move myself to "paper trail" section.
9106 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9108 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9110 (vax_frame_init_saved_regs): Remove function.
9111 (vax_sigtramp_saved_pc): Remove function.
9112 (vax_frame_saved_pc): Remove function.
9113 (vax_frame_args_address): Remove function.
9114 (vax_frame_num_args): Rewrite.
9115 (vax_frame_chain): Remove function.
9116 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9118 (vax_pop_frame): Likewise.
9119 (vax_saved_pc_after_call): Remove function.
9120 (struct vax_frame_cache): New structure.
9121 (vax_frame_cache): New function.
9122 (vax_frame_this_id): New function.
9123 (vax_frame_prev_register): New function.
9124 (vax_frame_unwind): New variable.
9125 (vax_frame_sniffer): New function.
9126 (vax_frame_base_address): New function.
9127 (vax_frame_args_address): New function.
9128 (vax_frame_base): New variable.
9129 (vax_unwind_pc): New function.
9130 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9131 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9132 deprecated_frame_chain, deprecated_frame_saved_pc,
9133 deprecated_frame_args_address and
9134 deprecated_frame_init_saved_regs.
9135 * Makefile.in (vax-tdep.o): Update dependencies.
9137 * vaxbsd-nat.c: New file.
9139 * vax-tdep.h: Update copyright year. Adjust comments.
9140 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9141 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9142 (vax_regnum): New enum. Replacing...
9143 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9144 (VAX_PS_REGNUM): ... these removed macros.
9145 * vax-tdep.c (vax_register_name): Remove prototype.
9146 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9147 (vax_register_byte, vax_register_raw_size,
9148 vax_register_virtual_size, vax_register_virtual_type): Remove
9150 (vax_register_type): New function.
9151 (vax_breakpoint_from_pc): Reorganize.
9152 (vax_gdbarch_init): Set register_type. Don't set
9153 deprecated_register_size, deprecated_register_bytes,
9154 deprecated_register_byte, deprecated_register_raw_size,
9155 deprecated_max_register_raw_size,
9156 deprecated_register_virtual_size,
9157 deprecated_max_register_virtual_size and
9158 deprecated_register_virtual_type. Add comment on stack direction.
9160 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9162 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9163 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9164 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9166 2004-04-10 Randolph Chung <tausq@debian.org>
9168 * MAINTAINERS (write after approval): Add myself.
9170 2004-04-07 Randolph Chung <tausq@debian.org>
9172 * hppa-tdep.c (hppa_inner_than): Remove.
9173 (is_pa_2): Remove unused static variable.
9174 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9176 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9178 * language.h (language_defn): Add new la_post_parser field.
9179 * parser-defs.h (null_post_parser): New declaration (default for
9182 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9183 insert call to that function.
9184 (parse_exp_in_context): New function, including code formerly in
9185 parse_exp_1. Calls language-dependent post-parser after
9187 (parse_expression_in_context): New exported function.
9188 (null_post_parser): New definition.
9189 * expression.h (parse_expression_in_context): Add declaration.
9191 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9192 * c-lang.c (c_language_defn): Ditto.
9193 (cplus_language_defn): Ditto.
9194 (asm_language_defn): Ditto.
9195 (minimal_language_defn): Ditto.
9196 * f-lang.c (f_language_defn): Ditto.
9197 * jv-lang.c (java_language_defn): Ditto.
9198 * language.c (unknown_language_defn): Ditto.
9199 (auto_language_defn): Ditto.
9200 (local_language_defn): Ditto.
9201 * m2-lang.c (m2_language_defn): Ditto.
9202 * scm-lang.c (scm_language_defn): Ditto.
9203 * obj-lang.c (objc_language_defn): Ditto.
9205 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9207 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9208 (amd64nbsd_mcontext_addr): New function.
9209 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9210 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9211 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9213 * corelow.c (core_xfer_partial): Fix coding standards violation.
9214 Add support for TARGET_OBJECT_WCOOKIE.
9216 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9217 deprecated_pc_in_sigtramp.
9218 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9219 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9220 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9221 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9222 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9223 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9224 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9226 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9227 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9230 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9231 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9232 (amd64_collect_fxsave): Likewise.
9234 * i386-sol2-tdep.c: Include "gdb_string.h".
9235 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9237 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9239 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9241 * i386-sol2-tdep.c: Include "solib-svr4.h".
9242 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9243 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9244 * config/i386/tm-i386sol2.h: Include :solib.h".
9245 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9246 solib-svr4.o and solib-legacy.o.
9247 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9250 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9252 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9253 whether a register is supplied by PTRACE_GETFPREGS.
9254 (store_inferior_registers): Likewise.
9255 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9256 whether a register is supplied by PT_GETFPREGS.
9257 (store_inferior_registers): Likewise.
9259 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9260 * config/i386/linux64.mt (TDEPFILES): Likewise.
9262 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9264 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9265 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9266 the program counter is in the range specified by `struct
9268 * amd64-linux-tdep.c: Include "symtab.h".
9269 (amd64_linux_pc_in_sigtramp): Remove function.
9270 (amd64_linux_sigtramp_p): New function.
9271 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9272 deprecated_pc_in_sigtramp.
9273 * amd64nbsd-tdep.c: Include "symtab.h".
9274 (amd64nbsd_sigtramp_p): New function.
9275 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9276 deprecated_pc_in_sigtramp.
9277 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9279 (amd64obsd_pc_in_sigtramp): Remove function.
9280 (amd64obsd_sigtramp_p): New function.
9281 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9282 deprecated_pc_in_sigtramp.
9283 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9284 (i386bsd_pc_ins_sigtramp): Remove prototype.
9285 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9286 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9287 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9288 the program counter is in the range specified by `struct
9290 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9291 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9292 (i386_go32_pc_in_sigtramp): Remove function.
9293 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9294 Initialize TDEP->sigtramp_p.
9295 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9296 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9297 deprecated_pc_in_sigtramp.
9298 * i386-linux-tdep.c: Adjust comments.
9299 (i386_linux_pc_in_sigtramp): Remove function.
9300 (i386_linux_sigtramp_p): New function.
9301 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9302 deprecated_pc_in_sigtramp.
9303 * i386-nto-tdep.c: Update copyright year.
9304 (i386nto_pc_in_sigtramp): Remove function.
9305 (i386nto_sigtramp_p): New function.
9306 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9308 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9309 deprecated_pc_in_sigtramp.
9310 * i386-sol2-tdep.c: Update copyright year.
9311 (i386_sol2_pc_in_sigtramp): Remove function.
9312 (i386_sol2_sigtramp_p): New function.
9313 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9314 deprecated_pc_in_sigtramp.
9315 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9316 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9317 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9318 deprecated_sigtramp_start and deprecated_sigtramp_end.
9319 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9320 (i386nbsd_pc_in_sigtramp): Remove function.
9321 (i386nbsd_sigtramp_p): New function.
9322 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9323 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9324 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9325 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9326 (i386obsd_pc_in_sigtramp): Remove function.
9327 (i386obsd_sigtramp_p): New function.
9328 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9330 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9331 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9333 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9334 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9337 * config/i386/i386aout.mt: Remove file.
9339 * configure.tgt: Remove i[34567]86-*-go32*,
9340 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9341 and i[34567]86-*-isc*. Set gdb_target to i386 for
9342 i[34567]86-*-netware* and i[34567]86-*-*.
9343 * config/i386/i386.mt: New file.
9344 * config/i386/embed.mt: Remove file.
9345 * config/i386/go32.mt: Remove file.
9346 * config/i386/i386nw.mt: Remove file.
9347 * config/i386/i386v.mt: Remove file.
9348 * config/i386/tm-go32.h: Remove file.
9350 * tui/tui-hooks.c: Include "readline/readline.h" after
9351 "gdb_curses.h" instead of before.
9352 * tui/tui-io.c: Likewise.
9354 * tui/tui.c: Fix typo in comment.
9356 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9358 2004-04-08 Andrew Cagney <cagney@redhat.com>
9360 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9361 (deprecated_exception_support_initialized): Declare.
9362 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9363 (initialize_hp_cxx_exception_support)
9364 (child_enable_exception_callback): Update.
9365 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9366 (deprecated_exception_support_initialized): Rename
9367 deprecated_exception_catchpoints_are_fragile and
9368 deprecated_exception_support_initialized.
9369 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9371 * symtab.c (deprecated_hp_som_som_object_present): Rename
9372 hp_som_som_object_present.
9373 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9374 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9375 Update. Delete extern declaration.
9376 * valops.c (hp_som_som_object_present): Ditto.
9377 * parse.c (deprecated_hp_som_som_object_present)
9378 (parse_nested_classes_for_hpacc): Ditto.
9379 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9380 * hppa-hpux-tdep.c (hp_som_som_object_present)
9381 (initialize_hp_cxx_exception_support): Ditto.
9382 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9383 * cp-valprint.c (hp_som_som_object_present)
9384 (cp_print_class_method): Ditto.
9385 * c-typeprint.c (hp_som_som_object_present):
9386 (c_type_print_base): Ditto.
9387 * c-exp.y (hp_som_som_object_present): Ditto.
9389 2004-04-08 Andrew Cagney <cagney@redhat.com>
9391 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9392 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9393 (frame_unwind_find_by_frame): Re-implement the unwind code so
9394 that it can both prepend and append sniffers. Replace
9395 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9396 * tramp-frame.c (tramp_frame_append): Use
9397 frame_unwind_prepend_unwinder.
9398 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9399 frame_unwind_register_unwinder.
9400 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9402 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9403 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9404 (mips_linux_init_abi): Update.
9406 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9408 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9409 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9412 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9414 * ia64-tdep.c (elf.h): Don't include.
9415 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9417 2004-04-07 Jason Molenda (jmolenda@apple.com)
9419 * frame.h: Typeo corrections in comments.
9421 2004-04-07 Jim Blandy <jimb@redhat.com>
9423 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9426 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9428 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9429 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9430 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9431 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9433 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9435 * config/sparc/tm-sol2.h: Update copyright year. Include
9438 * sparc-sol2-tdep.c: Update copyright year. Include
9440 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9441 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9442 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9443 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9446 2004-04-06 Andrew Cagney <cagney@redhat.com>
9448 * infttrace.c: Include "infttrace.h".
9449 * infttrace.h: Include "target.h".
9450 * Makefile.in (infttrace_h): Update.
9451 (infttrace.o): Update.
9453 2004-04-06 Andrew Cagney <cagney@redhat.com>
9455 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9456 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9457 move extern declarations from here ...
9458 * infttrace.h: ... to here.
9459 * Makefile.in (hppah-nat.o): Update dependencies.
9461 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9462 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9463 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9464 (hppa_breakpoint_from_pc): Delete.
9466 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9468 2004-04-05 Andrew Cagney <cagney@redhat.com>
9470 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9471 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9474 2004-04-06 Randolph Chung <tausq@debian.org>
9476 Committed by Andrew Cagney (mechanical change).
9477 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9478 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9479 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9480 child_enable_exception_callback, current_ex_event,
9481 null_symtab_and_line, child_get_current_exception_event,
9482 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9483 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9484 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9485 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9486 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9487 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9488 Move hpux-specific definitions ...
9489 * hppa-hpux-tdep.c: ... to here.
9491 2004-04-05 Andrew Cagney <cagney@redhat.com>
9493 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9494 skip_prologue_using_sal.
9496 2004-04-05 Andrew Cagney <cagney@redhat.com>
9498 * config/i386/tm-i386.h: Delete file.
9499 * config/i386/tm-vxworks.h: Update copyright, do not include
9501 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9502 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9503 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9504 * config/i386/ncr3000.mt (TM_FILE): Delete.
9505 * config/i386/interix.mt (TM_FILE): Delete.
9506 * config/i386/i386v.mt (TM_FILE): Delete.
9507 * config/i386/i386nw.mt (TM_FILE): Delete.
9508 * config/i386/i386gnu.mt (TM_FILE): Delete.
9509 * config/i386/i386aout.mt (TM_FILE): Delete.
9510 * config/i386/embed.mt (TM_FILE): Delete.
9512 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9514 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9515 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9516 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9517 (accg7_regnum): New constants.
9518 (last_spr_regnum, last_pseudo_regnum): Update.
9519 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9520 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9521 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9523 (frv_register_sim_regno): Update spr_map[].
9525 2004-04-04 Andrew Cagney <cagney@redhat.com>
9527 * config/mips/xm-riscos.h: Delete.
9528 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9529 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9530 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9531 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9532 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9533 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9534 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9535 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9536 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9537 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9538 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9539 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9540 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9541 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9542 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9543 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9544 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9545 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9546 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9547 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9548 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9549 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9550 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9551 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9552 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9553 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9555 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9556 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9557 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9558 * configure.host: Remove m680[01]0-sun-sunos3*,
9559 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9560 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9561 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9562 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9564 * NEWS: Mention removed systems.
9566 2004-04-04 Andrew Cagney <cagney@redhat.com>
9568 GDB 6.1 release created from 6.1 branch.
9570 2004-04-04 Andrew Cagney <cagney@redhat.com>
9572 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9573 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9574 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9576 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9577 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9578 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9580 2004-04-03 Jim Blandy <jimb@redhat.com>
9582 * MAINTAINERS: Chris Faylor has changed employers; add him to
9583 "paper trail" section, and update his E-mail address.
9585 2004-04-03 Andrew Cagney <cagney@redhat.com>
9587 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9588 generic dummy frames.
9589 * dummy-frame.c: Update copyright.
9590 (dummy_frame_sniffer): Delete check for generic dummy frames.
9592 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9593 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9594 (REG_PARM_STACK_SPACE): Delete.
9595 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9596 Inline reference to REG_PARM_STACK_SPACE.
9598 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9599 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9600 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9601 (FRAME_BASE_BEFORE_SIGTRAMP)
9602 (hppa32_hpux_frame_base_before_sigtramp)
9603 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9604 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9605 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9606 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9607 (FRAME_BASE_BEFORE_SIGTRAMP)
9608 (hppa64_hpux_frame_base_before_sigtramp)
9609 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9611 2004-04-03 Andrew Cagney <cagney@redhat.com>
9613 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9615 2004-04-02 Andrew Cagney <cagney@redhat.com>
9617 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9618 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9619 * dummy-frame.h: Delete out-of-date comments.
9620 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9621 * gdbarch.h, gdbarch.c: Re-generate.
9623 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9625 Committed by Andrew Cagney <cagney@redhat.com>.
9626 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9627 into account an instruction saving a register if we have already
9628 seen an earlier instruction saving that same register.
9630 2004-04-02 Andrew Cagney <cagney@redhat.com>
9632 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9633 * gdbarch.h, gdbarch.c: Re-generate.
9634 * frame.c (legacy_get_prev_frame): Delete references to
9635 DEPRECATED_INIT_FRAME_PC_FIRST.
9637 * infrun.c (pc_in_sigtramp): Delete function.
9638 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9641 2004-04-02 Andrew Cagney <cagney@redhat.com>
9643 * infrun.c (handle_step_into_function): Delete code conditional on
9645 (handle_inferior_event, step_over_function): Ditto.
9647 2004-04-02 Andrew Cagney <cagney@redhat.com>
9649 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9650 "previous frame inner to this frame" test.
9652 2004-04-02 Andrew Cagney <cagney@redhat.com>
9654 * frame.c (safe_frame_unwind_memory): New function.
9655 * frame.h (safe_frame_unwind_memory): Declare. Update description
9657 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9658 "next_frame". Use safe_frame_unwind_memory.
9659 (tramp_frame_sniffer): Update call to tramp_frame_start.
9661 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9663 * dwarf2read.c (dwarf2_objfile_data_key): New.
9664 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9665 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9666 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9667 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9668 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9669 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9670 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9672 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9673 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9674 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9675 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9676 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9677 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9679 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9681 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9682 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9683 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9684 (read_partial_die, read_full_die, read_indirect_string)
9685 (dwarf_decode_line_header, dwarf_decode_macros)
9686 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9687 Update uses of removed variables.
9688 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9690 (_initialize_dwarf2_read): New function.
9691 * symfile.h (dwarf2_has_info): Update prototype.
9692 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9693 * elfread.c (elf_symfile_read): Likewise.
9695 2004-04-01 Jim Blandy <jimb@redhat.com>
9697 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9698 function for register numbers on all the rs6000-derived targets.
9699 (rs6000_gdbarch_init): Don't register a separate
9700 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9701 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9704 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9707 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9709 * valarith.c: Update copyright notice.
9710 (value_add): Handle range types.
9712 (value_equal): Ditto.
9713 (value_less): Ditto.
9715 (value_complement): Ditto.
9716 (value_binop): Simplify slightly by using is_integral_type and
9717 eliminiating unnecessary COERCE_ENUMs.
9719 2004-03-31 Andrew Cagney <cagney@redhat.com>
9721 * frame.h (frame_unwind_id): Declare.
9722 * frame.c (frame_unwind_id): New function.
9723 (get_prev_frame_1): New function.
9724 (frame_debug_got_null_frame): New function.
9725 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9726 code proper to prev_frame, update description.
9727 * infrun.c (step_over_function): Use frame_unwind_id.
9729 2004-04-31 J. Brobecker <brobecker@gnat.com>
9731 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9732 (hppa64_push_dummy_call): Likewise.
9734 2004-03-30 Jim Blandy <jimb@redhat.com>
9736 From Ulrich Weigand:
9737 * utils.c (query): Do not use a va_list variable multiple times.
9739 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9741 * Makefile.in (linux_nat_h): Update dependencies.
9742 * configure.in: Check for <gnu/libc-version.h>.
9743 * configure: Regenerate.
9744 * config.in: Regenerate.
9745 * linux-nat.h: Include "target.h". Add waitstatus field to
9747 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9748 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9750 (lin_lwp_handle_extended): New function. Handle clone events.
9751 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9753 (child_wait): Handle clone events.
9754 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9755 * linux-nat.c (linux_enable_event_reporting): Turn on
9756 PTRACE_O_TRACECLONE.
9757 (linux_handle_extended_wait): Handle clone events.
9758 * thread-db.c: Include <gnu/libc-version.h>.
9759 (struct private_thread_info): Add dying flag.
9760 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9762 (attach_thread): Update comments. Handle dying threads.
9763 (detach_thread): Set the dying flag.
9764 (check_event): Always call attach_thread.
9766 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9768 * mips-tdep.c (mips_pdr_data): New.
9769 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9770 (_initialize_mips_tdep): Initialize mips_pdr_data.
9772 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9774 * minsyms.c (install_minimal_symbols): Move dropping leading
9775 char from linkage name from here...
9776 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9777 test for "__gnu_compiled*" symbols.
9779 2004-03-28 Jim Blandy <jimb@redhat.com>
9781 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9782 registers to temp register r0 and byte stores as prologue
9785 2004-03-28 Andrew Cagney <cagney@redhat.com>
9787 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9790 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9792 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9793 and switch the layout to force a display of register window.
9795 2004-02-26 J. Brobecker <brobecker@gnat.com>
9797 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9798 of the INTEGER class.
9800 2004-03-26 Jim Blandy <jimb@redhat.com>
9802 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9803 bytes long on PPC GNU/Linux.
9805 2004-03-26 David Carlton <carlton@kealia.com>
9807 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9809 2004-03-25 Andrew Cagney <cagney@redhat.com>
9811 * PROBLEMS: Add general section titles, remove references to
9814 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9816 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9818 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9819 FP_REGISTER_VIRTUAL_SIZE.
9820 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9821 of DEPRECATED_REGISTER_RAW_SIZE.
9822 (arm_register_type): Add gdbarch argument.
9823 (arm_register_raw_size, arm_register_virtual_size): Delete.
9824 (arm_register_byte, arm_extract_return_value)
9825 (arm_store_return_value, arm_get_longjmp_target): Update references
9826 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9827 (arm_gdbarch_init): Likewise. Don't set
9828 deprecated_register_raw_size, deprecated_register_virtual_size,
9829 deprecated_max_register_raw_size,
9830 deprecated_max_register_virtual_size, or
9831 deprecated_max_register_virtual_type. Do set register_type.
9832 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9833 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9834 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9835 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9836 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9837 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9839 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9840 (remote_rdp_store_register): Likewise.
9842 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9844 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9845 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9846 to after osabi initialization.
9847 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9848 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9850 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9851 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9853 (mips_linux_init_abi): Append signal trampoline unwinders.
9855 2004-03-24 Andrew Cagney <cagney@redhat.com>
9857 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9858 * tramp-frame.c: Include "gdb_assert.h".
9859 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9861 (tramp_frame_append): Validate the tramp frame's instructions.
9862 * Makefile.in (tramp-frame.o): Update dependencies.
9864 2004-03-23 Andrew Cagney <cagney@redhat.com>
9866 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9868 2004-03-23 Andrew Cagney <cagney@redhat.com>
9870 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9871 Nasser as past testsuite/lib/ (and other) maintainers.
9873 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9875 * infcmd.c (attach_command): Reread symbols if we already have
9878 2004-03-23 Andrew Cagney <cagney@redhat.com>
9880 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9882 2004-03-23 Andrew Cagney <cagney@redhat.com>
9884 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9885 * gdbarch.h, gdbarch.c: Re-generate.
9886 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9887 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9888 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9889 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9890 (DEPRECATED_SIGTRAMP_START): Update.
9891 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9892 (DEPRECATED_SIGTRAMP_START): Update.
9893 * blockframe.c (find_pc_sect_partial_function): Update.
9894 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9896 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9898 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9901 2004-03-23 Andrew Cagney <cagney@redhat.com>
9903 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9904 predicate, deprecate.
9905 * gdbarch.h, gdbarch.c: Re-generate.
9906 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9907 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9908 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9909 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9910 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9911 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9912 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9913 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9914 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9915 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9916 * blockframe.c (find_pc_partial_function): Update.
9917 * breakpoint.c (bpstat_what): Update.
9918 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9919 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9920 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9921 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9922 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9923 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9924 * i386-nto-tdep.c (i386nto_init_abi): Update.
9925 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9926 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9927 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9928 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9929 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9930 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9931 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9932 * infrun.c (pc_in_sigtramp): Update.
9933 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9934 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9935 * mips-tdep.c (mips_gdbarch_init): Update.
9936 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9937 * ppc-linux-tdep.c: Update comment.
9938 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9939 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9940 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9941 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9942 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9943 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9944 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9945 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9946 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9947 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9949 2004-03-23 Andrew Cagney <cagney@redhat.com>
9951 * tramp-frame.h, tramp-frame.h: New files.
9952 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9953 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9955 * Makefile.in: Update all dependencies.
9957 2004-03-23 Andrew Cagney <cagney@redhat.com>
9959 * Makefile.in (trad_frame_h): Add $(frame_h).
9960 * trad-frame.h: Update copyright. Include "frame.h".
9961 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9962 (trad_frame_set_id, trad_frame_get_id): Declare.
9963 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9964 * trad-frame.c: Update copyright.
9965 (struct trad_frame_cache): Define.
9966 (trad_frame_cache_zalloc): New function.
9967 (trad_frame_set_id, trad_frame_get_id): New functions.
9968 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9970 2004-03-22 Andrew Cagney <cagney@redhat.com>
9972 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9973 s390_pltstub_unwind_cache.
9974 (s390_stub_frame_unwind_cache): Rename
9975 s390_pltstub_frame_unwind_cache.
9976 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9977 (s390_stub_frame_prev_register): Rename
9978 s390_pltstub_frame_prev_register.
9979 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9980 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9982 From Ulrich Weigand:
9983 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9984 pointer calls like PLT calls.
9986 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9988 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9989 PC rather than the partial function start address. Use the start
9990 address to sanity check the found PDR.
9992 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9994 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9995 linux_handle_extended_wait.
9997 2004-03-22 Andrew Cagney <cagney@redhat.com>
9999 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10002 * frame.h (generic_pop_current_frame): Delete declaration.
10003 (deprecate_pop_dummy_frame): Deprecate
10004 generic_pop_dummy_frame.
10005 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10006 (generic_pop_current_frame): Delete function.
10007 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10008 generic_pop_current_frame.
10009 * v850-tdep.c (v850_pop_frame): Update.
10010 * mcore-tdep.c (mcore_pop_frame): Update.
10011 * sh64-tdep.c (sh64_pop_frame): Update.
10012 * h8300-tdep.c (h8300_pop_frame): Update.
10014 2004-03-22 Andrew Cagney <cagney@redhat.com>
10016 * frame.h (deprecated_pc_in_call_dummy): Rename
10017 generic_pc_in_call_dummy.
10018 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10019 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10020 generic_pc_in_call_dummy.
10021 (pc_in_dummy_frame): Make static.
10022 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10023 * gdbarch.h, gdbarch.c: Re-generate.
10024 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10025 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10026 (legacy_get_prev_frame): Ditto.
10027 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10030 2004-03-21 Andrew Cagney <cagney@redhat.com>
10032 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10033 declaration and out-of-date comment.
10034 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10036 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10037 deprecated_pc_in_call_dummy.
10039 * infrun.c (handle_inferior_event): For non legacy frames, use the
10040 frame ID and frame type to identify a signal trampoline. Update
10043 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10045 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10046 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10048 2004-03-21 Andrew Cagney <cagney@redhat.com>
10050 * frame-unwind.h: Update copyright.
10051 (struct frame_data): Add opaque declaration.
10052 (frame_sniffer_ftype): Declare.
10053 (struct frame_unwind): Add "unwind_data" and "sniffer".
10054 (frame_unwind_register_unwinder): Declare.
10055 (frame_unwind_find_by_frame): Add parameter "this_cache".
10056 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10057 (legacy_get_prev_frame, legacy_get_prev_frame)
10058 (get_frame_type): Pass the prologue_cache to
10059 frame_unwind_find_by_frame.
10060 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10062 (frame_unwind_register_unwinder): New function.
10063 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10065 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10067 * bcache.c (print_percentage): Use floating point to avoid
10068 incorrect results when portion*100 overflows.
10070 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10072 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10073 (ppc_linux_init_extra_frame_info)
10074 (ppc_linux_frameless_function_invocation)
10075 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10076 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10077 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10078 (rs6000_frame_chain): Delete declarations.
10079 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10080 (ppc_linux_init_extra_frame_info)
10081 (ppc_linux_frameless_function_invocation)
10082 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10083 (ppc_linux_init_abi): Remove registration of above deleted functions.
10084 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10085 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10086 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10087 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10088 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10089 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10090 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10091 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10092 frame management for all OSABIs.
10094 2004-03-19 Andrew Cagney <cagney@redhat.com>
10096 Committed by Kevin Buettner <kevinb@redhat.com>.
10098 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10100 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10101 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10102 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10103 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10104 unwinders. #ifdef legacy frame code.
10105 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10107 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10108 (struct rs6000_frame_cache, rs6000_frame_cache)
10109 (rs6000_frame_this_id, rs6000_frame_prev_register)
10110 (rs6000_frame_sniffer, rs6000_frame_unwind)
10111 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10112 (rs6000_frame_base): Implement a traditional frame unwinder.
10113 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10116 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10118 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10119 breakpoint address for watchpoints or the catch eventpoints.
10120 Add new paramter ``bptype''. Adjust all callers.
10122 2004-03-19 Andrew Cagney <cagney@redhat.com>
10124 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10126 * PROBLEMS: Delete note that ARM does not use frame code, problem
10129 2004-03-18 Andrew Cagney <cagney@redhat.com>
10131 * stack.c (return_command): Delete code wrapped in #ifdef
10132 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10134 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10136 2004-03-18 Andrew Cagney <cagney@redhat.com>
10138 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10139 DEPRECATED_IN_SIGTRAMP.
10140 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10141 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10142 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10143 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10144 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10145 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10146 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10147 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10148 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10149 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10151 2004-03-18 Andrew Cagney <cagney@redhat.com>
10153 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10154 (struct frame_base_table_entry): Define.
10155 (struct frame_base_table): Re-implement as a linked list.
10156 (frame_base_init): Re-implement.
10157 (frame_base_table): Delete function.
10158 (append_predicate): Delete function.
10159 (frame_base_append_sniffer): Update.
10160 (frame_base_set_default): Update.
10161 (frame_base_find_by_frame): Update.
10162 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10163 * Makefile.in (frame-base.o): Update dependencies.
10165 2004-03-17 Andrew Cagney <cagney@redhat.com>
10167 * frame.c (legacy_get_prev_frame): Pass correct frame to
10168 frame_unwind_find_by_frame.
10170 2004-03-17 David Carlton <carlton@kealia.com>
10172 * NEWS: Mention C++ nested types and namespaces
10174 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10176 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10177 and "Regressions since gdb 5.3.". Add known regressions since
10180 2004-03-16 David Carlton <carlton@kealia.com>
10182 * dwarf2read.c (process_structure_scope): Process children even
10183 when we're a declaration.
10185 2004-03-16 Andrew Cagney <cagney@redhat.com>
10187 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10188 * blockframe.c (find_pc_partial_function)
10189 (find_pc_sect_partial_function): Merge into a single
10190 find_pc_partial_function.
10192 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10194 * i386bsd-nat.c: s/regno/regnum/g.
10195 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10197 (store_inferior_registers): Likewise.
10199 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10201 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10202 of i387_fill_fsave.
10203 (store_inferior_registers): Call i387_collect_fsave and
10204 i387_collect_fxsave instead of i387_fill_fsave and
10207 2004-03-15 Andrew Cagney <cagney@redhat.com>
10209 * Makefile.in (frame-unwind.o): Update dependencies.
10210 * frame-unwind.c: Include "gdb_obstack.h".
10211 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10213 (append_predicate): Delete function.
10214 (struct frame_unwind_table_entry): New structure.
10215 (struct frame_unwind_table): Replace "sniffer" with "head" and
10217 (frame_unwind_append_sniffer): Update.
10218 (frame_unwind_find_by_frame): Update.
10219 (_initialize_frame_unwind): Registe frame_unwind_init using
10220 gdbarch_data_register_pre_init.
10222 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10224 * i386bsd-nat.c: Update copyright year.
10225 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10226 define unconditionally.
10228 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10230 * i387-tdep.h (i387_collect_fsave): New prototype.
10231 * i387-tdep.c (i387_collect_fsave): New function containing most
10232 of the code from i387_fill_fsave.
10233 (i387_fill_fsave): Call i387_collect_fsave.
10235 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10237 * i386-linux-tdep.c: Update copyright year.
10238 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10239 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10240 svr4_ilp32_link_map_offsets instead of
10241 i386_linux_svr4_fetch_link_map_offsets.
10243 2004-03-15 David Carlton <carlton@kealia.com>
10245 Fix for PR c++/1553:
10246 * dwarf2read.c (read_structure_type): Determine type name by
10247 calling determine_class_name.
10248 (determine_class_name): New.
10249 (determine_prefix): Look at TYPE_TAG_NAME and call
10250 determine_class_name when appropriate.
10251 (determine_prefix_aux, class_name): Delete.
10252 (read_namespace): Set die->type.
10254 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10256 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10257 unused macro definition. The definition in target.h (or perhaps
10258 elsewhere) takes precedence.
10260 2004-03-15 Andrew Cagney <cagney@redhat.com>
10262 * ppc-tdep.h: Update copyright.
10263 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10264 function signatures to match "regsets.h".
10265 * ppc-linux-tdep.c: Include "regset.h".
10266 (ELF_GREGSET_SIZE): Delete.
10267 (right_supply_register): New function.
10268 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10269 using right_supply_register.
10270 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10272 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10273 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10274 (_initialize_ppc_linux_tdep): Do not register
10275 ppc_linux_regset_core_fns.
10276 (ppc_linux_regset_from_core_section): Replace
10277 fetch_core_registers.
10278 (ppc_linux_regset_core_fns): Delete.
10279 * ppc-linux-nat.c: (right_fill_reg): New function.
10280 (supply_gregset): Update call to ppc_linux_supply_gregset.
10281 (fill_gregset): Clear the register set, use right_fill_reg.
10282 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10283 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10285 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10288 2004-03-15 Andrew Cagney <cagney@redhat.com>
10290 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10291 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10292 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10293 and register_gdbarch_data.
10294 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10295 (struct gdbarch_data): Replace "init" by "pre_init" and
10297 * gdbarch.h, gdbarch.c: Re-generate.
10298 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10299 with"obstack", use OBSTACK_ZALLOC.
10300 (dwarf2_frame_ops): Delete.
10301 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10302 (dwarf2_frame_init_reg): Use gdbarch_data.
10303 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10304 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10305 (_initialize_svr4_solib): Update.
10306 * user-regs.c (_initialize_user_regs): Update.
10307 * reggroups.c (_initialize_reggroup): Update.
10308 * regcache.c (_initialize_regcache): Update.
10309 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10310 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10311 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10312 * frame-unwind.c (_initialize_frame_unwind): Update.
10313 * frame-base.c (_initialize_frame_base): Update.
10314 * user-regs.c (user_reg_add): Update.
10315 * reggroups.c (reggroup_add): Update.
10316 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10317 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10318 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10319 * frame-base.c (frame_base_table): Update.
10320 * remote.c (_initialize_remote): Update.
10321 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10323 2004-03-15 Andrew Cagney <cagney@redhat.com>
10325 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10327 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10329 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10330 * frv-linux-tdep.c: New file.
10331 * frv-tdep.c (struct gdbarch_tdep): Add new field
10332 ``sigcontext_reg_addr''.
10333 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10334 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10335 (frv_sigramp_frame_sniffer): New functions.
10336 (frv_sigtramp_frame_unwind): New static global.
10337 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10339 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10340 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10342 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10344 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10345 but not via a call to error(), when unable to read memory.
10347 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10349 * frv-tdep.c (frv_call_dummy_words): Delete.
10350 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10352 2004-03-15 Andrew Cagney <cagney@redhat.com>
10354 * infrun.c (handle_step_into_function, step_over_function): Only
10355 update and use STEP_FRAME_ID when the system is using legacy
10356 frames. Update comments.
10358 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10360 * amd64-linux-tdep.h: Remove file.
10361 * amd64-linux-tdep.c: Don't include "inferior.h" and
10362 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10363 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10364 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10365 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10366 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10368 (user_to_gdb_regmap): Remove variable.
10369 (amd64_linux_gregset_reg_offset): New variable.
10370 (amd64_core_fns): Remove variable.
10371 (fetch_core_registers): Remove function.
10372 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10374 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10375 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10376 * Makefile.in (amd64_linux_tdep_h): Remove.
10377 (amd64-linux-nat.o): Update dependencies.
10378 (amd64-linux-tdep.o): Update dependencies.
10380 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10381 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10383 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10385 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10386 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10388 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10390 * dwarf2read.c (read_structure_type): Rename from
10391 read_structure_scope. Don't create a symbol or call process_die.
10392 Return immediately if die->type is set. Call read_type_die before
10393 dwarf2_add_member_fn.
10394 (process_structure_scope): New function.
10395 (read_enumeration_type, process_enumeration_scope): New functions,
10396 broken out from read_enumeration. Don't create the enumeration
10397 type if it has already been created.
10398 (read_enumeration): Removed.
10399 (process_die): Call read_structure_type, process_structure_scope,
10400 read_enumeration_type, and process_enumeration_scope. Just call
10401 new_symbol for base and subrange types. Add a comment about other
10403 (read_type_die): Call read_enumeration_type.
10404 (add_partial_structure, new_symbol): Update comments.
10406 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10408 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10410 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10412 * tui/tui-win.h (tui_get_cmd_list): Declare.
10413 * tui/tui-win.c (tui_command): New function.
10414 (tui_get_cmd_list): New function.
10415 (_initialize_tui_win): Moved initialization of tui command in
10418 * tui/tui-data.c (init_content_element): Setup new data members.
10419 (init_win_info): Likewise.
10420 (free_content_elements): Free it.
10421 * tui/tui-data.h (struct tui_data_element): Store the register
10423 (struct tui_data_info): Keep the current register group.
10425 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10427 * tui/tui-regs.h (tui_show_registers): Update prototype.
10428 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10429 (tui_resize_all): No need to calculate anything for register window.
10430 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10431 (tui_set_register_element, tui_set_general_regs_content): Remove.
10432 (tui_set_special_regs_content): Remove.
10433 (tui_set_general_and_special_regs_content): Remove.
10434 (tui_set_float_regs_content): Remove.
10435 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10436 (tui_set_regs_content): Remove.
10437 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10438 (tui_v_show_registers_command_support): Remove.
10439 (tui_show_registers): Use a reggroup to specify the registers to show.
10440 (tui_show_register_group): New function.
10441 (tui_display_registers_from): Compute the layout of register window
10442 and refresh with new API; be sure to delete old register windows.
10443 (tui_check_register_values): Update to use tui_get_register and
10445 (tui_display_register): Just refresh the register window part.
10446 (tui_register_format): Format registers and save in tui_data_element.
10447 (tui_get_register): New to combine tui_reg_value_has_changed and
10448 tui_get_register_raw_value; fix to use the new gdb API.
10449 (tui_show_float_command): Renamed tui_reg_float_command.
10450 (tui_show_general_command): Renamed tui_reg_general_command.
10451 (tui_show_special_command): Renamed tui_reg_system_command.
10452 (_initialize_tui_regs): Remove unused commands.
10454 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10456 * NEWS (New native configurations): Mention OpenBSD/amd64.
10458 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10459 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10461 * config/i386/nm-fbsd64.h: Likewise.
10462 * config/i386/nm-obsd.h: Likewise.
10463 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10464 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10466 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10468 * frv-tdep.c (set_variant_scratch_registers): New function.
10469 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10472 From Richard Sandiford <rsandifo@redhat.com>:
10473 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10475 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10477 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10478 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10479 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10480 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10481 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10482 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10483 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10484 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10485 definitions from frv-tdep.c to frv-tdep.h.
10487 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10489 Add shared library support for FR-V FDPIC ABI:
10490 * Makefile.in (solib-frv.o): Add dependencies.
10491 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10493 (frv_push_dummy_call): Add support for FDPIC ABI.
10494 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10496 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10497 (frv_fdpic_find_canonical_descriptor): Declare.
10498 * solib-frv.c: New file.
10499 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10500 * config/frv/tm-frv.h (solib.h): Include.
10502 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10504 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10505 (frv-tdep.o): Update dependencies.
10506 * frv-tdep.h: New file.
10507 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10508 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10510 (struct gdbarch_tdep): Add new member ``frv_abi''.
10511 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10513 (new_variant): Set ``frv_abi'' field.
10514 (gdb_arch_init): Detect FDPIC executables.
10516 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10518 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10521 2004-03-11 Andrew Cagney <cagney@redhat.com>
10523 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10525 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10527 * solist.h (master_so_list): New function.
10528 * solib.c (master_so_list): Likewise.
10529 * solib-svr4.c (enable_break): Iterate over so_list entries
10530 obtained from master list instead of entries obtained directly
10531 via svr4_current_sos().
10533 2004-03-10 Ben Elliston <bje@gnu.org>
10535 * MAINTAINERS: Update my mail address.
10537 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10539 * remote-m32r-sdi.c: Support hardware watchpoint.
10541 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10543 * user-regs.c: Update copyright years.
10544 (struct user_regs): Rename to gdb_user_regs.
10545 (append_user_reg, builtin_user_regs, user_regs_init)
10546 (user_reg_add, user_reg_map_name_to_regnum)
10547 (usernum_to_user_reg): Update.
10549 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10551 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10552 (skip_children): New functions.
10553 (locate_pdi_sibling): Call skip_children.
10555 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10557 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10558 * gdbtypes.c (check_typedef): Update comments.
10560 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10562 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10563 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10564 pointer. Update comment about comp_unit_head.
10565 (struct abbrev_info): Shorten two int flags.
10566 (dwarf_alloc_abbrev): Take a CU argument.
10567 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10568 each time through the loop. Update cleanup argument.
10569 (psymtab_to_symtab_1): Update cleanup call.
10570 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10572 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10573 Just call obstack_free and clear the pointer.
10575 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10577 * infrun.c (handle_inferior_event): Remove short-circuit code for
10578 events in a different thread.
10580 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10582 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10583 print the whole transfer.
10584 (initialize_targets): Update description of "set debug target".
10586 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10588 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10590 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10592 * MAINTAINERS (write after approval): Add myself.
10594 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10596 * sh-tdep.c (sh_print_registers_info): Use for loop.
10597 Don't skip multiple registers when a float register is encountered.
10599 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10602 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10603 to official SH documentation.
10605 2004-03-07 Andrew Cagney <cagney@redhat.com>
10607 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10610 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10612 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10613 (arm_get_next_pc): Handle BX and BLX.
10615 2004-03-07 Andrew Cagney <cagney@redhat.com>
10617 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10618 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10620 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10621 (hppa_target_read_fp): Delete.
10622 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10623 register_virtual_size, max_register_raw_size,
10624 max_register_virtual_size, register_byte, register_size,
10625 target_read_fp, fp_regnum, and register_bytes. Set register_type
10626 instead of register_virtual_type.
10627 (hppa32_register_type, hppa64_register_type): Replace
10628 hppa32_register_virtual_type and hppa64_register_virtual_type.
10629 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10630 (HPPA_FP_REGNUM): Define.
10632 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10634 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10635 (pa_do_registers_info): Delete.
10636 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10637 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10638 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10640 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10641 GDB_TARGET_IS_HPPA code.
10642 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10643 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10644 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10645 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10646 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10647 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10648 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10649 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10650 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10651 (hppa_frameless_function_invocation, hppa64_store_return_value)
10652 (hppa_store_struct_return, hppa64_extract_return_value)
10653 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10654 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10655 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10656 (find_proc_framesize, deposit_21, restore_pc_queue)
10657 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10658 (rp_saved, pc_in_linker_stub): Delete.
10660 Unconditionally enable 64-bit frame and ABI code.
10661 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10662 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10663 push_dummy_frame, fix_call_dummy, push_arguments,
10664 call_dummy_location, extract_return_value, use_struct_convention,
10665 store_return_value, store_struct_return, saved_pc_after_call,
10666 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10667 frame_chain, frame_chain_valid, frameless_function_invocation,
10668 frame_saved_pc, and pop_frame.
10670 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10671 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10672 (hppa_gdbarch_init): Do not set PC_REGNUM.
10674 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10676 * config/alpha/tm-fbsd.h: Remove file.
10677 * config/alpha/fbsd.mt: Tweak comment.
10678 (TM_FILE): Set to tm-alpha.h.
10680 2004-03-05 Andrew Cagney <cagney@redhat.com>
10682 * infrun.c (step_over_function): When non-legacy code, and no
10683 step_frame_id, use the unwinder to get the caller's frame ID.
10685 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10687 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10688 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10689 bfd_arch_unknown. Adjust comment.
10691 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10692 * i386obsd-tdep.c: Correct spelling in comment.
10693 * i386nbsd-tdep.c: Correct spelling in comment.
10694 * sparc-tdep.c: Correct spelling in comments.
10696 2004-03-05 David Carlton <carlton@kealia.com>
10698 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10701 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10703 * sparc-tdep.c: Fix typo in comment.
10705 2004-03-04 J. Brobecker <brobecker@gnat.com>
10707 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10709 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10711 * dwarf2read.c: Add comment describing memory lifetimes.
10712 (struct dwarf2_pinfo): Update comment.
10713 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10714 (read_enumeration, new_symbol): Don't use obsavestring.
10716 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10718 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10719 instead of amd64_fill_fxsave.
10720 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10721 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10723 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10724 Reorganize code a bit.
10726 2004-03-04 Orjan Friberg <orjanf@axis.com>
10728 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10729 when the frame pointer is pushed. Don't set the frame pointer's
10730 address on the stack unless it's actually located there.
10731 Set the SRP's address on the stack correctly when the PC is still in
10733 (cris_return_value): New function.
10734 (cris_gdbarch_init): Clear deprecated store_return_value,
10735 extract_return_value.
10737 2004-03-02 Jim Blandy <jimb@redhat.com>
10739 * stabsread.c (reg_value_complaint): The maximum register number
10740 is one less than the number of registers.
10742 2004-03-02 Andrew Cagney <cagney@redhat.com>
10744 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10745 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10746 trailing comma and redundant assignment of I386_ST0_REGNUM.
10747 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10748 32-bit segment registers.
10750 2004-03-01 Andrew Cagney <cagney@redhat.com>
10752 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10753 use frame_relative_level and get_next_frame.
10755 2004-02-29 Andrew Cagney <cagney@redhat.com>
10757 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10758 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10759 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10762 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10764 * inflow.c (terminal_inferior): Don't give up the terminal if we
10765 previously couldn't get the inferior's terminal state.
10767 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10769 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10772 2004-02-28 Andrew Cagney <cagney@redhat.com>
10774 * NEWS: Refer to GDB 6.1.
10775 * README: Refer to GDB 6.1.
10776 * PROBLEMS: Refer to GDB 6.1.
10778 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10780 * thread-db.c (disable_thread_signals): Remove unused function.
10782 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10784 * amd64-nat.c: Include "gdb_string.h".
10785 (amd64_collect_native_gregset): Zero-extend the 32-bit
10786 general-purpose registers and %eip.
10788 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10789 * amd64-tdep.c (amd64_collect_fxsave): New function.
10790 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10792 * i387-tdep.h: Update copyright year.
10793 (i387_collect_fxsave): New prototype.
10794 * i387-tdep.c: Update copyright year.
10795 (i387_collect_fxsave): New function containing most of the code
10796 from i387_fill_fxsave.
10797 (i387_fill_fxsave): Call i387_collect_fxsave.
10799 2004-02-28 Andrew Cagney <cagney@redhat.com>
10801 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10802 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10804 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10806 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10808 2004-02-28 Andrew Cagney <cagney@redhat.com>
10810 * utils.c: Use "", instead of <>, to include readline.
10811 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10812 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10813 * source.c, solib.c, exec.c, event-top.c: Ditto.
10814 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10815 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10816 * Makefile.in: Update all dependencies.
10817 (readline_tilde_h, readline_history_h): Define.
10818 (readline_headers): Delete.
10820 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10822 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10823 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10824 "config/i386/tm-lx64.h".
10826 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10827 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10828 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10830 2004-02-28 Andrew Cagney <cagney@redhat.com>
10832 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10834 * breakpoint.c (_initialize_breakpoint): Use
10835 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10836 Add help to show command.
10838 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10840 * i386-nat.c: Reformat to be closer to coding standards.
10841 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10842 `retval'. Make variables `align' and `size' local to while-loop.
10843 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10844 (_initialize_i386_nat): New prototype.
10846 * tui/tui.c: Include <readline/readline.h> instead of
10847 "readline/readline.h". Include it after <term.h> and
10850 2004-02-27 Andrew Cagney <cagney@redhat.com>
10852 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10853 the new frame unwind code.
10854 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10855 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10858 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10859 "return_value" and "push_dummy_call".
10860 (hppa32_use_struct_convention): Delete unused function.
10861 (hppa32_store_return_value): Delete unused function.
10862 (hppa32_extract_return_value): Delete unused function.
10863 (hppa32_stack_align): Delete function.
10865 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10867 * coffread.c (enter_linenos): Don't let rawptr reference memory
10868 outside linetab[]'s limits.
10870 2004-02-27 Andrew Cagney <cagney@redhat.com>
10872 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10873 inferior stack space - the stack needs to grow upwards.
10874 (hppa32_frame_align): New function.
10875 (hppa64_frame_align): Replace hppa_frame_align.
10876 (hppa_gdbarch_init): Update.
10878 2004-02-26 Orjan Friberg <orjanf@axis.com>
10880 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10881 (dwarf2-frame.h): Include.
10882 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10883 Remove static variables related to ABI setting.
10884 (struct gdbarch_tdep): Remove cris_abi member.
10885 (struct frame_extra_info): Remove.
10886 (cris_unwind_cache, stack_item): New structs.
10887 (cris_frame_unwind, cris_frame_base): New variables.
10888 (push_stack_item, pop_stack_item)
10889 (cris_frame_unwind_cache, cris_frame_this_id)
10890 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10891 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10892 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10893 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10894 (cris_reg_struct_has_addr): New functions.
10895 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10896 (cris_frame_saved_pc, cris_saved_pc_after_call,
10897 (cris_store_struct_return, cris_frameless_function_invocation)
10898 (cris_pop_frame, cris_skip_prologue_main)
10899 (cris_abi_original_store_return_value)
10900 (cris_abi_v2_store_return_value)
10901 (cris_abi_original_extract_return_value)
10902 (cris_abi_v2_extract_return_value)
10903 (cris_abi_original_reg_struct_has_addr)
10904 (cris_abi_v2_reg_struct_has_addr)
10905 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10906 (cris_push_return_address, cris_abi_update): Remove.
10907 (_initialize_cris_tdep): Remove ABI command.
10908 (cris_dump_tdep): Ditto.
10909 (cris_gdbarch_init): Remove ABI command.
10910 Set store_return_value, extract_return_value, push_dummy_code,
10911 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10912 frame_unwind_append_sniffer, frame_base_set_default.
10913 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10914 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10915 sizeof_call_dummy_words, get_saved_register, push_return_address,
10916 pop_frame, store_struct_return, frame_init_saved_regs,
10917 init_extra_frame_info, frameless_function_invocation, frame_chain,
10918 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10921 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10923 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10924 * valprint.c (print_hex_chars): Change from static to external.
10925 (print_char_chars): New function.
10926 * printcmd.c (print_scalar_formatted): For integer and enum types
10927 that are longer than LONGEST, perform processing via appropriate
10928 print_*_chars routines.
10930 2004-02-26 Andrew Cagney <cagney@redhat.com>
10932 * Makefile.in: Update dependencies.
10933 Changes from Ulrich Weigand,
10934 * s390-tdep.c: Include "dwarf2-frame.h".
10935 (s390_dwarf2_frame_init_reg): New function.
10936 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10937 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10939 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10941 * breakpoint.c (pending_break_support): New setting variable.
10942 (break_command_1): Account for pending_break_support setting
10943 when creating pending breakpoints.
10944 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10945 (_initialize_breakpoint): Add "set breakpoint pending" and
10946 "show breakpoint pending" commands.
10948 2004-02-26 Andrew Cagney <cagney@redhat.com>
10951 * charset.c (backslashable, backslashed, represented): Remove 'e'
10952 from list of escaped characters, not part of ISO-C.
10954 2004-02-25 J. Brobecker <brobecker@gnat.com>
10956 From Peter Schauer <schauer@pdf.de>:
10957 * tui/tui.c: Move system header includes after local includes.
10958 Fixes a build failure on solaris systems.
10960 2004-02-25 J. Brobecker <brobecker@gnat.com>
10962 * configure.in: Refine the previous change.
10963 * configure: Regenerate.
10965 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10967 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10968 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10969 "amd64-tdep.h" instead of "x86-64-tdep.h".
10970 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10971 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10972 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10973 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10974 and "x86-64-tdep.c".
10975 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10976 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10977 and "x86-64-tdep.c".
10978 * amd64bsd-nat.c: Update copyright year.
10979 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10980 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10982 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10984 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10986 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10988 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10990 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10992 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10993 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10994 * Makefile.in (amd64_linux_tdep_h): Renamed from
10995 x86_64_linux_tdep_h.
10996 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10997 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10998 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10999 (amd64obsd-tdep.o): Update dependencies.
11000 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11002 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11004 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11005 amd64-linux-nat.c amd64-linux-tdep.c.
11006 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11007 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11008 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11009 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11010 amd64-tdep.o and amd64-linux-tdep.o.
11011 (TM_FILE): Set to tm-linux64.h.
11012 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11013 (NAT_FILE): Set to nm-linux64.h.
11014 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11015 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11017 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11019 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11022 2004-02-25 Roland McGrath <roland@redhat.com>
11024 * remote.c (remote_protocol_qPart_auxv): New variable.
11025 (init_all_packet_configs): Initialize it.
11026 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11027 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11028 (show_remote_cmd): Call it.
11029 (_initialize_remote): Initialize commands.
11030 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11031 service TARGET_OBJECT_AUXV requests.
11033 2004-02-25 J. Brobecker <brobecker@gnat.com>
11035 * configure.in: Make sure that the wborder function is available.
11036 Otherwise, search for it in the cur_colr library.
11037 * configure: Regenerate.
11039 2004-02-25 Andrew Cagney <cagney@redhat.com>
11041 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11043 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11045 * config/i386/tm-x86-64linux.h: Tweak comments.
11047 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11049 * MAINTAINERS: Add self to write-after-approval list.
11051 2004-02-25 Andrew Cagney <cagney@redhat.com>
11053 PR cli/1566. Problem found, and fix suggested by David Allan.
11054 * cli/cli-script.c (execute_control_command): Unconditionally
11055 install a cleanup. Default "ret" to "invalid_control". Use
11056 "break" instead of "return" to escape from the switch.
11058 2004-02-24 J. Brobecker <brobecker@gnat.com>
11060 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11061 with the lines macro defined in term.h on AiX.
11062 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11063 a collision with the label_width macro defined in term.h on AiX.
11065 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11067 Committed by Kevin Buettner <kevinb@redhat.com>.
11069 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11070 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11071 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11072 instead of ia64_write_pc().
11073 * ia64-linux-tdep.c (regcache.h): Include.
11074 (ia64_linux_write_pc): New function.
11076 2004-02-23 Roland McGrath <roland@redhat.com>
11078 * auxv.c (info_auxv_command): Fix typos in error messages.
11080 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11082 * x86-64-tdep.h: Tweak comment.
11083 (enum amd64_regnum): New.
11084 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11085 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11086 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11087 (X86_64_XMM1_REGNUM): Removed.
11088 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11089 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11090 prototypes for renamed functions.
11091 * x86-64-tdep.c: Fix typo.
11092 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11094 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11095 Use constants from `enum amd64_regnum' for register numbers.
11096 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11097 (amd64_analyze_prologue, amd64_frame_cache,
11098 amd64_sigtramp_frame_cache): Use constants from `enum
11099 amd64_regnum' for register numbers.
11100 (amd64_supply_fpregset): Adjust for renamed functions.
11101 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11102 `enum amd64_regnum' for register numbers.
11103 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11104 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11105 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11106 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11107 (amd64_linux_fill_gregset): Adjust for renamed macros.
11108 (fetch_core_registers): Adjust for renamed functions.
11109 (amd64_linux_init_abi): Adjust for renamed functions.
11110 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11112 * amd64-nat.c: Adjust for renamed macros.
11113 * amd64bsd-nat.c (fetch_inferior_registers)
11114 (store_inferior_registers): Use constants from `enum amd64_regnum'
11115 for register numbers. Adjust for renamed variables.
11116 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11118 (_initialize_amd64fbsd_nat): Use constants from `enum
11119 amd64_regnum' for register numbers.
11120 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11121 `enum amd64_regnum' for register numbers.
11122 (amd64fbsd_init_abi): Adjust for renamed functions.
11123 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11124 `enum amd64_regnum' for register numbers.
11125 (amd64nbsd_init_abi): Adjust for renamed functions.
11126 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11127 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11128 `enum amd64_regnum' for register numbers.
11129 (amd64obsd_init_abi): Adjust for renamed functions.
11130 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11132 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11134 * breakpoint.c (print_one_breakpoint): Do not output spaces
11135 after printing <PENDING> for a pending breakpoint.
11137 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11139 * printcmd.c (print_scalar_formatted): Initialize val_long
11140 to remove compiler warning message.
11142 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11144 * defs.h (nquery, yquery): New prototypes.
11145 * breakpoint.c (break_command_1): Use new nquery interface.
11146 * utils.c (defaulted_query, nquery, yquery): New functions.
11148 2004-02-23 Andrew Cagney <cagney@redhat.com>
11150 * hppa-tdep.c (hppa_frame_align): New function.
11151 (hppa32_push_dummy_call): New function.
11152 (hppa64_push_dummy_call): New function.
11153 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11156 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11157 FIX_CALL_DUMMY when push_dummy_call is available.
11158 (call_function_by_hand, push_dummy_code): Ditto.
11160 2004-02-22 Andrew Cagney <cagney@redhat.com>
11162 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11163 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11164 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11165 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11166 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11167 call_dummy_location to ON_STACK.
11169 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11171 * x86-64-linux-tdep.c: Tweak comment.
11172 (amd64_linux_supply_gregset): Renamed from
11173 x86_64_linux_supply_gresget.
11174 (amd64_linux_fill_gregset): Renamed from
11175 x86_64_linux_fill_gregset.
11176 (fetch_core_registers): Adjust for renamed functions.
11177 (amd64_core_fns): Renamed from x86_64_core_fns.
11178 (amd64_linux_sigtramp_start): Renamed from
11179 x86_64_linux_sigtramp_start.
11180 (amd64_linux_pc_in_sigtramp): Renamed from
11181 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11182 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11183 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11184 (amd64_linux_sigcontext_addr): Renamed from
11185 x86_64_linux_sigcontext_addr.
11186 (amd64_linux_sc_reg_offset): Renamed from
11187 x86_64_linux_sc_reg_offset.
11188 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11189 Adjust for renamed functions and variables.
11190 (_initialize_amd64_linux_tdep): Renamed from
11191 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11193 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11194 Adjust for renamed functions.
11196 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11197 from x86_64_linux_gregset64_reg_offset.
11198 (amd64_linux_gregset32_reg_offset): Rename from
11199 x86_64_linux_gregset64_reg_offset.
11200 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11201 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11202 (amd64_linux_dr_set_control): Renamed from
11203 x86_64_linux_dr_set_control. Adjust for renamed functions.
11204 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11205 Adjust for renamed functions.
11206 (amd64_linux_dr_reset_addr): Renamed from
11207 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11208 (amd64_linux_dr_get_status): Renamed from
11209 x86_64_linux_dr_get_status. Adjust for renamed functions.
11210 (_initialize_amd64_linux_nat): Renamed from
11211 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11213 * config/i386/nm-x86-64linux.h: Update copyright year.
11214 Adjust for renamed functions.
11216 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11217 amd64fbsd_sigtramp_start.
11218 (amd64fbsd_sigtramp_end_addr): Renamed from
11219 amd64fbsd_sigtramp_end.
11220 (amd64fbsd_init_abi): Adjust for renamed variables.
11221 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11223 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11224 amd64fbsd_sigtramp_start.
11225 (amd64fbsd_sigtramp_end_addr): Renamed from
11226 amd64fbsd_sigtramp_end.
11228 2004-02-22 Andrew Cagney <cagney@redhat.com>
11230 * hppa-tdep.c (hppa32_return_value): New function.
11231 (hppa64_return_value): New function.
11232 (hppa_gdbarch_init): Set return_value; keep disabled.
11234 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11235 struct-return and inferior function call methods.
11237 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11239 (struct hppa_frame_cache): Define.
11240 (hppa_frame_cache, hppa_frame_this_id): New functions.
11241 (hppa_frame_prev_register): New function.
11242 (hppa_frame_unwind, hppa_frame_base): New variables.
11243 (hppa_frame_unwind_sniffer): New function.
11244 (hppa_frame_base_address, hppa_unwind_pc): New function.
11245 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11246 sniffer, and frame base sniffer; keep disabled.
11247 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11248 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11250 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11251 to predicates for "seriously old code".
11253 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11256 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11258 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11260 * config/pa/tm-hppa.h: Update copyright.
11261 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11262 (deprecated_init_frame_pc_default): Delete declaration.
11263 (hppa_frame_init_saved_regs): Delete declaration.
11264 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11265 * hppa-tdep.c: Include "arch-utils.h".
11266 (hppa_gdbarch_init): Set deprecated init_frame_pc
11267 and deprecated frame_init_saved_regs.
11268 (hppa_frame_init_saved_regs): Make static.
11270 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11272 Remove old 386BSD support.
11273 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11274 * configure.host: Remove i[34567]86-*-bsd*.
11275 * configure.tgt: Remove i[34567]86-*-bsd*.
11276 * i386b-nat.c: Removed.
11277 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11278 (i386b-nat.o): Remove dependencies.
11280 * config/i386/i386bsd.mh: Removed.
11281 * config/i386/i386bsd.mt: Removed.
11282 * config/i386/nm-i386bsd.h: Removed.
11283 * config/i386/tm-i386bsd.h: Removed.
11284 * config/i386/xm-i386bsd.h: Removed.
11286 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11288 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11289 (amd64fbsd_init_abi): Set link map offsets.
11290 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11291 (amd64nbsd_init_abi): Set link map offsets.
11292 * amd64obsd-tdep.c: Include "solib-svr4.h".
11293 (amd64obsd_init_abi): Set link map offsets.
11294 * i386fbsd-tdep.c: Include "solib-svr4.h".
11295 (i386fbsd_init_abi): Set link map offsets.
11296 * i386nbsd-tdep.c: Include "solib-svr4.h".
11297 (i386nbsdelf_init_abi): Set link map offsets.
11298 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11299 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11300 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11301 solib-legacy.o and core-aout.o. Reformat.
11302 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11303 solib-svr4.o, solib-legacy.o. Reformat.
11304 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11305 * config/i386/nbsdelf.mh: Reformat.
11306 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11307 solib-svr4.o, solib-legacy.o and corelow.o.
11308 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11309 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11310 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11311 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11312 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11313 (TM_FILE): Set to tm-fbsd.h.
11314 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11315 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11317 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11319 (TM_FILE): Set to nm-nbsd.h.
11320 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11321 Simplify shared library support. Don't include "elf/common.h".
11322 (SVR4_SHARED_LIBS): Don't define.
11323 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11325 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11326 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11327 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11328 Don't include "i386/tm-i386.h". Include "solib.h".
11329 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11330 Don't include "i386/tm-i386.h".
11331 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11332 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11333 Include "i386/xm-i386.h".
11334 (HOST_LONG_DOUBLE_FORMAT): Remove.
11336 Fix OpenBSD/i386 sigtramp recognition.
11337 * i386-tdep.h: Update copyright year.
11338 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11339 (i386bsd_sigtramp_end): New prototypes.
11340 (i386fbsd_sigtramp_start_addr): Renamed from
11341 i386fbsd_sigtramp_start.
11342 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11343 (i386obsd_sigtramp_start_addr): Renamed from
11344 i386obsd_sigtramp_start.
11345 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11346 * i386bsd-tdep.c: Update copyright year.
11347 (i386bsd_pc_in_sigtramp): Make public.
11348 * i386fbsd-nat.c: Update copyright year.
11349 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11350 * i386fbsd-tdep.c: Update copyright year.
11351 (i386fbsd_sigtramp_start_addr): Renamed from
11352 i386fbsd_sigtramp_start.
11353 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11354 (i386fbsdaout_init_abi): Adjust for renamed variables.
11355 * i386obsd-nat.c: Update copyright year.
11356 (_initialize_i386obsd_nat): Adjust for renamed variables.
11357 * i386obsd-tdep.c: Include "target.h".
11358 (i386obsd_page_size): New variable.
11359 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11360 (i386obsd_sigtramp_end): New functions.
11361 (i386obsd_sigtramp_start_addr): Renamed from
11362 i386obsd_sigtramp_start.
11363 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11364 (i386obsd_init_abi): Adjust for renamed variables. Set
11365 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11366 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11368 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11369 trampoline change in OpenBSD kernel.
11371 * amd64-nat.c: Update copyright year.
11372 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11373 architecture from REGCACHE.
11375 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11376 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11378 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11380 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11381 i[34567]86-*-openbsd3.[0-3].
11382 * config/i386/obsdaout.mh: New file.
11384 * config/i386/obsd.mh (MH_FLAGS): Remove.
11387 * i386obsd-tdep.c: Update copyright years. Include
11389 (i386obsd_init_abi): Don't set regset_from_core_section here.
11390 (i386obsd_aout_init_abi): New function. Set
11391 regset_from_core_section here.
11392 (i386obsd_elf_init_abi): New function.
11393 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11394 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11395 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11396 (TM_FILE): Set to tm-nbsd.h.
11398 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11401 * solib-svr4.h: Update copyright year.
11402 (svr4_ilp32_fetch_link_map_offsets)
11403 (svr4_lp64_fetch_link_map_offsets): New prototype.
11404 * solib-svr4.c: Update copyright year.
11405 (svr4_ilp32_fetch_link_map_offsets)
11406 (svr4_lp64_fetch_link_map_offsets): New function.
11408 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11410 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11411 to the partial symbol table.
11413 2004-02-20 J. brobecker <brobecker@gnat.com>
11415 * PROBLEMS: Add description of problem documented under gdb/1560.
11417 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11419 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11421 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11423 (amd64obsd_init_abi): Reorder initializations. Use
11424 amd64obsd_r_reg_offset to initialize the general-purpose register
11425 set details. Set regset_from_core_section.
11426 (_initialize_amd64obsd_tdep): Rename from
11427 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11428 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11429 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11431 * NEWS (New native configurations): Mention OpenBSD/alpha.
11432 * configure.tgt: Add alpha*-*-openbsd*.
11433 * configure.host: Add alpha*-*-openbsd*.
11434 * alphanbsd-tdep.c: Update copyright year.
11435 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11437 2004-02-20 Andrew Cagney <cagney@redhat.com>
11440 * configure.tgt: Delete target "none-*-*".
11441 * configure.host: Delete host "none-*-*".
11442 * config/none/none.mh: Delete file.
11443 * config/none/none.mt: Delete file.
11444 * config/none/xm-none.h: Delete file.
11445 * config/none/tm-none.h: Delete file.
11446 * config/none/nm-none.h: Delete file.
11448 2004-02-19 Fred Fish <fnf@redhat.com>
11450 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11451 cache->uses_fp prior to setting it.
11453 2004-02-19 Fred Fish <fnf@redhat.com>
11455 Fix for PR breakpoint/1558.
11456 * sh-tdep.c (IS_JSR): New macro.
11457 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11459 2004-02-19 Jim Blandy <jimb@redhat.com>
11461 * findvar.c (value_from_register): Doc fix.
11463 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11465 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11466 type being greater than sizeof of host's LONGEST. Always use
11467 unpack_long() unless format 'f' chosen.
11469 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11471 Committed by Elena Zannoni <ezannoni@redhat.com>
11473 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11474 contains a symbol wich is the best, non-exact match for the given
11475 pc. Update comments.
11477 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11479 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11480 macro, which was part of the now removed Mach 3 port.
11481 * utils.c (request_quit): Ditto.
11483 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11485 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11486 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11488 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11490 Committed by Mark Kettenis <kettenis@gnu.org>.
11492 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11495 2004-02-18 Andrew Cagney <cagney@redhat.com>
11497 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11498 CONFIG_INSTALL and CONFIG_UNINSTALL.
11499 * configure: Re-generate.
11500 * interps.h (INTERP_TUI): Define.
11501 * Makefile.in: Update dependencies.
11503 (tui-main.o): Specify dependencies.
11504 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11505 * tui/tui-main.c: New file.
11507 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11509 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11510 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11512 * configure.host: Add x86_64-*-openbsd*.
11513 * configure.tgt: Add x86_64-*-openbsd*.
11514 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11516 * tui/tui.c: Don't include <malloc.h>.
11518 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11519 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11522 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11523 static. Remove extraneous whitespace.
11524 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11527 2004-02-17 Jim Blandy <jimb@redhat.com>
11529 * findvar.c (value_from_register): Doc fix.
11531 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11533 Committed by Jim Blandy <jimb@redhat.com>.
11535 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11536 CORE_ADDR as type for selectors. Correct types for GNU run time
11537 message lookup function to use double indirection.
11538 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11539 * objc-lang.h (lookup_child_selector): Adapt prototype.
11541 * s390-nat.c (SUBOFF): New macro.
11542 (supply_gregset, fill_gregset): Use it to handle debugging
11543 of 32-bit exectuables running under a 64-bit kernel.
11544 * s390-tdep.c: Include "solib-svr4.h".
11545 (s390_svr4_fetch_link_map_offset): New function.
11546 (s390x_svr_fetch_link_map_offset): Likewise.
11547 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11548 * Makefile.in (s390-tdep.o): Update dependencies.
11550 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11552 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11553 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11554 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11555 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11556 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11557 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11558 S390_SIGNAL_FRAMESIZE,
11559 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11560 (struct frame_extra_info): Remove.
11561 (s390_memset_extra_info): Remove.
11562 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11563 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11564 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11565 (is_rse): Renamed to ...
11566 (is_rsy): ... this. Support long displacements.
11567 (is_rxe): Renamed to ...
11568 (is_rxy): ... this. Support long displacements.
11569 (compute_x_addr): Support long displacements.
11570 (struct s390_prologue_data): New data type.
11571 (s390_on_stack): Change API to use struct s390_prologue_data.
11572 (s390_store): Reimplement.
11573 (s390_load): New function.
11574 (s390_get_signal_frame_info): Remove.
11575 (s390_get_frame_info): Remove, replace by ...
11576 (s390_analyze_prolog): ... this new function.
11577 (s390_check_function_end): Remove.
11578 (s390_function_start): Remove.
11579 (s390_frameless_function_invokation): Remove.
11580 (s390_is_sigreturn): Remove.
11581 (s390_init_frame_pc_first): Remove.
11582 (s390_init_frame_extra_info): Remove.
11583 (s390_frame_init_saved_regs): Remove.
11584 (s390_frame_saved_pc_nofix): Remove.
11585 (s390_frame_saved_pc): Remove.
11586 (s390_frame_chain): Remove.
11587 (s390_fp_regnum, s390_read_fp): Remove.
11588 (s390_pop_frame_regular, s390_pop_frame): Remove.
11589 (s390_saved_pc_after_call): Remove.
11590 (s390_skip_prologue): Reimplement.
11591 (s390_in_function_epilogue_p): Support long displacements.
11592 (struct s390_unwind_cache): New data structure.
11593 (s390_frame_unwind_cache): New function.
11594 (s390_prologue_frame_unwind_cache): Likewise.
11595 (s390_backchain_frame_unwind_cache): Likewise.
11596 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11597 (s390_frame_unwind): Define.
11598 (s390_frame_sniffer): New function.
11599 (struct s390_pltstub_unwind_cache): New data structure.
11600 (s390_pltstub_frame_unwind_cache): New function.
11601 (s390_pltstub_frame_this_id): Likewise.
11602 (s390_pltstub_frame_prev_register): Likewise.
11603 (s390_pltstub_frame_unwind): Define.
11604 (s390_pltstub_frame_sniffer): New function.
11605 (struct s390_sigtramp_unwind_cache): New data structure.
11606 (s390_sigtramp_frame_unwind_cache): New function.
11607 (s390_sigtramp_frame_this_id): Likewise.
11608 (s390_sigtramp_frame_prev_register): Likewise.
11609 (s390_sigtramp_frame_unwind): Define.
11610 (s390_sigtramp_frame_sniffer): New function.
11611 (s390_frame_base_address, s390_local_base_address): New functions.
11612 (s390_frame_base): Define.
11613 (s390_unwind_pc, s390_unwind_sp): New function.
11614 (s390_push_dummy_call): Use new frame base location.
11615 (s390_unwind_dummy_id): Likewise.
11616 (s390_gdbarch_init): Remove calls to:
11617 set_gdbarch_frameless_function_invocation,
11618 set_gdbarch_deprecated_init_frame_pc,
11619 set_gdbarch_deprecated_frame_chain,
11620 set_gdbarch_deprecated_frame_init_saved_regs,
11621 set_gdbarch_deprecated_pop_frame,
11622 set_gdbarch_deprecated_init_extra_frame_info,
11623 set_gdbarch_deprecated_init_frame_pc_first,
11624 set_gdbarch_deprecated_target_read_fp,
11625 set_gdbarch_deprecated_frame_saved_pc,
11626 set_gdbarch_deprecated_saved_pc_after_call,
11627 set_gdbarch_deprecated_fp_regnum.
11629 set_gdbarch_in_solib_call_trampoline,
11630 frame_unwind_append_sniffer,
11631 frame_base_set_default,
11632 set_gdbarch_unwind_pc,
11633 set_gdbarch_unwind_sp.
11634 * Makefile.in (s390-tdep.o): Update dependencies.
11636 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11637 (S390_STACK_FRAME_OVERHEAD): Remove.
11638 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11639 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11640 (s390_promote_integer_argument): Remove.
11641 (s390_cannot_extract_struct_value_address): Remove.
11642 (s390_use_struct_convention, s390_store_struct_return): Remove.
11643 (s390_extract_return_value, s390_store_return_value): Remove.
11644 (s390_return_value_convention, s390_return_value): New functions.
11645 (is_float_singleton): Handle typedefs.
11646 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11647 Remove, replace by ...
11648 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11649 s390_function_arg_integer): ... these new functions.
11650 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11651 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11652 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11655 set_gdbarch_deprecated_store_struct_return,
11656 set_gdbarch_deprecated_extract_return_value,
11657 set_gdbarch_deprecated_store_return_value,
11658 set_gdbarch_use_struct_convention,
11659 set_gdbarch_extract_struct_value_address,
11660 set_gdbarch_deprecated_pc_in_call_dummy,
11661 set_gdbarch_deprecated_push_arguments,
11662 set_gdbarch_deprecated_save_dummy_frame_tos,
11663 set_gdbarch_deprecated_push_return_address,
11664 set_gdbarch_deprecated_sizeof_call_dummy_words,
11665 set_gdbarch_deprecated_call_dummy_words,
11666 set_gdbarch_deprecated_dummy_write_sp.
11668 set_gdbarch_push_dummy_call,
11669 set_gdbarch_unwind_dummy_id,
11670 set_gdbarch_return_value.
11672 * config/s390/nm-linux.h: Update comments.
11673 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11674 (STOPPED_BY_WATCHPOINT): Redefine.
11675 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11676 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11677 (s390_stopped_by_watchpoint): Likewise.
11678 (watch_area_cnt): Remove.
11679 * s390-nat.c: Update comments.
11680 (watch_area): Remove typedef.
11681 Global replace watch_area by struct watch_area.
11682 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11683 (s390_stopped_by_watchpoint): Remove pid argument,
11684 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11685 (s390_fix_watch_points): Remove pid argument,
11686 use s390_inferior_tid. Recompute area spanned by watchpoints.
11687 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11688 argument. Reimplement.
11690 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11691 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11692 (FETCH_INFERIOR_REGISTERS): Define.
11693 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11695 * config/s390/s390x.mt: Remove.
11696 * config/s390/tm-s390.h: Remove.
11697 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11698 (TARGET_ELF64): Remove.
11699 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11700 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11701 s390*-*-* case; always set gdb_target to s390.
11702 * regformats/reg-s390.dat: Remove control registers.
11703 * regformats/reg-s390x.dat: Likewise.
11704 * s390-tdep.h: New file.
11705 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11706 Include "inferior.h" and "s390-tdep.h".
11707 Remove private definition of offsetof.
11708 (s390_register_u_addr): Remove.
11709 (regmap_gregset, regmap_fpregset): Define.
11710 (supply_gregset, fill_gregset): Reimplement.
11711 (supply_fpregset, fill_fpregset): Likewise.
11712 (s390_inferior_tid): New function.
11713 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11714 (fetch_inferior_registers, store_inferior_registers): Likewise.
11715 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11716 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11717 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11718 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11719 (struct gdbarch_tdep): Define.
11720 (struct s390_register_info): Define.
11721 (s390_register_info): New variable.
11722 (s390_register_name): Reimplement.
11723 (s390_register_type): New function.
11724 (s390_register_raw_size, s390x_register_raw_size): Remove.
11725 (s390_cannot_fetch_register): Remove.
11726 (s390_register_byte): Remove.
11727 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11728 (s390_dwarf_regmap): New variable.
11729 (s390_dwarf_reg_to_regnum): New function.
11730 (s390_stab_reg_to_regnum): Remove.
11731 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11732 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11733 (s390_convert_register_p): Likewise.
11734 (s390_register_to_value, s390_value_to_register): Likewise.
11735 (s390_register_reggroup_p): Likewise.
11736 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11737 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11738 (s390_supply_regset, s390_regset_from_core_section): New functions.
11739 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11740 (S390_FPR_SIZE): Likewise.
11741 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11742 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11743 (S390_NUM_GPRS): Move here from tm-s390.h.
11744 (S390_NUM_FPRS): Likewise.
11745 (s390_in_function_epilogue_p): New function.
11746 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11747 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11748 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11749 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11750 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11752 set_gdbarch_deprecated_max_register_raw_size,
11753 set_gdbarch_deprecated_max_register_virtual_size,
11754 set_gdbarch_deprecated_register_byte,
11755 set_gdbarch_cannot_fetch_register,
11756 set_gdbarch_cannot_store_register,
11757 set_gdbarch_deprecated_register_size,
11758 set_gdbarch_deprecated_register_raw_size,
11759 set_gdbarch_deprecated_register_virtual_size,
11760 set_gdbarch_deprecated_register_virtual_type,
11761 set_gdbarch_deprecated_register_bytes.
11763 set_gdbarch_num_pseudo_regs,
11764 set_gdbarch_register_type,
11765 set_gdbarch_convert_register_p,
11766 set_gdbarch_register_to_value,
11767 set_gdbarch_value_to_register,
11768 set_gdbarch_register_reggroup_p,
11769 set_gdbarch_regset_from_core_section,
11770 set_gdbarch_pseudo_register_read,
11771 set_gdbarch_pseudo_register_write,
11772 set_gdbarch_in_function_epilogue_p.
11773 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11774 (s390_tdep_h): New variable.
11776 2004-02-17 Jim Blandy <jimb@redhat.com>
11778 * findvar.c (value_from_register): If the type has no length, just
11779 return an acceptable value --- don't report an internal error.
11781 * stabsread.c (read_type): If we find any type numbers that are
11782 forward references, complain if the references aren't resolved by
11783 the time we're finished reading.
11784 (cleanup_undefined_types): Make error message more appropriate for
11787 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11789 * Makefile.in (defs_h): Remove dependency on progress_h.
11790 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11792 * main.c (captured_main): Delete use of START_PROGRESS and
11795 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11797 * objfiles.c (terminate_minimal_symbol_table): Add back
11798 initialization of MSYMBOL_TYPE.
11800 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11802 Committed by Andrew Cagney.
11803 * Makefile.in (ia64_tdep_h): New macro.
11804 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11805 (ia64-tdep.o): Likewise.
11806 * ia64-tdep.h: New file.
11807 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11808 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11809 (ia64_aix_sigcontext_register_address): Likewise.
11810 (ia64_linux_getunwind_table): Delete declaration.
11811 * ia64-linux-tdep.c: Likewise.
11813 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11815 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11816 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11817 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11819 2004-02-17 Andrew Cagney <cagney@redhat.com>
11821 * symtab.c (skip_prologue_using_sal): New function.
11822 * symtab.h (skip_prologue_using_sal): Declare.
11823 * frv-tdep.c: Include "symtab.h".
11824 (skip_prologue_using_sal): Delete function.
11825 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11826 * rs6000-tdep.c (refine_prologue_limit): Mention
11827 skip_prologue_using_sal.
11828 * ia64-tdep.c (refine_prologue_limit): Ditto.
11829 * Makefile.in: Update dependencies.
11831 2004-02-16 Andrew Cagney <cagney@redhat.com>
11833 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11834 START_INFERIOR_TRAPS_EXPECTED.
11835 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11836 START_INFERIOR_TRAPS_EXPECTED.
11837 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11839 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11840 macro, moved to "nm-osf.h". Update copyright.
11841 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11844 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11845 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11846 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11847 frameless_look_for_prologue.
11848 * frame.h (legacy_frameless_look_for_prologue): Rename
11849 frameless_look_for_prologue.
11850 * gdbarch.h, gdbarch.c: Re-generate.
11851 * sh64-tdep.c (sh64_gdbarch_init): Update.
11852 * sh-tdep.c (sh_gdbarch_init): Update.
11853 * s390-tdep.c (s390_gdbarch_init): Update.
11854 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11855 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11856 * m68k-tdep.c (m68k_gdbarch_init): Update.
11857 (delta68_frame_args_address): Update.
11858 * m32r-tdep.c (m32r_gdbarch_init): Update.
11859 * hppa-tdep.c (hppa_gdbarch_init): Update.
11860 * h8300-tdep.c (h8300_gdbarch_init): Update.
11861 * frv-tdep.c (frv_gdbarch_init): Update.
11862 (frv_frameless_function_invocation): Update.
11863 * cris-tdep.c (cris_gdbarch_init): Update.
11864 (cris_frameless_function_invocation): Update.
11865 * avr-tdep.c (avr_gdbarch_init): Update.
11866 * arm-tdep.c (arm_gdbarch_init): Update.
11867 * stack.c (frame_info): Update, call predicate.
11868 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11869 * frame.c (legacy_get_prev_frame): Update, call predicate..
11870 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11871 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11872 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11874 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11875 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11876 * vax-tdep.c (vax_gdbarch_init): Ditto.
11878 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11881 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11883 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11886 2004-02-16 Andrew Cagney <cagney@redhat.com>
11888 * tui/tui-windata.c: Include "gdb_string.h".
11889 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11890 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11891 * Makefile.in: Update dependencies.
11893 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11895 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11896 * infrun.c: Include "gdb_assert.h".
11897 (singlestep_ptid, saved_singlestep_ptid)
11898 (stepping_past_singlestep_breakpoint): New variables.
11899 (resume): Set singlestep_ptid. Check for singlestep thread
11901 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11902 (handle_inferior_event): Handle singlestep thread hop.
11904 2004-02-16 Andrew Cagney <cagney@redhat.com>
11906 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11907 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11908 (dwarf2_frame_init_reg): Ditto.
11910 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11911 suggested by Joshua Neuheisel
11913 * configure.in: Always check for curses, including pdcurses.
11914 Warn, instead of error, when no curses are found. Enable TUI when
11915 curses is available.
11916 * configure: Re-generate.
11918 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11920 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11921 sh_sh4_register_convert_to_virtual.
11922 (sh_register_convert_to_raw): Rename from
11923 sh_sh4_register_convert_to_raw.
11924 (sh_pseudo_register_read): Accomodate above name change.
11925 (sh_pseudo_register_write): Ditto.
11927 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11929 * sh-tdep.c (sh_generic_register_name): Remove.
11930 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11932 2004-02-15 Andrew Cagney <cagney@redhat.com>
11934 * configure.in (build_warnings): Add -Wunused-function.
11935 * configure: Re-generate.
11937 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11938 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11940 * procfs.c (procfs_init_inferior): Assume that
11941 START_INFERIOR_TRAPS_EXPECTED is defined.
11942 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11943 * config/ns32k/tm-nbsd.h: Delete file,
11944 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11946 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11947 * config/vax/tm-vax.h: Delete file.
11949 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11950 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11951 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11952 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11953 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11954 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11955 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11957 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11959 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11960 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11961 (struct dwarf2_frame_ops): New.
11962 (dwarf2_frame_default_init_reg): New function, based on
11963 dwarf2_frame_init_reg.
11964 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11965 (dwarf2_frame_init_reg): Call architecture-specific function.
11966 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11967 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11968 instead of dwarf2_frame_data.
11969 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11970 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11972 2004-02-15 Andrew Cagney <cagney@redhat.com>
11974 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11975 register_gdbarch_swap.
11976 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11977 * f-lang.c (_initialize_f_language): Update, use
11978 DEPRECATED_REGISTER_GDBARCH_SWAP.
11979 * remote.c (_initialize_remote): Ditto.
11980 * regcache.c (_initialize_regcache): Ditto.
11981 * parse.c (_initialize_parse): Ditto.
11982 * infrun.c (_initialize_infrun): Ditto.
11983 * mi/mi-main.c (_initialize_mi_main): Ditto.
11984 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11986 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11987 poking .cacheable directly.
11988 * symfile.c (symfile_bfd_open): Ditto.
11990 * Makefile.in: Update all dependencies.
11992 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11993 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11994 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11995 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11996 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11998 2004-02-14 Andrew Cagney <cagney@redhat.com>
12000 * arch-utils.c (legacy_convert_register_p): Check
12001 DEPRECATED_REGISTER_CONVERTIBLE_P.
12002 * findvar.c (value_of_register): Ditto.
12004 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12005 * gdbarch.h, gdbarch.c: Re-generate.
12006 * arch-utils.c (deprecated_register_convertible_not): Delete.
12007 * arch-utils.h (deprecated_register_convertible_not): Delete.
12008 * mi/mi-main.c (get_register): Update. Update copyright.
12009 * infcmd.c (default_print_registers_info): Update.
12011 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12012 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12013 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12014 * gdbarch.h, gdbarch.c: Re-generate.
12015 * frame.c (deprecated_get_next_frame_hack): Delete function.
12016 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12017 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12019 * infcall.c (call_function_by_hand): Update.
12021 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12023 * symfile.c (init_entry_point_info, entry_point_address): Move
12025 * objfiles.c (init_entry_point_info, entry_point_address):..to
12027 * symfile.h (init_entry_point_info, entry_point_address): Remove
12029 * objfiles.h (init_entry_point_info, entry_point_address):Add
12031 * cris-tdep.c: Remove include of symfile.h. Add include of
12033 * infcall.c: Ditto.
12034 * mcore-tdep.c: Ditto.
12035 * mn10300-tdep.c: Ditto.
12036 * sh64-tdep.c: Ditto.
12037 * v850-tdep.c: Ditto.
12038 * arm-tdep.c: Remove include of symfile.h.
12039 * blockframe.c: Ditto.
12040 * coffread.c: Ditto.
12041 * dbxread.c: Ditto.
12042 * dwarf2read.c: Ditto.
12043 * dwarfread.c: Ditto.
12044 * frv-tdep.c: Ditto.
12045 * ia64-tdep.c: Ditto.
12046 * mdebugread.c: Ditto.
12047 * mipsread.c: Ditto.
12048 * rs6000-tdep.c: Ditto.
12049 * s390-tdep.c: Ditto.
12050 * sh-tdep.c: Ditto.
12051 * xstormy16-tdep.c: Ditto.
12052 * gdbarch.sh: Remove include of symfile.h.
12053 * gdbarch.c: Regenerate.
12054 * solib-irix.c (enable_break): Use entry_point_address().
12055 Add comment about include file.
12056 * xcoffread.c: Add comment about include file.
12057 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12058 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12059 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12060 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12061 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12063 2004-02-13 Andrew Cagney <cagney@redhat.com>
12065 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12066 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12068 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12070 2004-02-12 Fred Fish <fnf@redhat.com>
12072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12073 set_gdbarch_store_return_value.
12075 2004-02-12 Andrew Cagney <cagney@redhat.com>
12077 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12078 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12079 (interrupt_query): Ditto.
12080 (ofunc): Delete unused variable.
12081 * cris-tdep.c (cris_abi): Delete unused function.
12082 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12083 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12084 (cris_get_asr_quick_shift_steps): Ditto.
12085 (cris_skip_prologue_frameless_p): Ditto.
12086 * arm-tdep.c (arm_push_return_address): Delete unused function.
12087 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12088 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12089 * s390-tdep.c (s390_function_start): Delete unused function.
12091 2004-02-12 Andrew Cagney <cagney@redhat.com>
12093 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12094 gdbarch.h, gdbarch.c: Re-generate.
12095 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12096 to generic_prologue_frameless_p.
12097 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12098 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12100 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12102 * mips-linux-tdep.c: Include "frame.h".
12103 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12104 (mips_linux_skip_resolver): New functions.
12105 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12106 and set_gdbarch_in_solib_call_trampoline.
12107 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12108 to after set_gdbarch_in_solib_return_trampoline. Only set the
12109 solib hooks to mips16 functions if the OS ABI is unknown.
12110 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12111 including "config/tm-linux.h".
12112 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12113 * Makefile.in (mips-linux-tdep.o): Update.
12115 2004-02-11 David Carlton <carlton@kealia.com>
12117 * linespec.c (decode_compound): Only look for a class symbol when
12118 considering all but the rightmost component.
12120 2004-02-11 Andrew Cagney <cagney@redhat.com>
12122 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12123 abi code are are separatly grouped.
12125 2004-02-11 Andrew Cagney <cagney@redhat.com>
12127 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12128 * gdbarch.h, gdbarch.c: Re-generate.
12129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12130 * v850-tdep.c (v850_gdbarch_init): Update.
12131 * sh64-tdep.c (sh64_gdbarch_init): Update.
12132 * sh-tdep.c (sh_gdbarch_init): Update.
12133 * s390-tdep.c (s390_gdbarch_init): Update.
12134 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12135 * mips-tdep.c (mips_gdbarch_init): Update.
12136 * mcore-tdep.c (mcore_gdbarch_init): Update.
12137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12138 * m32r-tdep.c (m32r_gdbarch_init): Update.
12139 * ia64-tdep.c (ia64_gdbarch_init): Update.
12140 * hppa-tdep.c (hppa_gdbarch_init): Update.
12141 * h8300-tdep.c (h8300_gdbarch_init): Update.
12142 * frv-tdep.c (frv_gdbarch_init): Update.
12143 * d10v-tdep.c (d10v_gdbarch_init): Update.
12144 * cris-tdep.c (cris_gdbarch_init): Update.
12145 * avr-tdep.c (avr_gdbarch_init): Update.
12146 * arm-tdep.c (arm_gdbarch_init): Update.
12147 * alpha-tdep.c (alpha_gdbarch_init): Update.
12149 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12151 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12153 (sh_sh4al_dsp_register_name): Ditto.
12155 2004-02-10 Andrew Cagney <cagney@redhat.com>
12157 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12158 (mips_init_frame_pc_first): Delete function.
12159 (mips_frame_saved_pc): Delete function.
12160 (mips_frame_chain): Delete function.
12161 (mips_init_extra_frame_info): Delete function.
12162 (mips_xfer_register): Delete unused variable "reg".
12163 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12164 (mips_n32n64_return_value): Delete unused variable "reg".
12165 (mips_n32n64_return_value): Delete unused variable "pos".
12166 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12167 (mips_o32_return_value): Delete unused variable "pos".
12168 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12169 (mips_print_fp_register): Delete unused variable "namelen"
12170 (mips_print_fp_register): Delete unused variable "flt2"
12171 (get_frame_pointer): Delete function.
12172 (cached_proc_desc): Delete static variable.
12173 (mips_pop_frame): Delete function.
12174 (mips_find_saved_regs): Delete function.
12175 (mips_get_saved_register): Delete function.
12176 (mips_saved_pc_after_call): Delete function.
12177 (SIGFRAME_BASE): Delete macro.
12178 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12179 (SIGFRAME_PC_OFF): Delete macro.
12180 (SIGFRAME_REGSAVE_OFF): Delete macro.
12181 (mips_dump_tdep): Do not print deleted macro definitions.
12183 2004-02-10 Andrew Cagney <cagney@redhat.com>
12185 * Makefile.in (SFILES): Remove explictly listed tui files.
12186 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12188 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12190 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12191 to use paddr functions to format ia64 addresses and long values.
12192 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12193 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12194 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12195 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12196 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12198 2004-02-10 Andrew Cagney <cagney@redhat.com>
12200 * defs.h: Do not include "tui.h".
12201 * gdb_curses.h: New file.
12202 * tui/tui-hooks.h: New file.
12203 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12204 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12205 (tui_initialize_io): Delete declaration.
12206 (tui_initialize_readline: Delete redundant declaration.
12207 (struct tui_point): Delete definition.
12208 * tui/tui-data.h (struct tui_point): Define.
12209 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12210 * utils.c: Include "tui/tui.h".
12211 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12212 * printcmd.c [TUI]: Include "tui/tui.h".
12213 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12214 * tui/tui-command.c: Include "gdb_curses.h".
12215 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12216 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12217 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12218 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12219 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12220 * Makefile.in: Update all dependencies.
12221 (tui_hooks_h, gdb_curses_h): Define.
12222 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12224 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12226 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12227 auxf2. Add comments about some other rarely used fields.
12229 2004-02-10 Andrew Cagney <cagney@redhat.com>
12231 * Makefile.in (init.c): Fix script removing duplicates. Problem
12232 reported by Peter Schauer.
12234 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12236 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12237 obstack_specify_allocation.
12238 * objfiles.c (allocate_objfile): Ditto.
12239 * solib-sunos.c (solib_add_common_symbols)
12240 (allocate_rt_common_objfile): Ditto.
12241 * symfile.c (reread_symbols): Ditto.
12242 * gdb_obstack.h: Add comment.
12244 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12246 * linespec.c (decode_line_1, locate_first_half)
12247 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12248 commented out code.
12250 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12252 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12255 2004-02-09 Andrew Cagney <cagney@redhat.com>
12257 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12258 fails, try find_pc_section. Fix PR c++/1267.
12259 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12260 instead of find_pc_mapped_section.
12261 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12262 not default to the section containing PC. Fix PR symtab/1519.
12264 2004-02-09 Andrew Cagney <cagney@redhat.com>
12266 * Makefile.in (mips-tdep.o): Update dependencies.
12267 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12269 (mips_unwind_pc): Return the pseudo PC register.
12270 (mips_unwind_dummy_id): New function.
12271 (mips16_fetch_instruction): New function.
12272 (mips32_fetch_instruction): New function.
12273 (struct mips_frame_cache): Define.
12274 (mips_mdebug_frame_cache): New function.
12275 (mips_mdebug_frame_this_id): New function.
12276 (mips_mdebug_frame_prev_register): New function.
12277 (mips_mdebug_frame_unwind): Define.
12278 (mips_mdebug_frame_sniffer): New function.
12279 (mips_mdebug_frame_base_address): New function.
12280 (mips_mdebug_frame_base): Define.
12281 (mips_mdebug_frame_base_sniffer): New function.
12282 (mips_gdbarch_init): Append unwind and base sniffers. Set
12285 2004-02-08 Andrew Cagney <cagney@redhat.com>
12287 * frame.c: Print both the register number and name.
12289 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12290 and a sed into a single sed. Make .c and .o patterns more robust.
12292 (INIT_FILES): Replace OBS with COMMON_OBS.
12293 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12295 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12297 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12298 the PT_WCOOKIE request.
12300 2004-02-08 Andrew Cagney <cagney@redhat.com>
12302 * mips-tdep.c (mips_unwind_pc): New function.
12303 (mips_gdbarch_init): Set mips_unwind_pc.
12305 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12306 (get_frame_id): Allow the UNKNOWN_FRAME.
12307 (frame_register_unwind, get_frame_type): Ditto.
12309 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12310 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12311 unwind_dummy_id indicates a legacy frame.
12313 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12314 * configure: Re-generate.
12316 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12319 2004-02-08 Andrew Cagney <cagney@redhat.com>
12321 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12323 * configure: Re-generate.
12324 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12325 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12326 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12327 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12328 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12329 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12330 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12331 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12332 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12333 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12335 2004-02-07 Andrew Cagney <cagney@redhat.com>
12337 * Makefile.in: Update all dependencies.
12339 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12340 * configure: Re-generate.
12341 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12342 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12343 (COMMON_OBS): Add "main.o" and "annotate.o".
12344 (ANNOTATE_OBS): Delete.
12345 (OBS): Remove ANNOTATE_OBS.
12346 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12348 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12349 against CONFIG_OBS and "main.o".
12350 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12351 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12353 * tui/tui-command.c: Include "gdb_string.h", delete register
12354 attribute, use ISO-C function signatures.
12355 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12356 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12357 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12358 * tui/tui.c: Ditto.
12360 * tui/tui-command.c: Change variable and function names to lower
12362 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12363 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12364 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12365 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12366 * tui/tui-winsource.c, tui/tui.c: Ditto.
12368 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12370 * buildsym.c (free_pending_blocks, finish_block)
12371 (record_pending_block, make_blockvector, end_symtab): Replace
12372 symbol_obstack with objfile_obstack.
12373 * coffread.c (process_coff_symbol, coff_read_struct_type)
12374 (coff_read_enum_type): Ditto.
12375 * cp-namespace.c (initialize_namespace_symtab)
12376 (check_one_possible_namespace_symbol): Ditto.
12377 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12378 (dwarf2_symbol_mark_computed): Ditto.
12379 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12380 * elfread.c (elf_symtab_read): Ditto.
12381 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12382 (hpread_read_enum_type, hpread_read_function_type)
12383 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12385 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12386 (java_link_class_type): Ditto.
12387 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12388 (new_symbol): Ditto.
12389 * minsyms.c (install_minimal_symbols): Ditto.
12390 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12391 (terminate_minimal_symbol_table): Replace symbol_obstack with
12393 (free_objfile): Remove freeing of symbol_obstack.
12394 * objfiles.h: Remove symbol_obstack field.
12395 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12397 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12399 (solib_add_common_symbols): Replace symbol_obstack with
12401 * somsolib.c (som_solib_add): Ditto.
12402 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12403 (common_block_start, common_block_end): Ditto.
12404 * symfile.c (reread_symbols): Remove freeing and init of
12406 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12407 * symfile.h: Update comment.
12408 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12410 * symtab.c (symbol_set_names): Replace symbol_obstack with
12412 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12414 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12415 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12418 2004-02-07 Andrew Cagney <cagney@redhat.com>
12420 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12421 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12422 fields and variables.
12423 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12424 (m_beInvisible): Delete macro.
12425 * tui/tui-data.h: Fix case case fields and variables.
12426 (m_genWinPtrIsNull): Delete macro.
12427 (tui_win_list): Rename winList.
12428 (TUI_SRC_WIN): Rename srcWin.
12429 (TUI_DISASM_WIN): Rename disassemWin.
12430 (TUI_DATA_WIN): Rename dataWin.
12431 (TUI_CMD_WIN): Rename cmdWin.
12432 (m_genWinPtrNotNull): Delete macro.
12433 (m_winPtrIsNull): Delete macro.
12434 (m_winPtrNotNull): Delete macro.
12435 (tui_win_is_source_type): Replace m_winIsSourceType
12436 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12437 (tui_win_has_locator): Replace m_hasLocator.
12438 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12439 m_setWinHighlightOff.
12440 * tui/tui-data.c: Update references.
12441 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12442 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12443 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12444 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12445 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12446 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12447 * tui/tui-winsource.c, tui/tui.c: Ditto.
12449 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12451 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12452 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12455 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12456 variable `i6' to `i7'.
12457 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12459 2004-02-07 Andrew Cagney <cagney@redhat.com>
12461 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12462 (TuiPoint, TuiPointPtr): Ditto.
12463 (TuiStatus, TuiStatusPtr): Ditto.
12464 (TuiWinType, TuiWinTypePtr): Ditto.
12465 (struct tui_point): Rename _TuiPoint.
12466 (tui_get_low_disassembly_address): Rename
12467 tuiGetLowDisassemblyAddress.
12468 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12469 (tuiFree): Delete declaration.
12470 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12471 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12472 * tui/tui.c (tuiFree): Delete function.
12473 * cli/cli-cmds.c (disassemble_command): Update references.
12474 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12475 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12476 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12477 * tui/tui-winsource.c: Ditto.
12479 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12481 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12482 coffstab_build_psymtabs, elfstab_build_psymtabs)
12483 (stabsect_build_psymtabs): Replace psymbol_obstack with
12485 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12486 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12488 * dwarfread.c (scan_compilation_units): Ditto.
12489 * elfread.c (elfstab_offset_sections): Ditto.
12490 * hppa-tdep.c (read_unwind_info): Ditto.
12491 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12492 (hpread_end_psymtab): Ditto.
12493 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12494 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12496 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12497 * objfiles.c (add_to_objfile_sections)
12498 (build_objfile_section_table): Ditto.
12499 (allocate_objfile): Remove init of psymbol_obstack.
12500 (free_objfile): Remove freeing of psymbol_obstack.
12501 * objfiles.h (struct objfile): Remove field
12502 psymbol_obstack. Update comments.
12503 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12504 psymbol_obstack with objfile_obstack.
12505 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12507 * somread.c (som_symfile_offsets, init_import_symbols)
12508 (init_export_symbols): Replace psymbol_obstack with
12510 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12511 * symfile.c (default_symfile_offsets, syms_from_objfile)
12512 (reread_symbols): Remove freeing and init of psymbol_obstack.
12513 (cashier_psymtab): Update comment.
12514 * symmisc.c (print_objfile_statistics): Don't report stats for
12516 * symtab.h (struct general_symbol_info, struct partial_symtab):
12518 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12519 (xcoff_symfile_offsets): Replace psymbol_obstack with
12522 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12524 * objfiles.h (struct objfile): Add objfile_obstack field.
12525 Remove type_obstack field.
12527 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12528 read_structure_scope read_enumeration, new_symbol): Replace
12529 type_obstack with objfile_obstack.
12530 * dwarfread.c (struct_type, enum_type): Ditto.
12531 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12532 (lookup_fundamental_type): Ditto.
12533 * gdbtypes.h (TYPE_ALLOC): Ditto.
12534 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12535 (hpread_read_doc_function_type, hpread_read_struct_type)
12536 (fix_static_member_physnames, hpread_read_array_type)
12537 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12538 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12539 (java_link_class_type): Ditto.
12540 * mdebugread.c (parse_type): Ditto.
12541 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12542 * solib-sunos.c (solib_add_common_symbols): Ditto.
12543 * stabsread.c (define_symbol, read_type, read_member_functions,
12544 read_cpp_abbrev, read_one_struct_field): Ditto.
12545 * symfile.c (reread_symbols): Ditto.
12546 * symmisc.c (print_objfile_statistics): Ditto.
12548 2004-02-07 Andrew Cagney <cagney@redhat.com>
12550 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12551 (tui_exec_info_content): Rename TuiExecInfoContent.
12552 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12553 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12554 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12555 (TuiList, TuiListPtr): Ditto.
12556 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12557 (TuiDataType, TuiDataTypePtr): Ditto.
12558 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12559 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12560 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12561 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12562 (TuiDataElement, TuiDataElementPtr): Ditto.
12563 (TuiWinElement, TuiWinElementPtr): Ditto.
12564 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12565 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12566 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12567 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12568 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12569 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12570 * tui/tui-command.c, tui/tui-data.c: Update references.
12571 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12572 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12573 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12574 * tui/tui-winsource.c, tui/tui.c: Ditto.
12576 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12578 * dwarf2-frame.h: Update copyright.
12579 (enum dwarf2_frame_reg_rule): New.
12580 (struct dwarf2_frame_state_reg): New.
12581 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12582 * dwarf2-frame.c: Update copyright.
12583 (enum dwarf2_reg_rule): Remove.
12584 (struct dwarf2_frame_state): Remove defenition of `struct
12585 dwarf2_frame_state_reg'.
12586 (read_reg): Call get_frame_arch to get the architecture instead of
12587 using CURRENT_GDBARCH.
12588 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12590 (dwarf2_frame_init_reg): New function.
12591 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12592 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12593 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12594 tags with DWARF2_FRAME_.
12595 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12596 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12597 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12599 2004-02-06 Andrew Cagney <cagney@redhat.com>
12601 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12602 (enum tui_data_type): Rename _TuiDataType.
12603 (struct tui_layout_def): Rename _TuiLayoutDef.
12604 (struct tui_source_element): Rename _TuiSourceElement.
12605 (struct tui_data_element): Rename _TuiDataElement.
12606 (struct tui_command_element): Rename _TuiCommandElement.
12607 (struct tui_locator_element): Rename _TuiLocatorElement.
12608 (union tui_which_element): Define.
12609 (struct tui_win_element): Rename _TuiWinElement.
12610 (struct tui_data_info): Rename _TuiDataInfo.
12611 (struct tui_source_info): Rename _TuiSourceInfo.
12612 (struct tui_command_info): Rename _TuiCommandInfo.
12613 (tui_initialize_static_data): Rename initializeStaticData.
12614 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12615 (tui_alloc_win_info): Rename allocWinInfo.
12616 (tui_init_generic_part): Rename initGenericPart.
12617 (tui_init_win_info): Rename initWinInfo.
12618 (tui_alloc_content): Rename allocContent.
12619 (tui_add_content_elements): Rename addContentElements.
12620 (tui_init_content_element): Rename initContentElement.
12621 (tui_free_window): Rename freeWindow.
12622 (tui_free_win_content): Rename freeWinContent.
12623 (tui_free_data_content): Rename freeDataContent.
12624 (tui_free_all_source_wins_content): Rename
12625 freeAllSourceWinsContent.
12626 (tui_del_window): Rename tuiDelWindow.
12627 (tui_del_data_windows): Rename tuiDelDataWindows.
12628 (tui_partial_win_by_name): Rename partialWinByName.
12629 (tui_win_name): Rename winName.
12630 (tui_current_layout): Rename currentLayout.
12631 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12632 (tui_term_height): Rename termHeight.
12633 (tui_set_term_height_to): Rename setTermHeightTo.
12634 (tui_term_width): Rename termWidth.
12635 (tui_set_term_width_to): Rename setTermWidthTo.
12636 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12637 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12638 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12639 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12640 (tui_source_windows): Rename sourceWindows.
12641 (tui_clear_source_windows): Rename clearSourceWindows.
12642 (tui_clear_source_windows_detail): Rename
12643 clearSourceWindowsDetail.
12644 (tui_clear_win_detail): Rename clearWinDetail.
12645 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12646 (tui_default_tab_len): Rename tuiDefaultTabLen.
12647 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12648 (tui_win_with_focus): Rename tuiWinWithFocus.
12649 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12650 (tui_layout_def): Rename tuiLayoutDef.
12651 (tui_win_resized): Rename tuiWinResized.
12652 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12653 (tui_next_win): Rename tuiNextWin.
12654 (tui_prev_win): Rename tuiPrevWin.
12655 (tui_add_to_source_windows): Rename addToSourceWindows.
12656 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12657 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12658 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12659 * tui/tui.c, tui/tui-data.c: Ditto.
12660 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12661 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12663 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12664 (struct symtab): Declare.
12665 (tui_set_source_content): Rename tuiSetSourceContent.
12666 (tui_show_symtab_source): Rename tuiShowSource.
12667 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12668 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12669 * tui/tui-source.c: Update copyright. Update references.
12670 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12671 * tui/tui-stack.c: Update references.
12673 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12674 (struct tui_win_info): Declare.
12675 (tui_scroll_forward): Rename tuiScrollForward.
12676 (tui_scroll_backward): Rename tuiScrollBackward.
12677 (tui_scroll_left): Rename tuiScrollLeft.
12678 (tui_scroll_right): Rename tuiScrollRight.
12679 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12680 (tui_resize_all): Rename tuiResizeAll.
12681 (tui_refresh_all_win): Rename tuiRefreshAll.
12682 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12683 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12684 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12685 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12687 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12688 (tui_erase_data_content): Rename tuiEraseDataContent.
12689 (tui_display_all_data): Rename tuiDisplayAllData.
12690 (tui_check_data_values): Rename tuiCheckDataValues.
12691 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12692 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12693 (tui_first_data_element_no_in_line): Rename
12694 tuiFirstDataElementNoInLine.
12695 (tui_delete_data_content_windows): Rename
12696 tuiDeleteDataContentWindows.
12697 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12698 (tui_display_data_from): Rename tuiDisplayDataFrom.
12699 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12700 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12701 * tui/tui-win.c, tui/tui-regs.c: Update references.
12702 * tui/tui-layout.c, tui/tui.c: Update references.
12704 * tui/tui-wingeneral.h: Update copyright.
12705 (m_allBeVisible): Delete macro.
12706 (m_allBeInvisible): Delete macro.
12707 (struct tui_gen_win_info): Declare.
12708 (struct tui_win_info): Declare.
12709 (tui_unhighlight_win): Rename unhighlightWin.
12710 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12711 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12712 (tui_make_window): Rename makeWindow.
12713 (tui_copy_win): Rename copyWin.
12714 (tui_box_win): Rename boxWin.
12715 (tui_highlight_win): Rename highlightWin.
12716 (tui_check_and_display_highlight_if_needed): Rename
12717 checkAndDisplayHighlightIfNeeded.
12718 (tui_refresh_all): Rename refreshAll.
12719 (tui_delete_win): Rename tuiDelwin.
12720 (tui_refresh_win): Rename tuiRefreshWin.
12721 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12722 (tui_make_visible, tui_make_invisible): New functions.
12723 (tui_make_all_visible, tui_make_all_invisible): New functions.
12724 (make_all_visible): Rename makeAllVisible.
12725 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12726 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12727 * tui/tui-windata.c, tui/tui-win.c: Update references.
12728 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12729 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12731 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12733 * proc-api.c (write_with_trace): Initialize local variable to
12734 silence compiler warning.
12736 2004-02-06 Andrew Cagney <cagney@redhat.com>
12738 * tui/tui-source.h: Do not include "defs.h".
12739 (struct tui_win_info): Declare.
12740 (tui_set_source_content_nil): Declare.
12741 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12742 (union tui_line_or_address): Rename _TuiLineOrAddress.
12743 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12744 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12745 (tui_update_source_window_as_is): Rename
12746 tuiUpdateSourceWindowAsIs.
12747 (tui_update_source_windows_with_addr): Rename
12748 tuiUpdateSourceWindowsWithAddr.
12749 (tui_update_source_windows_with_line): Rename
12750 tuiUpdateSourceWindowsWithLine.
12751 (tui_clear_source_content): Rename tuiClearSourceContent.
12752 (tui_erase_source_content): Rename tuiEraseSourceContent.
12753 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12754 (tui_show_source_content): Rename tuiShowSourceContent.
12755 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12756 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12757 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12758 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12759 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12760 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12761 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12762 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12763 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12764 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12765 (struct tui_win_info): Declare.
12766 * tui/tui-stack.c: Update references.
12767 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12768 * tui/tui-win.c, tui/tui-source.c: Ditto.
12769 * tui/tui.c, tui/tui-disasm.c: Ditto.
12771 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12773 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12774 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12776 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12778 * infrun.c (handle_inferior_event): Allow for breakpoint
12779 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12780 and SIGEMT. Update comments.
12781 * NEWS (Revised SPARC target): Mention support for non-executable
12784 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12786 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12787 * inftarg.c: Update copyright year.
12788 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12789 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12790 (sparc_xfer_wcookie): New function.
12791 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12792 * Makefile.in (sparc-nat.o): Update dependencies.
12793 * config/sparc/nm-nbsd.h: Include "target.h".
12794 (NATIVE_XFER_WCOOKIE): New define.
12795 (sparc_xfer_wcookie): New prototype.
12797 2004-02-04 Andrew Cagney <cagney@redhat.com>
12799 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12800 SYSCALL_TRAP function.
12801 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12803 2004-02-04 Andrew Cagney <cagney@redhat.com>
12804 Daniel Jacobowitz <drow@mvista.com>
12806 * objfiles.h: Delete comments refering to inside_entry_func and
12807 DEPRECATED_FRAME_CHAIN_VALID.
12808 * defs.h (inside_entry_func): Update prototype..
12809 * blockframe.c (inside_entry_func): Rename to
12810 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12811 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12813 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12815 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12816 outside of #ifdef SOLIB_ADD region.
12817 (do_restore_lang_radix_cleanup): Ditto.
12818 (resolve_pending_breakpoint): Ditto.
12820 2004-02-03 Andrew Cagney <cagney@redhat.com>
12822 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12823 (process_note_abi_tag_sections): Delete unused function.
12824 (ia64_read_fp): Delete unused function.
12825 (gdbarch_extract_struct_value_address): Delete declaration.
12827 2004-02-02 Andrew Cagney <cagney@redhat.com>
12829 * vax-tdep.c (vax_frame_chain): Delete call to
12830 deprecated_inside_entry_file.
12831 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12833 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12835 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12836 column that's "empty" or "same value" when eliminating REG_RA
12839 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12841 * NEWS: Add information about new pending breakpoint support.
12843 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12845 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12846 and pending fields for pending breakpoint support.
12847 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12848 (condition_command): Only parse condition if not a pending
12850 (print_one_breakpoint): Add support for pending breakpoints.
12851 (describe_other_breakpoints): Add checks to verify we are not
12852 dealing with pending breakpoints.
12853 (check_duplicates): Don't check pending breakpoints.
12854 (set_raw_breakpoint): Initialize pending flag.
12855 (do_restore_lang_radix_cleanup): New cleanup routine.
12856 (resolve_pending_breakpoint): New function.
12857 (re_enable_breakpoints_in_shlibs): Try and resolve any
12858 pending breakpoints via resolve_pending_breakpoint.
12859 (mention): Add pending breakpoint support.
12860 (parse_breakpoint_sals): Add new parameter to pass to
12861 decode_line_1 to indicate silent errors when files or functions
12862 are not found. Change all callers.
12863 (do_captured_parse_breakpoint): New function.
12864 (break_command_1): Change prototype to return an rc value and to
12865 take an optional pending breakpoint pointer. Support creating
12866 a pending breakpoint if a "not found" form of error occurs when
12867 parsing the breakpoint. Also support resolving an existing pending
12868 breakpoint and be silent if the resolution fails.
12869 (create_breakpoints): Change prototype to take pending breakpoint
12870 pointer. When resolving a pending breakpoint, use the new pointer
12871 to provide a conditional or commands added by the end-user.
12872 (delete_breakpoint): Add appropriate check for pending.
12873 (breakpoint_re_set_one): Ditto.
12874 (do_enable_breakpoint): Ditto.
12876 2004-02-02 David Carlton <carlton@kealia.com>
12878 * valops.c (enum oload_classification): New.
12879 (find_overload_match): Break implementation into separate
12880 functions; delete #if 0'd code; look for symbols within
12882 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12883 (find_oload_champ,oload_method_static,classify_oload_match): New.
12884 * cp-support.h: Add declaration for cp_func_name; update
12885 declaration for make_symbol_overload_list.
12886 * cp-support.c (cp_func_name): New.
12887 (overload_list_add_symbol): Fix comment, use
12888 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12889 (make_symbol_overload_list): Take a function name and a namespace
12890 instead of a symbol; change implementation.
12891 (make_symbol_overload_list_using): New.
12892 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12894 2004-02-02 Fred Fish <fnf@redhat.com>
12896 * main.c (gdb_stdtarg): Move definition to group with other
12897 gdb_stdtarg definitions and update copyright years.
12898 * remote-sim.c (gdb_os_write_stderr): Write output to
12899 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12900 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12901 gdb_stderr stream and update copyright years.
12903 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12905 * Makefile.in (mips-linux-nat.o): Update dependencies.
12906 * mips-linux-nat.c: Include mips-tdep.h.
12908 2004-02-01 Roland McGrath <roland@redhat.com>
12910 * sol-thread.c (sol_thread_xfer_partial): New function.
12911 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12912 (init_sol_core_ops): Likewise.
12914 * procfs.c (procfs_xfer_partial): New function.
12915 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12916 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12918 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12919 procfs_xfer_auxv function.
12921 * procfs.c (procfs_make_note_section): If we can read
12922 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12923 * linux-proc.c (linux_make_note_section): Likewise.
12925 * auxv.h: New file.
12926 * auxv.c: New file.
12927 * Makefile.in (auxv_h): New variable.
12928 (COMMON_OBS): Add auxv.o here.
12929 (auxv.o): New target.
12931 * corelow.c (core_xfer_partial): New function.
12932 (init_core_ops): Use it for core_ops.to_xfer_partial.
12934 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12935 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12936 macro if that is defined.
12938 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12940 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12941 and check the specified thread for each breakpoint.
12942 * breakpoint.h (bpstat_stop_status): Update prototype.
12943 * infrun.c (handle_inferior_event): Update calls to
12944 bpstat_stop_status.
12946 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12948 * Makefile.in (cli-cmds.o): Add $(readline_h).
12950 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12952 * cli/cli-cmds.c: Include readline.h.
12953 (complete_command): Pass the start of the last word to
12956 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12958 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12959 argument, and change first argument to a CORE_ADDR.
12960 * breakpoint.h (bpstat_stop_status): Update prototype.
12961 * infrun.c (adjust_pc_after_break): Add a new comment.
12962 (handle_inferior_event): Update calls to bpstat_stop_status.
12964 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12966 * breakpoint.h: Update copyright years.
12968 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12970 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12971 (bpstat_stop_status): Don't decrement PC.
12972 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12974 * infrun.c (adjust_pc_after_break): New function.
12975 (handle_inferior_event): Call it, early. Remove later references
12976 to DECR_PC_AFTER_BREAK.
12977 (normal_stop): Add commentary.
12979 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12981 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12982 2004-01-27 double-free fix.
12984 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12986 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12987 (sparc32_frame_prev_register): Handle StackGhost.
12988 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12990 2004-01-29 Roland McGrath <roland@redhat.com>
12992 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12993 * configure: Regenerated.
12995 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12996 * Makefile.in (procfs.o): Add dep.
12998 2004-01-28 Andrew Cagney <cagney@redhat.com>
13000 * tui/tui-stack.h: Update copyright.
13001 (struct frame_info): Add opaque declaration.
13002 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13003 (tui_show_locator_content): Rename tuiShowLocatorContent.
13004 (tui_show_frame_info): Rename tuiShowFrameInfo.
13005 * tui/tui-stack.c: Update copyright. Update references.
13006 * tui/tui-winsource.c: Update references.
13007 * tui/tui-win.c: Update references.
13008 * tui/tui-layout.c: Update references.
13009 * tui/tui-hooks.c: Update copyright, update references.
13010 * tui/tui.c: Update copyright, update references.
13011 * tui/tui-disasm.c: Update references.
13013 2004-01-28 David Carlton <carlton@kealia.com>
13015 * dwarf2read.c (add_partial_structure): Use demangled name if
13016 namespace equals "".
13018 2004-01-27 Jim Blandy <jimb@redhat.com>
13020 Clean up misapplied patch:
13021 * dwarf2read.c (determine_prefix): Change one of the two forward
13022 declarations for 'determine_prefix_aux' to a declaration for this.
13023 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13024 argument to 'die_specification'.
13026 * dwarf2read.c (read_func_scope): Re-indent comment.
13028 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13030 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13031 b->exp to NULL after freeing so that error during re-parsing or
13032 evaluation of expressions associated with breakpoint don't
13033 eventually lead to re-freeing of storage.
13034 Committed by Andrew Cagney.
13036 2004-01-27 Andrew Cagney <cagney@redhat.com>
13038 * source.c (ambiguous_line_spec): Delete undefined declaration.
13039 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13040 (m32r_set_server_address, m32r_set_download_path): Ditto.
13041 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13043 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13045 * dwarf2read.c: Update calls to changed and renamed functions, and
13046 references to moved variables.
13048 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13049 language, language_defn, list_in_scope, and ftypes members.
13050 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13051 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13052 (baseaddr): Remove globals.
13054 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13055 (set_cu_language, die_is_declaration, die_specification)
13056 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13057 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13058 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13059 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13061 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13062 cu.list_in_scope. Don't initialize cu_header_offset.
13063 (add_partial_symbol): Add local baseaddr.
13064 (psymtab_to_symtab_1): Add local baseaddr. Use
13065 objfile->section_offsets for consistency. Don't initialize
13066 cu_header_offset; do initialize cu.header.offset and
13068 (read_file_scope, read_func_scope, read_lexical_block_scope)
13069 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13071 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13073 * PROBLEMS: Add gdb/1516.
13075 2003-12-29 Robert Millan <robertmh@gnu.org>
13077 Patch committed by Andrw Cagney.
13078 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13079 * configure.tgt: Match knetbsd*-gnu.
13081 2004-01-26 Andrew Cagney <cagney@redhat.com>
13083 * breakpoint.c (catch_command_1): Delete #ifdef code.
13084 (catch_fork_command_1): Delete #ifdef wrapper.
13085 (catch_exec_command_1): Ditto.
13086 (catch_load_command_1): Ditto.
13087 (catch_unload_command_1): Ditto.
13089 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13090 (catch_breakpoint): Delete #if0ed function.
13091 (disable_catch_breakpoint): Ditto.
13092 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13093 (disable_catch, enable_catch, delete_catch): Ditto.
13095 2004-01-26 Andrew Cagney <cagney@redhat.com>
13097 * remote.c (echo_check, quit_flag): Delete variables.
13098 (cisco_kernel_mode): Delete variable.
13099 (minitelnet_return, tty_input, escape_count): Delete variables.
13100 (remote_cisco_mode): Delete variable.
13101 (remote_cisco_open, remote_cisco_close): Delete function.
13102 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13103 (init_remote_cisco_ops): Delete function.
13104 (_initialize_remote): Do not install "remote cisco" code.
13105 (read_frame): Delete cisco specific code.
13106 (remote_info_process): Delete function.
13107 (remote_wait): Delete cisco specific code.
13108 (remote_cisco_section_offsets): Delete function.
13109 (remote_cisco_objfile_relocate): Delete function.
13110 (remote_async_wait): Delete cisco specific code.
13111 (minitelnet, readtty, readsocket): Delete function.
13113 2004-01-26 Andrew Cagney <cagney@redhat.com>
13115 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13116 comments mentioning extract_returned_value_address.
13117 * infcmd.c (print_return_value): Update. Add comments on
13118 extract_returned_value_address.
13119 * stack.c (return_command): Add comments on
13120 extract_returned_value_address.
13121 * values.c: Update comment.
13122 * m32r-tdep.c: Update comment.
13123 * sparc-tdep.c: Update comment.
13124 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13125 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13126 * sh64-tdep.c (sh64_gdbarch_init): Update.
13127 * sh-tdep.c (sh_gdbarch_init): Update.
13128 * s390-tdep.c (s390_gdbarch_init): Update.
13129 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13130 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13131 * m68k-tdep.c (m68k_gdbarch_init): Update.
13132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13133 * m32r-tdep.c (m32r_gdbarch_init): Update.
13134 * ia64-tdep.c (ia64_gdbarch_init): Update.
13135 * h8300-tdep.c (h8300_gdbarch_init): Update.
13136 * frv-tdep.c (frv_gdbarch_init): Update.
13137 * arm-tdep.c (arm_gdbarch_init): Update.
13138 * alpha-tdep.c (alpha_gdbarch_init): Update.
13140 2004-01-26 Andrew Cagney <cagney@redhat.com>
13142 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13143 SYMBOL_LOCATION_FUNCS
13144 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13145 "struct symbol_ops".
13146 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13147 type to "struct symbol_ops".
13148 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13149 (struct symbol): Replace ".aux_value.loc.funcs" and
13150 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13151 (SYMBOL_OBJFILE): Delete macro.
13152 (SYMBOL_LOCATION_FUNCS): Delete macro.
13153 (SYMBOL_LOCATION_BATON): Update.
13154 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13155 intead of SYMBOL_LOCATION_FUNCS.
13156 * ax-gdb.c (gen_var_ref): Ditto.
13157 * printcmd.c (address_info): Ditto.
13158 * findvar.c (read_var_value): Ditto.
13159 (symbol_read_needs_frame): Ditto.
13161 2004-01-26 Andrew Cagney <cagney@redhat.com>
13163 * dwarf2read.c (read_func_scope): Document frame-base hack.
13165 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13167 * infcmd.c (print_return_value): Plug memory leak; delete
13168 ui_stream object. Rename argument `structure_return' to
13171 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13173 * infcmd.c (print_return_value): Wrap long lines.
13174 (finish_command_continuation, finish_command): Remove unused
13175 variable `funcaddr'. Fix some coding-standards problems.
13177 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13178 SECT_SIZE is large enough, not whether it's exactly the right size.
13179 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13180 TDEP->fpregset to zero.
13182 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13183 floating-point registers for traditional NetBSD core files.
13184 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13185 TDEP->sizeof_fpregset here.
13187 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13189 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13190 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13191 function with code split out from
13192 sparc32nbsd_sigcontext_frame_cache.
13193 (sparc32nbsd_sigcontext_frame_cache): Use
13194 sparc32nbsd_sigcontext_saved_regs.
13195 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13197 * sparcobsd-tdep.c: New file.
13198 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13199 (sparcobsd-tdep.o): New dependency.
13200 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13201 * config/sparc/obsd.mt: New file.
13203 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13204 TDEP->fpregset to be initialized to enable core file register
13207 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13209 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13210 Add opaque declarations.
13211 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13212 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13213 function with code split out from
13214 sparc64nbsd_sigcontext_frame_cache.
13215 (sparc64nbsd_sigcontext_frame_cache): Use
13216 sparc64nbsd_sigcontext_saved_regs.
13217 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13219 * sparc64obsd-tdep.c: New file.
13220 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13221 (sparc64obsd-tdep.o): New dependency.
13222 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13223 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13224 * config/sparc/obsd64.mt: New file.
13226 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13227 read the instruction at PC.
13229 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13230 value of GDB_OSABI_DEFAULT.
13231 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13232 instead of GDB_OSABI_NETBSD_AOUT.
13234 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13236 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13239 2004-01-23 Andrew Cagney <cagney@redhat.com>
13241 * printcmd.c (display_command): Replace tui_set_display call with
13242 tui_set_layout_for_display_command.
13243 * tui/tui.h (enum tui_win_type): Define.
13244 (tui_set_layout): Delete declaration.
13245 (tui_set_layout_for_display_command): Rename set_tui_layout.
13246 * tui/tui-data.h (enum tui_layout_type): Define.
13247 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13249 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13250 (tui_default_win_height): Rename tuiDefaultWinHeight.
13251 (tui_default_win_viewport_height): Rename
13252 tuiDefaultWinViewportHeight.
13253 (tui_set_layout): RenametuiSetLayout.
13254 * tui/tui-layout.c: Update references.
13255 * tui/tui.c: Update references.
13256 * tui/tui-disasm.c: Update references.
13258 2004-01-23 David Carlton <carlton@kealia.com>
13260 Partial workaround for PR c++/1511:
13261 * cp-namespace.c: Include frame.h.
13262 (cp_lookup_transparent_type): New
13263 (cp_lookup_transparent_type_loop): New.
13264 * cp-support.h: Declare cp_lookup_transparent_type.
13265 * symtab.c (basic_lookup_transparent_type): Renamed from
13266 lookup_transparent_type.
13267 (lookup_transparent_type): Replace old body by a call to
13268 current_language->la_lookup_transparent_type.
13269 * symtab.h: Update copyright. Declare
13270 basic_lookup_transparent_type.
13271 * language.h: Update copyright.
13272 (struct language_defn): Add la_lookup_transparent_type.
13273 * language.c: Update copyright.
13274 (unknown_language_defn): Add basic_lookup_transparent_type.
13275 (auto_language_defn): Add basic_lookup_transparent_type.
13276 (local_language_defn): Add basic_lookup_transparent_type.
13277 * ada-lang.c: Update copyright.
13278 (ada_language_defn): Add basic_lookup_transparent_type.
13279 * c-lang.c: Update copyright.
13280 (c_language_defn): Add basic_lookup_transparent_type.
13281 (cplus_language_defn): Add basic_lookup_transparent_type.
13282 (asm_language_defn): Add basic_lookup_transparent_type.
13283 (minimal_language_defn): Add basic_lookup_transparent_type.
13284 * f-lang.c: Update copyright.
13285 (f_language_defn): Add basic_lookup_transparent_type.
13286 * jv-lang.c: Update copyright.
13287 (java_language_defn): Add basic_lookup_transparent_type.
13288 * m2-lang.c: Update copyright.
13289 (m2_language_defn): Add basic_lookup_transparent_type.
13290 * objc-lang.c: Update copyright.
13291 (objc_language_defn): Add basic_lookup_transparent_type.
13292 * p-lang.c: Update copyright.
13293 (p_language_defn): Add basic_lookup_transparent_type.
13294 * scm-lang.c: Update copyright.
13295 (scm_language_defn): Add basic_lookup_transparent_type.
13296 * Makefile.in (cp-namespace.o): Depend on frame.h.
13298 2004-01-23 David Carlton <carlton@kealia.com>
13300 Patch for PR c++/1520:
13301 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13302 properly if we have a specification die.
13303 (determine_prefix_aux): Rename from determine_prefix.
13304 (determine_prefix): Like the old determine_prefix, but never
13307 2004-01-23 Theodore A. Roth <troth@openavr.org>
13309 * avr-tdep.c: Update copyright.
13310 (avr_iaddr_p): Delete unused function.
13311 (avr_saddr_p): Delete unused function.
13313 2004-01-23 David Carlton <carlton@kealia.com>
13315 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13316 Fix for PR symtab/1534.
13318 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13320 * NEWS (New native configurations): Mention OpenBSD/sparc and
13322 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13323 * configure.host: Likewise.
13324 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13325 handler for OpenBSD.
13326 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13328 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13330 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13331 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13333 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13334 * cli/cli-cmds.c (shell_escape): Likewise.
13336 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13337 OpenBSD .note.openbsd.ident sections.
13339 2004-01-22 David Carlton <carlton@kealia.com>
13341 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13342 get_scope_pc_bounds.
13343 (read_file_scope): Ditto.
13344 (get_scope_pc_bounds): New function, produced by extracting code
13345 from the above two functions, consolidating it, and adding support
13346 for DW_TAG_namespace.
13348 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13350 * osabi.c (MAX_NOTESZ): New define.
13351 (check_note): New function.
13352 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13355 2004-01-21 Roland McGrath <roland@redhat.com>
13357 * MAINTAINERS (write after approval): Add myself.
13359 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13361 * utils.c (init_page_info): Move declarations of `rows' and
13362 `cols' before the __GO32__-specific code. Move the closing brace
13363 outside the #ifdef __GO32__..#endif block.
13364 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13366 2004-01-21 Paul Brook <paul@codesourcery.com>
13368 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13369 BPSTAT_WHAT_CHECK_SHLIBS.
13371 2004-01-21 Paul Brook <paul@codesourcery.com>
13373 * MAINTAINERS: Add myself to write-after-approval.
13375 2004-01-20 Andrew Cagney <cagney@redhat.com>
13377 * ax-gdb.c (print_axs_value): Delete unused function.
13378 * jv-lang.c (java_lookup_type): Delete unused function.
13379 * cli/cli-dump.c (dump_filetype): Delete unused function.
13380 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13381 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13382 (mips_getstring): Delete unused function.
13383 (pmon_insert_breakpoint): Delete #if0ed function.
13384 (PMON_MAX_BP): Delete #if0ed MACRO.
13385 (mips_pmon_bp_info): Delete #if0ed variable.
13386 (pmon_remove_breakpoint): Delete #if0ed function.
13387 * monitor.c (monitor_write_even_block): Delete unused function.
13388 (monitor_write_memory_block): Delete #if0ed code.
13389 * dink32-rom.c (dink32_load): Delete unused function.
13390 (_initialize_dink32_rom): Delete #if0ed code.
13391 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13393 * tui/tui-command.c: Update references.
13394 * tui/tui-io.c: Update references.
13395 * tui/tui-command.h: Update copyright.
13396 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13398 * source.c (ambiguous_line_spec): Delete never-defined function.
13399 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13400 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13401 * cli/cli-cmds.c (validate_comname): Ditto.
13403 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13405 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13406 (tui_show_disassem): Rename tuiShowDisassem.
13407 (tui_show_disassem_and_update_source): Rename
13408 tuiVerticalDisassemScroll.
13409 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13410 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13411 * tui/tui.h: Update copyright.
13412 (enum tui_status): Define.
13413 * tui/tui-data.h (enum tui_scroll_direction): Define.
13414 * tui/tui-disasm.c: Update copyright. Update references.
13415 * tui/tui-winsource.c: Update copyright. Update references.
13416 * tui/tui-win.c: Update references.
13417 * tui/tui-layout.c: Update references.
13419 2004-01-20 Andrew Cagney <cagney@redhat.com>
13421 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13422 sym2 to start of block.
13424 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13426 * MAINTAINERS: Delete mmalloc.
13427 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13428 * NEWS: Mention removal of --with-malloc.
13429 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13430 * config.in: Regenerate.
13431 * configure: Regenerate.
13432 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13433 USE_MMALLOC, MMCHECK_FORCE.
13434 * gdbinit.in: Remove mmalloc.
13435 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13436 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13437 * config/i386/go32.mh: Likewise.
13438 * config/i386/interix.mh: Likewise.
13439 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13441 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13443 * linespec.c (decode_variable, symtab_from_filename): Call
13444 error_silent with error message instead of throwing an exception
13446 * defs.h (error_silent, error_output_message): Add prototypes.
13447 (catch_exceptions_with_msg): Ditto.
13448 * utils.c (error_silent, error_output_message): New functions.
13449 * top.c (catch_exceptions_with_msg): New function.
13451 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13453 * mi/mi-cmds.h (enum print_values): Add definition.
13455 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13456 type and value for simple data types and just the name and type
13457 for complex ones, if required.
13459 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13460 children, if required.
13462 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13464 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13465 unused declarations.
13467 2004-01-19 Andrew Cagney <cagney@redhat.com>
13469 * top.h (mapped_symbol_files): Delete declaration.
13470 * main.c (captured_main): Delete option "m" and "mapped".
13471 * objfiles.c (mapped_symbol_files): Delete variable.
13472 * symfile.c (symbol_file_command): Delete mmap code.
13473 (symbol_file_add_with_addrs_or_offsets): Ditto.
13474 (add_symbol_file_command, reread_separate_symbols): Ditto.
13475 * objfiles.h (OBJF_MAPPED): Delete.
13476 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13477 (free_objfile) [USE_MMALLOC]: Ditto.
13478 (open_existing_mapped_file): Delete function.
13479 (open_mapped_file): Delete function.
13480 (map_to_file): Delete function.
13482 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13484 * infrun.c (step_into_function): Account for possible breakpoint
13485 adjustment when computing ``stop_func_start''.
13487 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13489 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13490 the region size against the size of a pointer, not the size of
13491 a register as given by DEPRECATED_REGISTER_SIZE.
13493 2004-01-19 Andrew Cagney <cagney@redhat.com>
13495 * tui/tui-regs.h: Include "tui-data.h".
13496 (tuiFirstRegElementNoInLine): Delete declaration.
13497 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13498 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13499 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13500 (tui_calculate_regs_column_count): Rename
13501 tuiCalculateRegsColumnCount.
13502 (tui_check_register_values): Rename tuiCheckRegisterValues.
13503 (tui_show_registers): Rename tuiShowRegisters.
13504 (tui_display_registers_from_line): Rename
13505 tuiDisplayRegistersFromLine.
13506 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13507 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13508 (tui_first_reg_element_no_inline): Rename
13509 tuiFirstRegElementNoInLine.
13510 * tui/tui-data.h: Update copyright.
13511 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13512 * tui/tui-windata.c: Update copyright, update references.
13513 * tui/tui-regs.c: Update copyright, update references.
13514 * tui/tui-win.c: Update copyright, update references.
13515 * tui/tui-layout.c: Update copyright, update references.
13517 2004-01-18 Andrew Cagney <cagney@redhat.com>
13519 * tui/tui-io.c: Update copyright.
13520 (key_is_end_sequence, key_is_backspace): New functions.
13521 (key_is_command_char, key_is_start_sequence): New function.
13522 (tui_getc): Update references.
13523 * tui/tui-io.h: Update copyright.
13524 (m_tuiStartNewLine): Delete macro.
13525 (m_isBackspace, m_isDeleteChar): Delete macros.
13526 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13527 (m_isNextPage, m_isPrevPage): Delete macros.
13528 (m_isLeftArrow, m_isRightArrow): Delete macros.
13529 (m_isXdbStyleCommandChar): Delete macro.
13530 (key_is_start_sequence): Declare, replace m_isStartSequence.
13531 (key_is_end_sequence): Declare, replace m_isEndSequence.
13532 (key_is_backspace): Declare ,replace m_isBackspace.
13533 (key_is_command_char): Declare, replace m_isCommandChar.
13534 * tui/tui-command.c: Update copyright.
13535 (tuiDispatchCtrlChar): Update references.
13537 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13540 * tui/tui-command.c: Rename tui/tuiCommand.c.
13541 * tui/tui-command.h: Rename tui/tuiCommand.h.
13542 * tui/tui-data.c: Rename tui/tuiData.c.
13543 * tui/tui-data.h: Rename tui/tuiData.h.
13544 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13545 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13546 * tui/tui-io.c: Rename tui/tuiIO.c.
13547 * tui/tui-io.h: Rename tui/tuiIO.h.
13548 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13549 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13550 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13551 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13552 * tui/tui-source.c: Rename tui/tuiSource.c.
13553 * tui/tui-source.h: Rename tui/tuiSource.h.
13554 * tui/tui-stack.c: Rename tui/tuiStack.c.
13555 * tui/tui-stack.h: Rename tui/tuiStack.h.
13556 * tui/tui-win.c: Rename tui/tuiWin.c.
13557 * tui/tui-win.h: Rename tui/tuiWin.h.
13558 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13559 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13560 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13561 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13562 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13563 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13564 * tui/tui-file.c: Update includes.
13565 * tui/tui-hooks.c: Update includes.
13566 * tui/tui-interp.c: Update includes.
13567 * tui/tui.c: Update includes.
13568 * Makefile.in: Update all tui/ dependencies.
13569 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13571 * Makefile.in: Update copyright. Update dependencies.
13573 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13576 2004-01-18 Andrew Cagney <cagney@redhat.com>
13578 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13579 instead of register_gdbarch_init.
13581 * remote-sds.c (tohex): Delete unused function. Update copyright.
13582 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13583 * v850-tdep.c (v850_register_virtual_size): Ditto.
13584 * target.c (normal_target_post_startup_inferior): Ditto.
13585 * source.c (ambiguous_line_spec): Ditto.
13586 * remote.c (adapt_remote_get_threadinfo): Ditto.
13587 * mi/mi-out.c (out_field_fmt): Ditto.
13588 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13589 (output_control_change_notification): Ditto.
13590 * m68k-tdep.c (m68k_register_byte): Ditto.
13591 (m68k_remote_breakpoint_from_pc): Ditto.
13592 * ui-out.c (init_ui_out_state): Delete unused declaration.
13593 * stabsread.c (search_value): Ditto.
13594 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13595 * maint.c (print_section_table): Ditto.
13596 * infrun.c (set_follow_fork_mode_command): Ditto.
13598 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13600 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13601 DW_CFA_def_cfa_exporession. Add support for
13602 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13603 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13605 2004-01-18 Andrew Cagney <cagney@redhat.com>
13607 * ocd.c: Update copyright.
13608 (bdm_read_register_command): Delete unused function.
13609 (_initialize_remote_ocd): Delete commented out reference.
13610 (get_quoted_char, reset_packet): Delete #if0ed function.
13611 (output_packet, put_quoted_char): Delete #if0ed function.
13612 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13613 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13614 (BDM_BREAKPOINT): Delete #if0ed macro.
13615 (remote_timeout): Delete #if0ed variable.
13617 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13619 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13620 (core-sol2.o): Remove dependency.
13621 * core-sol2.c: Remove file.
13623 2004-01-17 Andrew Cagney <cagney@redhat.com>
13625 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13626 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13629 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13631 * remote.c: Update copyright years.
13633 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13635 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13637 2004-01-17 Andrew Cagney <cagney@redhat.com>
13639 * mdebugread.c: Update copyright.
13640 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13641 (parse_type, parse_procedure): Ditto.
13642 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13644 * cris-tdep.c (cris_store_struct_return): Put back accidently
13647 * gdbarch.sh: Update copyright year.
13648 * gdbarch.h, gdbarch.c: Re-generate.
13650 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13652 Suggested by George Anzinger.
13653 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13654 correct stack offset. Include unknown opcode numbers in the error
13657 2004-01-17 Andrew Cagney <cagney@redhat.com>
13659 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13660 extract_struct_value_address, i386 does not set it.
13661 * sparc64-tdep.c (sparc64_init_abi): Do not set
13662 extract_struct_value_address, never called.
13663 (sparc64_extract_struct_value_address): Delete function.
13664 * m68hc11-tdep.c: Update copyright.
13665 (m68hc11_gdbarch_init): Delete redundant assignment of
13666 extract_struct_value_address.
13667 * i386-tdep.c: Update copyright.
13668 (i386_gdbarch_init): Do not set extract_struct_value_address,
13670 (i386_extract_struct_value_address): Delete function.
13671 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13672 extract_struct_value_address, never called.
13673 (sparc32_extract_struct_value_address): #if 0 function. Add
13674 comments explaining its future.
13676 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13678 * arm-tdep.c (arm_write_pc): New function.
13679 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13681 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13683 * breakpoint.c (must_shift_inst_regs): Delete.
13684 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13685 and SHIFT_INST_REGS.
13686 * infcmd.c (step_1, step_1_continuation): Delete references to
13688 * infrun.c (keep_going): Likewise.
13689 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13690 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13692 2004-01-17 Andrew Cagney <cagney@redhat.com>
13694 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13695 * gdbarch.h, gdbarch.c: Re-generate.
13696 * infcmd.c (print_return_value): Delete reference to
13697 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13699 * cris-tdep.c (cris_gdbarch_init): Do not set
13700 deprecated_extract_struct_value_address.
13702 * xstormy16-tdep.c: Update copyright.
13703 (xstormy16_extract_struct_value_address): Update to current
13704 extract struct value address interface.
13705 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13706 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13707 current extract struct value address interface.
13708 (sh64_gdbarch_init): Set extract_struct_value_address.
13710 * cris-tdep.c: Update copyright.
13711 (cris_extract_struct_value_address): Delete function.
13712 (struct_return_address): Delete variable.
13713 (cris_store_struct_return): Do not set struct_return_address.
13715 * mcore-tdep.c: Update copyright.
13716 (mcore_extract_struct_value_address): Delete function. Update
13718 (mcore_gdbarch_init): Update.
13719 * mn10300-tdep.c: Update copyright.
13720 (mn10300_extract_struct_value_address): Delete function.
13721 (mn10300_gdbarch_init): Update.
13722 * v850-tdep.c: Update copyright.
13723 (v850_extract_struct_value_address): Delete.
13724 (v850_gdbarch_init): Update.
13725 * ns32k-tdep.c: Update copyright.
13726 (ns32k_extract_struct_value_address): Delete.
13727 (ns32k_gdbarch_init): Update.
13728 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13729 (hppa_gdbarch_init): Update.
13730 * vax-tdep.c: Update copyright.
13731 (vax_extract_struct_value_address): Delete.
13732 (vax_gdbarch_init): Update.
13734 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13735 * gdbarch.h, gdbarch.c: Re-generate.
13736 * procfs.c (procfs_fetch_registers): Delete reference to
13737 DEPRECATED_NPC_REGNUM.
13738 (procfs_store_registers): Ditto.
13739 * regcache.c (generic_target_write_pc): Simplify.
13740 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13742 * core-sol2.c (fetch_core_registers): Replace
13743 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13745 * hppa-tdep.c: Update copyright year.
13746 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13748 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13750 * mips-tdep.c (mips_write_pc): New function.
13751 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13752 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13753 (mips_find_saved_regs, mips_software_single_step: Ditto.
13754 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13755 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13757 2004-01-17 Andrew Cagney <cagney@redhat.com>
13759 * mips-tdep.c: Re-indent. Group functions by ABI.
13761 2004-01-17 Andrew Cagney <cagney@redhat.com>
13763 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13764 * gdbarch.c: Re-generate.
13765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13766 DECR_PC_AFTER_BREAK to zero.
13767 * vax-tdep.c (vax_gdbarch_init): Ditto.
13768 * v850-tdep.c (v850_gdbarch_init): Ditto.
13769 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13770 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13771 * sh-tdep.c (sh_gdbarch_init): Ditto.
13772 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13773 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13774 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13775 * mips-tdep.c (mips_gdbarch_init): Ditto.
13776 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13778 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13779 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13780 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13781 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13782 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13783 * frv-tdep.c (frv_gdbarch_init): Ditto.
13784 * cris-tdep.c (cris_gdbarch_init): Ditto.
13785 * avr-tdep.c (avr_gdbarch_init): Ditto.
13786 * arm-tdep.c (arm_gdbarch_init): Ditto.
13787 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13789 2004-01-17 J. Brobecker <brobecker@gnat.com>
13791 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13792 Delete, no longer used.
13793 (read_subrange_type): New function, mostly extracted from
13795 (read_array_type): Replace extracted code by call to
13796 read_subrange_type().
13797 (dwarf2_get_attr_constant_value): New function.
13798 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13799 (add_partial_symbol): Likewise.
13800 (process_die): Likewise.
13801 (new_symbol): Likewise.
13802 (read_type_die): Likewise.
13804 2004-01-16 Andrew Cagney <cagney@redhat.com>
13806 * symfile.c: Update copyright year.
13807 (compare_symbols): Delete unused function.
13808 * stabsread.c: Update copyright year.
13809 (lrs_general_complaint): Delete unused function.
13810 (ref_search_value): Ditto.
13811 (get_substring): Delete declaration.
13812 * sh64-tdep.c: Update copyright year.
13813 (sh64_get_gdb_regnum): Delete unused function.
13814 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13815 Delete unused function.
13817 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13819 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13820 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13822 2004-01-16 Andrew Cagney <cagney@redhat.com>
13824 Changes from Peter Schauer.
13825 * rs6000-tdep.c: Update copyright year.
13826 (rs6000_push_dummy_call): Update the stack pointer before
13827 accessing the corresponding stack region.
13828 * rs6000-nat.c: Update copyright year.
13829 (set_host_arch): Set "info.abfd" to "exec_bfd".
13831 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13833 * blockframe.c: Update copyright year.
13834 (inside_entry_func): Don't treat a zero PC specially.
13836 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13838 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13840 (gcore_create_callback): Ditto. Skip any memory segment that has
13841 no permissions set.
13843 2004-01-14 David Carlton <carlton@kealia.com>
13845 Change symbols for C++ nested types to contain the fully qualified
13846 name, if possible. (At least in the DWARF-2 case.) Partial fix
13847 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13849 * c-exp.y (qualified_type): Handle types nested within classes.
13850 * cp-namespace.c: Update comments.
13851 (cp_set_block_scope): Delete #if 0.
13852 (cp_lookup_nested_type): Handle types nested within classes.
13853 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13855 (add_partial_symbol): Add the name of the enclosing namespace to
13857 (pdi_needs_namespace): New.
13858 (add_partial_namespace): Tweak comment.
13859 (add_partial_structure): New.
13860 (psymtab_to_symtab_1): Initialize processing_current_prefix
13862 (process_die): instead of here.
13863 (read_structure_scope): Try to figure out the name of the class or
13864 namespace that the structure might be defined within.
13865 (read_enumeration): Generate fully-qualified names, if possible.
13866 (read_namespace): Don't set name to NULL.
13867 (die_specification): New.
13868 (new_symbol): Generate fully-qualified names for types.
13869 (read_type_die): Determine appropriate prefix.
13870 (determine_prefix): New.
13871 (typename_concat): New.
13873 * valops.c (value_aggregate_elt): Pass NOSIDE to
13874 value_struct_elt_for_reference.
13875 (value_struct_elt_for_reference): Make static, add NOSIDE
13876 parameter, call value_maybe_namespace_elt as a last resort.
13877 (value_namespace_elt): Break out code into
13878 value_maybe_namespace_elt.
13879 (value_maybe_namespace_elt): New.
13881 2004-01-12 Andrew Cagney <cagney@redhat.com>
13883 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13884 cooked floating-point registers.
13885 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13886 and value_to_register.
13888 2004-01-13 Andrew Cagney <cagney@redhat.com>
13890 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13891 * gdbarch.c: Re-generate.
13892 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13893 FUNCTION_START_OFFSET.
13894 * v850-tdep.c (v850_gdbarch_init): Ditto.
13895 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13896 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13897 * sh-tdep.c (sh_gdbarch_init): Ditto.
13898 * s390-tdep.c (s390_gdbarch_init): Ditto.
13899 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13900 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13901 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13902 * mips-tdep.c (mips_gdbarch_init): Ditto.
13903 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13904 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13906 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13907 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13908 * i386-tdep.c (i386_gdbarch_init): Ditto.
13909 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13910 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13911 * frv-tdep.c (frv_gdbarch_init): Ditto.
13912 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13913 * cris-tdep.c (cris_gdbarch_init): Ditto.
13914 * avr-tdep.c (avr_gdbarch_init): Ditto.
13915 * arm-tdep.c (arm_gdbarch_init): Ditto.
13916 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13918 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13920 * infrun.c (follow_fork_mode_ask): Remove.
13921 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13922 (follow_fork): Simplify and remove internal error for
13923 follow_fork_mode_ask.
13924 (_initialize_infrun): Update "set follow-fork-mode" help text.
13926 2004-01-13 Andrew Cagney <cagney@redhat.com>
13928 * configure.in: Update copyright year.
13929 (build_warnings): Add -Wunused-label.
13930 * configure: Re-generate.
13932 2004-01-12 Andrew Cagney <cagney@redhat.com>
13934 * exec.h (exec_ops): Make "extern".
13936 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13937 the function is void.
13938 (mips_pseudo_register_write): Ditto.
13940 2004-01-12 Andrew Cagney <cagney@redhat.com>
13942 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13943 call. Never defined.
13944 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13945 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13946 (struct sparc_gregset, struct regcache): Ditto.
13947 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13949 2004-01-12 Andrew Cagney <cagney@redhat.com>
13951 * mi/ChangeLog: Delete file. Renamed to ...
13952 * mi/ChangeLog-1999-2003: New file.
13953 * tui/ChangeLog: Delete file. Renamed to ...
13954 * tui/ChangeLog-1998-2003: New file.
13956 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13958 * sparc64nbsd-tdep.c: Include "regset.h".
13959 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13961 (fetch_core_registers): Remove function.
13962 (sparc64nbsd_core_fns): Remove variable.
13963 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13965 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13966 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13967 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13969 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13970 sparc_extract_struct_value_address.
13971 (sparc32_gdbarch_init): Set extract_struct_value_address.
13972 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13974 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13975 return_value_on_stack.
13977 * NEWS: Mention that %cs and %ss have been added to the AMD64
13980 * frame.c: Update copyright year.
13981 (get_prev_frame): Improve comment.
13983 * sparc64fbsd-tdep.c: Include "regset.h".
13984 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13986 (fetch_core_registers): Remove function.
13987 (sparc64fbsd_core_fns): Remove variable.
13988 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13990 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13991 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13992 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13994 * sparcnbsd-tdep.c: Include "regset.h".
13995 (fetch_core_registers): Remove function.
13996 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13997 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13999 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14001 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14003 * sparc-tdep.h (struct regset): Provide opaque declaration.
14004 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14005 fpregset and sizeof_fpregset members.
14006 * sparc-tdep.c (struct regset): Provide opaque declaration.
14007 (sparc_regset_from_core_section): New function.
14008 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14009 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14010 Set regset_from_core_section when appropriate.
14012 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14014 * x86-64-tdep.c (amd64_non_pod_p): New function.
14015 (amd64_classify_aggregate): Return class memory for non-POD
14016 C++ structure types.
14018 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14019 argument. Use it to reserve a register if necessary.
14020 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14021 amd64_push_arguments.
14023 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14025 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14026 register numbers in comments.
14027 * x86-64-tdep.h: Update copyright year.
14028 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14029 Adjust for addition of %cs and %ss.
14030 * amd64fbsd-nat.c: Update copyright year.
14031 (reg_offset): Add register offsets for %cs and %ss.
14032 * amd64fbsd-tdep.c: Update copyright year.
14033 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14034 (amd64fbsd_sc_reg_offset): Likewise.
14035 * x86-64-linux-nat.c: Update copyright year.
14036 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14038 * amd64nbsd-nat.c: Update copyright year.
14039 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14040 * amd64nbsd-tdep.c: Update copyright year.
14041 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14042 * x86-64-linux-tdep.c: Update copyright year.
14043 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14044 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14045 * regformats/reg-x86-64.dat: Add %cs and %ss.
14047 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14048 variables to prevent long lines. Update comments to reflect
14051 2004-01-09 David Carlton <carlton@kealia.com>
14053 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14054 * dwarf2read.c (read_namespace): Pull out name-generating code
14055 into namespace_name. Rename previous_namespace to previous_prefix
14056 and processing_current_namespace to processing_current_prefix..
14057 (namespace_name): New function.
14058 (add_partial_symbol): Substitute uses of pdi->name with
14060 * cp-support.h: Rename processing_current_namespace to
14061 processing_current_prefix.
14062 Update copyright year.
14063 * cp-namespace.c: Rename processing_current_namespace to
14064 processing_current_prefix.
14065 Update copyright year.
14067 2004-01-09 Andrew Cagney <cagney@redhat.com>
14069 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14071 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14073 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14075 (process_one_symbol): Deal with N_PATCH stabs.
14077 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14079 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14081 Update copyright year.
14083 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14085 * config/pa/tm-hppa.h: Update extern declarations for
14086 hppa32_hpux_frame_saved_pc_in_sigtramp,
14087 hppa32_hpux_frame_base_before_sigtramp, and
14088 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14090 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14092 * config/pa/tm-hppah.h: Update copyright years.
14094 2004-01-08 Andrew Cagney <cagney@redhat.com>
14096 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14097 (mips_o32_reg_struct_has_addr): Delete function.
14098 (mips_gdbarch_init): Update.
14099 (mips_extract_struct_value_address): Delete function.
14101 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14103 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14106 2004-01-07 Andrew Cagney <cagney@redhat.com>
14108 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14109 architecture's elf flags (when available).
14111 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14112 FPU to the start, check the MIPS FPU when looking for an old
14114 (set_mipsfpu_single_command): Update the architecture.
14115 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14117 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14118 (mips_mask_address_p): Add "tdep" parameter.
14119 (show_mask_address, mips_addr_bits_remove): Update.
14120 (mips_dump_tdep): Update.
14121 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14122 (MIPS_STACK_ARGSIZE): Delete macro.
14123 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14124 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14125 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14126 (mips_dump_tdep): Update.
14127 (MIPS_SAVED_REGSIZE): Delete macro.
14128 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14129 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14130 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14131 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14132 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14133 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14134 (mips_pop_frame, return_value_location): Update.
14135 (mips_n32n64_return_value, mips_dump_tdep): Update.
14137 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14140 * mips-tdep.c: Update copyright.
14141 (mips_gdbarch_init): Merge two code blocks handling the register
14142 name and number layout.
14144 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14146 * tracepoint.c (validate_actionline): Fix segv at EOF
14148 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14150 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14151 properly for static fields.
14153 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14154 Jason Molenda <jmolenda@apple.com>
14156 * disasm.c: Update copyright to include 2004.
14157 (do_mixed_source_and_assembly): For uiout asm list
14158 and tuple cleanups, initialize to null_cleanup instead of
14159 NULL and do so prior to loop. Only reset when we close off
14160 the tuple/list. Move check for whether to close off the
14161 asm tuple/list to after dump_insns call where it will be run
14162 on each loop iteration.
14164 2004-01-05 Andrew Cagney <cagney@redhat.com>
14166 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14167 should be a switch case and not a label.
14168 * mips-tdep.c (mips32_next_pc): Delete unused labels
14169 "greater_equal_branch" and "less_zero_branch".
14170 * jv-valprint.c (java_print_value_fields): Delete unused label
14173 * target.c (unpush_target): Only close a target that is in the
14176 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14178 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14179 address from [sp + 64] instead of %o2.
14181 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14182 fixes PR backtrace/1476.
14184 2004-01-05 Andrew Cagney <cagney@redhat.com>
14186 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14187 move to start of file.
14188 * i386-tdep.h (struct regcache): Add opaque declaration.
14189 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14191 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14192 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14193 * win32-nat.c (fake_create_process): Use ISO C style definition.
14194 * stabsread.c (define_symbol): Delete #ifndef
14195 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14196 stabs_argument_has_addr call, macro never defined.
14198 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14200 * op50-rom.c: Delete.
14201 * w89k-rom.c: Delete.
14202 * Makefile.in: Remove references.
14204 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14206 * x86-64-tdep.c: Update copyright year.
14207 (struct amd64_register_info): Rename from x86_64_register_info.
14208 (amd64_register_info): Rename from x86_64_register_info.
14209 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14210 (amd64_register_name): Rename from x86_64_register_name.
14211 (amd64_register_type): Rename from x86_64_register_type.
14212 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14213 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14214 (amd64_dwarf_reg_to_regnum): Rename from
14215 x86_64_dwarf_reg_to_regnum.
14216 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14217 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14218 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14219 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14220 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14221 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14222 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14223 (amd64_frame_cache): Rename from x86_64_frame_cache.
14224 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14225 (amd64_frame_prev_register): Rename from
14226 x86_64_frame_prev_register.
14227 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14228 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14229 (amd64_sigtramp_frame_cache): Rename from
14230 x86_64_sigtramp_frame_cache.
14231 (amd64_sigtramp_frame_prev_register): Rename from
14232 x86_64_sigtramp_frame_prev_register.
14233 (amd64_sigtramp_frame_unwind): Rename from
14234 x86_64_sigtramp_frame_unwind.
14235 (amd64_sigtramp_frame_sniffer): Rename from
14236 x86_64_sigtramp_frame_sniffer.
14237 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14238 (amd64_frame_base): Rename from x86_64_frame_base.
14239 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14240 (amd64_frame_align): Rename from x86_64_frame_align.
14241 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14242 (amd64_regset_from_core_section): Rename from
14243 x86_64_regset_from_core_section.
14244 (x86_64_init_abi): Update comments.
14246 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14248 * MAINTAINERS (write after approval): Add myself.
14250 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14252 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14255 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14257 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14258 such that it mentions a specific version of GCC that exhibits this
14261 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14263 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14264 structure that has a single `float' member, store it in %f1 in
14267 * sparc-sol2-nat.c: Add missing '\'.
14269 * sparc-tdep.c (sparc32_return_value): New function.
14270 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14272 (sparc32_gdbarch_init): Set return_value, don't set
14273 extract_return_value, store_return_value, use_struct_convention
14274 and return_value_on_stack.
14276 * sparc-sol2-nat.c: Add missing ')'.
14278 2004-01-03 J. Brobecker <brobecker@gnat.com>
14280 * infrun.c (handle_step_into_function): New function.
14281 (handle_inferior_event): Extract out some code into the new
14284 2004-01-03 J. Brobecker <brobecker@gnat.com>
14286 * infrun.c (handle_inferior_event): Move the declaration of
14287 real_stop_pc inside the if blocks where it is used.
14289 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14291 * sparc64-tdep.c (sparc64_16_byte_align_p)
14292 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14293 Use check_typedef to get subtypes of structures and unions.
14294 (sparc64_store_return_value): Fix calculation of the appropriate
14295 offset into VALBUF when storing a structure or union.
14296 (sparc64_return_value): New function.
14297 (sparc64_use_struct_convention): Remove function.
14298 (sparc64_init_abi): Set return_value, don't set
14299 extract_return_value, store_return_value and
14300 use_struct_convention.
14302 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14304 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14305 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14306 gdb/config/alpha/xm-alphaosf.h,
14307 gdb/config/powerpc/tm-ppcle-eabi.h,
14308 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14309 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14310 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14311 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14312 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14313 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14314 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14315 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14316 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14317 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14318 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14319 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14320 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14321 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14322 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14323 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14324 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14325 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14326 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14327 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14328 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14329 Remove lines for .cvsignore files.
14331 2004-01-03 J. Brobecker <brobecker@gnat.com>
14333 * infrun.c: Back out the previous change.
14335 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14337 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14338 sparc-*-sunos4* to the list of REMOVED configurations.
14340 * configure.tgt: Add back sparc-*-vxworks*.
14341 * remote-vxsparc.c: Remove all includes except for "defs.h",
14342 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14343 Include "sparc-tdep.h".
14344 (SPARC_R_G1): New define.
14345 (vxsparc_gregset): New variable.
14346 (ext_format_sparc): Remove extern declaration.
14347 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14348 sparc32_supply_fpregset.
14349 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14350 sparc_collect_rwindow and sparc32_collect_fpregset.
14351 * config/sparc/tm-vxworks.h: New file, based on recently removed
14353 * config/sparc/vxworks.mt: New file, based on recently removed
14356 2004-01-03 J. Brobecker <brobecker@gnat.com>
14358 * infrun.c (handle_step_into_function): New function.
14359 (handle_inferior_event): Extract out some code into the new
14362 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14364 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14365 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14366 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14367 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14368 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14369 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14370 (sparc_nat_h): New variable.
14371 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14372 (tm-sun4os4.h): Remove dependency.
14373 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14374 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14375 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14376 sparc-tdep.o): Update dependencies.
14377 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14378 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14379 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14381 * configure.host: Remove existing sparc-*-lynxos*,
14382 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14383 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14384 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14385 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14387 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14388 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14389 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14390 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14391 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14392 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14393 sparc64-*-solaris2* and sparc64-*-* triplets.
14394 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14395 "symtab.h" and "objfiles.h".
14396 (BIAS): Remove define.
14397 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14398 (X_DISP19): Remove macros.
14399 (sparc_fetch_instruction): Remove function.
14400 (struct gdbarch_tdep): Remove definition.
14401 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14402 (sparc_breakpoint_from_pc): Remove function.
14403 (struct sparc64_frame_cache): Remove definition.
14404 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14405 sparc64_unwind_pc): Remove functions.
14406 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14407 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14408 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14409 (sparc64_frame_cache): Change return type to `struct
14410 sparc_frame_cache *'. Simply call sparc_frame_cache.
14411 (sparc64_frame_this_id, sparc64_frame_prev_register,
14412 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14413 instead of `struct sparc64_frame_cache.
14414 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14415 sparc_analyze_control_transfer, sparc_software_single_step,
14416 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14417 _initialize_sparc64_tdep): Remove functions.
14418 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14419 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14421 (sparc64_supply_gregset, sparc64_collect_gregset,
14422 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14423 (sparc64_init_abi): New function.
14424 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14425 inclusion guard. Include "sparc-tdep.h".
14427 (r_tstate_offset, r_fprs_offset): New defines.
14428 (enum sparc_regnum): Remove defenition.
14429 (enum sparc64_regnum): Reformat.
14430 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14431 (sparc64_init_abi, sparc64_supply_gregset,
14432 sparc64_collect_gregset, sparc64_supply_fpregset,
14433 sparc64_collect_fpregset): New prototypes.
14434 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14435 Add extern declarations.
14436 (sparc64_sol2_init_abi): New prototype.
14437 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14438 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14440 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14442 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14444 (_initialize_sparc64fbsd_nat): Remove initialization of
14445 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14446 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14447 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14448 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14449 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14450 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14451 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14452 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14453 (sparc64fbsd_r_y_offset): Remove variables.
14454 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14455 Make static and const.
14456 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14457 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14459 (sparc64fbsd_gregset): New variable.
14460 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14461 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14462 and sparc64_supply_fpregset.
14463 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14464 (sparc64fbsd_sigtramp_frame_this_id)
14465 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14466 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14467 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14468 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14469 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14470 * sparcnbsd-tdep.c: Update copyright year. Include
14471 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14472 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14473 "value.h" and "sparcnbsd-tdep.h".
14474 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14475 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14476 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14477 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14479 (sparcnbsd_gregset): New variable.
14480 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14481 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14482 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14483 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14484 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14486 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14487 (sparc32nbsd_sigcontext_frame_this_id)
14488 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14489 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14490 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14491 (sparcnbsd_get_longjmp_target_32,
14492 sparcnbsd_get_longjmp_target_64): Remove functions.
14493 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14494 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14495 sparcnbsd_init_elf): Remove.
14496 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14497 (sparcnbsd_elf_init_abi): New functions.
14498 (_initialize_sparcnbsd_tdep): New prototype.
14499 (_initialize_sparnbsd_tdep): Update.
14500 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14501 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14502 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14503 * config/sparc/linux.mh: Update comment.
14504 (XM_FILE, HOST_IPC): Remove variables.
14505 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14507 * config/sparc/linux.mt: Update comment.
14508 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14509 * config/sparc/nbsd.mt: Reformat.
14510 * config/sparc/nbsd64.mh: Update comment.
14511 (NATDEPFILES): Add sparc-nat.o.
14512 * config/sparc/nbsd64.mt: Update comment.
14513 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14514 (TM_FILE): Set to tm-nbsd.h.
14515 * config/sparc/nbsdelf.mh: Update comment.
14516 (NATDEPFILES): Add sparc-nat.o.
14518 * config/sparc/nbsdaout.mh: Update comment.
14519 (NATDEPFILES): Add sparc-nat.o
14521 * config/sparc/nm-linux.h: Update copyright year. Don't include
14522 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14524 (KERNEL_U_SIZE): Remove define.
14525 (kernel_u_size): Remove prototype.
14526 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14527 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14529 (CHILD_PREPARE_TO_STORE): Remove define.
14530 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14531 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14532 sparcnbsd-nat.c: Rewrite files.
14533 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14534 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14535 sparcnbsd-tdep.h: Remove files.
14536 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14537 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14538 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14539 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14540 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14541 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14542 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14543 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14544 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14545 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14546 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14547 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14548 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14549 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14550 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14551 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14552 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14553 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14554 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14556 2004-01-02 Andrew Cagney <cagney@redhat.com>
14558 From 2003-12-18 Kazuhiro Inaoka:
14559 * configure.host: Add m32r-linux target.
14561 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14563 * top.c (print_gdb_version): Update year to 2004.
14565 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14567 * MAINTAINERS: Add myself to the write-after-approval category.
14569 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14571 From Bernardo Innocenti <bernie@develer.com>:
14572 * configure.tgt: Add uClinux target.
14574 2004-01-02 Andrew Cagney <cagney@redhat.com>
14576 * utils.c (do_my_cleanups): Make static, add forward declaration.
14577 * defs.h (do_my_cleanups): Delete declaration.
14579 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14581 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14582 bfd/ChangeLog-0203.
14584 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14586 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14587 in <machine/reg.h>.
14588 * configure, config.in: Regenerate.
14590 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14591 tui/ChangeLog-1998-2003.
14597 version-control: never