1 2004-11-29 Mark Kettenis <kettenis@gnu.org>
3 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
4 (sparc_xfer_partial): New function.
5 (sparc_target): Save value of to_xfer_partial from ptrace vector.
8 * fork-child.c (fork_inferior): Fork instead of vfork if
9 PRE_TRACE_FUN is non-null.
11 2004-11-24 Fred Fish <fnf@specifixinc.com>
13 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
14 compiler generated function calls made as part of a prologue.
16 2004-11-23 Mark Kettenis <kettenis@gnu.org>
18 * inf-ttrace.c: New file.
19 * inf-ttrace.h: New file.
20 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
21 Include "inf-ttrace.h".
22 (ss_mpsfu_high): Define to ss_tlsp if necessary.
23 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
24 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
26 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
27 instead of inf_ptrace_target.
28 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
29 * Makefile.in (inf_ttrace_h): New variable.
30 (hppa-hpux-nat.o): Update dependency.
31 (inf-ttrace.o): New dependency.
32 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
34 2004-11-23 Randolph Chung <tausq@debian.org>
36 * arch-utils.c (generic_instruction_nullified): New.
37 * arch-utils.h (generic_instruction_nullified): New.
38 * gdbarch.sh (instruction_nullified): New method.
39 * gdbarch.c: Regenerate.
40 * gdbarch.h: Regenerate.
41 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
42 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
44 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
45 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
46 static. Rewrite to work directly off the passed regcache.
47 (hppa_gdbarch_init): Set instruction_nullified method.
49 2004-11-23 Joel Brobecker <brobecker@gnat.com>
51 * sparc-tdep.c (sparc_is_unimp_insn): New function.
52 (sparc32_frame_cache): For functions where there is no debugging
53 information to help us determine whether it's a struct-return
54 function or not, fallback on checking whether the instruction
55 at the return address is an "unimp" instruction or not.
57 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
59 * MAINTAINERS: Add myself to write after approval section.
61 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
62 hpux-thread.c to suppress children from running.
63 (hppa_hpux_child_can_run): New function.
64 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
65 * hpux-thread.c: Include string.h and hppa-tdep.h.
66 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
67 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
68 (hpux_thread_store_registers): Replace deprecated_registers with
69 calls to regcache_raw_read.
70 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
72 2004-11-21 Mark Kettenis <kettenis@gnu.org>
74 * sparc64fbsd-nat.c: Update copyright year.
75 (_initialize_sparc64fbsd_nat): Construct and add target vector.
76 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
79 2004-11-21 Daniel Jacobowitz <dan@debian.org>
81 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
83 2004-11-21 Daniel Jacobowitz <dan@debian.org>
85 * linux-nat.c (my_waitpid): New function.
86 (linux_test_for_tracefork): Make more robust and verbose. Take
87 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
88 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
89 argument. Update calls to linux_test_for_tracefork.
90 (linux_enable_event_reporting, child_follow_fork)
91 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
92 (child_insert_exec_catchpoint): Update calls to
93 linux_supports_tracefork and linux_supports_tracevforkdone.
95 2004-11-21 Daniel Jacobowitz <dan@debian.org>
97 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
98 (value_subscripted_rvalue): Likewise.
99 * valops.c (search_struct_field, value_slice): Likewise.
101 2004-11-21 Mark Kettenis <kettenis@gnu.org>
103 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
104 Reorder includes a bit. Fix comment.
105 * Makefile.in (inf-ptrace.o): Update dependencies.
107 2004-11-21 Andreas Schwab <schwab@suse.de>
109 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
110 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
111 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
112 to glibc_skip_solib_resolver.
113 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
115 * Makefile.in (m68klinux-tdep.o): Update dependencies.
117 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
119 * infttrace.h (ttrace_write_reg_64): Add prototype.
120 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
122 (store_inferior_registers): Correct formatting. Replace uses of
123 deprecated_registers with calls to regcache_raw_read,
124 regcache_raw_write_part and regcache_raw_read_part.
126 2004-11-21 Mark Kettenis <kettenis@gnu.org>
128 * config/pa/hppahpux.mh: Remove file.
129 * config/pa/hpux1020.mh: Remove file.
131 2004-11-20 Andreas Schwab <schwab@suse.de>
133 * configure.host: Set host floatformat for m68k.
135 2004-11-20 Eli Zaretskii <eliz@gnu.org>
137 * config/djgpp/fnchange.lst: Resolve file-name clash between
138 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
140 2004-11-20 Mark Kettenis <kettenis@gnu.org>
142 * hppa-hpux-nat.c: New file.
143 * config/pa/hpux.mh (NATDEPFILES): New file.
144 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
145 (hppa-hpux-nat.o): New dependency.
146 * configure.host: Remove hppa*-*-hpux10.20.
147 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
149 * inf-ptrace.c: Fix coding style.
151 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
152 * infptrace.c (call_ptrace): Simply call ptrace with four
155 * dbxread.c (process_one_symbol): Fix a few coding standard
156 issues. Improve code formatting.
158 * dbxread.c: Include "gdb_string.h".
159 (record_minimal_symbol, read_ofile_symtab): Replace
160 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
161 * Makefile.in (dbxread.o): Update dependencies.
163 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
164 of bytes read for aligned LEB128 encodings.
166 2004-11-19 Mark Kettenis <kettenis@gnu.org>
168 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
169 parse_and_eval_address to u_long before converting it to a pointer
171 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
172 ps_strings from int to u_long.
173 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
174 u_long instead of CORE_ADDR.
176 2004-11-18 Mark Kettenis <kettenis@gnu.org>
178 * dbxread.c (process_one_symbol): Do not adjust address of first
179 N_SLINE stab for a function for code generated by non-GCC
182 2004-11-18 Kevin Buettner <kevinb@redhat.com>
184 * solib-null.c: New file.
186 2004-11-17 Andrew Cagney <cagney@gnu.org>
188 * MAINTAINERS: Drop MIPS and remote.
190 2004-11-15 Andrew Cagney <cagney@gnu.org>
192 * findvar.c (value_of_register): Set the frame ID.
193 * value.c (value_primitive_field): Copy the frame ID.
194 * valops.c (value_assign): Simplify lval_register case, there's
197 2004-11-14 Daniel Jacobowitz <dan@debian.org>
199 * Makefile.in (mips-linux-tdep.o): Update dependencies.
200 * mips-linux-tdep.c: Include "regcache.h".
201 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
203 2004-11-14 Daniel Jacobowitz <dan@debian.org>
205 * Makefile.in (linux-thread-db.o): Fix typo in last change.
207 2004-11-14 Daniel Jacobowitz <dan@debian.org>
209 * linux-thread-db.c: New file, renamed from thread-db.c.
210 * thread-db.c: Remove.
211 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
212 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
213 to linux-thread-db.o.
214 * config/arm/linux.mh (NATDEPFILES): Likewise.
215 * config/i386/linux.mh (NATDEPFILES): Likewise.
216 * config/i386/linux64.mh (NATDEPFILES): Likewise.
217 * config/ia64/linux.mh (NATDEPFILES): Likewise.
218 * config/m32r/linux.mh (NATDEPFILES): Likewise.
219 * config/m68k/linux.mh (NATDEPFILES): Likewise.
220 * config/mips/linux.mh (NATDEPFILES): Likewise.
221 * config/pa/linux.mh (NATDEPFILES): Likewise.
222 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
223 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
224 * config/s390/s390.mh (NATDEPFILES): Likewise.
225 * config/sparc/linux.mh (NATDEPFILES): Likewise.
226 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
228 2004-11-13 Andrew Cagney <cagney@gnu.org>
230 * config/i386/i386lynx.mh: Delete file.
231 * config/i386/i386lynx.mt: Delete file.
232 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
233 * i386ly-tdep.c: Delete.
235 * config/tm-lynx.h: Delete, inline contents ...
236 * config/rs6000/tm-rs6000ly.h: ... here.
238 * config/tm-sysv4.h: Delete file, inlining contents.
239 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
240 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
241 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
243 * regcache.h (deprecated_register_valid): Delete.
244 (deprecated_registers): Delete.
245 * regcache.c (deprecated_register_valid): Delete.
246 (deprecated_registers): Delete.
247 (deprecated_read_register_byte, _initialize_regcache)
248 (deprecated_write_register_bytes, build_regcache): Update.
249 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
251 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
252 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
254 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
255 v850-*-* under removed.
256 * configure.host: Delete ns32k-*-netbsd*.
257 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
258 ns32k-*-netbsd*, and v850*-*-*.
259 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
261 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
262 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
263 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
264 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
265 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
266 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
267 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
268 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
269 * v850-tdep.c: Delete.
271 2004-11-13 Joel Brobecker <brobecker@gnat.com>
273 * irix5-nat.c (fetch_core_registers): Replace use of
274 deprecated_registers by equivalent code.
276 2004-11-13 Joel Brobecker <brobecker@gnat.com>
278 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
279 with equivalent code.
280 (fill_fpregset): Likewise.
282 2004-11-13 Andrew Cagney <cagney@gnu.org>
284 * MAINTAINERS: Do not list "Deleted" architectures.
286 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
287 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
289 * NEWS: Mention that vxworks was deleted.
290 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
291 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
292 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
293 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
294 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
295 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
296 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
297 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
298 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
299 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
300 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
301 * remote-vxmips.c, remote-vx.c: Delete.
302 * remote-vx68.c: Delete.
303 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
304 * config/m68k/os68k.mt, ada-lang.h: Ditto.
305 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
306 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
308 2004-11-13 Eli Zaretskii <eliz@gnu.org>
310 * config/i386/xm-go32.h: Don't include fopen-bin.h.
311 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
313 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
314 branch that doesn't define CRLF_SOURCE_FILES; always use
316 (print_source_lines_base, forward_search_command)
317 (reverse_search_command): Enable the code that accepts DOS-style
318 CRLF line endings on all platforms (this removes the need for
321 * defs.h: Fix wording of the comment before FOPEN_RB.
322 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
324 * config/djgpp/fnchange.lst: Group renames for opcode directory
327 * config/djgpp/djconfig.sh: Replace file names that don't exist
328 anymore with existing files, for checking the unpacked
331 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
332 Export pre-cooked values in configure-* targets that begin with
333 "@test -f stage_last".
335 2004-11-12 Andrew Cagney <cagney@gnu.org>
337 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
338 * value.h (struct value): Update comment.
339 * valops.c (value_assign): Fold lval_reg_fame_relative into
341 * findvar.c (value_from_register, locate_var_value): Ditto.
343 2004-11-12 Randolph Chung <tausq@debian.org>
345 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
346 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
347 (write_exp_msymbol): Remove conditional check for symbols starting
348 with $. Update comments.
350 2004-11-12 Randolph Chung <tausq@debian.org>
352 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
353 so_lib_thread_start_addr.
354 * pa64solib.h (so_list): Forward declare.
355 (pa64_solib_thread_start_addr): Prototype.
356 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
357 (no_shared_libraries): Remove.
358 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
359 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
360 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
361 the elf solib handler to find the start address.
363 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
364 files to the target makefile.
365 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
366 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
367 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
369 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
370 files for symbol reading and shared library handling here.
371 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
372 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
373 without bringing in 64-bit support.
375 2004-11-12 Andrew Cagney <cagney@gnu.org>
377 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
378 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
379 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
380 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
381 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
382 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
383 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
385 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
386 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
387 (VALUE_REGNUM): Define.
388 (struct value): Delete location.regnum, rename "regno" to
390 * value.c, valops.c, valarith.c, findvar.c: Update.
392 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
393 (VALUE_BITPOS): Delete.
394 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
395 * value.c (value_type, value_offset, value_bitpos)
396 (value_bitsize): New functions. Update references.
397 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
398 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
399 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
400 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
401 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
402 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
403 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
404 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
405 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
407 2004-11-12 Andrew Cagney <cagney@gnu.org>
409 * cris-tdep.c (cris_register_offset): Delete, never called.
410 (cris_spec_reg_applicable): Delete cris_ver_sim.
411 * MAINTAINERS: List d10v as OBSOLETE.
412 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
413 FOPEN_WB et.al., defined by "fopen-bin.h".
415 2004-11-12 Randolph Chung <tausq@debian.org>
417 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
418 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
419 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
420 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
422 2004-11-12 Mark Kettenis <kettenis@jive.nl>
424 * tui/tui-io.c: Don't include "terminal.h".
425 * Makefile.in (tui-io.o): Update dependencies.
427 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
429 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
430 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
431 set_gdbarch_regset_from_core_section for core file support.
432 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
435 2004-11-11 Randolph Chung <tausq@debian.org>
437 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
438 stop_after_branch parameter and use it to determine if we should look
439 at the delay slot of the first branch insn to find prologue insns.
440 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
441 (hppa_frame_cache): Likewise.
443 2004-11-11 Randolph Chung <tausq@debian.org>
445 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
446 register so that it can be unwound from anywhere in the prologue.
448 2004-11-10 msnyder <msnyder@redhat.com>
450 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
451 must invalidate lr_reg (so we don't try to save it again).
452 Ditto for cr_offset and cr_reg.
454 2004-11-05 Jon Beniston <jon@beniston.com>
456 Committed by Andrew Cagney.
457 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
458 when an unexpected packet is received, as the target stubs
459 continually retransmit the same packet until ACKed.
461 2004-11-10 Randolph Chung <tausq@debian.org>
463 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
466 2004-11-10 Randolph Chung <tausq@debian.org>
468 * blockframe.c (inside_entry_func): Move to .....
469 * frame.c (inside_entry_func): ... here, and make static.
470 (backtrace_past_entry): New flag.
471 (get_prev_frame): Stop backtrace at the entry function if enabled
472 by flag. Update comments.
473 (_initialize_frame): Add command to set backtrace_past_entry flag.
474 * defs.h (inside_entry_func): Remove prototype.
476 2004-11-10 Mark Kettenis <kettenis@gnu.org>
478 * dwarf2read.c: Fix formatting.
480 2004-11-10 Andrew Cagney <cagney@gnu.org>
482 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
483 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
484 macros with function declarations.
485 * value.c (coerce_ref, coerce_array, coerce_number)
486 (coerce_enum): New functions.
487 (value_as_long, value_as_address): Update.
488 * ada-lang.c (ada_coerce_ref, ada_value_binop)
489 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
490 * jv-lang.c (evaluate_subexp_java): Update.
491 * valarith.c (value_less, value_neg, value_complement)
492 (value_binop, value_add, value_subscript, value_x_binop)
493 (value_logical_not, value_sub): Update.
494 * valops.c (check_field, value_struct_elt, value_ind)
495 (value_find_oload_method_list, value_cast, value_assign): Update.
496 * eval.c (evaluate_subexp_standard): Update.
498 2004-11-10 Mark Kettenis <kettenis@gnu.org>
500 * mips-tdep.c (mips32_relative_offset): Change return type to
501 LONGEST, change argument type to ULONGEST. Fix sign-extension.
503 2004-11-10 Randolph Chung <tausq@debian.org>
505 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
506 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
507 (hppa_fetch_pointer_argument): Likewise.
508 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
509 deprecated_read_memory_nobpt.
510 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
511 add_set_cmd sequence with add_setshow_boolean_cmd.
513 2004-11-09 Andrew Cagney <cagney@gnu.org>
515 GDB 6.3 released from GDB 6.3 branch.
517 2004-11-09 Andrew Cagney <cagney@gnu.org>
519 * values.c: Rename to ...
520 * value.c: ..., new file.
521 * Makefile.in: Update.
523 2004-11-09 Daniel Jacobowitz <dan@debian.org>
525 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
528 2004-11-09 Andrew Cagney <cagney@gnu.org>
532 * value.h (struct value): Delete field bfd_section.
533 (VALUE_BFD_SECTION): Delete macro.
534 (COERCE_REF): Update.
535 (value_at, value_at_lazy): Delete asection parameter.
536 * printcmd.c (print_formatted, x_command): Update.
537 (do_examine): Delete asection parameter.
538 (next_section): Delete variable.
539 * valops.c (value_cast, value_at, value_at_lazy)
540 (value_coerce_function, value_addr, value_ind, value_string)
541 (find_rt_vbase_offset, value_full_object): Update.
542 * hpacc-abi.c (hpacc_virtual_fn_field)
543 (hpacc_value_rtti_type): Update.
544 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
545 (gnuv3_baseclass_offset): Update.
546 * f-valprint.c (f_val_print): Update.
547 * c-valprint.c (c_val_print): Update.
548 * p-valprint.c (pascal_val_print): Update.
549 * jv-valprint.c (java_value_print): Update.
550 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
551 * ada-lang.c (ada_value_primitive_packed_val)
552 (ada_evaluate_subexp): Update.
553 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
554 * expprint.c (print_subexp_standard): Update.
555 * infcall.c (call_function_by_hand): Update.
556 * valarith.c (value_add): Update.
557 * eval.c (evaluate_subexp_standard): Update.
558 * values.c (allocate_value, value_copy, value_static_field): Update.
559 * findvar.c (read_var_value, locate_var_value): Update.
561 2004-11-09 Andrew Cagney <cagney@gnu.org>
563 * i386-linux-tdep.c: Include "dwarf2-frame.h".
564 * Makefile.in: Update all dependencies.
566 2004-11-08 Andrew Cagney <cagney@gnu.org>
568 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
569 (sentinel_frame_unwinder): Add the prev_pc method.
570 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
571 available. Do not handle the sentinel-frame case.
572 * frame-unwind.h (frame_prev_register_ftype): Define.
573 (struct frame_unwind): Add prev_pc;
575 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
577 * configure.in: Check for ncurses/term.h.
578 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
579 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
580 * tui/tui.c: Don't include term.h.
581 * configure, config.in: Rebuilt.
583 2004-11-08 Mark Kettenis <kettenis@gnu.org>
585 * m68kbsd-nat.c: Include "inf-ptrace.h".
586 (_initialize_m68kbsd_nat): Fix pasto.
587 * Makefile.in (m68kbsd-nat.o): Update dependencies.
589 2004-11-08 Randolph Chung <tausq@debian.org>
591 * infrun.c (debug_infrun): New variable.
592 (resume, proceed, wait_for_inferior): Annotate with debug messages.
593 (handle_inferior_event, keep_going): Likewise.
594 (_initialize_infrun): Register "set debug infrun" command.
596 2004-11-08 Andreas Schwab <schwab@suse.de>
598 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
599 PTRACE_EVENT_VFORKDONE.
600 (child_follow_fork): Adjust.
602 2004-11-08 Andrew Cagney <cagney@gnu.org>
604 * README: Refer to 6.3, not 6.2, update directory listing droppng
605 references to intl/ and mmalloc/.
606 * PROBLEMS: Refer to 6.3 not 6.2.
608 * PROBLEMS: Delete no-longer applicable problems.
610 2004-11-07 Andrew Cagney <cagney@redhat.com>
611 Daniel Jacobowitz <dan@debian.org>
612 Roland McGrath <roland@redhat.com>
614 * Makefile.in (symfile-mem.o): Update dependencies.
615 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
616 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
617 * inf-ptrace.c (inf_ptrace_attach): Call
618 observer_notify_inferior_created.
619 * inftarg.c (child_attach): Likewise.
620 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
621 (symbol_file_add_from_memory): Take NAME argument. Use it for
622 the new BFD's filename.
623 (add_symbol_file_from_memory_command): Update call to
624 symbol_file_add_from_memory.
625 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
626 (symbol_file_add_from_memory_wrapper): New.
627 (_initialize_symfile_mem): Register add_vsyscall_page as an
628 inferior_created observer.
630 2004-11-07 Mark Kettenis <kettenis@gnu.org>
632 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
633 fetch_inferior_registers. Make static.
634 (m68kbsd_store_inferior_registers): Rename from
635 store_inferior_registers. Make static.
636 (_initialize_m68kbsd_nat): Construct and add target vector.
637 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
638 inftarg.o. Add inf-ptrace.o.
639 (NAT_FILE): Set to tm-solib.h.
640 (LOADLIBES): New variable.
641 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
642 inftarg.o. Add inf-ptrace.o.
643 (NAT_FILE): Delete variable.
644 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
645 inftarg.o. Add inf-ptrace.o.
646 (NAT_FILE): Set to tm-solib.h.
647 * config/m68k/nm-nbsdaout.h: Remove file.
649 2004-11-07 Daniel Jacobowitz <dan@debian.org>
651 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
652 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
653 (dwarf2_signal_frame_unwind): New.
654 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
655 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
657 2004-11-07 Mark Kettenis <kettenis@gnu.org>
659 * Makefile.in (mips64obsd-tdep.o): Fix typo.
661 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
662 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
663 to only include the structure members we actually need.
664 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
665 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
666 only include the structure members we actually need.
667 (mipsnbsd_init_abi): Update.
669 * mips64obsd-nat.c: Include "mips-tdep.h".
670 (MIPS64OBSD_NUM_REGS): Remove define.
671 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
672 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
673 floating-point registers correctly.
674 * Makefile.in (mips64obsd-nat.o): Update dependencies.
676 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
678 (mips64obsd_sigframe_init): New function.
679 (mips64obsd_sigframe): New variable.
680 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
682 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
684 2004-11-06 Joel Brobecker <brobecker@gnat.com>
686 * alpha-mdebug-tdep.c: #include mdebugread.h.
687 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
688 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
690 2004-11-05 Andrew Cagney <cagney@gnu.org>
692 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
693 CFI and the init_reg method leave the register unspecified.
694 Include the register name in the "Incomplete CFI data" complaint.
695 Supress leading zeros in the address.
697 2004-11-05 Mark Kettenis <kettenis@gnu.org>
699 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
700 skipping a personality routine in a CIE augmentation.
702 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
704 * defs.h (fatal, vfatal): New function prototypes.
705 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
707 (backtrace_command): Change to call backtrace_command_stub via
708 catch_errors instead of calling backtrace_command_1 directly.
709 (backtrace_full_command): Ditto.
710 * utils.c (error_stream_1): New static function.
711 (verror): Change to call error_stream_1 instead of error_stream.
712 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
713 (vfatal, fatal): New functions.
715 2004-11-05 Andrew Cagney <cagney@gnu.org>
717 * stack.c (parse_frame_specification_1): Clear selected_frame_p
718 when not using selected frame.
720 2004-11-05 Mark Kettenis <kettenis@jive.nl>
722 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
723 personality routine in a CIE augmentation.
725 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
727 * stack.c (set_current_sal_from_frame): New function.
728 (print_args_stub): Use it.
729 (print_frame_info): Don't set sal here.
731 2004-11-04 Mark Kettenis <kettenis@gnu.org>
733 * dwarf2-frame.c (read_encoded_value): Change type of third
734 argument to `unsigned char *'. Add support for LEB128 encodings.
736 2004-11-04 Jim Blandy <jimb@redhat.com>
738 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
739 prevent cross-objfile references.
740 (make_cv_type): Doc fix. Don't create cross-objfile references,
742 (replace_type): Add assertion to prevent cross-objfile references.
743 (check_typedef): Never resolve a stub type by copying over a type
746 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
748 * Makefile.in (m32r-tdep.o): Update dependencies.
749 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
750 ABI-specific overrides.
752 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
754 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
755 unnecessary parallel execution bit.
756 (m32r_memory_remove_breakpoint): Ditto.
757 (m32r_breakpoint_from_pc): Update.
759 2004-11-03 Randolph Chung <tausq@debian.org>
761 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
762 frame_func_unwind to locate the unwind entry.
763 (hppa_frame_this_id): Likewise.
765 2004-11-03 Andrew Cagney <cagney@gnu.org>
767 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
768 packet, obsolete configurations, end-of-life deprecated_registers.
770 2004-11-02 Mark Kettenis <kettenis@gnu.org>
772 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
773 encodings as well as unsigned encodings.
775 2004-11-02 Andrew Cagney <cagney@gnu.org>
777 * value.h (COERCE_VARYING_ARRAY): Delete.
778 * valops.c (value_cast, value_slice): Delete use.
779 * valarith.c (value_subscript, value_concat): Delete use.
781 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
783 * NEWS: GDB understands GNAT Ada.
785 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
787 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
788 (amd64-sol2-tdep.o): Add dependencies.
789 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
790 config/i386/sol2-64.mt: New files.
791 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
792 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
793 (supply_gregset): Correct order of arguments to
794 amd64_supply_native_gregset.
795 (fill_gregset): Correct order of arguments to
796 amd64_collect_native_gregset.
797 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
798 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
799 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
800 for definition of NEW_PROC_API.
801 * configure: Regenerate.
803 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
805 * MAINTAINERS (Write After Approval): Add myself.
807 2004-11-01 Andrew Cagney <cagney@gnu.org>
809 * configure.tgt: Mark d10v-*-* as obsolete.
810 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
812 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
814 * values.c (modify_field): Correct handling of bit-fields that
815 don't fit in 32 bits. Use unsigned operations throughout and
816 simplify the code a bit. Document preconditions.
818 2004-10-31 Andrew Cagney <cagney@gnu.org>
820 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
821 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
822 (in_plt_section): Delete.
824 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
825 (mips_gdbarch_init): Do not set same.
827 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
828 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
830 * gdbarch.sh (in_solib_call_trampoline): Delete.
831 * gdbarch.h, gdbarch.c: Re-generate.
833 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
834 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
835 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
836 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
837 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
839 2004-10-31 Mark Kettenis <kettenis@gnu.org>
841 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
842 (mipsnbsd_fetch_inferior_registers): Rename from
843 fetch_inferior_registers. Make static.
844 (mipsnbsd_store_inferior_registers): Rename from
845 store_inferior_registers. Make static.
846 (_initialize_mipsnbsd_nat): New function and prototype.
847 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
848 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
849 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
852 2004-10-31 Andrew Cagney <cagney@gnu.org>
854 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
855 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
856 delete corresponding unused function.
857 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
858 in_solib_call_trampoline.
859 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
860 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
861 * config/mips/tm-nbsd.h: Ditto.
862 * config/arm/tm-linux.h: Ditto.
863 * config/mips/tm-linux.h: Ditto.
865 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
866 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
867 in_solib_call_trampoline, delete corresponding unused function.
868 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
869 (vaxnbsd_aout_init_abi): Ditto.
870 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
871 (sparc32nbsd_aout_init_abi): Ditto.
872 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
873 (ppc_linux_init_abi): Ditto.
874 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
875 (ns32knbsd_init_abi_aout): Ditto.
876 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
877 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
878 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
879 (m68kbsd_aout_init_abi): Ditto.
880 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
881 (i386_cygwin_init_abi): Ditto.
882 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
883 (i386bsd_init_abi): Ditto.
885 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
886 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
887 isn't used by this architecture.
888 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
889 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
890 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
891 * s390-tdep.c (s390_gdbarch_init): Ditto.
892 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
893 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
894 * i386-tdep.c (i386_svr4_init_abi): Ditto.
895 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
896 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
897 * amd64-tdep.c (amd64_init_abi): Ditto.
899 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
900 in_solib_call_trampoline to its default value of
901 generic_in_solib_call_trampoline.
902 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
903 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
904 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
905 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
906 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
907 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
909 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
911 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
913 * config/mips/tm-mips.h: Delete file.
914 * remote-mips.c: Delete tm-mips.h from comment.
915 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
916 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
917 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
918 * config/mips/tm-linux.h: Don't include tm-mips.h.
919 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
920 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
921 * config/mips/tm-wince.h: Don't include.
923 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
924 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
925 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
926 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
928 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
929 * mdebugread.c (ecoff_relocate_efi): Delete function.
930 * objfiles.c (objfile_relocate): Delete #ifdef
931 MDEBUG_EFI_SYMBOL_NAME code.
933 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
934 Andrew Cagney <cagney@gnu.org>
936 * gdbarch.sh (single_step_through_delay): Add.
937 * gdbarch.h, gdbarch.c: Re-generate.
938 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
939 (mips_step_skips_delay): Delete.
940 * mips-tdep.c (mips_single_step_through_delay): Replace
941 mips_step_skips_delay.
942 (mips_gdbarch_init): Set single_step_through_delay.
943 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
945 2004-10-31 Mark Kettenis <kettenis@gnu.org>
947 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
948 from TRAMP_FRAME frame type.
950 2004-10-31 Andrew Cagney <cagney@gnu.org>
952 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
954 * mips-tdep.c (mips_ignore_helper): Delete.
955 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
956 * infrun.c (handle_inferior_event): Delete #ifdef
957 DEPRECATED_IGNORE_HELPER_CALL code.
959 * config/mips/tm-mips.h (RA_REGNUM): Delete.
961 2004-10-31 Mark Kettenis <kettenis@gnu.org>
963 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
964 (fill_fpregset): Do not compile for 64-bit systems.
965 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
966 * Makefile.in (i386-sol2-nat.o): Update dependencies.
967 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
969 2004-10-30 Andrew Cagney <cagney@gnu.org>
971 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
972 (struct mdebug_extra_func_info): Define.
973 * config/alpha/tm-alpha.h: Delete same.
974 * config/mips/tm-mips.h: Delete same.
975 * mdebugread.c: Delete same.
976 * Makefile.in: Update dependencies.
977 * mips-mdebug-tdep.c: Include "mdebugread.h".
979 * objfiles.c: Include "mdebugread.h".
980 * mdebugread.c: Include "mdebugread.h".
981 (ecoff_relocate_cfi): Delete.
982 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
983 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
984 * mdebugread.h (ecoff_relocate_efi): New file.
985 * Makefile.in: Update dependencies.
987 * mips-tdep.c (struct frame_extra_info): Delete.
988 (temp_proc_desc): Delete.
990 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
991 MIPS_EFI_SYMBOL_NAME.
992 (mips_extra_func_info_t, mips_extra_func_info): Delete.
993 (struct mdebug_extra_func_info): Replace struct
994 alpha_extra_func_info and alpha_extra_func_info_t.
995 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
996 MIPS_EFI_SYMBOL_NAME.
997 (struct mdebug_extra_func_info): Replace struct
998 alpha_extra_func_info and alpha_extra_func_info_t.
999 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1000 * mdebugread.c, alpha-mdebug-tdep.c:
1002 Suggested by Mark Kettenis.
1003 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1004 fields frame_adjust and high_addr.
1005 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1006 (non_heuristic_proc_desc): Delete references.
1008 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1009 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1010 * mips-tdep.c: Update.
1012 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1013 (MIPS_LAST_EMBED_REGNUM): Add.
1014 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1015 (LAST_EMBED_REGNUM): Delete.
1016 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1018 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1019 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1020 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1021 * mips-linux-nat.c: Update.
1023 * mips-tdep.h: Add comments on registers.
1024 (MIPS_UNUSED_REGNUM): Define.
1025 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1026 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1027 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1028 * mips-linux-nat.c, remote-mips.c: Update.
1030 * config/mips/tm-mips.h (t_insn): Delete.
1031 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1032 Replace t_insn with ULONGEST.
1034 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1036 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1037 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1038 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1039 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1040 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1041 (mipsnbsd_core_osabi_sniffer): New function.
1042 (mipsnbsd_init_abi): Set regset_from_core_section.
1043 (_initialize_mipsnbsd_tdep): Remove calls to
1044 deprecated_add_core_fns.
1045 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1046 (mipsnbsd_regset_from_core_section): New functions.
1047 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1048 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1050 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1051 Remove optimization for DEPRECATED_FP_REGNUM.
1053 2004-10-30 Andrew Cagney <cagney@gnu.org>
1055 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1056 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1057 (alpha_setup_arbitrary_frame): Delete.
1058 * mips-tdep.c (setup_arbitrary_frame): Delete.
1059 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1060 (setup_arbitrary_frame): Delete.
1061 * stack.c (parse_frame_specification_1): When specified, call
1062 create_new_frame with two parameters. Delete #ifdef
1063 SETUP_ARBITRARY_FRAME.
1065 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1066 (MIPS_INSTLEN): Delete.
1067 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1068 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1069 * remote-mips.c, mips-tdep.c: Update.
1071 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1072 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1073 * mips-tdep.c (mips_mdebug_frame_cache)
1074 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1075 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1076 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1077 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1078 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1079 (mips_gdbarch_init): Do not append mdebug sniffers.
1080 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1081 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1082 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1083 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1084 * Makefile.in: Update dependencies.
1086 * mips-tdep.h (mips_abi_regsize): Declare.
1087 * mips-tdep.c (mips_abi_regsize): Make non-static.
1089 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1090 (make_mips16_addr): Delete.
1092 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1094 * i386-sol2-nat.c: New file.
1095 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1097 (i386-sol2-nat.o): Update dependencies.
1098 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1101 2004-10-30 Andrew Cagney <cagney@gnu.org>
1103 Total breakage identified by Joel Brobecker.
1104 * mips-tdep.c (after_prologue): Delete.
1105 (mips_skip_prologue): Use skip_prologue_using_sal.
1106 (heuristic_proc_desc): Delete, unused.
1108 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1110 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1111 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1112 Cleanup coding style.
1114 2004-10-30 Andrew Cagney <cagney@gnu.org>
1116 * mips-tdep.h (mips_pc_is_mips16): Declare.
1117 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1118 non-static. Update calls.
1120 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1121 * command.h (add_setshow_enum_cmd): Declare.
1122 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1124 * mips-tdep.c (_initialize_mips_tdep): Use
1125 add_setshow_zinteger_cmd.
1127 * mips-tdep.c (mips_eabi_extract_return_value)
1128 (mips_o64_extract_return_value, mips_o64_store_return_value)
1129 (return_value_location, mips_eabi_reg_struct_has_addr)
1130 (mips_eabi_use_struct_convention)
1131 (mips_eabi_store_return_value): Delete.
1132 (mips_eabi_store_return_value): New function.
1133 (mips_eabi_return_value): New function.
1134 (mips_gdbarch_init): For O64 and EABI, delete
1135 extract_return_value, store_return_value, use_struct_convention
1136 and reg_struct_has_addr, add return_value.
1138 * mips-tdep.c (read_signed_register): Use
1139 regcache_cooked_read_signed.
1141 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1143 * mipsread.c: Cleanup coding style.
1144 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1145 (mipscoff_symfile_finish): Remove prototypes.
1147 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1149 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1150 (mips_mdebug_frame_cache, mips16_scan_prologue)
1151 (mips32_scan_prologue, mips_stub_frame_cache)
1152 (heuristic_proc_start, heuristic_proc_desc)
1153 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1154 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1155 (mips_o32_return_value, mips_o64_push_dummy_call)
1156 (mips_step_skips_delay, mips_skip_trampoline_code)
1157 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1158 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1159 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1160 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1161 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1162 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1163 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1164 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1165 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1166 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1168 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1169 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1171 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1173 * mipsnbsd-nat.c: Include "mips-tdep.h".
1174 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1175 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1177 2004-10-29 Andrew Cagney <cagney@gnu.org>
1179 * stack.c (parse_frame_specification_1): New function based on
1180 parse_frame_specification. Add message and selected_frame_p
1181 paramters. Truely always return non-NULL.
1182 (parse_frame_specification): Call parse_frame_specification_1.
1183 (frame_info): Update. Eliminate target_has_stack check.
1184 (select_frame_command): Update.
1186 2004-10-29 Andrew Cagney <cagney@gnu.org>
1188 * frame.h (get_selected_frame): Add message parameter.
1189 * frame.c (get_selected_frame): Add and use message parameter.
1190 * stack.c (current_frame_command, return_command, locals_info)
1191 (catch_info, args_info, up_silently_base, down_silently_base): Use
1192 get_selected_frame with an explicit message.
1193 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1194 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1195 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1196 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1197 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1198 * breakpoint.c: Update.
1200 2004-10-29 Andrew Cagney <cagney@gnu.org>
1202 * trad-frame.c (trad_frame_get_prev_register): Use
1203 frame_unwind_register instead of frame_register_unwind, do not
1204 recurse the register's location.
1205 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1206 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1207 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1208 * sh-tdep.c (sh_frame_prev_register): Ditto.
1209 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1210 * i386-tdep.c (i386_frame_prev_register): Ditto.
1211 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1212 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1214 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1216 * proc-events.c: Fix several coding-style issues. Consistently
1217 use #ifdef instead of #if defined().
1218 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1220 (_initialize_proc_events): New prototype.
1222 * proc-why.c: Fix several coding-style issues.
1223 (proc_prettyfprint_why): Use ARRAY_SIZE.
1225 2004-10-27 Jim Blandy <jimb@redhat.com>
1227 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1228 manner independent of the host byte order.
1230 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1232 * mips-tdep.c (id_delayed): Remove prototype.
1234 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1236 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1237 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1238 to enum with register numbers.
1239 (enum mips_insn_size): New enum.
1241 2004-10-26 Andrew Cagney <cagney@gnu.org>
1243 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1244 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1245 (mips_gdbarch_init): Update.
1246 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1248 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1249 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1250 IN_SOLIB_RETURN_TRAMPOLINE.
1251 * mips-tdep.c (mips_dump_tdep): Do not print
1252 IN_SOLIB_RETURN_TRAMPOLINE.
1253 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1254 (mips_gdbarch_init): Update.
1256 * mips-tdep.h (mips_software_single_step): Move to here ...
1257 * config/mips/tm-mips.h: ... from here.
1258 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1259 (SOFTWARE_SINGLE_STEP): Delete.
1260 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1262 2004-10-25 Andrew Cagney <cagney@gnu.org>
1264 * NEWS: Add Changes since GDB 6.3 section.
1266 2004-10-23 Andreas Schwab <schwab@suse.de>
1268 * ada-lang.c (grow_vect): Return the new array instead of
1269 expecting pointer to pointer to avoid violation of aliasing rules.
1270 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1272 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1274 * s390-tdep.c (enum pv_boolean): Remove.
1275 (pv_is_array_ref): Remove.
1276 (s390_on_stack): Remove.
1277 (S390_NUM_SPILL_SLOTS): Remove.
1278 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1279 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1280 (s390_store): Track all stores of orginal incoming registers to the
1281 stack constant offsets relative to the CFA, instead of only tracking
1282 stores into specific spill slots.
1283 (s390_load): Likewise.
1284 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1285 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1286 defined as call-saved by the ABI.
1287 (s390_push_dummy_call): Use bottom of dummy call argument save area
1288 as return value, not the top. Do not store to the called function's
1290 (s390_unwind_dummy_id): Adapt accordingly.
1292 2004-10-23 Andrew Cagney <cagney@gnu.org>
1294 * objfiles.h (struct objfile): Rename obj_private to
1295 deprecated_obj_private, sym_private to deprecated_sym_private, and
1296 sym_stab_info to deprecated_sym_stab_info.
1297 * gdb-stabs.h: Update.
1298 * elfread.c: Update.
1299 * dbxread.c: Update.
1300 * coffread.c: Update.
1301 * xcoffread.c: Update.
1302 * symfile.c: Update.
1303 * somread.c: Update.
1304 * nlmread.c: Update.
1305 * mdebugread.c: Update.
1307 * coffread.c: Update.
1309 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1311 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1312 * configure.host: Add mips64*-*-openbsd*.
1313 * configure.tgt: Add mips64*-*-openbsd*.
1314 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1316 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1317 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1319 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1321 * symtab.c (symbol_search_name): Minor reformatting.
1323 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1325 * symtab.h: Fix typo in comment.
1327 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1329 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1330 (dwarf_decode_line_header): Likewise.
1332 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1334 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1336 2004-10-19 Andrew Cagney <cagney@gnu.org>
1338 GDB 6.3 branch created.
1339 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1341 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1343 * dwarf2read.c (set_cu_language): Set language to Ada for
1344 DW_LANG_Ada83 and DW_LANG_Ada95.
1346 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1348 From Andreas Schwab <schwab@suse.de>:
1349 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1350 for xmalloc and xrealloc.
1352 2004-10-15 Andrew Cagney <cagney@gnu.org>
1354 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1355 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1356 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1357 Update dependencies.
1359 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1361 * ada-lang.c (ada_lookup_symbol): Correct comment.
1362 (ada_evaluate_subexp): Change error message for
1363 OP_FUNCALL case so as not to indicate an internal error.
1365 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1367 Committed by Paul Hilfinger.
1368 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1369 type sizes in XVE/XVU types, and emit a warning when that happens,
1370 instead of rounding up the size of the resulting type.
1371 Some minor reformatting.
1372 (ada_is_aligner_type): Do not consider a type as an aligner type
1373 if there is a corresponding XVS type as well.
1374 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1375 have several levels of pointer indirection to the array.
1377 2004-10-15 Jerome Guitton <guitton@gnat.com>
1379 Committed by Paul Hilfinger.
1380 * ada-lang.c (check_size): New function.
1381 (coerce_unspec_val_to_type): call check_size to make sure
1382 that the object size is reasonable.
1383 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1384 Implements the case when we get a reference when we evaluate
1385 the expression of one of the bounds of the slice.
1386 (ada_value_struct_elt): when a packed array field is
1387 a reference, use ada_coerce_ref to dereference it; use
1388 ada_value_ind only if it is a pointer.
1390 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1392 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1393 a bit to avoid the necessity of an advance declaration. Remove
1395 (set_reg_offset): Move implemenation up.
1396 (mips16_get_imm): Likewise.
1397 (mips16_scan_prologue): Likewise.
1398 (reset_saved_regs): Likewise.
1399 (mips32_scan_prologue): Likewise.
1401 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1403 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1404 Remove sp as a parameter, compute it internally instead. Move
1405 prologue scanning limit from heuristic_proc_desc to here.
1406 (mips16_scan_prologue): Likewise.
1407 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1408 by call to mips16_scan_prologue.
1409 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1410 by call to mips32_scan_prologue.
1411 (heuristic_proc_desc): Remove code that's no longer necessary.
1412 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1413 (mips_skip_prologue): Update calls to mips16_scan_prologue
1414 and mips32_scan_prologue.
1416 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1418 * mips-tdep.c (mips16_scan_prologue): Merge code from
1419 mips16_skip_prologue. Now return the address of the first
1420 instruction past the function prologue.
1421 (mips16_skip_prologue): Remove, no longer necessary.
1422 (mips_skip_prologue): Replace call to mips16_skip_prologue
1423 by call to mips16_scan_prologue.
1425 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1427 * mips-tdep.c (mips32_scan_prologue): Merge code from
1428 mips32_skip_prologue. Now return the address of the first
1429 instruction past the function prologue.
1430 (mips32_skip_prologue): Remove. No longer necessary.
1431 (mips16_skip_prologue): Add parameter end_pc instead of
1433 (mips_skip_prologue): Compute the upper limit for the
1434 prologue scanning. Update call to mips16_skip_prologue.
1435 Replace call to mips32_skip_prologue by call to
1436 mips32_scan_prologue.
1438 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1440 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1441 NetBSD system call stubs that store %rp in the ERP slot of the
1444 * source.c: Always define O_BINARY to 0 if not defined already.
1445 (openp): Unconditionally use O_BINARY.
1447 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1448 * event-top.c (gdb_readline2): Likewise.
1450 2004-10-14 Orjan Friberg <orjanf@axis.com>
1452 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1453 deprecated_add_core_fns which was removed by mistake.
1455 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1457 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1458 references to deprecated_registers[] with equivalent code.
1460 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1462 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1463 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1464 instead of explicit test and print statement.
1466 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1468 * sparc-nat.c: Include "inf-ptrace.h".
1469 (sparc_target): New function.
1470 * sparc-nat.h: Update copyright year.
1471 (sparc_target): New prototype.
1472 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1473 (_initialize_sparcnbsd_nat): Construct and add target vector.
1474 * sparc64nbsd-nat.c: Include "target.h".
1475 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1476 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1477 Update dependencies.
1478 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1479 inftarg.o, add inf-ptrace.o.
1480 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1481 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1482 (NAT_FILE): Set to nm-bsd.h.
1483 (LOADLIBES): New variable.
1484 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1485 infarg.o, add inf-ptrace.o.
1486 * config/sparc/nm-nbsdaout.h: Remove file.
1487 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1488 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1489 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1491 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1492 "fopen-same.h". Update comment.
1494 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1496 * i386gnu-nat.c: Include "gdb_string.h".
1497 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1498 registers when the floating-point state isn't initialized.
1499 * Makefile.in (i386gnu-nat.o): Update dependencies.
1501 2004-10-11 David Anderson <davea@sgi.com>
1503 * regcache.c (regcache_raw_read): Comment was missing "to".
1504 Extraneous ' removed.
1505 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1506 comment now describes use.
1508 2004-10-11 Orjan Friberg <orjanf@axis.com>
1510 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1511 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1512 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1513 (cris_sigtramp_frame_sniffer): New functions.
1514 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1515 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1516 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1517 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1518 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1520 (cris_version_update): Remove, replace with ...
1521 (set_cris_version): New function.
1522 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1523 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1524 (_initialize_cris_tdep): Remove CRIS mode command.
1525 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1526 cris-fpless-backtrace command.
1527 (cris_scan_prologue): Fix prologue scanning limit.
1528 (cris_register_type): Update to reflect actual registers.
1529 (cris_register_bytes_ok) Remove.
1530 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1531 Remove set_gdbarch_deprecated_register_size,
1532 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1534 2004-10-10 Andrew Cagney <cagney@gnu.org>
1536 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1539 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1541 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1543 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1545 * mips-tdep.c (mips16_scan_prologue): Renames
1546 mips16_heuristic_proc_desc. Update comment.
1547 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1548 (heuristic_proc_desc): Update calls to the 2 functions above.
1550 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1552 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1553 Update comments. Also immediately return empty cache when the start
1554 address of our function could not be found.
1555 (mips_insn32_frame_cache): Likewise.
1557 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1559 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1560 (mips_insn16_frame_cache): Pass frame cache in call to
1561 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1562 Remove code that became redundant as a consequence.
1563 (mips32_heuristic_proc_desc): No longer compute a fake
1564 procedure descriptor. Compute the full frame cache instead.
1565 Some minor comment reformatting.
1567 2004-10-10 Jim Blandy <jimb@redhat.com>
1569 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1570 reader, tracing bytecode stuff): Remove self.
1572 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1574 * sparc64-linux-tdep.c: Update copyright year. Don't include
1576 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1577 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1578 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1580 * sparc-linux-tdep.c: Update copyright year.
1581 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1582 to struct frame_info *. Use safe_frame_unwind_memory instead of
1583 deprecated_read_memory_nobpt.
1584 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1585 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1586 changed signature of sparc_linux_sigtramp_start.
1587 (sparc32_linux_pc_in_sigtramp): Remove function.
1588 (sparc32_linux_sigtramp_p): New function.
1589 (sparc32_linux_sigtramp_frame_sniffer): Use
1590 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1592 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1594 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1596 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1597 (decode_packed_array_type, value_subscript_packed)
1598 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1599 argument in call to lim_warning.
1601 * configure.in: Really disable the TUI if an enhanced curses
1602 library isn't found.
1603 * configure: Regenerate.
1605 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1607 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1608 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1609 * config/i386/nm-nbsdaout.h: Remove file.
1610 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1611 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1612 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1613 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1614 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1615 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1616 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1617 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1618 (ldd, ld_un, ld_2): Remove defines.
1619 * config/i386/nm-obsd.h: Likewise.
1621 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1623 * ada-lex.l: Remove useless rule whose right-context clause
1624 causes unreferenced static function warning for yyrealloc.
1625 (ada_flex_use): Remove the artificial reference to yyrealloc.
1627 2004-10-08 Andrew Cagney <cagney@gnu.org>
1629 * target.h (struct target_ops): Rename to_xfer_memory to
1630 deprecated_xfer_memory.
1632 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1634 * win32-nat.c: Update.
1635 * v850ice.c: Update.
1636 * uw-thread.c: Update.
1637 * thread-db.c: Update.
1638 * sol-thread.c: Update.
1640 * remote-vx.c: Update.
1641 * remote-st.c: Update.
1642 * remote-sim.c: Update.
1643 * remote-sds.c: Update.
1644 * remote-rdp.c: Update.
1645 * remote-rdi.c: Update.
1646 * remote-mips.c: Update.
1647 * remote-m32r-sdi.c: Update.
1648 * remote-e7000.c: Update.
1650 * ppc-bdm.c: Update.
1651 * nto-procfs.c: Update.
1652 * monitor.c: Update.
1653 * linux-nat.c: Update.
1654 * inftarg.c: Update.
1655 * hpux-thread.c: Update.
1656 * go32-nat.c: Update.
1657 * gnu-nat.c: Update.
1659 * corelow.c: Update.
1660 * bsd-kvm.c: Update.
1661 * aix-thread.c: Update.
1663 2004-10-08 Andrew Cagney <cagney@gnu.org>
1665 * target.c (debug_target): Move to near start of file.
1666 (target_stopped_data_address_p): Re-org logic, add casts.
1668 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1670 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1671 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1672 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1673 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1676 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1678 * target.h (to_stopped_data_address): Change prototype to
1679 take a CORE_ADDR pointer and return an int.
1680 * target.c (update_current_target): Change to_stopped_data_address
1681 to match new prototype.
1682 (debug_to_stopped_data_address): Change appropriately.
1683 * breakpoint.c (bpstat_stop_status): Change call to
1684 target_stopped_data_address to use new prototype.
1685 * frv-tdep.c (frv_have_stopped_data_address): New function.
1686 (frv_stopped_data_address): Change to new prototype and
1688 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1689 prototype and functionality.
1690 (ia64_stopped_by_watchpoint): New function.
1691 * i386-nat.c (i386_stopped_data_address): Change to new
1692 prototype and functionality.
1693 (i386_stopped_by_watchpoint): New function.
1694 * remote.c (remote_stopped_data_address): Change to new prototype
1696 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1697 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1698 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1699 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1700 new i386_stopped_by_watchpoint function.
1701 (i386_stopped_by_watchpoint): New prototype.
1702 (i386_stoppped_data_address): Change to new prototype.
1703 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1704 new ia64_stopped_by_watchpoint function.
1705 (ia64_stopped_by_watchpoint): New prototype.
1706 (ia64_stopped_data_address): Ditto.
1708 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1710 * ada-typeprint.c (ada_print_type): Use int_string for printing
1711 modulus of modular type.
1712 * ada-lang.h (ada_modulus): Change return type to unsigned.
1713 * ada-lang.c (ada_language_arch_info): Correct type of
1715 (ada_modulus): Return unsigned result.
1716 (ada_lookup_symbol): Remove user disambiguation and modify comment
1719 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1721 Committed by Paul Hilfinger.
1722 * ada-lang.c (decode_packed_array): On big-endian targets,
1723 left-justify the value if it comes with a modular type.
1725 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1727 Committed by Paul Hilfinger.
1728 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1729 (is_name_suffix): Add support for "___JM" suffixes.
1730 (ada_check_typedef): Renames ada_completed_type.
1731 Update all users of CHECK_TYPEDEF, check_typedef, and
1732 ada_complete_type to call ada_check_typedef.
1733 * ada-typeprint.c: Likewise.
1734 * ada-valprint.c: Likewise.
1736 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1738 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1740 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1742 * MAINTAINERS: Update e-mail address.
1744 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1746 From Maciej W. Rozycki <macro@mips.com>:
1747 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1748 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1750 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1752 * m32r-tdep.c (decode_prologue): Support functions written
1753 in assembler language. Recognize trap instructions as the
1755 (m32r_frame_unwind_cache): Ditto.
1756 (m32r_skip_prologue): Extend search limit. Quit analyzing
1757 prologue if pc's location is not readable.
1759 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1761 * Makefile.in (.l.c): Do conversions of names of alloc and free
1762 functions that are done for .y.c files, plus special one
1763 for yy_flex_realloc. Also, correct missing-file tests here.
1764 * ada-lex.l (malloc, free): Remove macros.
1765 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1767 (ada_flex_use): Dummy definition to remove warnings about unused
1769 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1770 to suppress warning.
1772 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1774 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1776 (sh_return_value_fpu): Ditto for CPUs with FPU.
1777 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1778 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1779 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1780 RETURN_VALUE functions.
1782 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1784 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1785 (sh_pseudo_register_write): Ditto.
1787 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1789 * sh-tdep.c (IS_MACL_STS): New define.
1791 (IS_MACL_LDS): Ditto.
1792 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1793 instructions in prologue.
1794 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1795 instructions in epilogue.
1797 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1799 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1800 (sh_sh_register_name): Add eight empty register names.
1801 (sh_sh3_register_name): Ditto.
1802 (sh_sh3e_register_name): Ditto.
1803 (sh_sh2e_register_name): Ditto.
1804 (sh_sh2a_register_name): New function, defining SH2A register set.
1805 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1807 (sh_sh_dsp_register_name): Add eight empty register names.
1808 (sh_sh3_dsp_register_name): Ditto.
1809 (sh_sh4_register_name): Ditto.
1810 (sh_sh4_nofpu_register_name): Ditto.
1811 (sh_sh4al_dsp_register_name): Ditto.
1812 (sh2a_show_regs): New function.
1813 (sh2a_nofpu_show_regs): New function.
1814 (sh_sh2a_register_type): New function.
1815 (do_bank_register_info): New function.
1816 (sh_print_pseudo_register): Call do_bank_register_info.
1817 Call sh_print_pseudo_register for valid "bank" register.
1818 (sh_sh2a_register_sim_regno): New function.
1819 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1820 Increment pseudo register count by one for all sh variants with
1821 pseudo registers to accomodate pseudo bank register.
1822 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1823 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1824 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1825 Increment pseudo register numbers.
1827 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1829 * dwarf2read.c (read_subroutine_type): Call make_function_type
1830 instead of lookup_function_type.
1832 2004-10-05 Jim Blandy <jimb@redhat.com>
1834 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1835 (Previous change missed some uses.)
1837 2004-10-05 Andrew Cagney <cagney@gnu.org>
1839 * target.h (deprecated_child_ops): Rename child_ops.
1840 * wince.c: Update copyright. Rename child_ops.
1841 * win32-nat.c: Rename child_ops.
1842 * target.c: Rename child_ops.
1843 * rs6000-nat.c: Rename child_ops.
1844 * linux-nat.c: Rename child_ops.
1845 * infttrace.c: Rename child_ops.
1846 * inftarg.c: Rename child_ops.
1847 * infptrace.c: Rename child_ops.
1848 * hppah-nat.c: Update copyright. Rename child_ops.
1849 * hpux-thread.c: Update copyright. Rename child_ops.
1851 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1853 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1855 2004-10-05 Andrew Cagney <cagney@gnu.org>
1857 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1859 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1861 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1862 (die_ref_table): Remove.
1863 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1864 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1865 the usage of this type.
1866 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1867 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1868 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1869 (dwarf2_create_include_psymtab): Update comment.
1870 (find_partial_die): Remove third argument. Remove unreachable call
1872 (dwarf2_find_containing_comp_unit): Update comments. Change one
1873 assertion to an error. Remove an unreachable error.
1874 (dwarf2_find_comp_unit): Update comments.
1875 (type_at_offset): Remove dead code.
1876 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1877 (store_in_ref_table): Add CU argument.
1878 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1879 inter-compilation-unit references.
1880 (load_full_comp_unit, process_full_comp_unit): New functions, based
1881 on psymtab_to_symtab_1.
1882 (psymtab_to_symtab_1): Use them.
1883 (dwarf2_add_dependence): New function.
1884 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1885 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1886 (partial_die_parent_scope, guess_structure_name): Update for changes
1887 to find_partial_die.
1888 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1889 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1890 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1891 (read_die_and_children): Update call to store_in_ref_table.
1892 (do_free_die_list_cleanup): Remove.
1893 (fixup_partial_die): Update for changes to find_partial_die.
1894 (read_full_die): Handle queueing absolute references.
1895 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1896 (dwarf2_attr, die_specification, die_type)
1897 (die_containing_type, dwarf2_extension): Update calls to
1899 (dump_die): Update DW_FORM_ref* handling.
1900 (dwarf2_get_ref_die_offset): Likewise.
1901 (free_one_comp_unit): Release the dies list.
1902 (dwarf2_mark_helper): New function.
1903 (dwarf2_mark): Use it.
1905 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1907 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1908 when writing to memory.
1910 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1912 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1913 (m32r_extract_struct_value_address): Delete function.
1914 (m32r_return_value): New function.
1915 (m32r_gdbarch_init): Instead of store_return_value,
1916 extract_return_value, deprecated_extract_struct_value_address
1917 and deprecated_use_struct_convention, set return_value.
1919 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1921 * dwarf2read.c (read_subrange_type): Add comment for variable
1924 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1926 * Makefile.in (.l.c): Modify rule for compatibility with recent
1927 versions of flex, and remove most command-line options.
1928 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1931 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1933 Turn on initial Ada support (mainly expression evaluation).
1935 * Makefile.in (SFILES): Remove ada-tasks.c.
1936 (HFILES_NO_SRCDIR): Add ada-lang.h.
1937 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1938 (YYOBJ): Add ada-exp.o.
1939 (rule .l.c): Generalize to not mention ada.
1940 * symtab.c: Include ada-lang.h.
1941 (symbol_natural_name, symbol_demangled_name)
1942 (symbol_search_name): Add Ada case.
1944 2004-10-01 Andrew Cagney <cagney@gnu.org>
1946 * Makefile.in (COMMON_OBS): Add inf-child.o.
1947 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1948 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1949 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1950 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1951 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1952 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1953 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1954 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1955 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1956 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1957 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1958 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1959 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1961 * target.c (xfer_using_stratum): Change return type to LONGEST.
1962 On each iteration offset, readbuf and writebuf.
1963 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1964 partial_length, and read/modify/write predicate, update comments.
1965 Pass buffer.word to ptrace write.
1967 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1969 * symfile.c (init_filename_language_table): Add extensions for
1971 * defs.h (enum language): Add language_ada.
1972 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1973 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1974 (add_symbols_from_enclosing_procs): Make a no-op for now.
1975 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1976 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1977 (find_line_in_linetable, find_next_line_in_linetable)
1978 (read_all_symtabs, is_plausible_func_for_line)
1979 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1980 (is_runtime_sym_defined, check_size): Remove declaration.
1981 (function_name_from_pc, ada_translate_error_message)
1982 (ada_lookup_minimal_symbol): Remove definition.
1983 (ada_add_block_symbols): Remove useless label.
1984 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1985 useless declaration.
1986 (ada_is_exception_sym): Likewise.
1988 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1990 Add m32r-linux support.
1991 * configure.tgt: Add m32r*-*-linux*.
1992 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1993 and m32r-linux-tdep.c.
1994 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1995 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1996 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1998 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1999 config/m32r/linux.mh, config/m32r/linux.mt,
2000 config/m32r/nm-linux.h: New files.
2002 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2004 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2005 (mips32_fetch_instruction): Remove, unused.
2007 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2009 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2010 conditions that will always be true.
2012 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2014 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2015 (vaxbsd_fetch_inferior_registers): Rename from
2016 fetch_inferior_registers. Make static.
2017 (vaxbsd_store_inferior_registers): Rename from
2018 store_inferior_registers. Make static.
2019 (_initialize_vaxbsd_nat): Construct and add target vector.
2020 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2021 inftarg.o. Add inf-child.o and inf-ptrace.o.
2022 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2023 inftarg.o. Add inf-child.o and inf-ptrace.o.
2025 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2026 inftarg.o. Add inf-child.o and inf-ptrace.o.
2028 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2030 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2031 (m88kbsd_fetch_inferior_registers): Rename from
2032 fetch_inferior_registers. Make static.
2033 (m88kbsd_store_inferior_registers): Rename from
2034 store_inferior_registers. Make static.
2035 (_initialize_m88kbsd_nat): New prototype and function.
2036 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2037 inftarg.o. Add inf-child.o and inf-ptrace.o.
2039 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2041 2004-09-30 Andrew Cagney <cagney@gnu.org>
2043 * target.c (target_xfer_partial): New function.
2044 (target_read_memory_partial, target_write_memory_partial)
2045 (default_xfer_partial, target_read_partial, target_write_partial)
2046 (xfer_using_stratum): Use.
2047 (debug_to_xfer_partial): Delete function.
2048 (setup_target_debug): Do not override to_xfer_partial.
2050 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2052 * fork-child.c: Update copyright year. Fix coding style.
2054 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2056 * defs.h (msavestring, mstrsave): Remove prototypes.
2057 * utils.c (msavestring, mstrsave): Remove functions.
2058 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2059 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2061 * source.c (find_and_open_source): Use xstrdup instead of
2064 2004-09-30 Andrew Cagney <cagney@gnu.org>
2066 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2067 (inf_ptrace_xfer_memory): Delete.
2068 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2069 (target_read_memory, target_write_memory): Use xfer_using_stratum
2070 when target_xfer_partial_p.
2071 (debug_target): Move to start of file.
2072 (target_read_memory_partial, target_write_memory_partial): Use
2073 to_xfer_partial when target_xfer_partial_p.
2075 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2076 inf_ptrace_xfer_memory with equivalent code.
2077 * inftarg.c (child_xfer_partial): When performing a write, pass
2078 writebuf to child_xfer_memory.
2080 * target.c (target_read_string): Use target_read_memory instead of
2083 2004-09-29 Andrew Cagney <cagney@gnu.org>
2085 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2086 the address of status.
2088 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2089 (kill_inferior): Inline ptrace_wait call.
2090 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2091 * inftarg.c (child_wait): Inline ptrace_wait call.
2093 * target.h (struct target_ops): Delete field to_post_wait.
2094 (target_post_wait): Delete macro.
2095 (child_post_wait): Delete declaration.
2096 * target.c (update_current_target, update_current_target)
2097 (debug_to_post_wait, setup_target_debug): Delete functions and
2099 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2100 * inftarg.c (child_post_wait): Delete.
2101 (init_child_ops): Do not set to_post_wait.
2102 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2103 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2104 * inf-child.c (inf_child_post_wait): Delete.
2105 (inf_child_target): Do not set to_post_wait.
2106 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2107 (inf_ptrace_target): Do not set to_post_wait.
2109 * wince.c (child_ops): Delete.
2110 * win32-nat.c (child_ops): Delete.
2112 * inftarg.c (inftarg_set_find_memory_regions)
2113 (inftarg_set_make_corefile_notes): Delete functions.
2114 (_initialize_linux_nat): Inline calls.
2116 * target.h (child_ops): Declare.
2117 * inftarg.c (child_ops): Move from here ...
2118 * target.c (child_ops): ... to here.
2119 * wince.c (child_ops): Delete extern declaration.
2120 * win32-nat.c (child_ops): Delete extern declaration.
2121 * linux-nat.c (child_ops): Delete extern declaration.
2122 * hpux-thread.c (child_ops): Delete extern declaration.
2124 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2126 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2128 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2130 * configure.in: Only set host_makefile_frag when building a native
2132 * configure: Regenerate.
2134 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2137 2004-09-28 Andrew Cagney <cagney@gnu.org>
2139 Problem identified by Paul Hilfinger.
2140 * Makefile.in (ada_lex_c): Define.
2141 (ada-lex.o): Delete rule.
2143 * linux-proc.c: Delete file.
2144 * Makefile.in: Update.
2145 * config/sparc/linux64.mh (NATDEPFILES):
2146 * config/sparc/linux.mh (NATDEPFILES): Update.
2147 * config/s390/s390.mh (NATDEPFILES): Update.
2148 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2149 * config/powerpc/linux.mh (NATDEPFILES): Update.
2150 * config/pa/linux.mh (NATDEPFILES): Update.
2151 * config/mips/linux.mh (NATDEPFILES): Update.
2152 * config/m68k/linux.mh (NATDEPFILES): Update.
2153 * config/ia64/linux.mh (NATDEPFILES): Update.
2154 * config/i386/linux64.mh (NATDEPFILES): Update.
2155 * config/i386/linux.mh (NATDEPFILES): Update.
2156 * config/arm/linux.mh (NATDEPFILES): Update.
2157 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2158 * linux-nat.c: Update copyright. Include <sys/param.h>,
2159 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2160 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2161 (O_LARGEFILE): Possibly define.
2162 (_initialize_linux_nat, linux_proc_pending_signals)
2163 (add_line_to_sigset, linux_proc_xfer_memory)
2164 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2165 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2166 (struct linux_corefile_thread_data)
2167 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2168 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2170 2004-09-16 Andrew Cagney <cagney@gnu.org>
2172 * lin-lwp.c: Delete file.
2173 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2174 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2175 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2176 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2177 (linux_nat_attach, detach_callback, linux_nat_detach)
2178 (resume_callback, resume_clear_callback, linux_nat_resume)
2179 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2180 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2181 (status_callback, running_callback, count_events_callback)
2182 (select_singlestep_lwp_callback, select_event_lwp_callback)
2183 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2184 (child_wait, stop_and_resume_callback, linux_nat_wait)
2185 (kill_callback, kill_wait_callback, linux_nat_kill)
2186 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2187 (linux_nat_xfer_memory, linux_nat_thread_alive)
2188 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2189 (_initialize_linux_nat): New functions.
2190 * Makefile.in: Update all dependencies.
2191 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2192 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2193 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2194 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2195 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2196 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2197 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2198 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2199 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2200 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2201 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2202 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2203 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2205 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2207 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2208 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2210 * configure.in: Don't comment out NATDEPFILES in the generated
2211 Makefile if NAT_FILE is unset.
2212 * configure: Regenerate.
2214 2004-09-27 Andrew Cagney <cagney@gnu.org>
2216 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2217 (insert_step_resume_breakpoint): Delete.
2218 (insert_step_resume_breakpoint_at_frame): New function.
2219 (insert_step_resume_breakpoint_at_sal): New function.
2220 (handle_inferior_event, step_into_function)
2221 (insert_step_resume_breakpoint): Simplify by using same.
2223 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2225 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2227 * fbsd-proc.c: Remove file.
2228 * Makefile.in (fbsd-proc.o): Remove dependency.
2230 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2233 * config/i386/nm-fbsd64.h: Remove file.
2234 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2236 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2238 * amd64-nat.h: Update copyright year.
2239 (amd64bsd_target): New prototype.
2240 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2241 (amd64bsd_target): New function.
2242 (amd64bsd_fetch_inferior_registers): Rename from
2243 fetch_inferior_registers. Make static.
2244 (amd64bsd_store_inferior_registers): Rename from
2245 store_inferior_registers. Make static.
2246 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2247 (_initialize_amd64fbsd_nat): Construct and add target vector.
2248 * amd64nbsd-nat.o: Include "target.h".
2249 (_initialize_amd64nbsd_nat): Construct and add target vector.
2250 * amd64obsd-nat.c: Include "target.h".
2251 (_initialize_amd64obsd_nat): Construct and add target vector.
2252 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2253 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2254 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2256 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2257 Remove infptrace.o and inftarg.o. Add inf-child.o and
2259 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2260 (amd64obsd-nat.o): Update dependencies.
2262 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2264 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2265 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2266 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2267 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2268 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2270 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2272 (inf_ptrace_detach): Inline detach call.
2274 * configure.in: Check for waddstr instead of mvwaddstr when
2275 searching for curses library. Check for wborder.
2276 * configure, config.in: Regenerate.
2277 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2280 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2282 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2284 Committed by Andrew Cagney.
2285 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2286 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2288 (fetch_register_using_p): Implement 'p' packet. Based on code by
2290 (remote_fetch_registers): Call fetch_register_using_p.
2291 (init_all_packet_configs, show_remote_cmd)
2292 (_initialize_remote): Add p-packet.
2294 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2296 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2297 instead of call_ptrace. Call wait directly instead of
2299 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2300 (inf_ptrace_wait): Inline ptrace_wait call.
2302 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2304 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2305 rolled back instead.
2307 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2309 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2310 the new argument order.
2312 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2314 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2315 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2316 (struct gdbarch_tdep): Remove.
2317 (struct xstormy16_frame_cache): New frame cache structure.
2318 (xstormy16_register_byte, xstormy16_register_raw_size)
2319 (xstormy16_reg_virtual_type, xstormy16_register_type)
2320 (xstormy16_push_arguments, xstormy16_push_return_address)
2321 (xstormy16_pop_frame, xstormy16_store_struct_return)
2322 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2323 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2324 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2325 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2326 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2327 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2328 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2329 (xstormy16_extract_return_value, xstormy16_store_return_value):
2330 Regcachify. Drop useless struct convention handling.
2331 (xstormy16_register_type, xstormy16_return_value)
2332 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2333 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2334 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2335 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2336 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2337 (xstormy16_unwind_dummy_id) : New functions.
2338 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2339 of xstormy16_scan_prologue.
2340 (xstormy16_frame_unwind): New frame_unwind structure.
2341 (xstormy16_frame_base): New frame_base structure.
2342 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2343 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2345 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2347 * language.c (language_gdbarch_post_init): Fix off-by one error.
2349 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2351 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2352 (struct dwarf2_offset_and_type): New.
2353 (set_die_type, reset_die_and_siblings_types, get_die_type)
2354 (offset_and_type_hash, offset_and_type_eq): New functions.
2355 (read_structure_type, read_enumeration_type, read_array_type)
2356 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2357 (read_tag_reference_type, read_tag_const_type)
2358 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2359 (read_typedef, read_base_type, read_subrange_type): Use
2362 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2364 * Makefile.in (dwarf2read.o): Update dependencies.
2365 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2366 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2368 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2369 mark, and has_form_ref_addr.
2370 (struct dwarf2_per_cu_data): New.
2371 (dwarf2_max_cache_age): New.
2372 (dwarf2_build_psymtabs_hard): Free cached compilation units
2373 after loading. Create and manage the list of compilation units.
2374 Remove unnecessary NULL initialization. Fix indentation.
2375 (psymtab_to_symtab_1): Initialize all of CU.
2376 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2377 (find_partial_die): Use dwarf2_find_containing_comp_unit
2379 (free_stack_comp_unit): Update comments. Clear the per-cu
2380 pointer. Handle aging.
2381 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2382 (age_cached_comp_units, free_one_cached_comp_unit)
2383 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2384 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2385 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2386 (show_dwarf2_cmd): New.
2387 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2388 and "maint show dwarf2 max-cache-age".
2389 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2391 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2394 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2396 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2397 and dwarf2_cu struct pointer as arguments. Change function to use
2398 obstack if provided and use dwarf2_cu to determine language-specific
2400 (partial_die_parent_scope): Change comment to include java. Use
2401 new version of typename_concat instead of obconcat.
2402 (partial_die_full_name): Use typename_concat.
2403 (read_namespace): Ditto.
2404 (read_enumeration_type): Use typename_concat instead of obconcat.
2405 (new_symbol): Ditto.
2406 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2407 (guess_structure_name): Ditto.
2408 (read_subroutine_type): Ditto.
2409 (read_structure_type): Ditto.
2410 (is_vtable_name): Add Java support.
2411 (determine_class_name): Switch to new typename_concat call.
2412 (determine_prefix): Switch to new typename_concat call.
2413 * jv-exp.y (FuncStart): New pattern.
2414 (MethodInvocation): Add support for simple function calls. Change
2415 warning message for other forms of inferior call currently not
2417 * valarith.c (value_subscript): Treat an array with upper-bound
2418 of -1 as unknown size.
2420 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2422 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2423 (lookup_partial_symtab): Use symtab_to_fullname.
2425 2004-09-19 Jim Blandy <jimb@redhat.com>
2427 * minsyms.c (lookup_minimal_symbol): Doc fix.
2429 2004-09-20 Andrew Cagney <cagney@gnu.org>
2431 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2433 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2434 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2436 * infptrace.c: Update.
2438 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2440 * symtab.c (output_source_filename): Mark first argument as const.
2441 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2442 for "info sources" output.
2444 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2446 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2447 <machine/vmparam.h>.
2448 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2449 (register_u_addr): Remove prototype.
2451 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2453 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2454 (i386bsd_fetch_inferior_registers): Rename from
2455 fetch_inferior_registers. Make static.
2456 (i386bsd_store_inferior_registers): Rename from
2457 store_inferior_registers. Make static.
2458 (i386bsd_target): New function.
2459 * i386bsd-nat.h: New file.
2460 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2462 (i386fbsd_resume): Rename from child_resume. Make static.
2463 (_initialize_i386fbsd_nat): Construct and add target vector.
2464 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2465 (_initialize_i386nbsd_nat): Construct and add target vector.
2466 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2468 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2469 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2470 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2471 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2472 (LOADLIBES): New variable.
2473 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2474 inf-ptrace.o. Remove inftarg.o.
2475 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2476 inf-ptrace.o. Remove inftarg.o.
2477 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2478 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2479 (LOADLIBES): New variable.
2480 * Makefile.in (i386bsd_nat_h): New variable.
2481 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2484 * sparc64nbsd-tdep.c: Include "objfiles.h".
2485 (sparc64nbsd_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 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2490 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2491 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2492 svr4_lp64_fetch_link_map_offsets.
2493 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2496 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2497 * fbsd-nat.h: New file.
2498 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2499 (fbsd_nat_h): New variable.
2500 (fbsd-nat.o): New dependency.
2502 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2503 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2505 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2508 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2510 * ada-exp.y (type_int): New function to add layer of abstraction
2511 around references to expression types.
2513 (type_long_long): Ditto.
2514 (type_float): Ditto.
2515 (type_double): Ditto.
2516 (type_long_double): Ditto.
2518 (type_system_address): Ditto.
2519 (simple_exp): Use type_* functions in place of builtin_*
2522 (write_var_from_name): Ditto.
2523 (write_object_renaming): Ditto.
2524 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2526 (build_ada_types): Remove, replacing with...
2527 (ada_language_arch_info): New function to initialize primitive
2528 type vector in language_arch_info.
2529 (ada_array_length): Remove use of builtin_type_ada_int.
2530 (value_pos_atr): Ditto.
2531 (ada_evaluate_subexp): Ditto.
2532 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2533 builtin_type_ada_long_long, builtin_type_ada_char,
2534 builtin_type_ada_float, builtin_type_ada_double,
2535 builtin_type_ada_long_double, builtin_type_ada_natural,
2536 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2537 (ada_builtin_types): Remove.
2538 (ada_language_defn): Remove entries for la_builtin_type_vector and
2539 string_char_type and use ada_language_arch_info.
2540 (_initialize_ada_language): Do type-vector initialization along
2541 the lines of c-lang.c.
2542 (ada_create_fundamental_type): Break up line.
2543 (ada_dump_symtab): Remove unused function.
2544 (enum ada_primitive_types): Define.
2545 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2546 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2547 builtin_type_ada_float, builtin_type_ada_double,
2548 builtin_type_ada_long_double, builtin_type_ada_natural,
2549 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2550 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2551 (processInt): Ditto.
2552 (processReal): Ditto.
2553 (name_lookup): Ditto.
2554 * ada-typeprint.c (print_range): Use builtin_type_int, not
2555 builtin_type_ada_int.
2557 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2559 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2561 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2562 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2563 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2564 * configure.in: Improve checks for curses library by checking for
2565 mvwaddstr instead of initscr. Drop HP curses in favour of
2566 standard curses on HP-UX.
2567 * configure: Regenerated.
2569 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2571 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2572 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2573 Minor formatting changes.
2574 (empty_array): Slight rewrite for formatting.
2575 (emit_char,parse,ada_language_defn,build_ada_types,
2576 ada_is_exception_sym, _initialize_ada_language): Move
2578 (ada_dump_symtab): Remove unused definition.
2579 (ada_maybe_exception_partial_symbol): Remove unused definition.
2581 2004-09-16 Andrew Cagney <cagney@gnu.org>
2583 * inf-child.c: Include "gdb_string.h".
2584 (inf_child_core_file_to_sym_file): Delete.
2585 (inf_child_target): Set to_fetch_registers and to_store_registers.
2586 * inf-ptrace.c: Include "gdb_string.h".
2587 * Makefile.in: Update all dependencies.
2589 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2592 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2594 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2595 call to heuristic_proc_desc. Remove code that became redundant
2597 (read_next_frame_reg): Remove special case for SP_REGNUM.
2598 (set_reg_offset): Fix small typo.
2599 (reset_saved_regs): New procedure.
2600 (mips32_heuristic_proc_desc): No longer compute a fake
2601 procedure descriptor. Compute the full frame cache instead.
2602 Some minor comment reformatting.
2604 2004-09-14 Andrew Cagney <cagney@gnu.org>
2606 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2609 * thread-db.c (thread_db_new_objfile): Assume that there is a
2612 2004-09-13 Jim Blandy <jimb@redhat.com>
2614 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2615 so that its storage isn't referenced after its lifetime ends.
2617 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2618 and never assigned to. Delete it, and the 'if (use_buffer)'
2619 clauses. Delete 'raw_buffer', since it is now unused.
2621 2004-09-13 Andrew Cagney <cagney@gnu.org>
2623 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2624 * configure: Re-generate.
2625 * nlm/Makefile.in (TAGS): Update.
2626 * Makefile.in (TAGS): Update.
2627 * config/vax/nbsd.mt (TM_FILE): Update.
2628 * config/sparc/vxworks.mt (TM_FILE): Update.
2629 * config/sparc/sol2.mt (TM_FILE): Update.
2630 * config/sparc/sol2-64.mt (TM_FILE): Update.
2631 * config/sparc/obsd64.mt (TM_FILE): Update.
2632 * config/sparc/obsd.mt (TM_FILE): Update.
2633 * config/sparc/nbsd64.mt (TM_FILE): Update.
2634 * config/sparc/nbsd.mt (TM_FILE): Update.
2635 * config/sparc/linux64.mt (TM_FILE): Update.
2636 * config/sparc/linux.mt (TM_FILE): Update.
2637 * config/sparc/fbsd.mt (TM_FILE): Update.
2638 * config/sh/wince.mt (TM_FILE): Update.
2639 * config/sh/nbsd.mt (TM_FILE): Update.
2640 * config/sh/linux.mt (TM_FILE): Update.
2641 * config/sh/embed.mt (TM_FILE): Update.
2642 * config/s390/s390.mt (TM_FILE): Update.
2643 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2644 * config/rs6000/rs6000.mt (TM_FILE): Update.
2645 * config/rs6000/aix4.mt (TM_FILE): Update.
2646 * config/powerpc/vxworks.mt (TM_FILE): Update.
2647 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2648 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2649 * config/powerpc/obsd.mt (TM_FILE): Update.
2650 * config/powerpc/nbsd.mt (TM_FILE): Update.
2651 * config/powerpc/linux.mt (TM_FILE): Update.
2652 * config/powerpc/aix.mt (TM_FILE): Update.
2653 * config/pa/obsd.mt (TM_FILE): Update.
2654 * config/pa/linux.mt (TM_FILE): Update.
2655 * config/pa/hppahpux.mt (TM_FILE): Update.
2656 * config/pa/hppa64.mt (TM_FILE): Update.
2657 * config/pa/hppa.mt (TM_FILE): Update.
2658 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2659 * config/mips/wince.mt (TM_FILE): Update.
2660 * config/mips/vxmips.mt (TM_FILE): Update.
2661 * config/mips/nbsd.mt (TM_FILE): Update.
2662 * config/mips/linux.mt (TM_FILE): Update.
2663 * config/mips/irix6.mt (TM_FILE): Update.
2664 * config/mips/irix5.mt (TM_FILE): Update.
2665 * config/mips/embed.mt (TM_FILE): Update.
2666 * config/m68k/vxworks68.mt (TM_FILE): Update.
2667 * config/m68k/st2000.mt (TM_FILE): Update.
2668 * config/m68k/os68k.mt (TM_FILE): Update.
2669 * config/m68k/obsd.mt (TM_FILE): Update.
2670 * config/m68k/nbsd.mt (TM_FILE): Update.
2671 * config/m68k/monitor.mt (TM_FILE): Update.
2672 * config/m68k/linux.mt (TM_FILE): Update.
2673 * config/m68k/cisco.mt (TM_FILE): Update.
2674 * config/ia64/linux.mt (TM_FILE): Update.
2675 * config/ia64/aix.mt (TM_FILE): Update.
2676 * config/ia64/ia64.mt (TM_FILE): Update.
2677 * config/i386/vxworks.mt (TM_FILE): Update.
2678 * config/i386/obsd64.mt (TM_FILE): Update.
2679 * config/i386/obsd.mt (TM_FILE): Update.
2680 * config/i386/nto.mt (TM_FILE): Update.
2681 * config/i386/nbsd64.mt (TM_FILE): Update.
2682 * config/i386/nbsd.mt (TM_FILE): Update.
2683 * config/i386/linux64.mt (TM_FILE): Update.
2684 * config/i386/linux.mt (TM_FILE): Update.
2685 * config/i386/i386sol2.mt (TM_FILE): Update.
2686 * config/i386/i386lynx.mt (TM_FILE): Update.
2687 * config/i386/fbsd64.mt (TM_FILE): Update.
2688 * config/i386/fbsd.mt (TM_FILE): Update.
2689 * config/i386/cygwin.mt (TM_FILE): Update.
2690 * config/h8300/h8300.mt (TM_FILE): Update.
2691 * config/frv/frv.mt (TM_FILE): Update.
2692 * config/cris/cris.mt (TM_FILE): Update.
2693 * config/arm/wince.mt (TM_FILE): Update.
2694 * config/arm/nbsd.mt (TM_FILE): Update.
2695 * config/arm/linux.mt (TM_FILE): Update.
2696 * config/arm/embed.mt (TM_FILE): Update.
2697 * config/alpha/nbsd.mt (TM_FILE): Update.
2698 * config/alpha/fbsd.mt (TM_FILE): Update.
2699 * config/alpha/alpha.mt (TM_FILE): Update.
2700 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2701 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2703 Eliminate event_loop_p, always has the value 1.
2704 * defs.h (event_loop_p): Delete macro.
2705 * breakpoint.c (until_break_command): Simplify.
2706 * utils.c (prompt_for_continue): Simplify.
2707 * tracepoint.c (read_actions): Simplify.
2708 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2709 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2710 (set_prompt, init_main): Simplify.
2711 (init_signals, disconnect): Delete, unused.
2712 * remote.c (remote_async_resume)
2713 (extended_remote_async_create_inferior): Simplify.
2714 * mi/mi-interp.c (mi_input): Delete, unused.
2715 (mi_interpreter_resume, mi_command_loop): Simplify.
2716 * interps.c (current_interp_command_loop): Simplify.
2717 * infrun.c (proceed): Simplify.
2718 * infcmd.c (run_command, continue_command, step_1, jump_command)
2719 (until_command, advance_command, finish_command)
2720 (interrupt_target_command): Simplify.
2721 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2723 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2724 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2725 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2726 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2727 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2728 * mips-tdep.c (mips_dump_tdep): Do not print same.
2730 2004-09-12 Andrew Cagney <cagney@gnu.org>
2732 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2734 * Makefile.in (valprint.o): Delete explict rule.
2736 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2737 reported by Dave Anderson.
2739 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2741 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2743 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2744 Andrew Cagney <cagney@gnu.org>
2746 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2747 (mi_cmd_data_list_register_values)
2748 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2749 the register number computation.
2751 2004-09-12 Andrew Cagney <cagney@gnu.org>
2753 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2754 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2755 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2756 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2758 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2759 inf-ptrace.o and inf-child.o.
2760 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2761 * Makefile.in: Update dependencies.
2763 2004-09-11 Andrew Cagney <cagney@gnu.org>
2765 * language.c (hex_string, hex_string_custom): Move from here ...
2766 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2767 (CELLSIZE): Increase to 50.
2768 * language.h (hex_string, hex_string_custom): Move from here ...
2769 * defs.h: ... to here.
2770 * Makefile.in: Update all dependencies.
2772 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2774 * language.c (local_hex_format_custom): Remove.
2775 (local_hex_string): Rename to hex_string, use C format, and move to
2777 (local_hex_string_custom): Rename to hex_string_custom and change
2778 interface. Now uses C format. Move to utils.c
2779 (local_octal_format_custom): Remove.
2780 (local_decimal_format_custom): Remove.
2781 (unknown_language_defn): Remove language-specific number
2783 (auto_language_defn): Ditto.
2784 (local_language_defn): Ditto.
2785 * language.h (struct language_format_info): Delete declaration.
2786 (struct language_defn): Remove language_format_info fields
2787 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2788 (local_binary_format): Remove macro.
2789 (local_binary_format_prefix): Remove macro.
2790 (local_binary_format_specifier): Remove macro.
2791 (local_binary_format_suffix): Remove macro.
2792 (local_octal_format): Remove macro.
2793 (local_octal_format_prefix): Remove macro.
2794 (local_octal_format_specifier): Remove macro.
2795 (local_octal_format_suffix): Remove macro.
2796 (local_decimal_format): Remove macro.
2797 (local_decimal_format_prefix): Remove macro.
2798 (local_decimal_format_specifier): Remove macro.
2799 (local_decimal_format_suffix): Remove macro.
2800 (local_hex_format): Remove macro.
2801 (local_hex_format_prefix): Remove macro.
2802 (local_hex_format_specifier): Remove macro.
2803 (local_hex_format_suffix): Remove macro.
2804 (local_decimal_format_custom): Remove.
2805 (local_octal_format_custom): Remove.
2806 (local_hex_format_custom): Remove.
2807 (local_hex_string): Rename to hex_string and move to defs.h.
2808 (local_hex_string_custom): Rename to hex_string_custom, change
2809 interface, and move to defs.h.
2810 * utils.c: (int_string): New function.
2811 (hex_string): New function (from language.c).
2812 (hex_string_custom): New function (from language.c).
2813 (octal2str): New function.
2814 (decimal2str): Add width parameter.
2815 (paddr_u): Use new decimal2str interface.
2817 * defs.h (hex_string): Declare.
2818 (hex_string_custom): Declare.
2819 (int_string): Declare.
2820 * printcmd.c (print_scalar_formatted): Remove localized binary
2822 * valprint.c (print_longest): Use int_string.
2823 (print_floating): Use C hex format.
2824 (print_hex_chars): Ditto.
2825 (print_binary_chars): Remove language-specific formatting.
2826 (print_octal_chars): Use C octal format.
2827 (print_decimal_chars): Delocalize format.
2828 (print_decimal): Remove.
2829 * ada-lang.c (ada_language_defn): Remove language-specific number
2831 * p-lang.c (pascal_language_defn): Ditto.
2832 * c-lang.c (c_language_defn): Ditto.
2833 (cplus_language_defn): Ditto.
2834 (asm_language_defn): Ditto.
2835 (minimal_language_defn): Ditto.
2836 * f-lang.c (f_language_defn): Ditto.
2837 * jv-lang.c (java_language_defn): Ditto.
2838 * m2-lang.c (m2_language_defn): Ditto.
2839 * scm-lang.c (scm_language_defn): Ditto.
2840 * objc-lang.c (objc_language_defn): Ditto.
2841 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2843 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2844 * ui-out.c (ui_out_field_core_addr): Ditto.
2845 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2846 * exec.c (print_section_info): Ditto.
2847 * i387-tdep.c (print_i387_status_word): Ditto.
2848 (print_i387_control_word): Ditto.
2849 (i387_print_float_info): Ditto.
2850 * maint.c (maint_print_section_info): Ditto.
2851 * solib.c (info_sharedlibrary_command): Ditto.
2852 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2853 * symtab.c (print_msymbol_info): Ditto.
2854 * tracepoint.c (tracepoints_info): Ditto.
2855 * solib-frv.c (lm_base): Ditto.
2856 (frv_current_sos): Ditto.
2857 (enable_break2): Ditto.
2858 (enable_break): Ditto.
2859 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2860 (process_one_symbol): Ditto.
2861 * infcmd.c (program_info): Ditto.
2862 * mdebugread.c (parse_partial_symbols): Ditto.
2863 * symfile.c (add_symbol_file_command): Ditto.
2864 * cli/cli-cmds.c (edit_command): Ditto.
2865 (list_command): Ditto.
2866 * infcall.c (call_function_by_hand): Ditto.
2867 * remote-vx.c (vx_run_files_info): Ditto.
2872 * aix-thread.c (pdc_symbol_addrs): Ditto.
2873 (pdc_read_regs): Ditto.
2874 (pdc_write_regs): Ditto.
2875 (pdc_read_data): Ditto.
2876 (pdc_write_data): Ditto.
2877 * d10v-tdep.c (display_trace): Ditto.
2878 * rs6000-nat.c (find_toc_address): Ditto.
2879 * aix-thread.c: Don't include language.h.
2880 * buildsym.c: Ditto.
2882 * mdebugread.c: Ditto.
2883 * rs6000-nat.c: Ditto.
2884 * buildsym.c (make_blockvector): Use renamed hex_string.
2886 2004-09-10 Jason Molenda (jmolenda@apple.com)
2888 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2889 chars after 'if' or 'while' commands in user-defined commands.
2891 2004-09-08 Jim Blandy <jimb@redhat.com>
2893 Fix bug reported and analyzed by Olivier Crete:
2894 * symfile.c (copy_section_addr_info): New function.
2895 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2896 original set of address arguments, instead of handwritten code
2897 that uses one length to allocate and a different length to
2898 initialize. Use make_cleanup_free_section_addr_info.
2899 * symfile.h (copy_section_addr_info): New declaration.
2900 * utils.c: #include "symfile.h".
2901 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2903 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2904 * Makefile.in (utils.o): Update dependencies.
2906 2004-09-08 Andrew Cagney <cagney@gnu.org>
2908 * thread-db.c (keep_thread_db): Delete.
2909 (thread_db_new_objfile, thread_db_create_inferior)
2910 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2912 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2914 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2915 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2916 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2917 (i386_frameless_signal_p): Remove prototype.
2918 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2919 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2921 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2922 instead of FP0_REGNUM.
2923 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2924 of FP0_REGNUM and FPC_REGNUM.
2926 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2927 (sunos_solib_create_inferior_hook): Don't call
2928 sunos_relocate_main_executable.
2930 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2931 solib_svr4_fetch_link_map_offsets to
2932 svr4_ilp32_fetch_link_map_offsets.
2933 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2934 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2935 svr4_ilp32_fetch_link_map_offsets.
2936 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2938 2004-09-07 Jim Blandy <jimb@redhat.com>
2940 * frame.h (frame_register): Doc fix.
2942 2004-09-07 Andrew Cagney <cagney@gnu.org>
2944 * vx-share/wait.h: Delete #ifdef USG.
2945 * utils.c (request_quit): Ditto.
2946 * tui/tui.c (tui_reset): Ditto.
2948 * remote-sds.c: Ditto.
2949 * remote-rdi.c: Ditto.
2950 * mdebugread.c: Ditto.
2951 * m68klinux-nat.c: Ditto.
2952 * infttrace.c: Ditto.
2953 * infptrace.c: Ditto.
2954 * i386v-nat.c: Ditto.
2957 * core-aout.c: Ditto.
2959 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2961 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2962 heuristic_proc_desc.
2963 (mips_insn32_frame_cache): Likewise.
2965 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2967 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2968 left behind by error.
2970 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2972 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2973 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2975 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2977 * config/rs6000/xm-aix4.h: Remove this file.
2978 * config/rs6000/aix4.mh (XM_FILE): Delete.
2980 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2982 * config/rs6000/xm-rs6000.h: Remove this file.
2983 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2985 2004-09-03 Andrew Cagney <cagney@gnu.org>
2987 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2988 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2991 * mips-tdep.c (temp_saved_regs): Delete.
2992 (set_reg_offset): Replace saved_regs parameter with this_cache.
2993 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2994 (mips32_heuristic_proc_desc): Add this_cache parameter.
2995 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2996 (after_prologue): Pass a NULL this_cache.
2998 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2999 non-kernel trap prologues.
3001 * mips-tdep.c (find_proc_desc): Delete function.
3002 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3004 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3005 mips_insn32_frame_cache.
3007 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3008 Simplify as NEXT_FRAME is NULL.
3009 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3011 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3013 (mips_skip_prologue): Update.
3015 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3016 "cur_frame" parameter.
3017 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3018 (mips_insn32_frame_cache, find_proc_desc): Update
3020 * config/vax/nm-obsd.h: Delete file.
3021 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3022 * config/vax/nm-nbsd.h: Delete file.
3023 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3024 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3025 * config/sh/nm-nbsd.h: Delete file.
3026 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3027 * config/rs6000/nm-rs6000ly.h: Delete file.
3028 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3029 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3030 * config/powerpc/nm-obsd.h: Delete file.
3031 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3032 * config/powerpc/nm-nbsd.h: Delete file.
3033 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3034 * config/pa/nm-obsd.h: Delete file.
3035 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3036 * config/mips/nm-nbsd.h: Delete file.
3037 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3038 * config/m88k/nm-obsd.h: Delete file.
3039 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3040 * config/m68k/nm-nbsd.h: Delete file.
3041 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3042 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3043 * config/i386/nm-nbsd.h: Delete file.
3044 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3045 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3046 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3047 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3048 * config/i386/nm-i386lynx.h: Delete file.
3049 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3050 * config/arm/nm-nbsd.h: Delete file.
3051 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3052 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3054 * config/i386/tm-fbsd.h: Delete file.
3055 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3056 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3058 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3059 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3060 * config/rs6000/aix4.mt (TM_FILE): Set to
3061 config/rs6000/tm-rs6000.h.
3062 * config/powerpc/tm-ppc-aix.h: Delete file.
3063 * config/powerpc/aix.mt (TM_FILE): Set to
3064 config/rs6000/tm-rs6000.h.
3065 * config/m68k/tm-linux.h: Delete file.
3066 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3067 * config/i386/tm-linux64.h: Delete file.
3068 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3069 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3071 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3072 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3073 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3074 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3075 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3076 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3077 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3078 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3079 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3081 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3084 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3086 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3087 Minor reformatting. Some code factoring.
3089 2004-09-02 Andrew Cagney <cagney@gnu.org>
3091 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3092 * config/vax/tm-nbsd.h: Delete file.
3093 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3094 * config/sparc/tm-vxworks.h: Delete file.
3095 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3096 * config/sparc/tm-nbsd.h: Delete file.
3097 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3098 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3099 * config/sparc/tm-linux.h: Delete file.
3100 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3101 * config/s390/tm-linux.h: Delete file.
3102 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3103 * config/pa/tm-bsd.h: Delete file.
3104 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3105 * config/m68k/tm-obsd.h: Delete file.
3106 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3107 * config/m68k/tm-nbsd.h: Delete file.
3108 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3109 * config/i386/tm-vxworks.h: Delete file.
3110 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3111 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3112 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3113 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3114 * config/i386/tm-nbsd.h: Delete file.
3115 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3116 * config/i386/tm-i386lynx.h: Delete file.
3117 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3118 * config/cris/tm-cris.h: Delete file.
3120 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3121 * configure: Re-generate.
3122 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3123 * config/arm/tm-nbsd.h: Delete file.
3125 * config/powerpc/tm-ppcle-sim.h: Delete.
3126 * config/powerpc/tm-ppcle-eabi.h: Delete.
3127 * config/powerpc/tm-nbsd.h: Delete.
3128 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3129 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3132 * config/i386/nto.mh (NAT_FILE): Delete.
3133 * config/i386/nm-nto.h: Delete.
3135 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3136 * config/m68k/tm-os68k.h: Ditto.
3137 * config/m68k/tm-monitor.h: Ditto.
3138 * config/m68k/tm-cisco.h: Ditto.
3139 * config/m68k/st2000.mt (TM_FILE): Delete.
3140 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3141 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3142 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3143 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3145 * config/m68k/tm-st2000.h: Delete.
3146 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3147 * config/sparc/fbsd.mt (TM_FILE): Delete.
3148 * config/sparc/tm-fbsd.h: Delete.
3150 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3151 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3152 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3154 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3155 GDB_TM_FILE and GDB_XM_FILE.
3156 * gdbarch.c: Re-generate.
3157 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3158 quotes in macro definition.
3159 * configure.in: Re-generate.
3161 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3162 validating architecture methods.
3163 * gdbarch.c: Re-generate.
3165 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3166 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3167 GDB_MULTI_ARCH_PARTIAL.
3168 * gdbarch.h: Re-generate.
3170 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3171 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3172 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3173 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3174 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3175 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3176 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3177 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3178 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3179 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3180 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3181 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3183 2004-09-01 Andrew Cagney <cagney@gnu.org>
3185 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3186 and main_func_highpc.
3187 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3188 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3189 * nlmread.c (nlm_symfile_read): Update.
3191 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3193 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3194 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3195 (find_proc_desc): Remove dead code.
3197 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3199 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3201 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3203 * observer.sh: Add struct so_list declaration.
3204 * Makefile.in: Add dependencies on observer.h for solib.c and
3206 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3208 (_initialize_breakpoint): Register
3209 disable_breakpoints_in_unloaded_shlib as an observer of the
3210 "solib unloaded" observation event.
3211 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3212 call decode_line_1 so unfound breakpoint errors are silent.
3213 * solib.c (update_solib_list): When a solib is discovered to have
3214 been unloaded by the program, notify all observers of the
3215 "solib unloaded" observation event.
3217 2004-09-01 Andrew Cagney <cagney@gnu.org>
3219 * frame.c: Include "objfiles.h".
3220 (inside_main_func): New function.
3221 (get_prev_frame): Use new inside_main_func.
3222 * Makefile.in (frame.o): Update dependencies.
3223 * defs.h (inside_main_func): Delete declaration.
3224 * blockframe.c (inside_main_func): Delete function.
3226 2004-08-31 Jim Blandy <jimb@redhat.com>
3228 * dwarf2read.c (is_vtable_name): New function, based on logic from
3229 read_structure_type, but passing the correct length to strncmp,
3230 and using 'sizeof' instead of 'strlen'.
3231 (read_structure_type): Call it.
3233 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3235 * config/powerpc/aix.mh: Add comment.
3237 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3239 * MAINTAINERS: Add self to Write-After-Approval.
3241 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3243 * MAINTAINERS: Add self to Write-After-Approval.
3245 2004-08-30 Andrew Cagney <cagney@gnu.org>
3247 Fix PR breakpoints/1757.
3248 * infrun.c (struct execution_control_state): Replace
3249 remove_breakpoints_on_following_step with
3250 step_after_step_resume_breakpoint.
3251 (init_execution_control_state): Update.
3252 (handle_inferior_event): For signals, when stepping off a
3253 breakpoint, set step_after_step_resume_breakpoint. When
3254 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3255 (keep_going): Delete code handling
3256 remove_breakpoints_on_following_step.
3258 2004-08-29 David Lecomber <david@streamline-computing.com>
3261 * language.h (enum array_ordering): New enum.
3262 * language.h (struct language_defn): New la_array_ordering
3264 * language.c (unknown_language_defn, auto_language_defn)
3265 (local_language_defn): Ditto.
3266 * ada-lang.c (ada_language_defn): Ditto.
3267 * c-lang.c (c_language_defn, cplus_language_defn)
3268 (asm_language_defn, minimal_language_defn): Ditto.
3269 * f-lang.c (f_language_defn): Ditto.
3270 * jv-lang.c (java_language_defn): Ditto.
3271 * m2-lang.c (f_language_defn): Ditto.
3272 * objc-lang.c (objc_language_defn): Ditto.
3273 * p-lang.c (pascal_language_defn): Ditto.
3274 * scm-lang.c (scm_language_defn): Ditto.
3275 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3276 oriented large to small in type structure.
3277 * dwarf2read.c (read_array_order): New function.
3278 (read_array_type): Use read_array_order to check row/column
3281 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3283 * target.c (target_resize_to_sections): Check
3284 current_target.to_sections for an old value when updating.
3286 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3288 * procfs.c (dbx_link_bpt_addr): New static global variable.
3289 (dbx_link_shadow_contents): New static global variable.
3290 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3291 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3293 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3294 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3296 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3297 after the inferior has been forked.
3298 (remove_dbx_link_breakpoint): New function.
3299 (dbx_link_addr): New function.
3300 (insert_dbx_link_bpt_in_file): New function.
3301 (insert_dbx_link_bpt_in_region): New function.
3302 (insert_dbx_link_breakpoint): New function.
3303 (proc_trace_syscalls_1): New function, extracted from
3304 proc_trace_syscalls.
3305 (proc_trace_syscalls): Replace extract code by call to
3306 proc_trace_syscalls_1.
3307 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3310 2004-08-25 Jim Blandy <jimb@redhat.com>
3312 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3314 2004-08-25 Andrew Cagney <cagney@gnu.org>
3316 * infrun.c (struct execution_control_state): Delete field
3317 "stepping_through_sigtramp".
3318 (init_execution_control_state): Do not set same.
3319 (context_switch): Do not pass same to save_infrun_state and
3321 * gdbthread.h (struct thread_info): Delete field
3322 stepping_through_sigtramp.
3323 (save_infrun_state, load_infrun_state): Delete parameter
3324 stepping_through_sigtramp.
3325 * thread.c (load_infrun_state, save_infrun_state): Update.
3327 * infrun.c: Re-indent. Move expression operators to the beginning
3328 of the line. Remove long disabled #if 0 code.
3330 2004-08-24 Andrew Cagney <cagney@gnu.org>
3332 * doublest.h (floatformat_ieee_quad): Rename
3333 floatformat_ia64_quad.
3334 * doublest.c (floatformat_ieee_quad): Rename
3335 floatformat_ia64_quad.
3336 (_initialize_doublest): Update.
3338 2004-08-24 Jim Blandy <jimb@redhat.com>
3340 * dwarf2expr.h (struct dwarf_expr_context): New members
3341 'num_pieces' and 'pieces', for returning the result of an
3342 expression that uses DW_OP_piece.
3343 (struct dwarf_expr_piece): New struct type.
3344 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3346 (free_dwarf_expr_context): Free pieces, if any.
3347 (add_piece): New function.
3348 (execute_stack_op): Implement DW_OP_piece.
3349 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3350 expression is a list of pieces, print an error message.
3351 (dwarf2_loc_desc_needs_frame): If the expression yields
3352 pieces, and any piece is in a register, then we need a frame.
3354 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3355 the stack until we've decided what sort of result the evaluation
3356 has produced. Use separate variables, with more specific names.
3358 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3360 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3361 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3362 (arm_netbsd_init_abi_common): Register them.
3364 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3366 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3368 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3369 safe_frame_unwind_memory instead of target_read_memory.
3371 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3373 (fetch_register, store_register): Remove prototypes.
3374 (child_resume): Reorganize code and comments such that it is
3375 grouped a bit more logically.
3376 (attach): Explicitly compare errno against 0.
3377 (detach): Likewise. Use perror_with_name instead of
3379 * Makefile.in (infptrace.o): Update dependencies.
3381 * ia64-linux-nat.c: Update copyright year.
3382 (fetch_debug_register, store_debug_register)
3383 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3385 * config/ia64/nm-linux.h: Update copyright year.
3386 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3388 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3389 from CORE_ADDR to struct frame_info *. Use
3390 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3391 (amd64_linux_sigtramp_p): Adjust for changed signature of
3392 and64_linux_sigtramp_start
3394 * gdb_ptrace.h: GNU/Linux.
3396 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3399 * infptrace.c: Include "gdb_assert.h".
3400 (PTRACE_XFER_TYPE): Remove define.
3401 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3402 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3404 (fetch_inferior_registers, store_inferior_registers): Remove
3405 redundant culry braces. Tweak comment. s/regno/regnum.
3406 * Makefile.in (infptrace.o): Update dependencies.
3408 * configure.in: Change test for return type of ptrace to default
3409 to `long' instead of `int'.
3410 * configure: Regenerate.
3412 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3414 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3416 * configure.in: Check for ttrace function.
3417 * configure, config.in: Regenerate.
3419 * gdb_ptrace.h: New file.
3420 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3422 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3423 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3424 (attach): Don't define PT_ATTACH.
3425 (detach): Don't define PT_DETACH.
3426 * Makefile.in (gdb_ptrace_h): New variable.
3427 (infptrace.o): Update dependencies.
3429 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3431 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3432 instead of `int' if not already defined.
3433 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3435 * infptrace.c (call_ptrace): Revert change that replaced
3436 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3438 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3440 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3443 * linux-nat.c (kill_inferior): Add missing third and fourth
3444 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3446 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3449 * proc-why.c (proc_prettyfprint_why): Fix format string.
3451 * solib-osf.c (osf_current_sos): Remove unsused label.
3453 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3455 * configure, config.in: Regenerate.
3456 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3457 <ncurses/ncurses.h>.
3459 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3460 * config/nm-nbsd.h: Update copyright year.
3461 (PTRACE_ARG3_TYPE): Remove define.
3463 * sparc-nat.c (fetch_inferior_registers)
3464 (store_inferior_registers, sparc_xfer_wcookie):
3465 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3467 * alphabsd-nat.c (fetch_inferior_registers):
3468 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3470 * amd64bsd-nat.c (fetch_inferior_registers)
3471 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3473 * armnbsd-nat.c: Update copyright year.
3474 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3475 (store_register, store_regs, store_fp_register, store_fp_regs):
3476 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3477 * hppabsd-nat.c (fetch_inferior_registers)
3478 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3480 * i386bsd-nat.c (fetch_inferior_registers)
3481 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3482 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3483 * m68kbsd-nat.c (fetch_inferior_registers)
3484 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3486 * m88kbsd-nat.c (fetch_inferior_registers)
3487 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3489 * mipsnbsd-nat.c: Update copyright year.
3490 (fetch_inferior_registers, store_inferior_registers):
3491 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3492 * ns32knbsd-nat.c: Update copyright year.
3493 (fetch_inferior_registers, store_inferior_registers):
3494 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3495 * ppcnbsd-nat.c (fetch_inferior_registers):
3496 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3498 * ppcobsd-nat.c (fetch_inferior_registers):
3499 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3501 * shnbsd-nat.c: Update copyright year.
3502 (fetch_inferior_registers, store_inferior_registers):
3503 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3504 * vaxbsd-nat.c (fetch_inferior_registers)
3505 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3508 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3510 * infptrace.c (call_ptrace, child_resume, attach, detach)
3511 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3512 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3513 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3516 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3518 * defs.h: Remove out-of-date comment.
3519 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3520 [!GETENV_PROVIDED] (getenv): Remove prototype.
3522 * standalone.c: Remove file.
3523 * Makefile.in (standalone.o): Remove dependency.
3525 * i386-linux-nat.c (dummy_sse_values): Remove function and
3527 (i386_linux_dr_get): Fix typo in comment.
3528 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3530 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3532 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3534 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3537 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3539 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3540 parenthesis in definition.
3541 * configure: Regenerated.
3543 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3545 * PROBLEMS: Mention build/1411.
3547 2004-08-09 Robert Millan <robertmh@gnu.org>
3549 Committed by Nathanael Nerode.
3550 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3551 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3553 2004-08-12 Andrew Cagney <cagney@gnu.org>
3555 * NEWS: Mention fixes in GDB 6.2.1.
3556 * PROBLEMS: Remove mention of mips-irix.
3558 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3560 * config/powerpc/xm-aix.h: Delete.
3561 * config/powerpc/aix.mh (MH_FILE): Remove.
3562 * config/powerpc/aix432.mh (MH_FILE): Remove.
3564 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3566 * config/powerpc/aix.mh: Remove obsolete comment.
3567 * config/powerpc/aix432.mh: Likewise.
3569 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3571 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3573 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3575 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3576 this file is now empty.
3577 * config/xm-aix4.h: Remove, this file is no longer included
3580 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3582 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3583 that file is now empty.
3584 (termdef): Remove prototype, function no longer used.
3586 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3588 * doc/gdbint.texinfo (Host Definition): Remove documentation
3589 for USE_O_NOCTTY, no longer used.
3590 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3591 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3593 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3595 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3596 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3597 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3599 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3601 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3602 instead of FIVE_ARG_PTRACE.
3604 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3605 (new_tty): Use O_NOCTTY unconditionally.
3607 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3609 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3610 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3613 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3615 * xcoff_symfile_finish: Replace last call to xmfree by call
3618 2004-08-10 Andrew Cagney <cagney@gnu.org>
3620 * main.c (captured_main): Delete call to init_malloc.
3621 * defs.h (init_malloc): Delete declaration.
3622 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3623 (init_malloc): Delete functions.
3625 * defs.h (xmfree): Delete.
3626 * utils.c (xmfree): Delete function.
3627 (xfree): Inline calls to xmfree and mfree.
3628 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3629 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3630 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3631 * somread.c (som_symfile_finish): Ditto.
3632 * objfiles.c (allocate_objfile, free_objfile):
3633 * nlmread.c (nlm_symfile_finish): Ditto.
3634 * hpread.c (hpread_symfile_finish): Ditto.
3635 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3636 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3637 * coffread.c (coff_symfile_finish): Ditto.
3639 * defs.h (xmcalloc): Delete declaration.
3640 * utils.c (xmcalloc): Delete.
3641 (xcalloc): Inline calls to xmcalloc and mcalloc.
3642 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3644 * symtab.c (create_demangled_names_hash): Ditto.
3646 * defs.h (xmrealloc): Delete.
3647 * utils.c (xmrealloc): Delete.
3648 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3649 * symmisc.c (extend_psymbol_list): Use xrealloc.
3650 * source.c (find_source_lines): Ditto.
3651 * hpread.c (hpread_lookup_type): Ditto.
3652 * dbxread.c (add_bincl_to_list): Ditto.
3654 * utils.c (xmmalloc): Delete.
3655 (xmalloc): Inline xmmalloc and mmalloc calls.
3656 (msavestring): Use xmalloc.
3657 * defs.h (xmmalloc): Delete declaration.
3658 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3660 * symmisc.c (extend_psymbol_list): Ditto.
3661 * symfile.c (init_psymbol_list): Ditto.
3662 * source.c (find_source_lines): Ditto.
3663 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3664 * elfread.c (elf_symtab_read): Ditto.
3665 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3666 * coffread.c (coff_symfile_init): Ditto.
3668 2004-08-10 David Carlton <carlton@bactrian.org>
3670 * MAINTAINERS: Remove David Carlton from c++ testsuite
3673 2004-08-10 Jerome Guitton <guitton@gnat.com>
3675 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3676 print a line feed before the prompt.
3678 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3680 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3682 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3684 General cleanup of the AIX xm include file:
3685 * config/xm-aix4.h (fd_set): Remove undefine.
3686 Remove include of <sys/select.h>.
3687 (HAVE_TERMIO): Remove define.
3689 (NULL): Remove redefine.
3690 (alloca): Remove #pragma.
3691 (vfork): Remove define.
3693 (SIGWINCH_HANDLER): Remove.
3694 (SIGWINCH_HANDLER_BODY): Remove.
3696 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3698 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3699 GDB_OSABI_OPENBSD_ELF.
3701 2004-08-07 Robert Millan <robertmh@gnu.org>
3703 * bsd-kvm.c: Check for nlist.h before including it.
3705 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3707 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3708 sigcontext' offset consistency checks for ancient BSD.
3710 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3712 * configure.in: Check for <sys/types.h>. Check return and
3713 argument types of ptrace.
3714 * configure, config.in: Regenerate.
3716 2004-08-09 Jim Blandy <jimb@redhat.com>
3718 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3719 rs6000_register_sim_regno): Doc fixes.
3721 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3723 * mips-tdep.c: Include "floatformat.h".
3724 (n32n64_floatformat_always_valid): New function.
3725 (floatformat_n32n64_long_double_big): New constant.
3726 (mips_gdbarch_init): Set size and format of long double
3727 for N32 and N64 ABIs.
3728 * Makefile.in (mips-tdep.o): Update dependencies.
3730 2004-08-08 Andrew Cagney <cagney@gnu.org>
3732 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3733 print. Improve script's error messages.
3734 * gdbarch.h: Re-generate.
3736 * gdbarch.sh (pformat): New function.
3737 (float_format, double_format, long_double_format): List with bit
3738 members. Use pformat when printing.
3739 * gdbarch.c, gdbarch.h: Re-generate.
3741 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3743 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3744 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3745 (ppcnbsd_supply_pcb): New function.
3746 (_initialize_ppcnbsd_nat): New prototype and function.
3747 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3748 (LOADLIBES): New variable.
3749 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3751 2004-08-08 Andrew Cagney <cagney@gnu.org>
3753 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3754 (builtin_type_ieee_double, builtin_type_ia64_quad)
3755 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3756 BE/LE floating-point types.
3757 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3758 (builtin_type_ieee_double, builtin_type_ia64_quad)
3759 (builtin_type_ia64_spill): Declare.
3760 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3761 (floatformat_ieee_double, floatformat_arm_ext)
3762 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3763 of LE/BE floatformats.
3764 * doublest.h: (struct floatformat, floatformat_ieee_single)
3765 (floatformat_ieee_double, floatformat_arm_ext)
3766 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3768 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3770 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3772 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3773 instead of regcache_raw_supply when storing the registers.
3775 * i386gnu-nat.c: Update copyright year.
3776 (gnu_store_registers): Don't use deprecated_registers and
3777 deprecated_registers_valid. Use regcache_valid_p and
3778 regcache_raw_supply instead.
3780 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3783 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3784 variables. Incapitalized "process".
3786 * configure.in: Add cursesX to the list of possible curses libs.
3787 Add cursesX.h to the list of possible curses headers.
3788 * configure, config.in: Regenerate.
3790 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3792 * configure.in: Test for struct lwp in <sys/lwp.h>.
3793 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3794 the offset of l_addr in struct lwp.
3796 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3798 * bsd-kvm.c: Include "gdbcore.h"
3799 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3801 2004-08-07 Andrew Cagney <cagney@gnu.org>
3803 * gdbtypes.c (build_flt, build_complex): New functions.
3804 (gdbtypes_post_init): Use.
3806 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3808 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3809 through to builtin_type_uint128.
3811 * c-exp.y: Use builtin_type function to obtain builtin types.
3813 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3815 * gdbtypes.c (gdbtypes_post_init): Update.
3816 (build_gdbtypes): Move initialization of builtin_type_int0
3817 through to builtin_type_uint128 from here ...
3818 (_initialize_gdbtypes): ... to here.
3819 * d10v-tdep.c (d10v_register_type): Update.
3821 * doublest.c: Update copyright.
3822 (floatformat_from_length): Call error when floatformat is NULL.
3823 (extract_floating_by_length): Remove NULL fmt check.
3824 (store_floating_by_length): Ditto.
3826 2004-08-07 Andrew Cagney <cagney@gnu.org>
3828 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3829 that the register is valid.
3831 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3833 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3834 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3835 struct frame_info *. Use safe_frame_unwind_memory instead of
3836 deprecated_read_memory_nobpt.
3837 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3838 changed signature of i386_linux_sigtramp_start and
3839 i386_linux_rt_sigtramp_start.
3841 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3842 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3843 instead of deprecated_read_memory_nobpt.
3844 (i386nbsd_sigtramp_p): Adjust for changed signature of
3845 i386nbsd_sigtramp_offset.
3847 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3848 safe_frame_unwind_memory instead of target_read_memory.
3850 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3852 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3853 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3854 (_initialize_kernel_u_addr): Remove prototype and function.
3855 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3857 * xcoffread.c: Likewise.
3859 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3861 * vax-nat.c: New file.
3862 * vaxbsd-nat.c: Tweak comment.
3863 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3865 (vax-nat.o): New dependency.
3866 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3867 (vax-*-ultrix2*): Remove.
3868 * config/vax/vax.mh: New file.
3869 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3870 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3871 (vax_register_u_addr): New prototype.
3872 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3873 * config/vax/vaxult2.mh: Remove file.
3874 * config/vax/vaxult.mh: Remove file.
3875 * config/vax/vaxbsd.mh: Remove file.
3876 * config/vax/vax.mt (TM_FILE): Remove.
3877 * config/vax/tm-vaxbsd.h: Remove file.
3879 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3881 * aix-thread.c (get_signaled_thread): New function.
3882 (iter_trap): Delete, no longer used.
3883 (iter_tid): New function.
3884 (pd_update): Find the thread that received the SIGTRAP signal
3885 by first locating the kernel thread, and then finding its
3888 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3890 * lin-lwp.c (child_wait): Continue inferior after processing
3891 PTRACE_EVENT_CLONE event.
3893 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3895 * MAINTAINERS: Add self to Write-After-Approval.
3897 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3899 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3900 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3902 2004-08-05 Andrew Cagney <cagney@gnu.org>
3904 * config/xm-sysv4.h: Delete file.
3905 * config/mips/xm-irix5.h: Delete file.
3906 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3907 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3908 * config/ia64/xm-aix.h: Delete file.
3909 * config/ia64/aix.mh (XM_FILE): Delete.
3910 * config/pa/xm-hppah.h: Delete file.
3911 * config/pa/hpux11w.mh (XM_FILE): Delete.
3912 * config/pa/hpux11.mh (XM_FILE): Delete.
3913 * config/pa/hpux1020.mh (XM_FILE): Delete.
3914 * config/pa/hppahpux.mh (XM_FILE): Delete.
3916 * config/alpha/xm-alphalinux.h: Delete file.
3917 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3918 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3919 * config/alpha/xm-alphaosf.h: Delete file.
3920 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3921 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3922 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3923 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3925 * config/i386/xm-i386v.h: Delete file.
3926 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3927 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3928 * config/i386/xm-i386sco.h: Delete file.
3929 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3930 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3931 * config/i386/xm-i386v4.h: Delete file.
3932 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3933 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3934 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3935 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3937 * config/vax/xm-vax.h: Delete file.
3938 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3939 * config/vax/xm-vaxult2.h: Delete file.
3940 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3941 * config/vax/vaxult2.mh (XM_FILE): Delete.
3942 * config/vax/xm-vaxult.h: Delete file.
3943 * config/vax/vaxult.mh (XM_FILE): Delete.
3944 * config/vax/xm-vaxbsd.h: Delete file.
3945 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3947 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3948 * gdbarch.h, gdbarch.c: Re-generate.
3949 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3950 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3951 * frame.h: Delete deprecated_read_fp from comments.
3952 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3953 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3955 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3957 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3958 trampoline in OpenBSD 3.5-current.
3960 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3963 * Makefile.in: Remove embedded page breaks.
3965 2004-08-04 Jim Blandy <jimb@redhat.com>
3967 * regcache.c (regcache_raw_read): Assert that, after calling
3968 target_fetch_registers, the register we're reading is cached.
3970 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3971 a call to 'internal_error', with a more helpful error message.
3972 * rs6000-tdep.c (e500_pseudo_register_read,
3973 e500_pseudo_register_write, rs6000_store_return_value): Same.
3975 2004-08-04 Andrew Cagney <cagney@gnu.org>
3977 * Makefile.in: Update dependencies.
3979 2004-08-04 Jim Blandy <jimb@redhat.com>
3981 Change the layout of the PowerPC E500 raw register cache to allow
3982 the lower 32-bit halves of the GPRS to be their own raw registers,
3983 not pseudoregisters.
3984 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3985 add ppc_ev0_upper_regnum flag.
3986 * rs6000-tdep.c: #include "reggroups.h".
3987 (spe_register_p): Recognize the ev upper half registers as SPE
3989 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3991 (e500_move_ev_register): New function.
3992 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3993 vector registers are the pseudo-registers now, formed by splicing
3994 together the gprs and the upper-half registers.
3995 (e500_register_reggroup_p): New function.
3997 (P8, A4): New macro.
3998 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3999 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4001 (registers_e500): Rearrange register set so that the raw register
4002 set contains 32-bit GPRs and upper-half registers, and the SPE
4003 vector registers become pseudo-registers.
4004 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4005 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4006 register numbers are now the same for the E500 as they are for
4007 other PowerPC variants. Register e500_register_reggroup_p as the
4008 register group function for the E500.
4009 * Makefile.in (rs6000-tdep.o): Update dependencies.
4011 Adapt PPC E500 native support to the new raw regcache layout.
4012 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4013 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4014 (fetch_spe_register, store_spe_register): Handle fetching/storing
4015 all the SPE registers at once, if regno == -1. These now take
4016 over the job of fetch_spe_registers and store_spe_registers.
4017 (fetch_spe_registers, store_spe_registers): Deleted.
4018 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4019 unconditionally; they're always raw. Fetch/store SPE upper half
4020 registers, if present, instead of ev registers.
4021 (fetch_register, store_register): Remove sanity checks: gprs are
4022 never pseudo-registers now, so we never need to even mention any
4023 registers that are ever pseudoregisters.
4025 Use a fixed register numbering when communicating with the PowerPC
4027 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4028 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4029 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4031 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4032 init_sim_regno_table.
4033 * Makefile.in (gdb_sim_ppc_h): New variable.
4034 (rs6000-tdep.o): Update dependencies.
4036 2004-08-02 Andrew Cagney <cagney@gnu.org>
4038 * cris-tdep.c (cris_register_size): Restore function, still used
4041 * gdbarch.sh (deprecated_target_read_fp)
4042 (deprecated_frame_locals_address, deprecated_frame_args_address)
4043 (deprecated_frame_chain_valid, deprecated_frame_chain)
4044 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4045 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4046 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4047 * gdbarch.h, gdbarch.c: Re-generate.
4048 * regcache.c (deprecated_read_fp): Do not call
4049 DEPRECATED_TARGET_READ_FP_P.
4050 * infcmd.c (default_print_registers_info): Do not call
4051 DEPRECATED_DO_REGISTERS_INFO.
4052 * frame-base.c (default_frame_locals_address): Do not call
4053 DEPRECATED_FRAME_LOCALS_ADDRESS.
4054 (default_frame_args_address): Do not call
4055 DEPRECATED_FRAME_ARGS_ADDRESS.
4057 * gdbarch.sh (deprecated_register_raw_size)
4058 (deprecated_register_virtual_size:int): Delete.
4059 * gdbarch.h, gdbarch.c: Re-generate.
4060 * cris-tdep.c (cris_register_size): Delete.
4061 (cris_gdbarch_init): Update.
4062 * alpha-tdep.c (alpha_register_raw_size)
4063 (alpha_register_virtual_size): Delete.
4064 (alpha_gdbarch_init): Update.
4066 * gdbarch.sh (deprecated_register_virtual_type)
4067 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4068 (deprecated_dummy_write_sp): Delete.
4069 * gdbarch.h, gdbarch.c: Re-generate.
4071 * gdbarch.sh (deprecated_register_bytes): Delete.
4072 * gdbarch.h, gdbarch.c: Re-generate.
4073 * regcache.c (deprecated_register_bytes): New function.
4074 * regcache.h (deprecated_register_bytes): Declare.
4075 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4076 * v850-tdep.c (v850_gdbarch_init): Update.
4077 * sh64-tdep.c (sh64_gdbarch_init): Update.
4078 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4079 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4080 * mcore-tdep.c (mcore_gdbarch_init): Update.
4081 * cris-tdep.c (cris_gdbarch_init): Update.
4082 * arm-tdep.c (arm_gdbarch_init): Update.
4083 * remote.c (init_remote_state): Update.
4084 * remote-vx.c (vx_prepare_to_store): Update.
4085 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4086 * irix5-nat.c (fetch_core_registers): Update.
4087 * cris-tdep.c (cris_register_bytes_ok): Update.
4088 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4090 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4091 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4092 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4093 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4094 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4095 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4096 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4097 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4098 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4099 with mips_insn16 and mips_insn32.
4101 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4102 * rs6000-tdep.c (rs6000_push_dummy_call)
4103 (rs6000_extract_return_value): Use register_size.
4104 * xstormy16-tdep.c (xstormy16_get_saved_register)
4105 (xstormy16_extract_return_value): Ditto.
4106 * valops.c (value_assign): Ditto.
4107 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4108 * v850-tdep.c (v850_extract_return_value): Ditto.
4109 * tracepoint.c (collect_symbol): Ditto.
4110 * target.c (debug_print_register): Ditto.
4111 * stack.c (frame_info): Ditto.
4112 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4113 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4114 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4115 (store_register_using_P): Ditto.
4116 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4117 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4118 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4119 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4120 * regcache.c (deprecated_read_register_bytes)
4121 (deprecated_write_register_bytes, read_register)
4122 (write_register): Ditto.
4123 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4124 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4125 * monitor.c (monitor_supply_register, monitor_fetch_register)
4126 (monitor_store_register): Ditto.
4127 * mn10300-tdep.c (mn10300_pop_frame_regular)
4128 (mn10300_print_register): Ditto.
4129 * mipsv4-nat.c (fill_fpregset): Ditto.
4130 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4131 (mips64_fill_fpregset): Ditto.
4132 * mi/mi-main.c (register_changed_p, get_register)
4133 (mi_cmd_data_write_register_values): Ditto.
4134 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4135 * irix5-nat.c (fill_gregset, fetch_core_registers):
4136 * infrun.c (write_inferior_status_register): Ditto.
4137 * infptrace.c (fetch_register, store_register): Ditto.
4138 * infcmd.c (default_print_registers_info): Ditto.
4139 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4140 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4141 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4142 * hpux-thread.c (hpux_thread_fetch_registers)
4143 (hpux_thread_store_registers): Ditto.
4144 * hppah-nat.c (store_inferior_registers, fetch_register):
4145 * findvar.c (value_from_register): Ditto.
4146 * dve3900-rom.c (fetch_bitmapped_register):
4147 * cris-tdep.c (cris_gdbarch_init): Ditto.
4148 * alpha-tdep.h: Ditto.
4149 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4151 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4152 DEPRECATED_REGISTER_RAW_SIZE from comments.
4153 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4154 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4155 DEPRECATED_REGISTER_RAW_SIZE.
4156 * findvar.c (value_of_register): Simplify by assuming that the
4157 registers raw and virtual sizes are identical.
4158 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4160 * arch-utils.c (generic_register_size): Simplify by assuming
4163 * regcache.c (legacy_read_register_gen, real_register)
4164 (legacy_write_register_gen): Delete, not used.
4166 * regcache.c (struct regcache_descr): Delete legacy_p.
4167 (init_legacy_regcache_descr): Delete function.
4168 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4169 Do not use deprecated register functions.
4170 (regcache_raw_read, deprecated_write_register_gen):
4171 (deprecated_read_register_gen, regcache_raw_write): Delete code
4172 predicated on legacy_p.
4173 (register_size): Delete check against register raw size.
4175 * cris-tdep.c (cris_register_type): Replace
4176 cris_register_virtual_type.
4177 (cris_gdbarch_init): Update, set register_type.
4179 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4180 * gdbarch.h, gdbarch.c: Re-generate.
4181 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4182 (arm_gdbarch_init) Do not set frameless function invocation.
4183 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4184 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4185 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4186 (frv_gdbarch_init): Do not set frameless function invocation.
4187 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4188 * sh-tdep.c (sh_gdbarch_init): Ditto.
4189 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4190 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4191 * avr-tdep.c (avr_gdbarch_init): Ditto.
4193 * blockframe.c (legacy_frame_chain_valid): Delete function.
4195 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4196 and pc. Update comments.
4197 (pc_in_dummy_frame): Delete function.
4198 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4200 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4201 call_hi, top and pc, use the id.
4202 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4204 * dummy-frame.c: Include "gdb_string.h".
4205 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4206 (generic_save_dummy_frame_tos): Delete.
4207 (dummy_frame_push): New function, replaces above.
4208 * dummy-frame.h: Update copyright.
4209 (dummy_frame_push): Declare.
4210 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4211 (generic_save_call_dummy_addr): Delete declarations.
4212 * infcall.c: Include "dummy-frame.h".
4213 (call_function_by_hand): Add locals caller_regcache,
4214 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4215 with call to frame_save_as_regcache plus cleanup. Delete calls to
4216 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4217 Move clear_proceed_status to just before the resume, add call to
4218 dummy_frame_push (discard cleanup).
4219 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4220 (dummy-frame.o): Add $(gdb_string_h).
4222 2004-08-01 Andrew Cagney <cagney@gnu.org>
4224 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4225 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4226 * dummy-frame.c (find_dummy_frame): Delete.
4227 (struct dummy_frame_cache, dummy_frame_sniffer)
4228 (dummy_frame_prev_register, dummy_frame_this_id)
4229 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4230 frame unwinder using a dummy_frame_cache.
4232 2004-08-01 Andrew Cagney <cagney@gnu.org>
4234 * frame.h (frame_save_as_regcache): Declare.
4235 * frame.c (frame_save_as_regcache): New function.
4236 (do_frame_read_register): Replace do_frame_unwind_register.
4237 (frame_pop): Use frame_save_as_regcache.
4238 * dummy-frame.c (generic_push_dummy_frame): Use
4239 frame_save_as_regcache.
4241 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4243 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4244 file as included until we record the first line in the linetable.
4246 2004-08-01 Andrew Cagney <cagney@gnu.org>
4248 * frame.h (deprecated_pop_dummy_frame)
4249 (deprecated_read_register_dummy)
4250 (deprecated_generic_find_dummy_frame): Delete.
4251 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4252 (deprecated_read_register_dummy)
4253 (deprecated_find_dummy_frame_regcache)
4254 (discard_innermost_dummy)
4255 (deprecated_pop_dummy_frame): Delete.
4256 (dummy_frame_this_id): Simplify.
4257 (struct dummy_frame): Delete "fp" and "sp".
4258 (find_dummy_frame): Simplify.
4259 (generic_push_dummy_frame): Do not set "fp" or "sp".
4260 (fprint_dummy_frames): Do not print "fp" and "sp"
4262 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4264 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4265 (struct i386_insn): New structure.
4266 (i386_match_insn): New function.
4267 (i386_frame_setup_skip_insns): New variable.
4268 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4269 array i386_frame_setup_insns of instructions that should be
4270 skipped inside the frame setup sequence.
4272 2004-08-01 Andrew Cagney <cagney@gnu.org>
4274 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4275 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4276 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4277 * stack.c (frame_info): Delete references to
4278 DEPRECATED_FRAME_INIT_SAVED_REGS and
4279 deprecated_get_frame_saved_regs.
4280 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4281 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4282 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4283 (frame_unwind_register_signed)
4284 (frame_unwind_register_unsigned)
4285 (frame_unwind_unsigned_register): Use register_size.
4286 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4287 (deprecated_frame_xmalloc_with_cleanup)
4288 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4289 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4291 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4292 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4293 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4294 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4296 * infcall.c (call_function_by_hand): Do not use
4297 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4298 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4299 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4300 DEPRECATED_STACK_ALIGN.
4302 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4304 Committed by Andrew Cagney.
4305 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4307 2004-08-01 Andrew Cagney <cagney@gnu.org>
4309 * mips-tdep.c (mips16_frame_cache)
4310 (mips16_frame_this_id, mips16_frame_prev_register)
4311 (mips16_frame_unwind, mips16_frame_sniffer)
4312 (mips16_frame_base_address, mips16_frame_base)
4313 (mips16_frame_base_sniffer, mips32_frame_cache)
4314 (mips32_frame_this_id, mips32_frame_prev_register)
4315 (mips32_frame_unwind, mips32_frame_sniffer)
4316 (mips32_frame_base_address, mips32_frame_base)
4317 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4318 separate heuristic mips16 and mips32 unwinders.
4319 (mips_stub_frame_cache, mips_stub_frame_this_id)
4320 (mips_stub_frame_prev_register)
4321 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4322 (mips_stub_frame_base_address, mips_stub_frame_base)
4323 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4324 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4325 match true mdebug frames.
4326 (non_heuristic_proc_desc): Add forward declaration.
4328 2004-08-01 Andrew Cagney <cagney@gnu.org>
4330 * config/mips/tm-irix6.h: Delete file.
4331 * config/mips/tm-irix5.h: Delete file.
4332 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4333 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4335 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4336 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4337 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4338 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4339 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4340 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4341 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4342 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4343 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4344 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4345 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4346 (TARGET_SIGNAL_RAW_VALUES): Delete.
4347 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4349 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4350 (TARGET_HW_WATCH_LIMIT): Delete.
4351 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4352 * minimon.h: Delete file.
4354 * trad-frame.c (trad_frame_get_this_base)
4355 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4357 * trad-frame.h (trad_frame_set_this_base)
4358 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4360 2004-07-31 Andrew Cagney <cagney@gnu.org>
4362 * trad-frame.c (trad_frame_get_prev_register): Rename
4363 trad_frame_get_prev_register.
4364 * vax-tdep.c (vax_frame_prev_register): Update.
4365 * trad-frame.h: Update.
4366 * trad-frame.c (trad_frame_get_register): Update.
4367 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4368 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4370 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4371 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4373 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4375 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4377 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4379 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4381 * s390-tdep.c (s390_frame_prev_register)
4382 (s390_stub_frame_prev_register)
4383 (s390_sigtramp_frame_prev_register): Update.
4384 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4385 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4386 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4387 * m88k-tdep.c (m88k_frame_prev_register)
4388 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4389 * m32r-tdep.c (m32r_frame_prev_register): Update.
4390 * hppa-tdep.c (hppa_frame_prev_register_helper)
4391 * frv-tdep.c (frv_frame_prev_register): Update.
4392 * d10v-tdep.c (d10v_frame_prev_register): Update.
4393 * cris-tdep.c (cris_frame_prev_register): Update.
4394 * avr-tdep.c (avr_frame_prev_register): Update.
4395 * arm-tdep.c (arm_prologue_prev_register)
4396 (arm_sigtramp_prev_register): Update.
4398 2004-07-31 Andrew Cagney <cagney@gnu.org>
4400 * frame.h (legacy_saved_regs_unwind)
4401 (legacy_frame_chain_valid, legacy_frame_p)
4402 (enum frame_type): Delete UNKNOWN_FRAME.
4403 * dummy-frame.c (dummy_frame_this_id): Simplify.
4404 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4405 * frame.c (struct frame_info): Delete the field "type".
4406 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4407 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4408 (legacy_saved_regs_unwind, legacy_frame_p)
4409 (frame_type_from_pc): Delete.
4410 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4411 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4413 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4415 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4418 * mips-nat.c: Remove file.
4419 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4420 (mips-nat.o): Remove dependency.
4422 * infptrace.c: Update copyright year.
4423 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4424 explicitly setting the buffer to all zeroes.
4426 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4427 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4429 2004-07-30 Andrew Cagney <cagney@gnu.org>
4431 * GDB 6.2 released from gdb_6_2-branch.
4433 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4435 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4437 * exec.c (exec_file_attach):
4438 * nto-tdep.c (nto_find_and_open_solib):
4439 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4440 * solib.c (solib_open):
4441 * somsolib.c (som_solib_sizeof_symbol_table):
4442 * source.c (is_regular_file, openp, open_source_file):
4443 * symfile.c (symfile_bfd_open):
4444 * wince.c (upload_to_device): Differentiate between the search for
4445 binary and source files.
4447 2004-07-30 Andrew Cagney <cagney@gnu.org>
4449 * complaints.c (_initialize_complaints): Pass NULL to
4450 add_setshow_zinteger_cmd for help_doc.
4451 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4453 2004-07-30 Andrew Cagney <cagney@gnu.org>
4456 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4457 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4458 $(PACKAGE).pot and update-po.
4459 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4460 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4461 (update-po): New rules.
4462 (localedir): Define using autoconf.
4463 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4464 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4465 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4466 * configure.in: Generate CATALOGS and LINGUAS from contents of
4467 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4468 * configure: Re-generate.
4469 * po/gdbtext: New file
4471 2004-07-30 Jerome Guitton <guitton@gnat.com>
4473 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4476 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4478 * dwarf2read.c (read_file_scope): Set producer if attribute
4480 (struct dwarf2_cu): Added new member producer.
4482 2004-07-30 Jerome Guitton <guitton@gnat.com>
4484 * inflow.c (kill_command): release file handles in BFD.
4485 * exec.c (exec_file_attach): Ditto.
4486 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4488 2004-07-29 Andrew Cagney <cagney@gnu.org>
4490 * PROBLEMS (mips-irix): Note that it is broken.
4492 2004-07-29 Andrew Cagney <cagney@gnu.org>
4494 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4495 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4497 * config/xm-nbsd.h: Delete file.
4498 * config/arm/xm-nbsd.h: Delete file.
4499 * config/i386/xm-nbsd.h: Delete file.
4500 * config/ns32k/xm-nbsd.h: Delete file.
4501 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4502 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4503 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4504 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4505 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4507 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4508 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4509 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4510 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4511 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4512 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4514 * config/powerpc/xm-linux.h: Delete empty file.
4515 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4516 * config/powerpc/linux.mh (XM_FILE): Delete.
4517 * config/m68k/xm-linux.h: Delete empty file.
4518 * config/m68k/linux.mh (XM_FILE): Delete.
4519 * config/ia64/xm-linux.h: Delete empty file.
4520 * config/ia64/linux.mh (XM_FILE): Delete.
4521 * config/arm/xm-linux.h: Delete empty file.
4522 * config/arm/linux.mh (XM_FILE): Delete.
4524 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4525 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4526 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4527 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4528 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4529 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4530 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4531 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4533 * config/m68k/xm-m68k.h: Delete file.
4534 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4536 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4537 * config/pa/xm-linux.h: Delete empty file.
4538 * config/pa/linux.mh (XM_FILE): Delete.
4539 * config/i386/xm-i386.h: Delete empty file.
4540 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4542 * config/i386/obsdaout.mh (XM_FILE): Delete.
4543 * config/i386/obsd64.mh (XM_FILE): Delete.
4544 * config/i386/fbsd64.mh (XM_FILE): Delete.
4545 * config/i386/nto.mh (XM_FILE): Delete.
4546 * config/i386/obsd.mh (XM_FILE): Delete.
4547 * config/i386/linux64.mh (XM_FILE): Delete.
4548 * config/i386/linux.mh (XM_FILE): Delete.
4549 * config/i386/i386sol2.mh (XM_FILE): Delete.
4550 * config/i386/i386gnu.mh (XM_FILE): Delete.
4551 * config/i386/fbsd.mh (XM_FILE): Delete.
4552 * config/i386/nbsd64.mh (XM_FILE): Delete.
4554 2004-07-29 Andrew Cagney <cagney@gnu.org>
4556 * config/pa/xm-linux.h: Do not include "floatformat.h".
4557 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4558 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4559 * config/i386/xm-i386.h: Do not include "floatformat.h".
4560 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4561 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4562 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4563 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4564 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4565 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4566 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4567 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4568 * configure, config.in: Regenerate.
4569 * configure.host (gdb_host_float_format, gdb_host_double_format)
4570 (gdb_host_long_double_format): Set according to the host.
4572 2004-07-29 Andrew Cagney <cagney@gnu.org>
4574 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4576 2004-07-28 Andrew Cagney <cagney@gnu.org>
4578 * PROBLEMS: Mention threads/1650.
4579 * NEWS: Mention the NPTL fix.
4581 2004-07-28 Andrew Cagney <cagney@gnu.org>
4583 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4584 (add_setshow_cmd_full): Make static.
4585 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4586 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4587 * cli/cli-decode.c (add_setshow_filename_cmd)
4588 (add_setshow_string_cmd): New functions.
4589 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4590 * mips-tdep.c (_initialize_mips_tdep): Update.
4591 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4592 * cli/cli-logging.c (_initialize_cli_logging): Update.
4593 * complaints.c (_initialize_complaints): Update.
4594 * remote.c (_initialize_remote): Update.
4596 2004-07-28 Andrew Cagney <cagney@gnu.org>
4598 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4599 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4600 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4601 print parameters. Make string parameters constant.
4602 * command.h: Update. Update copyright.
4603 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4604 * observer.c (_initialize_observer): Ditto.
4605 * frame.c (_initialize_frame): Ditto.
4606 * complaints.c (_initialize_complaints): Ditto.
4607 * maint.c (_initialize_maint_cmds): Ditto.
4608 * target.c (initialize_targets): Ditto.
4609 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4610 * infcall.c (_initialize_infcall): Ditto.
4611 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4612 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4613 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4614 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4615 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4617 2004-07-28 Andrew Cagney <cagney@gnu.org>
4619 * gdbtypes.c (lookup_primitive_typename): Delete function.
4620 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4621 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4622 * gdbtypes.c (lookup_typename): Ditto.
4623 * f-exp.y (yylex): Ditto.
4624 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4626 * scm-lang.c (c_builtin_types): Delete extern declaration.
4627 (scm_language_defn): Replace
4628 string_char_type and primitive_type_vector with
4629 la_language_arch_info.
4630 * jv-lang.c (java_language_defn): Replace
4631 string_char_type and primitive_type_vector with
4632 la_language_arch_info.
4633 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4634 c_builtin_types in comment.
4635 * c-lang.h (struct language_arch_info): Declare opaque.
4636 (c_language_arch_info): Declare.
4637 (c_builtin_types): Delete declaration.
4638 * c-lang.c (c_language_arch_info): Set string_char_type to
4639 builtin_char, not builtin_true_char. Make global.
4640 (c_builtin_types): Delete array.
4641 (asm_language_defn, minimal_language_defn): Replace
4642 string_char_type and primitive_type_vector with
4643 la_language_arch_info.
4645 2004-07-28 Andrew Cagney <cagney@gnu.org>
4647 * gdbtypes.h (struct builtin_type): Rename true_char to
4649 * gdbtypes.c (gdbtypes_post_init): Update.
4650 * c-lang.c (arch_info): New function.
4651 (enum c_primitive_types): New enum.
4652 (c_language_defn): Instead of string_char_type and
4653 primitive_type_vector set la_language_arch_info.
4655 2004-07-28 Andrew Cagney <cagney@gnu.org>
4657 * language.h (struct language_arch_info): Fix typo
4658 s/primative/primitive/.
4659 * gdbtypes.c (lookup_primitive_typename): Ditto.
4660 * language.c (language_lookup_primitive_type_by_name)
4661 (unknown_language_arch_info): Ditto.
4663 2004-07-27 Andrew Cagney <cagney@gnu.org>
4665 * defs.h (enum language): Add nr_languages.
4666 * language.h (struct language_arch_info): Define.
4667 (struct language_defn): Add la_language_arch_info.
4668 (language_lookup_primative_type_by_name): Declare.
4669 (language_string_char_type): Declare.
4670 * language.c (_initialize_language, language_gdbarch_post_init)
4671 (struct language_gdbarch, language_gdbarch_data): Implement
4672 per-architecture language information.
4673 (unknown_language_arch_info, language_string_char_type)
4674 (language_lookup_primative_type_by_name): New functions.
4675 (unknown_language_defn, auto_language_defn)
4676 (local_language_defn): Set la_language_arch_info to
4677 unknown_language_arch_info.
4678 (unknown_builtin_types): Delete.
4679 * gdbtypes.c (lookup_primitive_typename): Use
4680 language_lookup_primative_type_by_name.
4681 (create_string_type): Use language_string_char_type.
4682 * values.c (value_from_string): Use language_string_char_type.
4683 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4684 * p-lang.c (pascal_language_defn): Ditto.
4685 * m2-lang.c (m2_language_defn): Ditto.
4686 * jv-lang.c (java_language_defn): Ditto.
4687 * objc-lang.c (objc_language_defn): Ditto.
4688 * f-lang.c (f_language_defn): Ditto.
4689 * c-lang.c (c_language_defn, cplus_language_defn)
4690 (asm_language_defn, minimal_language_defn): Ditto.
4692 2004-07-27 Andrew Cagney <cagney@gnu.org>
4694 * gdbtypes.h (struct builtin_type): Declare.
4695 (builtin_type): Declare.
4696 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4697 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4698 (gdbtypes_post_init): New function.
4699 (builtin_type): New function.
4701 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4703 * remote-m32r-sdi.c: Fix breakpoint bug.
4704 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4705 recv_char_data, recv_long_data): New functions to replace communication
4708 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4710 Document PR threads/1650.
4711 * PROBLEMS (Threads): Document problem with many threads
4713 2004-07-26 Andrew Cagney <cagney@gnu.org>
4715 * gdb-mi.el: Move from here ...
4716 * mi/gdb-mi.el: ... to here.
4718 2004-07-26 Andrew Cagney <cagney@gnu.org>
4720 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4721 * main.c (captured_main): When in batch mode always detach.
4723 2004-07-26 Andrew Cagney <cagney@gnu.org>
4725 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4726 and h8300 as broken.
4727 * NEWS: END-OF-LIFE frame compatibility module.
4728 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4731 2004-07-26 Andrew Cagney <cagney@gnu.org>
4733 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4734 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4735 * wince.c (_initialize_wince): Update.
4736 * win32-nat.c (_initialize_win32_nat): Update.
4737 * varobj.c (_initialize_varobj): Update.
4738 * valops.c (_initialize_valops): Update.
4739 * utils.c (initialize_utils, initialize_utils): Update.
4740 * tui/tui-win.c (_initialize_tui_win): Update.
4741 * top.c (init_main): Update.
4742 * symfile.c (_initialize_symfile): Update.
4743 * source.c (_initialize_source): Update.
4744 * somsolib.c (_initialize_som_solib): Update.
4745 * solib.c (_initialize_solib): Update.
4746 * solib-frv.c (_initialize_frv_solib): Update.
4747 * serial.c (_initialize_serial): Update.
4748 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4749 * remote.c (_initialize_remote, _initialize_remote): Update.
4750 * remote-vx.c (_initialize_vx): Update.
4751 * remote-utils.c (_initialize_sr_support): Update.
4752 * remote-sds.c (_initialize_remote_sds): Update.
4753 * remote-mips.c (_initialize_remote_mips): Update.
4754 * remote-e7000.c (_initialize_remote_e7000): Update.
4755 * proc-api.c (_initialize_proc_api): Update.
4756 * printcmd.c: Update.
4757 * parse.c (_initialize_parse): Update.
4758 * pa64solib.c (_initialize_pa64_solib): Update.
4759 * p-valprint.c (_initialize_pascal_valprint): Update.
4760 * monitor.c (_initialize_remote_monitors): Update.
4761 * mips-tdep.c (_initialize_mips_tdep): Update.
4762 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4763 * maint.c (_initialize_maint_cmds): Update.
4764 * lin-lwp.c (_initialize_lin_lwp): Update.
4765 * language.c (_initialize_language): Update.
4766 * kod.c (_initialize_kod): Update.
4767 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4768 * i386-tdep.c (_initialize_i386_tdep): Update.
4769 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4770 * gdbarch.sh: Update.
4771 * gdbarch.c: Re-generate.
4772 * gdb-events.sh: Update.
4773 * gdb-events.c: Re-generate.
4774 * frame.c (_initialize_frame): Update.
4776 * demangle.c (_initialize_demangler): Update.
4777 * dcache.c (_initialize_dcache): Update.
4778 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4779 * cp-valprint.c (_initialize_cp_valprint): Update.
4780 * corefile.c (_initialize_core): Update.
4781 * command.h: Update.
4782 * cli/cli-decode.h: Update.
4783 * cli/cli-cmds.c (init_cli_cmds): Update.
4784 * charset.c (_initialize_charset): Update.
4785 * breakpoint.c (_initialize_breakpoint): Update.
4786 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4787 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4788 * aix-thread.c (_initialize_aix_thread): Update.
4790 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4792 Partial fix for PR backtrace/1718.
4793 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4794 that GCC migrates into the prolugue. Don't handle any
4795 instructions that clobber %ebx.
4797 2004-07-23 Andrew Cagney <cagney@gnu.org>
4799 Use regcache_raw_collect instead of regcache_collect.
4800 * regcache.h (regcache_collect): Delete declaration.
4801 * regcache.c (regcache_colect): Delete function.
4802 * win32-nat.c (do_child_store_inferior_registers): Update.
4803 * sol-thread.c (sol_thread_store_registers): Update.
4804 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4805 * rs6000-nat.c (store_register): Update.
4806 * remote.c (store_register_using_P, remote_store_registers): Update.
4807 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4808 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4809 (fill_vrregset, store_spe_registers, fill_gregset)
4810 (fill_gregset): Update.
4811 * nto-procfs.c (procfs_store_registers): Update.
4812 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4813 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4814 * m68klinux-nat.c (store_register, fill_gregset): Update.
4815 * m68k-tdep.c (fill_gregset): Update.
4816 * infptrace.c (store_register): Update.
4817 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4818 * i386-linux-nat.c (store_register, fill_gregset): Update.
4819 * hppa-linux-nat.c (fill_gregset): Update.
4820 * go32-nat.c (store_register): Update.
4821 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4822 (store_fp_regs): Update.
4823 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4824 (store_nwfpe_extended, store_fpregister, store_fpregs)
4825 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4826 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4827 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4828 (store_regs_user_thread, store_regs_kernel_thread): Update.
4830 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4832 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4833 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4835 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4836 member of `struct comp_unit'.
4838 2004-07-23 Andrew Cagney <cagney@gnu.org>
4840 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4841 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4843 2004-07-23 Martin Hunt <hunt@redhat.com>
4844 Kevin Buettner <kevinb@redhat.com>
4846 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4847 alignment was being added to the offset instead of multiplied.
4849 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4851 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4852 changed signal trampoline in OpenBSD 3.5-current.
4854 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4855 <machine/pcb.h> and "bsd-kvm.h".
4856 (sparc64nbsd_supply_pcb): New function.
4857 (_initialize_sparc64nbsd_nat): Renamed from
4858 _initialize_sparcnbsd_nat. Enable libkvm interface.
4859 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4860 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4861 (LOADLIBES): New variable.
4863 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4865 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4867 2004-07-21 Andrew Cagney <cagney@gnu.org>
4869 Use regcache_raw_supply instead of supply_register.
4870 * regcache.h (supply_register): Delete declaration.
4871 * regcache.c (supply_register): Delete function.
4872 * wince.c (do_child_fetch_inferior_registers): Update.
4873 * win32-nat.c (do_child_fetch_inferior_registers)
4874 (fetch_elf_core_registers): Update.
4875 * v850ice.c (v850ice_fetch_registers): Update.
4876 * thread-db.c (thread_db_store_registers): Update.
4877 * sol-thread.c (sol_thread_store_registers): Update.
4878 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4879 * rs6000-nat.c (fetch_register): Update.
4880 * rom68k-rom.c (rom68k_supply_one_register): Update.
4881 * remote.c (remote_wait, remote_async_wait): Update.
4882 * remote-st.c (get_hex_regs): Update.
4883 * remote-sim.c (gdbsim_fetch_register): Update.
4884 * remote-sds.c (sds_fetch_registers): Update.
4885 * remote-rdp.c (remote_rdp_fetch_register): Update.
4886 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4887 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4888 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4889 * remote-hms.c (init_hms_cmds): Update.
4890 * remote-est.c (init_est_cmds): Update.
4891 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4892 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4893 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4894 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4895 (fetch_register, supply_vrregset, supply_vrregset)
4896 (fetch_spe_registers): Update.
4897 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4898 * monitor.c (monitor_supply_register): Update.
4899 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4900 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4901 (mipsnbsd_supply_fpreg): Update.
4902 * mips-nat.c (fetch_inferior_registers)
4903 (fetch_core_registers): Update.
4904 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4905 (supply_fpregset, mips64_supply_gregset)
4906 (mips64_supply_fpregset): Update.
4907 * m68klinux-nat.c (fetch_register, supply_gregset)
4908 (supply_fpregset): Update.
4909 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4910 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4911 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4912 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4913 * infptrace.c (fetch_register): Update.
4914 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4915 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4916 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4917 (gnu_fetch_registers, gnu_store_registers): Update.
4918 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4919 * i386-linux-nat.c (fetch_register, supply_gregset)
4920 (dummy_sse_values): Update.
4921 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4922 * hppah-nat.c (fetch_register): Update.
4923 * hppa-linux-nat.c (fetch_register, supply_gregset)
4924 (supply_fpregset): Update.
4925 * go32-nat.c (fetch_register): Update.
4926 * dve3900-rom.c (fetch_bitmapped_register)
4927 (_initialize_r3900_rom): Update.
4928 * cris-tdep.c (supply_gregset): Update.
4929 * abug-rom.c (init_abug_cmds): Update.
4930 * core-aout.c (fetch_core_registers): Update.
4931 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4932 (fetch_register, fetch_fp_register): Update.
4933 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4934 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4935 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4936 * alphanbsd-tdep.c (fetch_core_registers): Update.
4937 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4938 * alpha-nat.c (fetch_osf_core_registers)
4939 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4940 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4941 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4943 2004-07-21 Andrew Cagney <cagney@gnu.org>
4945 * PROBLEMS: Mention breakpoints/1702.
4946 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4947 that is known to work.
4949 2004-07-21 Andrew Cagney <cagney@gnu.org>
4951 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4952 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4953 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4954 (handle_inferior_event): Wrap call to deprecated
4955 IGNORE_HELPER_CALL in #ifdef.
4956 * config/mips/tm-nbsd.h: Update.
4958 2004-07-20 Jim Blandy <jimb@redhat.com>
4960 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4961 bfd_mach_ppc has no segment registers.
4963 Include PowerPC SPR numbers for special-purpose registers.
4964 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4965 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4966 new member in initializer.
4967 (S, S4, SN4, S64): New macros for defining special-purpose
4969 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4970 registers_403, registers_403GC, registers_505, registers_860,
4971 registers_601, registers_602, registers_603, registers_604,
4972 registers_750, registers_e500): Use them.
4974 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4975 replace references with expression used to initialize variable.
4977 2004-07-20 Andrew Cagney <cagney@gnu.org>
4979 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4981 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4982 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4983 (s390_sigtramp_frame_sniffer): Update.
4984 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4985 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4986 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4987 (mips32_fetch_instruction): Update.
4988 * mcore-tdep.c (get_insn): Update.
4989 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4990 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4991 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4992 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4993 (i386_linux_rt_sigtramp_start): Update.
4994 * i386-linux-nat.c (child_resume): Update.
4995 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4996 * hppa-linux-tdep.c (insns_match_pattern): Update.
4997 * gdbcore.h: Update.
4998 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4999 * frame.c (safe_frame_unwind_memory): Update.
5000 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5001 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5002 * alpha-tdep.c (alpha_read_insn): Update.
5004 2004-07-20 Andrew Cagney <cagney@gnu.org>
5006 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5007 containing both bytes and mask. Add "frame_type".
5008 * tramp-frame.c (tramp_frame_start): Update.
5009 (tramp_frame_prepend_unwinder): Update.
5010 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5011 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5012 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5013 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5015 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5017 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5018 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5019 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5020 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5022 2004-07-17 Andrew Cagney <cagney@gnu.org>
5024 * NEWS, PROBLEMS: Update for 6.2.
5026 * README: Update to 6.2.
5028 * utils.c (xvasprintf): Call xstrvprintf.
5030 * parse.c: Update copyright.
5031 (null_post_parser): Eliminate ARGSUSED.
5033 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5034 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5035 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5037 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5038 * ppc-linux-nat.c: Use "Linux kernel".
5039 * hppa-linux-tdep.c: Use GNU/Linux.
5040 * hppa-linux-nat.c: Use GNU/Linux.
5041 * dwarfread.c: Add [sic] to use of Linux.
5043 * hppa-linux-nat.c: Do not include <string.h>.
5044 (supply_fpregset): Remove "register" attribute.
5046 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5048 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5050 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5051 * configure, config.in: Regenerated.
5053 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5055 (vaxbsd_supply_pcb): New function.
5056 (_initialize_vaxbsd_nat): New prototype and function.
5057 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5059 (LOADLIBES): New variable.
5060 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5061 (LOADLIBES): New variable.
5062 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5063 (LOADLIBES): New variable.
5064 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5066 2004-07-16 Andrew Cagney <cagney@gnu.org>
5068 * defs.h (event_loop_p): Replace variable declaration with macro,
5070 * main.c (captured_main): Delete options "-async" and "-noasync".
5071 (event_loop_p): Delete variable.
5072 * NEWS: Mention that "-async" and "-noasync" were removed.
5074 2004-07-16 Andrew Cagney <cagney@gnu.org>
5076 * remote-m32r-sdi.c: Re-indent.
5078 2004-07-16 Jim Blandy <jimb@redhat.com>
5080 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5081 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5082 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5083 missing MPC823 SPRs.
5084 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5085 incorrect. (This was corrected in GDB's register name tables on
5088 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5089 should be "esasrr" ("ESA Save and Restore Register").
5091 2004-07-16 Andrew Cagney <cagney@gnu.org>
5093 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5094 calls, no longer applicable. Update comments and rename parameter
5095 "step_frame" to "return_frame".
5097 2004-07-16 Andrew Cagney <cagney@gnu.org>
5099 * frame.c (fprint_field): New function.
5100 (fprint_frame_id): Use fprint_field.
5102 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5104 * ada-lang.c (ada_language_defn): Remove commented out code.
5106 2004-07-15 Jim Blandy <jimb@redhat.com>
5108 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5109 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5111 2004-07-14 Jim Blandy <jimb@redhat.com>
5113 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5115 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5117 * ppc-tdep.h (ppc_num_srs): New enum constant.
5119 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5120 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5121 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5122 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5123 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5124 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5125 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5126 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5127 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5128 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5129 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5130 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5131 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5132 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5133 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5134 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5135 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5136 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5137 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5138 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5139 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5140 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5141 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5142 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5143 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5144 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5145 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5146 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5147 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5148 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5149 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5150 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5151 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5152 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5153 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5154 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5155 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5156 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5157 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5158 special-purpose register numbers.
5160 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5161 manual mentions 'md_twb', but many mention 'm_twb', and at that
5162 point in the register list.)
5164 2004-07-14 Andrew Cagney <cagney@gnu.org>
5166 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5167 instead of "internal-error".
5169 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5171 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5172 that was inserted inside a comment.
5174 2004-07-10 Randolph Chung <tausq@debian.org>
5176 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5178 (hppa_hpux_push_dummy_code): New function.
5179 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5180 Set find_global_pointer method.
5182 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5184 * NEWS: Mention BSD libkvm interface.
5186 2004-07-10 Michael Snyder <msnyder@redhat.com>
5188 * symfile.c (generic_load): Comment typo.
5189 * stack.c (get_selected_block): Ditto.
5190 * regcache.c (regcache_cooked_read): Ditto.
5191 * monitor.c (monitor_debug): Ditto.
5192 * mips-tdep.c (mips_read_pc): Ditto.
5193 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5194 * gdb_mbuild.sh: Ditto.
5195 * gdbarch.sh: Ditto.
5198 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5200 * ada-tasks.c: Remove file.
5202 Remove ARI problems:
5204 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5207 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5209 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5210 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5211 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5212 (UMIN_OF_SIZE): Remove.
5213 (max_of_type): New function to replace orphan macro in gdbtypes.h
5214 (min_of_type): Ditto.
5215 (discrete_type_high_bound): Use max_of_type.
5216 (discrete_type_low_bound): Use min_of_type.
5217 (possible_user_operator_p): Move operator to beginning of line.
5218 (ada_is_variant_part): Ditto.
5219 (ensure_lval): Rewrite to avoid deprecated operations.
5220 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5221 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5222 (ada_enum_name): Remove assignments in 'if' statements.
5223 (build_ada_types): Add gdbarch parameter.
5224 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5225 with gdbarch_data_register_post_init.
5226 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5229 * ada-valprint.c (inspect_it): Remove declaration.
5230 (repeat_count_threshold): Remove declaration.
5231 (ada_print_floating): Remove assignments in 'if' statements.
5232 (print_str): Move operator to beginning of line.
5234 2004-07-08 Jim Blandy <jimb@redhat.com>
5236 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5238 2004-07-08 Bob Rossi <bob@brasko.net>
5240 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5242 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5244 * language.h (struct_language_defn): Add new function pointer:
5245 la_class_name_from_physname. Also add new prototype for
5246 language_class_name_from_physname.
5247 * language.c (language_class_name_from_physname): New function.
5248 (unk_lang_class_name): Ditto.
5249 (unknown_language_defn, auto_language_defn): Change
5250 to add unk_lang_class_name function pointer for
5251 la_class_name_from_physname.
5252 (local_language_defn): Ditto.
5253 * dwarf2read.c (guess_structure_name): Change to call
5254 language_class_name_from_physname.
5255 (determine_class_name): Ditto.
5256 * cp-support.c (class_name_from_physname): Renamed.
5257 (cp_class_name_from_physname): New name of function.
5258 * cp-support.h: Ditto.
5259 * c-lang.c (c_language_defn): Change to add NULL
5260 for class_name_from_physname function pointer.
5261 (cplus_language_defn): Change to add cp_class_name_from_physname.
5262 * jv-lang.c (java_class_name_physname): New function.
5263 (java_find_last_component): New static routine.
5264 (java_language_defn): Add java_class_name_from_physname pointer.
5265 * ada-lang.c (ada_language_defn): Change to add NULL
5266 for class_name_from_physname function pointer.
5267 * f-lang.c (f_language_defn): Ditto.
5268 * m2-lang.c (m2_language_defn): Ditto.
5269 * objc-lang.c (objc_language_defn): Ditto.
5270 * p-lang.c (pascal_language_defn): Ditto.
5271 * scm-lang.c (scm_language_defn): Ditto.
5273 2004-07-06 Andrew Cagney <cagney@gnu.org>
5275 Patch from Bart Robinson.
5276 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5277 (O_LARGEFILE): Define to 0, if not defined.
5279 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5281 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5282 <machine/pcb.h> and "bsd-kvm.h".
5283 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5284 (m68kbsd_supply_pcb): New function.
5285 (_initialize_m68kbsd_nat): New prototype and function.
5286 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5287 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5288 (LOADLIBES): New variable.
5289 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5290 (LOADLIBES): New variable.
5292 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5294 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5296 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5298 (bsd_kvm_cmdlist): New variable.
5299 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5300 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5301 command and "kvm proc" command.
5302 * Makefile.in (bsd-kvm.o): Update dependencies.
5304 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5306 * osabi.c: Update copyright year.
5307 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5308 notes if EI_OSABI is set to ELFOSABI_HPUX.
5310 2004-07-01 Michael Snyder <msnyder@redhat.com>
5312 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5313 that seems to have gotten whacked out of line.
5315 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5317 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5320 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5322 * ada-lang.c (decode_packed_array): Minor change to comment.
5323 (ada_value_slice_ptr): New function.
5324 (ada_value_slice): New function.
5325 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5326 test. Don't know why it is there.
5327 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5328 to avoid dereferencing huge arrays from which one is slicing.
5329 (empty_array): Correct to return an array rather than
5331 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5332 on empty arrays (let'em use 'FIRST instead).
5334 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5336 Address complaints from gdb_ari.sh:
5338 * ada-exp.y: Include gdb_string.h rather than string.h.
5339 (convert_char_literal): Reformat declaration.
5340 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5341 * ada-lex.l: Change use of free to xfree (the macro would do so
5342 anyway, but this is harmless).
5343 Include gdb_string.h rather than string.h.
5344 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5346 * ada-lang.c (parse): Remove K&Rism in parameter list.
5347 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5349 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5351 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5354 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5356 * alphabsd-nat.c: Update copyright year.
5357 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5359 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5361 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5362 (i386_cygwin_in_solib_call_trampoline): New function.
5363 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5364 and skip_trampoline_code gdbarch methods.
5366 2004-06-29 Jim Blandy <jimb@redhat.com>
5368 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5369 name actually used in the dependency lists.
5371 2004-06-29 Randolph Chung <tausq@debian.org>
5373 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5375 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5377 * win32-nat.c (child_pid_to_exec_file): New function.
5378 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5381 2004-06-28 Andrew Cagney <cagney@gnu.org>
5383 * defs.h (xstrvprintf): Declare.
5384 * utils.c (xstrvprintf): New function.
5385 (internal_vproblem, xstrprintf, xasprintf)
5386 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5387 * serial.c (serial_printf): Ditto.
5388 * complaints.c (vcomplaint): Ditto.
5390 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5392 * infcmd.c (attach_command): Move call to target_terminal_inferior
5393 behind loading symbol table.
5395 2004-06-28 Andrew Cagney <cagney@gnu.org>
5397 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5398 change - add back extern deprecated_ui_loop_hook declaration.
5400 2004-06-28 Andrew Cagney <cagney@gnu.org>
5402 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5404 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5405 (c_value_of_variable): Ditto.
5406 * utils.c (internal_vproblem): Ditto.
5407 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5408 * remote.c (add_packet_config_cmd): Ditto.
5409 * remote-rdp.c (rdp_set_command_line): Ditto.
5410 * regcache.c (regcache_dump): Ditto.
5411 * frv-tdep.c (new_variant, new_variant): Ditto.
5412 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5413 (fbsd_find_memory_regions): Ditto.
5414 * breakpoint.c (create_thread_event_breakpoint)
5415 (create_breakpoints): Ditto.
5416 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5417 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5419 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5421 * ada-lang.c: Re-indent file, with some massaging to help indent
5422 a bit when the result is otherwise really too ugly.
5424 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5426 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5427 code_addr_p and special_addr_p to 'unsigned int'.
5429 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5431 * i386v4-nat.c: Update copyright year and tweak comment.
5432 (regmap): Remove trailing comma.
5433 (supply_gregset): Rename local variable i to regnum. Call
5434 regcache_raw_supply instead of supply_register.
5435 (fill_gregset): Rename argument regno to regnum. Call
5436 regcache_raw_collect instead of regcache_collect.
5438 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5440 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5442 (frame_id_build, frame_id_build_special): Update comments.
5443 (frame_id_build_wild): New prototype.
5444 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5445 struct frame_id fields.
5446 (frame_id_build_wild): New function.
5447 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5449 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5451 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5454 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5456 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5458 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5460 * ada-lang.c: Re-indent file.
5462 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5464 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5465 (no_symtab_msg): Likewise.
5467 2004-06-27 Andreas Schwab <schwab@suse.de>
5469 * source.c: Fix whitespace.
5471 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5473 * configure.in: Include <sys/param.h> for td_pcb test.
5474 * configure: Regenerated.
5476 * i386nbsd-nat.c: New file.
5477 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5478 i386obsd-nat.c and i386obsd-tdep.c.
5479 (i386nbsd-nat.o): New dependency.
5480 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5482 (LOADLIBES): New variable.
5483 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5485 (LOADLIBES): New variable.
5487 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5488 (LOADLIBES): New variable.
5490 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5491 fetching from BSD_KVM_PADDR. Correctly lookup address for
5494 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5496 (amd64fbsd_supply_pcb): New funcion.
5497 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5499 2004-06-27 <david@streamline-computing.com>
5501 Partial fix for PR cli/1056.
5502 * valarith.c: Check for zero in division and remainder
5505 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5507 * i387-tdep.c: Remove excessive whitespace.
5509 2004-06-26 Andrew Cagney <cagney@gnu.org>
5511 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5512 * gdb-events.h, gdb-events.c: Re-generate.
5513 * tui/tui-hooks.c (tui_install_hooks): Update.
5514 (tui_remove_hooks): Update.
5515 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5517 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5519 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5520 (gregset_t, fpregset_t): Remove typedefs.
5521 (REG_OFFSET): Rename argument.
5522 (amd64bsd_r_reg_offset): Rename from reg_offset.
5523 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5525 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5527 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5529 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5531 * vax-tdep.c: Tweak comment.
5533 Add OpenBSD/hppa support.
5534 * NEWS (New native configurations): Mention OpenBSD/hppa.
5535 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5536 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5538 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5539 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5540 * configure.host: Add hppa*-*-openbsd*.
5541 * configure.tgt: Add hppa*-*-openbsd*.
5543 2004-06-25 Andrew Cagney <cagney@gnu.org>
5545 * defs.h (deprecated_ui_loop_hook): Deprecated.
5546 * wince.c (child_wait): Update.
5547 * win32-nat.c (child_wait): Update.
5548 * v850ice.c (v850ice_wait): Update.
5549 * top.c (deprecated_ui_loop_hook): Update.
5551 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5552 (do_unix_readchar): Update.
5553 * ser-tcp.c (net_open): Update.
5554 * remote-sim.c (gdb_os_poll_quit): Update.
5555 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5557 2004-06-24 Andrew Cagney <cagney@gnu.org>
5559 * defs.h (deprecated_pre_add_symbol_hook)
5560 (deprecated_post_add_symbol_hook): Deprecated.
5561 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5562 (symbol_file_add_with_addrs_or_offsets): Update references.
5564 2004-06-24 Andrew Cagney <cagney@gnu.org>
5566 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5567 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5568 * wince.c (ui_loop_hook): Delete extern declaration.
5569 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5570 * v850ice.c (ui_loop_hook): Delete extern declaration..
5571 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5572 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5573 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5574 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5575 ui_loop_hook declaration.
5577 2004-06-24 Andrew Cagney <cagney@gnu.org>
5579 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5580 entry_func_highpc fields.
5581 * objfiles.c (init_entry_point_info): Do not clear
5582 entry_func_lowpc and entry_func_highpc.
5583 (objfile_relocate): Do not relocate entry_func_lowpc and
5585 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5587 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5589 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5590 entry_func_lowpc and entry_func_highpc with call to
5593 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5595 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5596 quad-precision floating point arguments in registers.
5598 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5600 From Michael Mueller <m.mueller99@kay-mueller.de>:
5601 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5604 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5606 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5608 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5609 untriggered watchpoints to a separate if clause. Update function
5610 comment regarding STOPPED_BY_WATCHPOINT argument.
5612 2004-06-22 Jim Blandy <jimb@redhat.com>
5614 * gdbarch.sh: Doc fix.
5616 2004-06-21 Martin Hunt <hunt@redhat.com>
5617 Kevin Buettner <kevinb@redhat.com>
5619 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5620 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5621 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5622 to set_gdbarch_sp_regnum(). Use cooked register number.
5623 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5625 2004-06-21 Andrew Cagney <cagney@gnu.org>
5627 * gdbarch.sh: When the macro field is empty, do not generate a
5628 macro definition. When the macro field is "=", generate the macro
5629 name from the upper-case function name.
5630 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5631 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5632 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5633 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5634 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5635 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5636 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5637 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5638 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5639 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5640 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5641 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5642 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5643 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5644 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5645 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5646 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5647 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5648 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5649 (DEPRECATED_USE_STRUCT_CONVENTION)
5650 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5651 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5652 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5653 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5654 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5655 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5656 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5657 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5658 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5659 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5660 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5661 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5662 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5663 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5664 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5665 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5666 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5667 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5669 2004-06-21 Andrew Cagney <cagney@gnu.org>
5671 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5672 macro name, and the function rather than macro value. Only wrap
5673 macro print statements in #ifdef. Move format logic to where it
5675 * gdbarch.c: Re-generate.
5677 * gdbarch.sh (read): Delete "print_p" and "description", add
5678 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5679 Delete references to print_p.
5680 (TARGET_ARCHITECTURE): Delete print predicate.
5681 * gdbarch.c: Re-generate.
5683 * gdbarch.sh: Check that multi-arch methods do not provide a
5685 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5686 (print_registers_info, print_float_info, print_vector_info)
5687 (adjust_breakpoint_address, remote_translate_xfer_address)
5688 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5689 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5690 name from the multi-arch definition.
5692 2004-06-20 Andrew Cagney <cagney@gnu.org>
5694 * gdbarch.sh: Sort by the function, instead of macro name.
5695 * gdbarch.c: Re-generate.
5697 2004-06-20 Andrew Cagney <cagney@gnu.org>
5699 * gdbarch.sh: Use the function, instead of macro name in
5700 errors and the log file.
5701 (return_value): Remove stray ":" in spec.
5703 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5704 * gdbarch.h, gdbarch.c: Re-generate.
5705 * Makefile.in (arch-utils.o): Update dependencies.
5706 * values.c (using_struct_return): Move code calling
5707 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5708 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5709 to legacy_return_value, simplify.
5710 * infcmd.c (print_return_value): Move code calling
5711 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5712 to legacy_return_value, simplify.
5713 * infcall.c (call_function_by_hand): Move code calling
5714 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5715 * arch-utils.c: Update copyright. Include "gdbcore.h".
5716 (legacy_return_value): New function.
5717 * arch-utils.h: Update copyright.
5718 (legacy_return_value): Declare.
5720 2004-06-20 Andrew Cagney <cagney@gnu.org>
5722 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5723 * gdbarch.h, gdbarch.c: Re-generate.
5724 * values.c (using_struct_return): Update call.
5725 * mcore-tdep.c: Update comment.
5726 * infcall.c (call_function_by_hand): Update comment.
5727 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5728 * arch-utils.h (always_use_struct_convention): Update.
5729 * v850-tdep.c (v850_gdbarch_init): Update.
5730 * sh64-tdep.c (sh64_gdbarch_init): Update.
5731 * sh-tdep.c (sh_gdbarch_init): Update.
5732 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5733 * mips-tdep.c (mips_gdbarch_init): Update.
5734 * mcore-tdep.c (mcore_gdbarch_init): Update.
5735 * m32r-tdep.c (m32r_gdbarch_init): Update.
5736 * ia64-tdep.c (ia64_gdbarch_init): Update.
5737 * h8300-tdep.c (h8300_gdbarch_init): Update.
5738 * frv-tdep.c (frv_gdbarch_init): Update.
5739 * cris-tdep.c (cris_gdbarch_init): Update.
5740 * arm-tdep.c (arm_gdbarch_init): Update.
5741 * alpha-tdep.c (alpha_gdbarch_init): Update.
5743 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5745 * PROBLEMS: Add more specific information, and a work-around,
5748 2004-06-18 Andrew Cagney <cagney@gnu.org>
5750 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5751 * gdbarch.h, gdbarch.c: Re-generate.
5752 * ada-lang.c (ada_finish_decode_line_1): Update.
5753 * infrun.c (handle_inferior_event): Update.
5754 * infcall.c (find_function_addr): Update.
5755 * linespec.c (minsym_found): Update.
5756 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5758 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5759 * cli/cli-cmds.c (disassemble_command): Update.
5760 * vax-tdep.c (vax_gdbarch_init): Update.
5762 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5764 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5766 2004-06-17 Andrew Cagney <cagney@gnu.org>
5768 GDB 6.1.1 released from the GDB 6.1 branch.
5769 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5772 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5775 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5776 operation as a uleb128. Found by Michael Coulter.
5778 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5780 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5782 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5783 to ada-lang.h; this is needed to be able to implement the kill command
5786 (task_entry): Ditto.
5788 (ada_build_task_list): Ditto.
5790 * ada-lang.c: Conditionalize routines and data structures related
5791 to breakpoints, exceptions, completion, and symbol caching on
5792 GNAT_GDB, since these are not yet used in the submitted public sources.
5793 (ada_main_name): Editorial: Move definition out of exception-related
5796 2004-06-15 Andrew Cagney <cagney@gnu.org>
5798 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5799 deprecated_pc_in_call_dummy.
5801 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5803 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5804 bfd_get_section_size_before_reloc or _raw_size.
5805 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5806 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5807 (dwarf2_read_section): Likewise.
5808 * elfread.c (elf_locate_sections): Likewise.
5809 * gcore.c (derive_heap_segment): Likewise.
5810 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5811 * remote-e7000.c (e7000_load): Likewise.
5812 * remote-m32r-sdi.c (m32r_load): Likewise.
5813 * remote-mips.c (mips_load_srec): Likewise.
5814 (pmon_load_fast): Likewise.
5815 * remote.c (compare_sections_command): Likewise.
5816 * symfile.c (add_section_size_callback): Likewise.
5817 (load_section_callback): Likewise.
5818 (pc_in_unmapped_range): Likewise.
5819 (pc_in_mapped_range): Likewise.
5820 (sections_overlap): Likewise.
5821 (list_overlays_command): Likewise.
5822 (simple_overlay_update_1): Likewise.
5823 (simple_overlay_update): Likewise.
5824 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5825 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5827 2004-06-14 Randolph Chung <tausq@debian.org>
5829 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5830 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5832 (hppa_hpux_inferior_created): New function.
5833 (hppa_hpux_init_abi): Register observer.
5834 * symfile.c (hp_cxx_exception_support_initialized)
5835 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5836 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5838 2004-06-14 Randolph Chung <tausq@debian.org>
5840 * MAINTAINERS (Write After Approval): Alphabetize my entry
5843 2004-06-14 Andrew Cagney <cagney@gnu.org>
5845 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5846 testsuite maintainer.
5848 2004-06-13 Andrew Cagney <cagney@gnu.org>
5850 * infcmd.c (print_return_value): Fix logic, allow
5851 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5853 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5854 defining any macros.
5855 * gdbarch.h: Re-generate.
5857 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5858 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5859 * gdbarch.h: Re-generate.
5861 * values.c (generic_use_struct_convention): Don't check gcc_p.
5863 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5864 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5865 * gdbarch.h, gdbarch.c: Regenerate.
5866 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5867 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5869 deprecated_max_register_raw_size and
5870 deprecated_max_register_virtual_size.
5871 * v850-tdep.c (v850_gdbarch_init): Ditto.
5872 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5873 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5874 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5875 * cris-tdep.c (cris_gdbarch_init): Ditto.
5877 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5878 * gdbarch.h, gdbarch.c: Re-generate.
5879 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5880 (m68hc11_use_struct_convention): Delete function.
5881 (m68hc11_extract_struct_value_address): Delete function.
5882 (m68hc11_return_value): New function.
5883 (m68hc11_gdbarch_init): Instead of store_return_value,
5884 extract_return_value, return_value_on_stack,
5885 deprecated_extract_struct_value_address and use_struct_convention,
5887 * values.c (using_struct_return): Do not call
5888 RETURN_VALUE_ON_STACK.
5889 * arch-utils.h (generic_return_value_on_stack_not): Delete
5891 * arch-utils.c (generic_return_value_on_stack_not): Delete
5894 2004-06-12 Andrew Cagney <cagney@gnu.org>
5896 * values.c (register_value_being_returned): Delete function.
5897 * infcmd.c (legacy_return_value): Delete function.
5898 * infcall.c (call_function_by_hand): Inline
5899 "register_value_being_returned", simplify.
5900 * values.c (using_struct_return): Update comment, refer to
5901 print_return_value instead of register_value_being_returned.
5902 * infcmd.c (print_return_value): Inline calls to
5903 register_value_being_returned and legacy_return_value. Simplify.
5905 2004-06-11 Randolph Chung <tausq@debian.org>
5907 * somread.c (som_symtab_read): Exclude gcc local symbols.
5909 2004-06-11 Randolph Chung <tausq@debian.org>
5911 * infrun.c (handle_inferior_event): Handle the case when a
5912 trampoline ends up in the runtime resolver, and if the trampoline
5913 has no name. Rearrange the code so that all the trampoline
5914 processing happens before other step-out-of-range handling.
5916 2004-06-11 Martin Hunt <hunt@redhat.com>
5918 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5921 2004-06-10 Andrew Cagney <cagney@gnu.org>
5923 * blockframe.c (legacy_inside_entry_func): Delete.
5924 (legacy_frame_chain_valid): Inline call to
5925 legacy_inside_entry_func, simplify.
5927 2004-06-10 Bob Rossi <bob@brasko.net>
5929 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5930 * dwarf2read.c (partial_die_info): Add dirname field.
5931 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5932 (read_partial_die): Save away DW_AT_comp_dir.
5933 * defs.h (symtab_to_filename): Removed.
5934 * source.c (find_and_open_source): Added.
5935 (open_source_file): Just calls find_and_open_source.
5936 (symtab_to_filename): Removed.
5937 (symtab_to_fullname, psymtab_to_fullname): Added.
5938 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5939 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5941 * symtab.h (partial_symtab): Add dirname field.
5942 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5943 (mi_cmd_file_list_exec_source_file): Call new function
5944 symtab_to_fullname to find fullname.
5945 (mi_cmd_file_list_exec_source_files): Added.
5946 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5947 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5949 2004-06-10 Andrew Cagney <cagney@gnu.org>
5951 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5952 to generic_use_struct_convention, the default value.
5954 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5957 * ns32k-tdep.c (ns32k_push_arguments): New function.
5958 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5959 * infcall.c (call_function_by_hand): Call error instead of
5960 legacy_push_arguments.
5961 * value.h (legacy_push_arguments): Delete declaration.
5962 * valops.c (legacy_push_arguments): Delete function.
5963 (value_push): Delete function.
5965 2004-06-10 Brian Ford <ford@vss.fsi.com>
5967 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5968 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5970 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5972 2004-06-10 Andrew Cagney <cagney@gnu.org>
5974 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5975 * gdbarch.h, gdbarch.c: Re-generate.
5976 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5978 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5979 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5980 deprecated_pc_in_call_dummy instead of
5981 DEPRECATED_PC_IN_CALL_DUMMY.
5982 (arm_skip_prologue): Ditto.
5983 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5984 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5985 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5986 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5988 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5989 (sh64_init_extra_frame_info, sh64_get_saved_register)
5990 (sh64_pop_frame): Ditto.
5991 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5992 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5993 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5994 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5995 (h8300_pop_frame): Ditto.
5996 * blockframe.c (legacy_inside_entry_func)
5997 (legacy_frame_chain_valid): Ditto.
5998 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5999 to deprecated_pc_in_call_dummy.
6001 2004-06-09 Andrew Cagney <cagney@gnu.org>
6003 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6004 provide a default value.
6005 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6006 * gdbarch.h, gdbarch.c: Re-generate.
6007 * arch-utils.c (generic_convert_register_p): Rename
6008 legacy_convert_register_p
6009 (legacy_register_to_value, legacy_value_to_register): Delete
6011 * arch-utils.h (generic_convert_register_p): Rename
6012 legacy_convert_register_p.
6013 (legacy_register_to_value, legacy_value_to_register): Delete
6016 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6017 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6018 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6019 * gdbarch.h, gdbarch.c: Re-generate.
6020 * infcmd.c (default_print_registers_info): Simplify.
6021 * findvar.c (value_of_register): Simplify.
6022 * mi/mi-main.c (get_register): Simplify.
6023 * arch-utils.c (legacy_convert_register_p): Always return 0.
6024 (legacy_register_to_value, legacy_value_to_register): Always call
6027 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6028 #ifdef CLEAR_INSN_CACHE code.
6029 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6030 Delete #ifdef CLEAR_DEFERRED_STORES code.
6032 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6034 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6036 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6038 * config/mips/mipsv4.mh: Delete file.
6040 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6042 (hpread_adjust_stack_address): Delete declaration.
6044 2004-06-08 Andrew Cagney <cagney@gnu.org>
6046 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6047 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6048 PTRACE_ATTACH / PTRACE_DETACH available call error.
6049 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6050 * infttrace.c (update_thread_state_after_attach, attach, detach):
6051 Remove #ifdef wrappers.
6052 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6053 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6054 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6055 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6056 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6057 * config/nm-linux.h (ATTACH_DETACH): Delete.
6058 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6059 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6060 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6061 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6062 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6064 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6066 * configure.in: Set $configdir to the right OS specific value.
6067 Use value when setting $tcldir and $tkdir.
6068 * configure: Regenerate.
6070 2004-06-06 Paul Brook <paul@codesourcery.com>
6072 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6075 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6077 * ada-lang.c (lookup_symbol_in_language): New function to allow
6078 re-use of another language's symbol lookup code. (Placed here
6079 temporarily while Ada support is being integrated into the public
6081 (restore_language): New auxiliary function for
6082 lookup_symbol_in_language.
6083 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6084 temporarily while Ada support is being integrated into the public
6087 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6089 * Makefile.in (check//%): New.
6091 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6092 (mn10300_store_return_value): Rewrite.
6093 (mn10300_type_align): New.
6094 (mn10300_use_struct_convention): Rewrite.
6095 (mn10300_return_value): New, using all of the above.
6096 (mn10300_pop_frame_regular): Add saved_regs_size.
6097 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6099 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6100 regs if PC is on movm.
6102 2004-06-07 Jim Blandy <jimb@redhat.com>
6104 Add native Linux support for the PowerPC E500.
6105 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6106 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6107 all architectures except the E500.
6108 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6110 (struct gdb_evrregset_t): New type.
6111 (have_ptrace_getsetevrregs): New variable.
6112 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6113 fetch_spe_registers): New functions.
6114 (fetch_register): Call fetch_spe_register as appropriate.
6115 Assert that we're only passed raw register numbers.
6116 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6117 Don't fetch gprs if they're pseudoregisters.
6118 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6119 store_spe_registers): New functions.
6120 (store_register): Call store_spe_register as appropriate.
6121 Assert that we're only passed raw register numbers.
6122 (store_ppc_registers): Call store_spe_registers as appropriate.
6123 Don't store gprs if they're pseudoregisters.
6125 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6127 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6128 struct if one exists, even if we are dealing with a zombie thread.
6130 2004-06-07 Andrew Cagney <cagney@gnu.org>
6132 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6133 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6134 Rename PC_REQUIRES_RUN_BEFORE_USE.
6135 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6138 2004-06-07 Randolph Chung <tausq@debian.org>
6140 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6141 unwinding after sp has been saved to the stack but before the end
6142 of the prologue, and after the fp has been modified but before it has
6143 been saved to the stack.
6144 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6145 Remove superfluous definitions.
6146 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6148 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6150 Committed by Randolph Chung.
6151 * hppa-linux-nat.c: Include the correct version of the header file
6152 depending on the kernel version.
6154 2004-06-06 Randolph Chung <tausq@debian.org>
6156 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6157 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6159 2004-06-06 Randolph Chung <tausq@debian.org>
6161 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6162 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6163 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6164 * hppa-tdep.c (hppa_symbol_address): New function definition.
6165 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6167 2004-06-06 Randolph Chung <tausq@debian.org>
6169 * hppa-tdep.h (struct value): Forward declaration.
6170 (gdbarch_tdep): Define tdep find_global_pointer method.
6171 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6172 associated with the function we are trying to call, and write it
6174 (hppa32_convert_from_funct_ptr_addr): New function.
6175 (hppa_find_global_pointer): New function.
6176 (hppa_gdbarch_init): Set default find_global_pointer method; set
6177 convert_from_func_ptr_addr method.
6178 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6179 (hppa_linux_init_abi): Set find_global_pointer method.
6180 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6182 2004-06-06 Randolph Chung <tausq@debian.org>
6184 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6185 to struct value *function.
6186 * gdbarch.c: Regenerate.
6187 * gdbarch.h: Likewise.
6188 * infcall.c (call_function_by_hand): Pass entire function value
6191 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6192 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6193 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6194 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6195 * arm-tdep.c (arm_push_dummy_call): Likewise.
6196 * avr-tdep.c (avr_push_dummy_call): Likewise.
6197 * cris-tdep.c (cris_push_dummy_call): Likewise.
6198 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6199 * frv-tdep.c (frv_push_dummy_call): Likewise.
6200 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6201 * hppa-tdep.c (hppa32_push_dummy_call)
6202 (hppa64_push_dummy_call): Likewise.
6203 * i386-tdep.c (i386_push_dummy_call): Likewise.
6204 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6205 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6206 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6207 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6208 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6209 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6210 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6211 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6212 (ppc64_sysv_abi_push_dummy_call): Likewise.
6213 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6214 (ppc64_sysv_abi_push_dummy_call): Likewise.
6215 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6216 * s390-tdep.c (s390_push_dummy_call): Likewise.
6217 * sh-tdep.c (sh_push_dummy_call_fpu)
6218 (sh_push_dummy_call_nofpu): Likewise.
6219 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6220 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6221 * vax-tdep.c (vax_push_dummy_call): Likewise.
6223 2004-06-04 Jim Blandy <jimb@redhat.com>
6225 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6226 gdbarch argument to register_size.
6228 * rs6000-tdep.c (rs6000_store_return_value): Use
6229 regcache_cooked_write_part instead of
6230 deprecated_write_register_bytes.
6231 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6232 not gdbarch_deprecated_store_return_value.
6234 * ppc-linux-nat.c (store_register, fetch_register): Remove
6235 incorrect assertions. Simplify and generalize handling of
6236 transfers whose sizes are not multiples of, or less than, sizeof
6239 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6241 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6242 as a new thread event.
6243 * thread-db.c (thread_get_info_callback): If the thread is a
6244 zombie, return TD_THR_ZOMBIE.
6245 (thread_from_lwp): If thread_get_info_callback returns
6246 TD_THR_ZOMBIE, check if the thread is still on the thread list
6247 and return a -1 ptid if not found.
6248 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6249 change the status to TARGET_WAITKIND_SPURIOUS.
6251 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6253 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6254 double values in little endian mode.
6256 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6258 Committed by Andrew Cagney.
6259 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6260 after last enum constant to avoid error from IBM C
6263 2004-06-02 Jim Blandy <jimb@redhat.com>
6265 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6266 to 'message', and make it local to the lone block that uses it.
6268 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6270 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6272 * ada-exp.y: Update copyright notice.
6275 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6276 SPECIAL_VARIABLE and unify the treatment of these cases.
6278 (write_attribute_call0): Remove.
6279 (write_attribute_call1): Remove.
6280 (write_attribute_calln): Remove.
6281 (save_qualifier): Add missing semicolon.
6283 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6284 temporarily disabled to allow compilation with FSF head version.
6286 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6287 use individual operators (OP_*) for all attributes.
6288 (exp syntax): Use write_int.
6289 Handle STRING literals with OP_STRING.
6290 (variable syntax): Add limit parameter to calls to
6291 write_object_renaming.
6293 (temp_parse_space): New definition to hold entities that need
6294 only live until the next call to ada_parse.
6295 (string_to_operator): Rename fields of ada_opname_table entries.
6297 (write_var_from_sym): Record block.
6298 (write_var_from_name): Minor reformatting.
6299 Make sure saved name is properly encoded in the case of multiple
6300 matches, and set its language to Ada.
6302 Modify to indicate unresolved name as symbol in the UNRESOLVED
6303 namespace, allocated in temp_parse_space.
6304 (write_int): New function.
6306 (write_object_renaming): Add max_depth parameter to limit
6307 chains of object renamings.
6308 Handle case where root of renaming expression is itself a renaming.
6309 Use temp_parse_space for temporary name buffer.
6310 Handle renamings to dereferenced pointers (___XEXA suffices).
6312 (ada_parse, yyerror, string_to_operator,
6313 write_var_from_sym, write_var_from_name, write_attribute_call0,
6314 write_attribute_call1, write_attribute_calln,
6315 write_object_renaming): Protoize.
6317 (_initialize_ada_exp): New function.
6319 * ada-lang.c: Update copyright notice.
6320 General terminology change to conform to GNAT compiler usage:
6321 mangle => encode, demangle => decode
6322 Include gdb_obstack.h.
6331 (ADA_RETAIN_DOTS): Make sure this is defined.
6332 (TRUNCATION_TOWARDS_ZERO): Define.
6333 (struct string_vector): Define.
6334 (unresolved_names): Remove definition.
6335 (xnew_string_vector): New function.
6336 (string_vector_append): New function.
6337 (extract_string): Make static.
6338 (ada_unqualified_name): New function.
6339 (add_angle_brackets): New function.
6340 (function_name_from_pc): New function.
6341 (place_on_stack): Rename to ensure_lval.
6343 (ensure_lval): Renamed from place_on_stack.
6344 Make identity on lvals.
6346 (is_nonfunction): New interface.
6347 Only symbols in LOC_CONST class can be enumerals.
6348 (fill_in_ada_prototype): Remove; now independent of language.
6349 (add_defn_to_vec): Add obstack and symtab arguments.
6350 Use obstack to hold collected definitions.
6351 (num_defns_collected): New function.
6352 (defns_collected): New function.
6353 (ada_resolve_subexp): Rename to resolve_subexp.
6354 (resolve_subexp): Renamed from ada_resolve_subexp.
6355 (ada_op_name): Return non-const result.
6356 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6359 (to_fixed_array_type): Add declaration.
6360 (coerce_unspec_val_to_type): Remove offset parameter.
6361 (find_sal_from_funcs_and_line): New interface.
6362 (find_line_in_linetable): Ditto.
6364 (all_sals_for_line): Rename to ada_sals_for_line and make
6366 Add new parameter. When set, do not ask the user to choose the
6367 instance, but use the first one found instead.
6368 Use given line number in returned sals.
6370 Skip the prologue if funfirstline is set.
6371 Correct for memory leak when 0 lines found.
6373 (value_pos_atr): Use pos_atr.
6374 (pos_atr): New function.
6375 (standard_lookup): Add block parameter.
6377 (makeTimeStart): Remove declaration and uses.
6378 (makeTimeStop): Remove declaration and uses.
6380 (ada_completer_word_break_characters): Allow for VMS.
6381 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6382 (raise_sym_name): New constant.
6383 (raise_unhandled_sym_name): New constant.
6384 (raise_assert_sym_name): New constant.
6385 (process_raise_exception_name): New constant.
6386 (longest_exception_template): New constant.
6387 (warning_limit): New variable to limit warnings during expression
6389 (warnings_issued): New variable to keep track of warnings issued.
6390 (known_runtime_file_name_patterns): New constant.
6391 (known_auxiliary_function_name_patterns): New constant.
6392 (symbol_list_obstack): New variable.
6394 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6395 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6396 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6397 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6398 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6399 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6400 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6401 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6404 (ada_get_field_index): New function.
6405 (lim_warning): New function.
6406 (ada_translate_error_message): New function.
6407 (MAX_OF_SIZE): New function.
6408 (MIN_OF_SIZE): New function.
6409 (UMAX_OF_SIZE): New function.
6410 (UMIN_OF_SIZE): New function.
6411 (discrete_type_high_bound): New function.
6412 (discrete_type_low_bound): New function.
6413 (base_type): New function.
6414 (do_command): Remove.
6416 (ada_update_initial_language): Use language_ada, not language_unknown.
6417 (ada_encode): Renamed from ada_mangle.
6418 Obey ADA_RETAIN_DOTS.
6419 (ada_decode): Renamed from ada_demangle.
6420 Update coding conventions.
6421 (decoded_names_store): New hash table.
6422 (ada_decode_symbol): New function.
6423 (ada_la_decode): New function.
6425 (modify_general_field): Correct computations of offset and bit
6427 (desc_base_type): Handle ref types, too.
6428 (ada_is_direct_array_type): New function.
6430 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6431 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6432 (ada_is_bogus_array_descriptor,ada_type_of_array,
6433 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6434 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6435 ada_is_array_descriptor_type.
6437 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6438 (ada_is_packed_array_type): Handle pointers or
6439 references to packed arrays as well.
6440 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6441 (decode_packed_array_type): Search for the packed array type
6442 symbol in the currently selected block and associated
6444 Use lookup_symbol again.
6446 (decode_packed_array): Handle pointers and references.
6447 Update call to coerce_unspec_val_to_type.
6448 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6449 (ada_value_primitive_packed_val): Improve comment.
6451 (ada_index_type): Substitute int type for "undefined".
6452 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6453 ada_array_langth, ada_is_string_type): Use renamed
6454 ada_is_simple_array_type.
6455 (empty_array): New function.
6457 (ada_resolve): Rename to resolve.
6458 (resolve): Make static.
6459 Call renamed resolve_subexp.
6461 (ada_resolve_subexp): Rename to resolve_subexp.
6462 (resolve_subexp): Update comment.
6463 Decomment disabled code.
6464 Add LOC_COMPUTED* cases.
6465 Modify to use temporary struct symbols (marked as being in
6466 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6467 OP_UNRESOLVED_VALUE.
6468 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6471 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6472 Use new ada_lookup_symbol_list interface.
6473 Use new ada_resolve_function interface.
6474 Remove OP_TYPE case.
6476 (ada_args_match): Idiot proof against null actuals.
6477 Use intermediate variables to clarify.
6478 (ada_resolve_function): Update comment and interface.
6479 (mangled_ordered_before): Rename to encoded_ordered_before and
6481 (sort_choices): Update comment and interface.
6482 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6483 (user_select_syms): New interface.
6484 Use new sort_choices interface.
6485 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6486 (possible_user_operator_p): Idiot-proof against null values.
6487 (ada_simple_renamed_entity): Don't make cleanup; rely on
6488 caller to free result string.
6489 Remove const from return type.
6490 (make_array_descriptor): Rename uses of place_on_stack to
6492 Make sure that arrays are on stack.
6494 (HASH_SIZE): Define.
6495 (struct cache_entry): Define.
6496 (cache_space): Define.
6498 (clear_ada_sym_cache): New function.
6499 (find_entry): New function.
6500 (lookup_cached_symbol): New function.
6501 (defn_vector_size): Define.
6502 (cache_symbol): New function.
6503 (defn_symbols): Remove.
6505 (standard_lookup): Use lookup_symbol_in_language to get effect of
6509 (symbol_completion_match): New function.
6510 (symbol_completion_add): New function.
6511 (ada_make_symbol_completion_list): New function.
6513 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6514 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6515 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6516 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6518 (ada_lookup_simple_minsym): New function.
6519 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6521 (add_symbols_from_enclosing_procs): New interface.
6522 Conditionalize more helpfully.
6523 Don't bother if program isn't running.
6524 Use new interface to get_frame_block.
6525 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6527 (remove_extra_symbols): New interface.
6528 (xget_renaming_scope): New function.
6529 (is_package_name): New function.
6530 (renaming_is_visible): New function.
6531 (remove_out_of_scope_renamings): New function.
6533 (ada_lookup_symbol_list): New interface.
6534 Properly reinitialize the symbol list obstack.
6535 Don't call add_symbols_from_enclosing_procs if we start from a
6536 static or global block.
6537 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6538 add_symbols_from_enclosing_procs.
6539 Add symtab data to cached entries.
6540 Handle symbols prefixed with
6541 "standard__" specially; strip prefix and don't look in local symbols.
6542 Do not include out of scope renaming symbols in list of
6544 Add const to block parameter.
6545 Move check for non-local, non-global symbols earlier.
6546 Remove timing stuff.
6547 (ada_lookup_symbol): New interface.
6548 Find symtab as well.
6549 (ada_lookup_symbol_nonlocal): New function.
6551 (is_name_suffix): Enhance suffix detection to recognize
6552 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6553 (is_dot_digits_suffix): New function.
6554 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6556 (ada_add_block_symbols): New interface. Use obstack to return results
6557 in a vector of struct ada_symbol_infos. Add symtab argument.
6558 Use new interface to add_defn_to_vec.
6559 Remove calls to fill_in_ada_prototype.
6560 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6562 (ada_finish_decode_line_1): Add const qualification to local to fix
6564 Start looking in static block for functions to avoid attempts
6565 to search frame chain for up-level variables.
6566 Adapt to new ada_sals_for_line interface.
6567 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6568 Handle quoting of the function name inside the spec string.
6569 Skip prologue when funfirstline is set and update the
6570 function documentation to that effect.
6572 (debug_print_lines, debug_print_block, debug_print_blocks,
6573 debug_print_symtab): Remove.
6575 (ada_main_name): New function.
6576 (ada_exception_breakpoint_type): New function.
6577 (is_known_support_routine): New function.
6578 (ada_find_printable_frame): Renamed from find_printable_frame and made
6580 Remove level parameter.
6581 Use new interface to select_frame.
6583 (begin_command): Remove.
6584 (ada_adjust_exception_stop): New function.
6585 (ada_print_exception_stop): New function.
6586 (exception_name_from_cond): New function.
6587 (ada_report_exception_break): Replace disabled code with
6588 conditionalization on GNAT_GDB.
6589 Get the exception name from the condition string.
6590 Remove and move functionality into new functions
6591 ada_print_exception_breakpoint_task and
6592 ada_print_exception_breakpoint_nontask.
6593 (error_breakpoint_runtime_sym_not_found): New function.
6594 (is_runtime_sym_defined): New function.
6595 (ada_breakpoint_rewrite): Uncomment suppressed code.
6596 Use symbolic error-message and runtime-symbol names.
6597 Surround runtime symbol names in quotes.
6598 Allow non-specific breakpoints on exceptions and assertions before
6601 (ada_is_tagged_type): Add parameter.
6602 (ada_is_tag_type): New function.
6603 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6604 (ada_variant_discrim_type): Ditto.
6605 (value_tag_from_contents_and_address): New function.
6606 (type_from_tag): New function.
6607 (struct tag_args): New structure used to communicate with
6609 (ada_tag_name_1): New function.
6610 (ada_tag_name): New function.
6612 (ada_scan_number): Update comment.
6613 (find_struct_field): New function.
6614 (ada_search_struct_field): Make static.
6615 (ada_value_struct_elt): New version that returns references when
6616 given pointers or references to structs.
6617 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6618 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6620 (ada_value_ind): Use new ada_to_fixed_value interface.
6621 (ada_coerce_ref): Ditto.
6622 (field_offset): Remove.
6624 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6625 (ada_find_renaming_symbol): New function.
6626 (ada_prefer_type): Prefer named types over unnamed ones.
6627 (variant_field_index): New function.
6628 (contains_variant_part): Removed: subsumed by variant_field_index.
6629 (ada_template_to_fixed_record_type): New function, mostly from
6630 template_to_fixed_record_type.
6631 (template_to_fixed_record_type):
6632 Do not scan the type fields beyond the last one; prevents a
6634 Handle case where variant field is listed BEFORE discriminant it
6636 Fix calculation of record length when bit length is
6637 not evenly divisible by char length.
6638 Move code to ada_template_to_fixed_record_type and call it.
6640 (template_to_static_fixed_type): Revise comment.
6641 Modify to work on ordinary record types as well as templates,
6642 so as to handle fields that use ___XVE or ___XVU encodings.
6643 (to_record_with_fixed_variant_part): Fill out comment.
6644 Initialize C++ stuff in right type.
6645 Allow case where DVAL is null.
6646 Handle case where variant field is not last.
6647 Fix typo concerning record length.
6648 (to_fixed_record_type): Decomment disabled code.
6649 (to_fixed_record_type): Use variant_field_index instead of
6650 contains_variant_part.
6651 (to_fixed_variant_branch_type): Ditto.
6652 (to_fixed_array_type): Decomment disabled code.
6653 (ada_to_fixed_type): Convert tagged types to the specific type.
6654 Deactivate the size-check for array types in order to avoid
6655 some false size alarms.
6656 (to_static_fixed_type): Decomment disabled code.
6657 Modify to call template_to_static_fixed_type
6658 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6659 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6660 Remove valaddr argument, as it is never really used.
6661 (ada_to_fixed_value): Change interface to act on single struct value*
6663 (adjust_pc_past_prologue): New function.
6664 (ada_attribute_name): Modify to take enum exp_opcode argument.
6666 (ada_enum_name): Recognize new homonym-distinguishing convention.
6667 Adjust local variable's type to remove compiler warning.
6668 Fix a small problem in the part that unqualifies the enumeration name.
6669 (ada_value_binop): New function.
6670 (ada_value_equal): New function.
6672 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6673 Don't give error message when not doing normal evaluation
6674 and a tagged type doesn't seem to contain a structure member.
6675 Give error message for packed arrays.
6676 For indexing arrays, handle pointers to packed arrays correctly.
6677 Handle case of 'first and 'last attributes of bare integral type
6678 without encoded subtype info.
6679 Remove some unnecessary casts.
6680 Fix uninitialized value of type in computing 'first, 'last, or 'length
6682 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6683 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6685 Attributes are now exp_opcode values.
6686 Correct treatment of 'modulus.
6687 Better error message for taking 'length of wrong kind of type;
6689 Change EVAL_NORMAL to noside for consistency.
6690 Use ada_value_binop for DIV, MOD, REM.
6691 Make special case out of array of length 0, since an argument
6692 of 0 upsets some platforms' malloc.
6693 Use OP_STRING instead of OP_ARRAY.
6694 For slice, add check that we have an array type before extracting
6695 a slice out of it. Avoids a SEGV.
6696 When evaluating an array slice, if the array type is a reference to
6697 an aligner type, then replace the aligner type by the actual type.
6698 Decomment disabled code.
6699 Remove some dead code.
6700 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6701 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6702 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6703 and UNOP_MBR to UNOP_IN_RANGE.
6704 If an array type has a parallel ___XVE type, then use it.
6705 Turn arrays into pointers for lvalue arrays.
6706 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6707 bounds error and handle 0-length slices.
6709 When selecting fields, apply ada_to_fixed_value (because the fields
6710 might have ___XVU or ___XVE encodings even if not dynamic.)
6711 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6712 (ada_is_system_address_type): New function.
6714 (get_var_value): Use new interface to ada_lookup_symbol_list.
6715 (get_int_var_value): New interface.
6716 (to_fixed_range_type): Allow unknown bound, with warning.
6717 (ada_is_modular_type): Decomment disabled code.
6718 (ADA_OPERATORS): New definition.
6719 (ada_operator_length): New function.
6720 (ada_expr_op_name): New function.
6721 (ada_forward_operator_length): New function.
6722 (ada_dump_subexp_body): New function.
6723 (ada_print_subexp): New function.
6724 (ada_exp_descriptor): New constant.
6725 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6726 (ada_language_defn): Add ada_exp_descriptor entry.
6727 Change ada_parse => parse.
6728 Add post-parser entry.
6729 Use ada-specific non-local symbol lookup.
6730 Don't use C-style arrays.
6731 String lower-bound is 1.
6732 Decomment disabled code.
6733 (parse): New function.
6734 New fields ada_translate_error_message, ada_lookup_symbol,
6735 ada_lookup_minimal_symbol.
6737 * ada-lang.h: Update copyright dates.
6738 Replace the mangle/demangle terminology throughout by the
6739 more appropriate encode/decode one.
6740 Include breakpoint.h.
6741 Forward declare struct partial_symbol, struct block.
6742 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6743 (EXTRACT_ADDRESS): Remove.
6744 (EXTRACT_INT): Remove.
6745 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6746 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6747 (MAX_RENAMING_CHAIN_LENGTH): Define.
6748 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6750 (enum task_states): Remove.
6751 ada_task_states: Remove.
6752 (fat_string): Remove.
6753 (struct entry_call): Remove.
6754 (struct task_fields): Remove.
6755 (struct task_entry): Remove.
6757 (struct ada_symbol_info): Define.
6758 (enum ada_attribute): Remove.
6759 (enum ada_operator): Define.
6761 (ada_get_field_index): Declare.
6762 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6763 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6764 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6765 (ada_lookup_symbol_list): New interface.
6766 (ada_decode_symbol): Declare.
6767 (ada_decode): Declare.
6768 (ada_lookup_symbol): New interface.
6769 (ada_update_initial_language): Declare.
6770 (ada_lookup_simple_minsym): Declare.
6771 (user_select_syms): New interface.
6772 (ada_sals_for_line): Declare.
6773 (ada_is_tagged_type): New interface.
6774 (ada_tag_name): Declare.
6775 (ada_lookup_struct_elt_type): Remove declaration.
6776 (ada_search_struct_field): Remove declaration.
6777 (ada_attribute_name): New interface.
6778 (ada_is_system_address_type): Declare.
6779 (ada_to_fixed_value): Remove declaration.
6780 (ada_template_to_fixed_record_type_1): Declare.
6781 (get_int_var_value): New interface.
6782 (ada_find_any_symbol): Declare.
6783 (ada_find_renaming_symbol): Declare.
6784 (ada_mangle): Rename to ada_encode.
6785 (ada_simple_renamed_entity): Remove const.
6786 (ada_main_name): Declare.
6787 (get_current_task): Rename to ada_get_current_task.
6788 (get_entry_number): Remove declaration.
6789 (ada_report_exception_break): Remove declaration.
6790 (ada_print_exception_breakpoint_nontask): Declare.
6791 (ada_print_exception_breakpoint_task): Declare.
6792 (ada_find_printable_frame): Declare.
6794 * ada-lex.l: Update copyright notices.
6795 Use xmalloc and xfree instead of malloc and free.
6796 Use new interface to name_lookup.
6797 Use new interface to
6798 ada_mangle=>ada_encode.
6799 Redo handling of '$...' variable to parallel current treatment
6801 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6802 digit_to_int, strtoulst, processInt, processReal, processId,
6803 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6806 (processInt): Use cast to remove harmless warning.
6807 (processReal): Modify to get rid of compiler warning on scan formats.
6809 (processId): Replace xmalloc with obstack_alloc for name and remove
6810 call to ada_name_string_cleanup.
6811 Remove obsolete disabled code.
6812 (name_lookup): Ditto.
6814 Use obsavestring on temp_parse_space instead of savestring
6815 on name, and remove call to ada_name_string_cleanup.
6816 Free string returned from ada_simple_renamed_entity.
6817 Use new interface to ada_lookup_symbol_list.
6818 Decomment disabled code.
6819 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6821 When a type name lookup succeeds as a result of
6822 lookup_primitive_typename, check for regular type entry that has not
6824 Limit length of chain of renamed symbols we are willing to follow.
6825 Do not break names beginning with "standard__" into segments.
6826 (block_lookup): Use new interface to ada_lookup_symbol_list.
6828 * ada-typeprint.c: Update copyright notice.
6829 (demangled_type_name): Rename to decoded_type_name.
6830 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6831 (print_range_bound): Correct handling of negative
6832 bounds that make the index type looked unsigned under STABS.
6833 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6834 (print_range_type_named): Use the builtin int type if no type
6835 corresponding to the given type name could be found.
6836 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6837 Add some bullet-proofing.
6838 (print_variant_clauses): Allow for variant branches with ___XVU
6839 encodings that are not dynamic fields.
6840 Use new interface to ada_is_tagged_type.
6841 (print_record_type): Allow for fields with ___XVE encodings that
6842 are not dynamic fields.
6843 Use new interface to ada_is_tagged_type.
6844 (ada_print_type): ada_is_array_descriptor =>
6845 ada_is_array_descriptor_type.
6847 * ada-valprint.c: Update copyright notice.
6848 Include gdb_string.h
6850 (ui_memcpy): New function.
6851 (ada_print_floating): New function.
6852 (ada_print_str): Order arguments correctly.
6853 Correct handling of empty arrays and arrays of 0-length items.
6854 ada_is_array_descriptor => ada_is_array_descriptor_type
6855 Print values of type System.Address in hexadecimal format.
6856 Use ada_print_floating to print floating-point numbers in Ada format.
6857 Print class tag values with type names.
6858 No longer print the address of reference values. Avoids
6859 a potential confusion.
6860 (ada_value_print): Stop printing the object type for reference
6861 values, but preserve that behavior for access types. Avoids
6862 a potential confusion.
6863 Simplify one conditional expression, as the first part is now
6865 ada_is_array_descriptor => ada_is_array_descriptor_type
6866 Add check for arrays for null records, and print them by hand.
6868 2004-06-01 Jim Blandy <jimb@redhat.com>
6870 * ppc-tdep.h: Delete unused 'regoff' member.
6871 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6873 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6876 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6877 (hpread_read_struct_type): Likewise.
6879 2004-06-01 Andrew Cagney <cagney@gnu.org>
6881 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6882 instead of xasprintf.
6883 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6884 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6885 (mi_cmd_data_list_register_names)
6886 (mi_cmd_data_list_changed_registers)
6887 (mi_cmd_data_list_register_values)
6888 (get_register, mi_cmd_data_write_register_values)
6889 (mi_cmd_data_write_register_values)
6890 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6891 (mi_cmd_target_download, mi_cmd_target_select)
6892 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6893 (mi_execute_cli_command, mi_execute_async_cli_command)
6894 (mi_execute_async_cli_command): Ditto.
6895 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6896 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6898 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6899 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6900 error_last_message instead of mi_error_last_message.
6901 * mi/mi-main.c (mi_error_last_message): Delete function.
6903 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6904 "invalid number of columns" error. Delete redundant "out of
6907 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6909 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6910 (gregset_t, fpregset_t): Remove typedefs.
6911 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6912 (REG_OFFSET): Rename argument.
6913 (i386bsd_r_reg_offset): Rename from reg_offset.
6914 (REG_ADDR): Remove macro.
6915 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6917 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6918 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6919 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6920 instead of supply_gregset.
6921 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6922 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6923 instead of fill_gregset.
6924 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6926 * i386bsd-nat.c: Don't include "gregset.h".
6927 (supply_gregset, fill_gregset): Make static.
6928 (supply_fpregset, fill_fpregset): Remove.
6929 * Makefile.in (i386bsd-nat.o): Update dependencies.
6931 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6933 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6934 "gdb_assert.h". Con't include "gregset.h".
6935 (fbsd_make_corefile_notes): Use regset-based core file support
6936 instead off fill_gregset and fill_fpregset.
6937 * Makefile.in (fbsd-proc.o): Update dependencies.
6939 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6941 (m88k_frame_prev_register): Simplify code a bit.
6943 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6944 (amd64_collect_fpregset): New function.
6945 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6947 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6949 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6950 (i386_collect_gregset): New function.
6951 (i386_supply_fpregset): Adjust comment.
6952 (i386_collect_fpregset): New function.
6953 (i386_regset_from_core_section): Use i386_collect_gregset and
6954 i386_collect_fpregset.
6956 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6957 handle VALUEP being null.
6959 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6961 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6963 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6965 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6966 assembler in OpenBSD 3.5-current.
6967 (amd64obsd_sigcontext_addr): Likewise.
6969 2004-05-28 Jim Blandy <jimb@redhat.com>
6971 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6972 register set, so our regcache isn't declared "legacy" and our E500
6973 pseudoregister read and write functions aren't ignored.
6974 (rs6000_register_byte, rs6000_register_raw_size,
6975 rs6000_register_virtual_type, rs6000_register_convertible,
6976 rs6000_register_convert_to_virtual,
6977 rs6000_register_convert_to_raw): Deleted.
6978 (rs6000_register_type, rs6000_convert_register_p,
6979 rs6000_register_to_value, rs6000_value_to_register): New
6981 (rs6000_gdbarch_init): Don't register
6982 gdbarch_deprecated_register_size,
6983 gdbarch_deprecated_register_bytes,
6984 gdbarch_deprecated_register_byte,
6985 gdbarch_deprecated_register_raw_size,
6986 gdbarch_deprecated_register_virtual_type,
6987 gdbarch_deprecated_register_convertible,
6988 gdbarch_deprecated_register_convert_to_virtual, or
6989 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6990 register gdbarch_register_type, gdbarch_convert_register_p,
6991 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6993 2004-05-26 Jim Blandy <jimb@redhat.com>
6995 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6996 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6997 functions, updated to match the register numberings used in GCC.
6998 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6999 rs6000_dwarf2_reg_to_regnum as register number conversions
7000 functions for STABS and Dwarf2.
7002 2004-05-26 Randolph Chung <tausq@debian.org>
7004 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7007 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7009 * NEWS: Document new "start" command.
7011 2004-05-25 Randolph Chung <tausq@debian.org>
7013 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7016 2004-05-25 Randolph Chung <tausq@debian.org>
7018 * hppa-hpux-tdep.c (offsetof): Define.
7019 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7020 (hppa32_hpux_frame_base_before_sigtramp)
7021 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7022 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7023 (hppa64_hpux_frame_base_before_sigtramp)
7024 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7026 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7027 (hppa_hpux_sigtramp_frame_unwind_cache)
7028 (hppa_hpux_sigtramp_frame_this_id)
7029 (hppa_hpux_sigtramp_frame_prev_register)
7030 (hppa_hpux_sigtramp_frame_unwind)
7031 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7032 (hppa_hpux_init_abi): Register sigtramp unwinder.
7033 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7035 2004-05-25 Randolph Chung <tausq@debian.org>
7037 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7038 and multiple stack unwinds.
7039 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7041 2004-05-25 Andrew Cagney <cagney@gnu.org>
7043 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7044 * symfile-mem.h: Delete file.
7045 * symfile-mem.c: Do not include "symfile-mem.h".
7046 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7047 "struct bfd_section". When an error do not bother returning NULL.
7048 (add_symbol_file_from_memory_command): Use "struct bfd" and
7049 "struct bfd_section".
7050 * Makefile.in (symfile_mem_h): Delete.
7051 (symfile-mem.o): Update dependencies.
7053 2004-05-25 Nick Roberts <nickrob@gnu.org>
7055 * gdb-mi.el: New file.
7057 2004-05-25 Andrew Cagney <cagney@gnu.org>
7059 * inftarg.c: Include "observer.h".
7060 (child_attach, child_create_inferior): Notify inferior_created.
7061 * corelow.c: Include "observer.h".
7062 (core_open): Notify inferior_created.
7063 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7065 2004-05-25 Andrew Cagney <cagney@gnu.org>
7067 * target.h (struct target_ops): Add from_tty to
7069 (target_create_inferior, find_default_create_inferior): Update.
7070 * infcmd.c (run_command): Update.
7071 * wince.c (child_create_inferior): Update.
7072 * win32-nat.c (child_create_inferior): Update.
7073 * uw-thread.c (uw_thread_create_inferior): Update.
7074 * thread-db.c (thread_db_create_inferior): Update.
7075 * target.c (debug_to_create_inferior)
7076 (find_default_create_inferior): Update.
7077 (maybe_kill_then_create_inferior): Update.
7078 * sol-thread.c (sol_thread_create_inferior): Update.
7079 * remote.c (extended_remote_async_create_inferior)
7080 (extended_remote_create_inferior): Update.
7081 * remote-vx.c (vx_create_inferior): Update.
7082 * remote-st.c (st2000_create_inferior): Update.
7083 * remote-sim.c (gdbsim_create_inferior): Update.
7084 * remote-sds.c (sds_create_inferior): Update.
7085 * remote-rdp.c (remote_rdp_create_inferior): Update.
7086 * remote-rdi.c (arm_rdi_create_inferior): Update.
7087 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7088 * remote-e7000.c (e7000_create_inferior): Update.
7089 * procfs.c (procfs_create_inferior): Update.
7090 * ocd.c (ocd_create_inferior): Update.
7091 * ocd.h (ocd_create_inferior): Update.
7092 * nto-procfs.c (procfs_create_inferior): Update.
7093 * monitor.c (monitor_create_inferior): Update.
7094 * lin-lwp.c (lin_lwp_create_inferior): Update.
7095 * inftarg.c (child_create_inferior): Update.
7096 * hpux-thread.c (hpux_thread_create_inferior): Update.
7097 * gnu-nat.c (gnu_create_inferior): Update.
7099 2004-05-25 Andrew Cagney <cagney@gnu.com>
7101 * MAINTAINERS: Update e-mail address.
7103 2004-05-24 Randolph Chung <tausq@debian.org>
7105 * thread.c (info_threads_command, thread_apply_all_command)
7106 (thread_apply_command, thread_command, do_captured_thread_select):
7107 Remove HPUXHPPA-specific code.
7109 2004-05-24 Randolph Chung <tausq@debian.org>
7111 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7113 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7116 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7118 * infcmd.c (kill_if_already_running): New function, extracted
7120 (run_command): Replace extracted code by call to
7121 kill_if_already_running().
7122 (start_command): New function.
7123 (_initialize_infcmd): Add "start" command.
7125 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7127 Add OpenBSD/m88k support.
7128 * NEWS (New native configurations): Mention OpenBSD/m88k.
7129 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7130 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7131 * Makefile.in (m88k_tdep_h): New variable.
7132 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7133 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7134 * configure.host: Add m88*-*-openbsd*.
7135 * configure.tgt: Add m88*-*-openbsd*.
7137 2004-05-24 Jim Blandy <jimb@redhat.com>
7139 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7142 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7144 * symtab.c (fixup_section): Search section table when lookup by
7147 2004-05-24 Randolph Chung <tausq@debian.org>
7149 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7152 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7154 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7155 register number in regcache_raw_collect call.
7156 (m68kbsd_collect_fpregset): Likewise.
7157 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7159 * regset.h (struct regset): Add back `regset' member.
7161 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7163 * configure.in: Check for td_pcb in `struct thread'.
7164 * configure, config.in: Regenerated.
7166 * dpx2-nat.c: Remove file.
7167 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7168 (dpx2-nat.o): Remove dependencies.
7170 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7171 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7172 (amd64obsd_supply_pcb): New function.
7173 (_initialize_amd64obsd_nat): Enable libkvm interface.
7174 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7175 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7176 (LOADLIBES): New variable.
7178 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7179 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7180 (sparc32nbsd_supply_pcb): New function.
7181 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7182 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7183 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7184 (LOADLIBES): New variable.
7186 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7188 * bsd-kvm.c, bsd-kvm.h: New files.
7189 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7191 (i386fbsd_supply_pcb): New function.
7192 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7193 (i386fbsd-nat.o): Update dependencies.
7194 (bsd_kvm_h): New variable.
7195 (bsd-kvm.o): New dependency.
7196 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7197 (LOADLIBES): New variable.
7199 * regset.c: Tweak comment.
7200 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7202 * regset.h: Update copyright year.
7203 (struct regset): Remove `descr' member, add `gdbarch' member.
7204 (regset_alloc): Adjust prototype and comment.
7205 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7206 (i386_supply_fpregset): Likewise.
7207 (i386_regset_from_core_section): Update call to regset_alloc.
7208 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7210 (i386obsd_aout_regset_from_core_section): Update call to
7212 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7214 (i386nbsd_aout_regset_from_core_section): Update call to
7216 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7218 (amd64_regset_from_core_section): Update call to regset_alloc.
7219 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7221 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7222 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7223 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7224 (sparc32nbsd_init_abi): Update call to regset_alloc.
7225 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7226 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7227 (sparc64obsd_init_abi): Update call to regset_alloc.
7228 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7229 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7230 (sparc64nbsd_init_abi): Update call to regset_alloc.
7231 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7232 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7233 (sparc64fbsd_init_abi): Update call to regset_alloc.
7235 2004-05-22 Jim Blandy <jimb@redhat.com>
7237 * ppc-tdep.h (spe_register_p): New declaration.
7238 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7240 * rs6000-tdep.c (spe_register_p): New function.
7241 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7243 (rs6000_gdbarch_init): Initialize the new members of the tdep
7246 2004-05-21 Jim Blandy <jimb@redhat.com>
7248 * ppc-linux-nat.c (fetch_register): Move code back to be next
7249 to the comment that describes it. (Moved code, instead of
7250 comment, for symmetry with store_register.)
7252 Allocate regset structures in the gdbarch's obstack, not using
7254 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7255 Add 'arch' argument. Allocate the regset on arch's obstack, not
7257 * regset.h (regset_alloc): Update declaration.
7258 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7260 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7261 * i386-tdep.c (i386_regset_from_core_section): Same.
7262 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7263 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7264 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7265 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7266 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7267 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7269 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7271 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7273 2004-05-21 Jim Blandy <jimb@redhat.com>
7275 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7276 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7278 2004-05-20 Jim Blandy <jimb@redhat.com>
7280 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7282 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7284 * regset.h: Make prototype const-correct.
7285 * regset.c (regset_xmalloc): Make const-correct.
7287 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7289 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7290 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7291 (symbol_search_name): Declare.
7293 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7294 (iter_name_next_hashed): Ditto.
7295 (iter_name_next_linear): Ditto.
7296 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7298 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7299 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7300 (symbol_search_name): New function.
7302 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7304 * minsyms.c (build_minimal_symbol_hash_tables): Change
7305 test for adding to demangled hash table to check for difference
7306 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7308 2004-05-19 Jim Blandy <jimb@redhat.com>
7310 Use a constructor function to create regset structures.
7311 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7312 (struct regset): Use supply_regset_ftype. Add new
7313 'collect_regset' member.
7314 (regset_xmalloc): New declaration.
7315 * regset.c: New file.
7316 * am64-tdep.c (amd64_regset_from_core_section): Use
7317 regset_xmalloc to construct regset structures.
7318 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7319 * i386-tdep.c (i386_regset_from_core_section): Same.
7320 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7321 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7322 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7323 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7324 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7325 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7326 * Makefile.in (COMMON_OBS): Add regset.o.
7327 (regset.o): New rule.
7329 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7331 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7332 and pthread_cond_wait.c.
7334 2004-05-18 Jim Blandy <jimb@redhat.com>
7336 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7337 before the mach-specific switch, and then let the individual cases
7338 override the defaults, rather than leaving them uninitialized
7339 until the switch and then setting them in each case.
7341 2004-05-18 Randolph Chung <tausq@debian.org>
7343 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7344 millicode functions.
7346 2004-05-18 Randolph Chung <tausq@debian.org>
7348 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7349 references to dld_flags_buffer consistent.
7351 2004-05-18 Randolph Chung <tausq@debian.org>
7353 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7354 it for unwinding the stack.
7356 2004-05-18 Randolph Chung <tausq@debian.org>
7358 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7359 Undefine these so we can overide them using gdbarch.
7361 2004-05-18 Randolph Chung <tausq@debian.org>
7363 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7364 handling for 64-bit HPUX (elf).
7366 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7368 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7370 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7371 * ia64-tdep.c (examine_prologue): Likewise.
7372 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7373 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7375 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7377 * vax-tdep.c (vax_return_value): Implement
7378 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7380 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7382 * vax-tdep.c (vax_return_value): Fix typo.
7384 2004-05-17 Andrew Cagney <cagney@redhat.com>
7386 * MAINTAINERS: Mark Salter was also responsible for
7389 * NEWS: Mention signal fixes.
7391 2004-05-17 Randolph Chung <tausq@debian.org>
7393 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7394 check to see if we are unwinding an export stub. Export stubs clobber
7395 the %rp in the call path and stores the original rp in a stack slot.
7397 2004-05-17 Jim Blandy <jimb@redhat.com>
7399 * MAINTAINERS: Update address for J.T. Conklin.
7401 2004-05-17 Randolph Chung <tausq@debian.org>
7403 * hppa-tdep.c: Remove superfluous #include's.
7404 * Makefile.in (hppa-tdep.o): Update dependencies.
7406 2004-05-17 Randolph Chung <tausq@debian.org>
7408 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7409 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7410 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7411 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7412 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7413 Remove static function declarations.
7415 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7417 * alphabsd-nat.c: Update copyright year.
7418 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7420 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7423 * m68k-tdep.c (m68k_svr4_return_value): Implement
7424 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7426 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7428 * sol-thread.c Update copyright year. Fix various coding
7429 standards violations. Tweak a few comments.
7430 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7433 2004-05-15 Randolph Chung <tausq@debian.org>
7435 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7436 as pointer instead of array reference since HPUX compiler does
7437 not accept unsized array arguments.
7438 * somsolib.c (dld_flags_buffer): Use constant array size.
7440 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7442 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7443 offset with decimal offset.
7444 (amd64obsd_sigcontext_addr): Return correct address for entire
7447 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7448 instead of get_frame_base.
7450 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7451 (fill_gregset): Use regcache_raw_collect.
7453 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7456 * config/sparc/tm-nbsd64.h: Remove file.
7457 * config/tm-sunos.h: Remove file.
7459 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7461 * rs6000-tdep.c (store_param_on_stack_p): New function,
7462 an improved version of some code extracted from skip_prologue().
7463 (skip_prologue): Use store_param_on_stack_p() to detect
7464 instructions saving a parameter on the stack. Detect when r0
7465 is used to save a parameter.
7466 Do not mark "li rx, SIMM" instructions as part of the prologue,
7467 unless the following instruction is also part of the prologue.
7469 2004-05-14 Andrew Cagney <cagney@redhat.com>
7471 * infrun.c (handle_inferior_event): Simplify
7472 STEP_OVER_UNDEBUGGABLE.
7474 * infrun.c (handle_step_into_function): Delete function.
7475 (handle_inferior_event): Inline calls to
7476 handle_step_into_function.
7478 2004-05-14 Jerome Guitton <guitton@gnat.com>
7480 * rs6000-nat.c: Fix a comment.
7482 2004-05-12 David Anderson <davea@sgi.com>
7484 Committed by Jim Blandy <jimb@redhat.com>:
7485 * regcache.c (struct regcache_descr): fix comment spelling.
7487 2004-05-13 J. Brobecker <brobecker@gnat.com>
7489 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7490 Fixes a link link failure.
7492 2004-05-13 J. Brobecker <brobecker@gnat.com>
7494 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7495 error that was causing the build to fail.
7497 2004-05-13 J. Brobecker <brobecker@gnat.com>
7499 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7500 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7502 2004-05-13 Andrew Cagney <cagney@redhat.com>
7504 * infrun.c (handle_inferior_event): Check for
7505 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7506 calls. Update comments.
7508 2004-05-13 Jim Blandy <jimb@redhat.com>
7510 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7511 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7512 (store_regs_user_thread, store_regs_kernel_thread): Use
7513 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7514 * ppc-linux-nat.c (fill_gregset): Same.
7515 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7516 (ppc_linux_sigtramp_cache): Same.
7517 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7518 (ppcnbsd_sigtramp_cache_init): Same.
7519 * rs6000-nat.c (fetch_core_registers): Same.
7520 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7521 (rs6000_frame_cache): Same.
7523 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7524 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7525 of assuming that the gprs are numbered starting with zero.
7526 * ppc-linux-nat.c (fill_gregset): Same.
7527 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7528 * ppcnbsd-nat.c (getregs_supplies): Same.
7529 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7530 * rs6000-nat.c (fetch_core_registers): Same.
7531 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7533 2004-05-07 Michael Snyder <msnyder@redhat.com>
7535 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7536 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7538 2004-05-13 Andrew Cagney <cagney@redhat.com>
7540 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7542 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7544 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7545 base_address for shared libraries.
7547 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7549 * MAINTAINERS (write after approval): Add myself.
7551 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7553 * breakpoint.c (bpstat_stop_status): Add new argument
7554 STOPPED_BY_WATCHPOINT. Use it instead of testing
7555 target_stopped_data_address agaist 0 to check whether
7556 or not we stopped due to a hardware watchpoint.
7557 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7558 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7561 2004-05-12 Jim Blandy <jimb@redhat.com>
7563 * configure.in: When checking whether we should use the -bbigtoc
7564 option, don't forget to restore the original value of LDFLAGS.
7565 * configure: Regenerated.
7567 2004-05-12 Andrew Cagney <cagney@redhat.com>
7569 * thread.c (load_infrun_state): Delete step_sp.
7570 * infrun.c (context_switch): Ditto.
7571 * inferior.h (step_sp): Ditto.
7572 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7573 * gdbthread.h (struct thread_info, save_infrun_state)
7574 (restore_infrun_state): Ditto.
7576 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7578 * MAINTAINERS (write after approval): Add myself.
7580 2004-05-12 Andrew Cagney <cagney@redhat.com>
7582 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7583 eliminate reference to step_sp.
7584 (struct execution_control_state, init_execution_control_state)
7585 (handle_inferior_event, keep_going): Delete update_step_sp and
7587 * infcmd.c (step_sp): Note that variable is unused.
7589 2004-05-11 Andrew Cagney <cagney@redhat.com>
7591 * infrun.c (step_over_function): Delete function.
7592 (handle_step_into_function): Use insert_step_resume_breakpoint.
7593 (insert_step_resume_breakpoint): Fix assertion.
7595 2004-05-11 Nick Roberts <nickrob@gnu.org>
7597 * utils.c (defaulted_query): Just use the normal query input type
7598 when printing the annotations.
7600 2004-05-11 Andrew Cagney <cagney@redhat.com>
7602 * infrun.c (handle_inferior_event): Simplify code handling
7603 step-into or return-from a signal trampoline.
7605 2004-05-11 Andrew Cagney <cagney@redhat.com>
7607 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7608 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7610 2004-05-10 Jim Blandy <jimb@redhat.com>
7612 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7613 with a call to internal_error.
7615 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7616 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7617 processor variant lacks those registers.
7618 (ppc_floating_point_unit_p): Change description to make it clear
7619 that this returns info about the ISA, not the ABI.
7620 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7621 return true or false by checking tdep->ppc_fp0_regnum and
7622 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7623 arch/mach switching done in rs6000_gdbarch_init; it's better to
7624 keep that logic there, and just check the results here.
7625 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7626 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7627 floating-point registers.
7628 (ppc_supply_fpregset, ppc_collect_fpregset)
7629 (rs6000_push_dummy_call, rs6000_extract_return_value)
7630 (rs6000_store_return_value): Assert that we have floating-point
7632 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7633 (rs6000_frame_cache): Don't note the locations at which
7634 floating-point registers were saved if we have no fprs.
7635 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7637 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7638 (store_regs_user_thread, store_regs_kernel_thread): Only call
7639 supply_fprs / fill_fprs if we actually have floating-point
7641 (special_register_p): Check ppc_fpscr_regnum before matching
7643 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7644 supply / collect fpscr if we don't have it.
7645 * ppc-bdm.c: #include "gdb_assert.h".
7646 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7647 have floating-point registers, since I can't test this code on
7648 FP-free systems to adapt it.
7649 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7650 fpscr and floating point register numbers if they don't exist.
7651 (fetch_register): Assert that we have floating-point registers
7652 before we reach the code that handles them.
7653 (store_register): Same. And use tdep instead of calling
7655 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7657 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7658 fprs and fpscr if we don't have them.
7659 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7661 * ppcnbsd-nat.c: #include "gdb_assert.h".
7662 (getfpregs_supplies): Assert that we have floating-point registers.
7663 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7664 * ppcobsd-tdep.c: #include "gdb_assert.h".
7665 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7666 have floating-point registers.
7667 * rs6000-nat.c (regmap): Don't match against the fpscr and
7668 floating point register numbers if they don't exist.
7669 (fetch_inferior_registers, store_inferior_registers,
7670 fetch_core_registers): Only fetch / store / supply the
7671 floating-point registers and the fpscr if we have them.
7672 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7673 (ppcobsd-tdep.o): Update dependencies.
7675 2004-05-10 Andrew Cagney <cagney@redhat.com>
7677 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7678 (context_switch): Do not switch through_sigtramp_breakpoint.
7679 * gdbthread.h (save_infrun_state, load_infrun_state)
7680 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7681 and structure member.
7682 * thread.c (load_infrun_state, save_infrun_state): Update.
7684 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7686 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7688 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7690 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7692 * aclocal.m4: Regenerate.
7694 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7696 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7698 2004-05-10 Andrew Cagney <cagney@redhat.com>
7700 * infrun.c (check_sigtramp2): Delete function.
7701 (handle_inferior_event): When single stepping, and taking a
7702 signal, set a breakpoint at the signal return address. Delete
7703 redundant calls to check_sigtramp2.
7704 (insert_step_resume_breakpoint): New function.
7705 (through_sigtramp_breakpoint, handle_inferior_event)
7706 (follow_exec, wait_for_inferior, fetch_inferior_event)
7707 (currently_stepping, keep_going): Delete most uses of
7708 through_sigtramp_breakpoint, not that it should be deleted.
7709 (delete_breakpoint_current_contents): Delete function.
7711 2004-05-10 Randolph Chung <tausq@debian.org>
7713 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7715 * config/pa/tm-linux.h: New file.
7717 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7719 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7720 of prefixes. Don't print the prefix twice in the CLI.
7722 2004-05-10 Jim Blandy <jimb@redhat.com>
7724 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7725 collect all the gprs.
7727 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7728 loop collecting gprs.
7730 2004-05-09 Andrew Cagney <cagney@redhat.com>
7732 * remote-vx.c (net_step): Delete step-range code.
7733 * remote.c (remote_resume, init_all_packet_configs)
7734 (set_remote_protocol_E_packet_cmd)
7735 (show_remote_protocol_E_packet_cmd)
7736 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7737 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7738 (show_remote_protocol_e_packet_cmd): Ditto.
7740 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7742 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7744 * hppa-tdep.h: Update copyright year.
7745 (struct trad_frame_saved_reg): Add opaque declaration.
7747 * amd64-tdep.c (amd64_return_value): Implement
7748 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7750 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7751 (m68k_value_to_register): New functions.
7752 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7755 * defs.h (enum return_value_convention): Add
7756 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7757 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7758 * infcmd.c (legacy_return_value): New function.
7759 (print_return_value): Rwerite to implement
7760 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7761 * values.c (using_struct_return): Check for inequality to
7762 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7763 RETURN_VALUE_STRUCT_CONVENTION.
7764 * i386-tdep.c (i386_return_value): Implement
7765 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7767 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7768 include "symtab.h", "opcode/vax.h" and "inferior.h".
7769 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7770 to read_memory_unsigned_integer.
7771 (vax_gdbarch_init): Reorder.
7772 (_initialize_vax_tdep): Spell out prototype.
7773 * Makefile.in (vax-tdep.o): Update dependencies.
7775 2004-05-08 Andrew Cagney <cagney@redhat.com>
7777 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7778 * target.c (target_detach, target_disconnect): Ditto.
7780 * infcall.c (call_function_by_hand): When no
7781 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7782 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7783 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7784 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7785 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7787 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7788 * gdbarch.h, gdbarch.c: Re-generate.
7789 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7790 deprecated_fix_call_dummy.
7791 * v850-tdep.c (v850_gdbarch_init): Ditto.
7792 * infcall.c (call_function_by_hand): Do not call
7793 DEPRECATED_FIX_CALL_DUMMY.
7795 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7796 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7797 * gdbarch.h, gdbarch.c: Re-generate.
7798 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7799 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7800 deprecated_sizeof_call_dummy_words.
7801 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7802 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7803 * v850-tdep.c (v850_gdbarch_init): Ditto.
7804 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7805 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7806 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7807 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7808 * arch-utils.h (legacy_call_dummy_words)
7809 (legacy_sizeof_call_dummy_words): Delete declarations.
7810 * arch-utils.c (legacy_call_dummy_words)
7811 (legacy_sizeof_call_dummy_words): Delete variables.
7813 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7814 * gdbarch.h, gdbarch.c: Re-generate.
7815 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7816 * infcall.c (call_function_by_hand): Eliminate call to
7817 DEPRECATED_PUSH_DUMMY_FRAME.
7818 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7820 (ns32k_push_dummy_frame): Delete function.
7822 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7823 deprecated_call_dummy_breakpoint_offset or
7824 deprecated_call_dummy_start_offset.
7825 * dummy-frame.c, arm-tdep.c: Update comments.
7826 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7827 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7828 * gdbarch.h, gdbarch.c: Re-generate.
7830 * infcall.c (legacy_push_dummy_code): Delete function.
7831 (push_dummy_code): Delete call.
7833 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7834 * gdbarch.h, gdbarch.c: Re-generate.
7835 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7836 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7837 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7838 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7840 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7841 (struct frame_info): Delete opaque declaration.
7842 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7843 * frame.c (get_frame_type): Delete call.
7845 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7847 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7848 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7850 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7852 * alphanbsd-tdep.c: Include "gdb_string.h".
7853 * armnbsd-tdep.c: Update copyright year.
7854 Include "gdb_string.h".
7855 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7858 * delta68-nat.c: Remove file.
7859 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7860 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7861 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7862 (delta68-nat.o): Remove dependency.
7864 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7866 (m68k_gdbarch_init): Don't set
7867 deprecated_frameless_function_invocation.
7869 2004-05-07 Randolph Chung <tausq@debian.org>
7871 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7872 read_memory_nobpt for code reading when doing frame unwinding.
7873 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7875 2004-05-07 Randolph Chung <tausq@debian.org>
7877 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7878 instead of sp, handle sigaltstack case.
7879 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7880 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7881 signal handler and not that of the caller.
7882 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7883 hppa_linux_sigtramp_find_sigcontext.
7885 2004-05-07 Randolph Chung <tausq@debian.org>
7887 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7889 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7890 * hppa-linux-nat.c (fetch_register, store_register): Define.
7891 (fetch_inferior_registers, store_inferior_registers): Define.
7892 (supply_gregset): Add comment and clean up some unneeded code.
7893 (fill_gregset): Add comment and fix so that it saves registers in
7894 the right place in the gregset.
7895 (fill_fpregset): Fix buffer overrun problem.
7896 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7898 2004-05-07 Randolph Chung <tausq@debian.org>
7900 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7901 do common handling of the pcoqt register.
7902 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7903 to use helper function.
7904 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7905 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7906 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7907 generic fallback unwinder when all else fails.
7908 (hppa_gdbarch_init): Add fallback sniffer.
7909 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7910 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7911 to use helper function.
7913 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7915 * config/djgpp/fnchange.lst: Add translation rules for
7916 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7918 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7920 * frame.c (get_prev_frame_1): Work around GCC bug.
7921 * frame.h: Add comment about GCC bug.
7923 2004-05-07 Andrew Cagney <cagney@redhat.com>
7925 * observer.c: Include "commands.h" and "gdbcmd.h".
7926 (observer_debug, _initialize_observer): Add the
7927 command "set/show debug observer".
7928 * observer.sh: When observer debugging, log notify calls.
7929 * Makefile.in (observer.o): Update dependencies.
7931 2004-05-07 Jason Molenda (jmolenda@apple.com)
7933 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7935 2004-05-07 Jim Blandy <jimb@redhat.com>
7937 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7938 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7939 to recognize gpr regnums, instead of assuming that
7940 tdep->ppc_fp0_regnum marks the end of the general-purpose
7943 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7944 the given architecture has floating-point registers.
7946 2004-05-07 Andrew Cagney <cagney@redhat.com>
7948 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7950 * gdbarch.h, gdbarch.c: Re-generate.
7951 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7952 deprecated_use_generic_dummy_frames.
7954 2004-05-07 Brian Ford <ford@vss.fsi.com>
7956 * NEWS: Mention Cygwin DWARF 2 support.
7958 2004-05-07 Andrew Cagney <cagney@redhat.com>
7960 * objfiles.h (struct entry_info): Delete unused fields
7961 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7962 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7963 * mipsread.c (mipscoff_symfile_read): Update.
7964 * mdebugread.c (parse_partial_symbols): Update.
7965 * dwarfread.c (read_file_scope): Update.
7966 * dwarf2read.c (read_file_scope): Update.
7967 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7968 * coffread.c (complete_symtab): Update.
7970 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7972 * infcall.c (_initialize_infcall): Fix typo.
7974 2004-05-07 Andrew Cagney <cagney@redhat.com>
7976 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7977 * command.h (add_setshow_zinteger_cmd): Declare.
7979 2004-05-06 Randolph Chung <tausq@debian.org>
7981 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7982 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7983 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7984 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7985 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7986 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7987 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7989 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7990 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7991 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7992 (hppa64_hpux_frame_find_saved_regs_in_sig)
7993 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7994 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7995 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7996 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7997 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7998 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7999 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8000 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8001 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8002 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8003 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8004 (hppa32_register_type, hppa_cannot_store_register)
8005 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8006 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8007 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8008 * pa64solib.c (pa64_solib_have_load_event)
8009 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8010 (pa64_solib_unloaded_library_pathname): Likewise.
8011 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8012 (som_solib_library_pathname): Likewise.
8014 2004-05-05 Jim Ingham <jingham@apple.com>
8016 * breakpoint.c (create_breakpoints): Copy the ignore count and
8017 thread id over from the pended breakpoint to the actual
8020 2004-05-05 Andrew Cagney <cagney@redhat.com>
8022 * gdbarch.sh (PARM_BOUNDARY): Delete.
8023 gdbarch.h, gdbarch.c: Re-generate.
8024 * valops.c (PARM_BOUNDARY): Delete macro.
8025 (value_push): Delete PARM_BOUNDARY code.
8026 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8028 2004-05-04 Jim Blandy <jimb@redhat.com>
8030 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8031 Don't assume that the gprs, fprs, and UISA sprs are
8032 contiguous, start at register number zero, and end with fpscr.
8033 Instead, use the numbers from the tdep structure.
8035 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8036 should no longer be used in code specific to the RS6000 and its
8038 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8039 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8040 tdep->ppc_fp0_regnum.
8041 (ppc_supply_fpregset, ppc_collect_fpregset)
8042 (rs6000_push_dummy_call, rs6000_extract_return_value)
8043 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8044 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8046 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8047 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8049 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8050 bdm_ppc_store_registers): Same.
8051 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8052 (store_register, fill_fpregset): Same.
8053 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8054 (ppc_linux_supply_fpregset): Same.
8055 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8056 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8058 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8059 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8060 ppc64_sysv_abi_return_value): Same.
8061 * rs6000-nat.c (regmap, fetch_inferior_registers)
8062 (store_inferior_registers, fetch_core_registers): Same.
8064 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8066 * m68knbsd-nat.c: Remove file.
8067 * m68knbsd-tdep.c: Remove file.
8068 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8070 * configure.host: Add m68k-*-netbsdelf*.
8071 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8072 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8073 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8075 * config/m68k/nbsdelf.mh: New file.
8076 * config/m68k/nbsd.mt: New file.
8077 * config/m68k/nbsdaout.mt: Remove file.
8078 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8079 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8080 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8081 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8082 (use_struct_convention): Remove prototype.
8083 (USE_STRUCT_CONVENTION): Remove define.
8084 * config/m68k/xm-nbsd.h: Remove file.
8086 2004-05-04 Michael Snyder <msnyder@redhat.com>
8088 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8089 reg_struct_return method (as gcc usually does for cross targets).
8091 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8093 Committed by Andrew Cagney.
8094 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8095 alignment padding when accessing ucontext struct members.
8097 2004-05-04 Jim Blandy <jimb@redhat.com>
8099 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8100 'ppc_gplast_regnum' member.
8101 (ppc_num_gprs): New enum constant.
8102 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8103 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8104 * rs6000-nat.c (regmap, fetch_inferior_registers,
8105 store_inferior_registers): Same.
8106 * rs6000-tdep.c (e500_pseudo_register_read)
8107 (e500_pseudo_register_write): Same.
8108 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8110 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8111 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8112 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8113 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8115 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8117 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8118 * rs6000-nat.c (regmap, fetch_inferior_registers)
8119 (store_inferior_registers): Same.
8121 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8124 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8126 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8127 failure detected by recent versions of GCC.
8128 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8129 to be consistent with the usage in dwarf2_create_include_psymtab.
8131 2004-05-03 Michael Snyder <msnyder@redhat.com>
8133 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8134 (heuristic_proc_start): Whitespace cleanup.
8136 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8138 * sun3-nat.c: Remove file.
8139 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8141 (ALLDEPFILES): Remove sun3-nat.c.
8142 (sun3-nat.o): Remove dependencies.
8144 * i386-interix-nat.c, i386-interix-tdep.c,
8145 config/i386/nm-interix.h, config/i386/interix.mh,
8146 config/i386/interix.mt: Remove files.
8147 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8150 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8152 * m68k-tdep.h (struct gdbarch_tdep): Add member
8153 struct_value_regnum.
8154 (m68k_svr4_init_abi): New prototype.
8155 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8156 different calling conventions.
8157 (m68k_extract_return_value): Remove code dealing with single-field
8159 (m68k_store_return_value): Remove code dealing with single-field
8160 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8161 (m68k_extract_struct_value_address): Remove function.
8162 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8163 (m68k_reg_struct_return_p, m68k_return_value)
8164 (m68k_svr4_return_value): New functions.
8165 (m68k_use_struct_convention): Remove function.
8166 (m68k_push_dummy_call): Use new struct_value_regnum member of
8167 `struct gdbarch_tdep' instead of hardcoded register number to
8169 (m68k_svr4_init_abi): New function.
8170 (m68k_gdbarch_init): Don't set extract_return_value,
8171 store_return_values, deprecated_extract_struct_value_address and
8172 use_struct_convention. Set return_value instead. Initialize new
8173 struct_value_regnum member of `struct gdbarch_tdep'.
8174 * m68klinux-tdep.c: Update copyright year.
8175 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8176 (m68k_linux_extract_struct_value_address): Remove function.
8177 (m68k_linux_init_abi): Don't set extract_return_value,
8178 store_return_values, deprecated_extract_struct_value_address and
8179 use_struct_convention. Call m68k_svr4_init_abi but override the
8180 new struct_value_regnum member of `struct gdbarch_tdep'.
8181 * Makefile.in (m68k-tdep.o): Update dependencies.
8183 2004-05-03 J. Brobecker <brobecker@gnat.com>
8185 * dwarf2read.c (line_header): Add new included_p field in
8187 (partial_die_info): New field has_stmt_list. New field line_offset.
8188 (dwarf2_create_include_psymtab): New function.
8189 (dwarf2_build_include_psymtabs): New function.
8190 (add_file_name): Add forward declaration. Initialize new field.
8191 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8192 to be able to determine the list of files included by the
8193 given unit, and build their associated psymtabs.
8194 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8196 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8197 (read_file_scope): Update call to dwarf_decode_lines.
8198 (read_partial_die): Handle DW_AT_stmt_list attributes.
8200 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8203 * configure.in: Revert special case for osf5.*.
8204 * configure: Regenerate.
8206 2004-05-02 Jim Blandy <jimb@redhat.com>
8208 Move the symbol-file-from-memory functions into their own file.
8209 * symfile-mem.c, symfile-mem.h: New files.
8210 * symfile.c (symbol_file_add_from_bfd): New function.
8211 (symbol_file_add): Call symbol_file_add_from_bfd.
8212 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8213 Moved to symfile-mem.c.
8214 (_initialize_symfile): Move definition of
8215 add-symbol-file-from-memory command to symfile-mem.c.
8216 * symfile.h (symbol_file_add_from_bfd): New declaration.
8217 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8218 * config/powerpc/linux.mt (TDEPFILES): Same.
8219 * Makefile.in (SFILES): Add symfile-mem.c.
8220 (symfile_mem_h): New variable.
8221 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8222 (symfile-mem.o): New rule.
8224 2004-05-01 Andrew Cagney <cagney@redhat.com>
8226 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8227 frame_find_by_id instead of frame_relative_level.
8228 (do_enable_breakpoint): Ditto.
8229 * thread.c: Update copyright.
8230 (info_threads_command): Ditto, simplify.
8232 * frame.c (deprecated_generic_get_saved_register): Delete
8233 function, moved to "xstormy16-tdep.c".
8234 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8235 deprecated_generic_get_saved_register from "frame.c".
8236 (xstormy16_frame_saved_register): Call
8237 xstormy16_get_saved_register.
8238 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8240 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8241 * frame.h (deprecated_generic_get_saved_register): Delete.
8243 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8245 * dwarfread.c: Update documentation on the state of dwarf-1.
8247 2004-05-01 Andrew Cagney <cagney@redhat.com>
8249 * stack.c (select_frame_command): Delete call to
8250 frame_relative_level.
8251 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8253 (frame_info): Do not print FRAMELESS.
8254 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8255 (catch_info): Delete #if0 code.
8257 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8258 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8259 of frame_relative_level.
8260 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8262 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8263 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8264 frame_relative_level.
8266 * frame.h (deprecated_set_frame_type): Delete declaration.
8267 * frame.c (deprecated_set_frame_type): Delete function, update
8270 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8271 * gdbarch.h, gdbarch.c: Re-generate.
8272 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8273 (shnbsd_pc_in_sigtramp): Delete.
8274 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8276 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8278 * frame.h: Update comments.
8279 * ppc-linux-tdep.c: Update comments.
8280 * breakpoint.c (bpstat_what): Update comments.
8282 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8283 m68klinux-tdep.o's dependencies, were previously added to
8286 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8287 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8288 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8289 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8290 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8292 * Makefile.in (m68klinux-nat.o): Update dependencies.
8293 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8294 (m68k_linux_sigtramp_frame_cache)
8295 (m68k_linux_sigtramp_frame_this_id)
8296 (m68k_linux_sigtramp_frame_prev_register)
8297 (m68k_linux_sigtramp_frame_unwind)
8298 (m68k_linux_sigtramp_frame_sniffer)
8299 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8300 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8301 names, use trad-frame.h.
8302 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8303 (struct m68k_sigtramp_info): Delete.
8304 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8305 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8306 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8307 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8310 * infrun.c (check_sigtramp2): Delete check for
8311 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8313 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8315 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8317 2004-05-01 Andrew Cagney <cagney@redhat.com>
8319 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8320 (frv_linux_sigtramp_frame_cache)
8321 (frv_linux_sigtramp_frame_this_id)
8322 (frv_linux_sigtramp_frame_prev_register)
8323 (frv_linux_sigtramp_frame_unwind)
8324 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8325 include "linux" in function and variable names, directly call
8326 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8327 the latest trad-frame code.
8328 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8329 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8330 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8331 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8332 * frv-tdep.c (frv_sigtramp_frame_cache)
8333 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8334 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8336 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8337 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8338 (frv_set_sigcontext_reg_addr): Delete function.
8340 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8341 (DEPRECATED_SIGTRAMP_END): Delete.
8342 * gdbarch.h, gdbarch.c: Re-generate.
8343 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8344 * config/vax/tm-vaxbsd.h: Update copyright.
8345 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8346 (DEPRECATED_IN_SIGTRAMP): Define.
8347 * config/m68k/tm-nbsd.h: Update copyright.
8348 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8349 (DEPRECATED_IN_SIGTRAMP): Define.
8351 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8353 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8354 encondings. Fixes PR gdb/1628.
8356 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8357 DW_CFA_restore state without a matching DW_CFA_remember_state
8358 instead of aborting. Fixes PR backtrace/1589.
8360 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8362 * MAINTAINERS: Add self as AIX maintainer.
8363 Update my e-mail address in write-after-approval section.
8365 2004-04-30 Andrew Cagney <cagney@redhat.com>
8367 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8368 (legacy_get_prev_frame): Ditto.
8370 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8371 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8372 * mipsread.c (sigtramp_address): Delete extern variable.
8373 (mipscoff_new_init): Delete reference.
8374 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8375 (fixup_sigtramp): Delete function.
8376 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8377 (fixup_sigtramp): Delete declarations.
8379 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8380 deprecated_pc_in_sigtramp.
8381 (ppcnbsd_pc_in_sigtramp): Delete function.
8383 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8385 * config/m68k/nm-nbsd.h: Tweak comments.
8386 * config/m68k/nm-nbsdaout.h: Likewise.
8388 2004-04-30 Andrew Cagney <cagney@redhat.com>
8390 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8391 legacy_pc_in_sigtramp.
8392 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8394 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8396 Add OpenBSD/m68k support.
8397 * NEWS (New native configurations): Mention OpenBSD/m68k.
8398 * m68kbsd-tdep.c: New file.
8399 * m68kbsd-nat.c: New file.
8400 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8401 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8402 * configure.host: Add m68k-*-openbsd.
8403 * configure.tgt: Add m68k-*-openbsd.
8404 * config/m68k/tm-obsd.h: New file.
8405 * config/m68k/obsd.mt: New file.
8406 * config/m68k/obsd.mh: New file.
8407 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8410 2004-04-30 Andrew Cagney <cagney@redhat.com>
8412 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8413 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8415 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8417 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8418 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8420 2004-04-30 Brian Ford <ford@vss.fsi.com>
8422 Revert 2004-04-16 change.
8423 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8424 (i386_coff_init_abi): Remove.
8425 * i386-tdep.h (i386_coff_init_abi): Remove.
8426 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8428 2004-04-30 Andrew Cagney <cagney@redhat.com>
8430 * blockframe.c (find_pc_partial_function): Delete use of
8431 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8432 DEPRECATED_SIGTRAMP_END.
8434 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8435 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8436 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8437 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8438 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8440 * defs.h (deprecated_inside_entry_file): Delete declaration.
8441 * blockframe.c (deprecated_inside_entry_file): Delete function.
8442 (legacy_frame_chain_valid): Delete call.
8443 * sh64-tdep.c (sh64_frame_chain): Delete call.
8444 * objfiles.h: Update comments.
8445 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8447 * frame.c (get_prev_frame): Delete call, update comments.
8449 2004-04-30 Brian Ford <ford@vss.fsi.com>
8451 * MAINTAINERS (Write After Approval): Add myself.
8453 2004-04-30 Andrew Cagney <cagney@redhat.com>
8455 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8456 * gdbarch.h, gdbarch.c: Re-generate.
8457 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8460 2004-04-30 Andrew Cagney <cagney@redhat.com>
8462 * gdb-events.sh (selected_thread_changed)
8463 (selected_frame_level_changed, target_changed): Delete.
8464 * gdb-events.h, gdb-events.c: Re-generate.
8465 * valops.c (value_assign): Update.
8466 * stack.c (select_frame_command, up_silently_base)
8467 (down_silently_base): Update.
8469 2004-04-29 Andrew Cagney <cagney@redhat.com>
8471 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8472 registers correctly.
8473 (print_gp_register_row, mips32_heuristic_proc_desc)
8474 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8475 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8476 references to mips_isa_regsize.
8478 2004-04-29 Andrew Cagney <cagney@redhat.com>
8480 * mips-tdep.c (struct gdbarch_tdep): Delete
8481 mips_fp_register_double.
8482 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8484 (mips_gdbarch_init): Do not set mips_fp_register_double.
8485 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8487 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8489 Committed by Andrew Cagney.
8490 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8493 2004-04-29 Andrew Cagney <cagney@redhat.com>
8495 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8496 gdbarch, use mips_abi, update callers.
8497 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8498 mips_abi_regsize, update callers.
8499 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8500 mips_default_abi_regsize.
8501 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8502 mips_default_abi_regsize.
8504 2004-04-29 Andrew Cagney <cagney@redhat.com>
8506 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8507 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8508 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8509 mips_default_abi_regsize.
8510 (mips_isa_regsize): Rename mips_regisze.
8511 * mipsnbsd-tdep.c: Update.
8512 * mips-linux-tdep.c: Update.
8513 * irix5-nat.c: Update.
8514 * mips-tdep.h (mips_isa_regsize): Update.
8516 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8517 Delete all disabled code.
8518 * gdb-events.h, gdb-events.c: Re-generate.
8520 2004-04-19 Jerome Guitton <guitton@gnat.com>
8521 Mark Kettenis <kettenis@gnu.org>
8523 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8524 the function begins with a branch instruction.
8526 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8528 * i386-tdep.c: Fix spelling mistakes.
8530 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8531 Andrew Cagney <cagney@redhat.com>
8533 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8535 * acconfig.h: Provide default _KMEMUSER value.
8536 * config.in, configure: Re-generate.
8537 * NEWS: Mention fix.
8539 2004-04-24 Randolph Chung <tausq@debian.org>
8541 * configure.host (hppa*-*-linux*): New target.
8542 * configure.tgt (hppa*-*-linux*): Likewise.
8543 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8544 gdbarch_init_osabi() call earlier so that osabi-specific frame
8545 unwinders can be registered first.
8546 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8548 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8549 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8550 * config/pa/linux.mh: New file.
8551 * config/pa/linux.mt: New file.
8552 * config/pa/nm-linux.h: New file.
8553 * config/pa/xm-linux.h: New file.
8554 * hppa-linux-nat.c: New file.
8555 * hppa-linux-tdep.c: New file.
8557 2004-04-28 Randolph Chung <tausq@debian.org>
8559 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8561 (hppa32_push_dummy_call): Fix small struct and floating point argument
8562 passing, and make sure the stack frame is properly aligned.
8564 2004-04-28 Andrew Cagney <cagney@redhat.com>
8566 * stack.c (print_stack_frame): Fix description.
8568 * NEWS: Mention gdb/gdbserver/configure execute permission
8569 changed. PR server/519.
8571 2004-04-28 Andrew Cagney <cagney@redhat.com>
8573 * stack.c (print_stack_frame_stub): Delete declaration.
8574 (struct print_stack_frame_args, print_stack_frame)
8575 (print_frame_info, print_frame): Replace "source" with print what.
8576 Replace "print" with "print_level". Replace "args" with
8578 * frame.h (show_and_print_stack_frame, print_stack_frame)
8579 (print_frame_info): Update declarations.
8580 * stack.c (select_and_print_frame, frame_command)
8581 (current_frame_command, up_command, down_command): Update calls -
8582 use get_selected_frame, pass "enum print_what" for source, do not
8583 call frame_relative_level.
8584 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8585 * remote-rdp.c (remote_rdp_open): Ditto.
8586 * remote-mips.c (common_open): Ditto.
8587 * remote-e7000.c (e7000_start_remote): Ditto.
8588 * ocd.c (ocd_start_remote): Ditto.
8589 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8590 * infrun.c (normal_stop): Ditto.
8591 * inflow.c (kill_command): Ditto.
8592 * infcmd.c (finish_command): Ditto.
8593 * corelow.c (core_open): Ditto.
8594 * tracepoint.c (finish_tfind_command): Ditto.
8595 * thread.c (info_threads_command, info_threads_command)
8596 (restore_current_thread, do_captured_thread_select): Ditto.
8597 * ada-tasks.c (task_command): Ditto.
8599 2004-04-26 Orjan Friberg <orjanf@axis.com>
8601 * frame.c: Include "observer.h".
8602 (frame_observer_target_changed): New function.
8603 (_initialize_frame): Attach target_changed observer.
8604 * regcache.c: Include "observer.h".
8605 (regcache_observer_target_changed): New function.
8606 (_initialize_regcache): Attach target_changed observer.
8607 * valops.c: Include "observer.h".
8608 (value_assign): Notify target_changed event when modifying register.
8609 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8611 2004-04-26 Orjan Friberg <orjanf@axis.com>
8613 From Paul Koning <pkoning@equallogic.com>:
8614 * breakpoint.c (free_valchain): New function.
8615 (insert_bp_location, delete_breakpoint): Use free_valchain.
8616 (remove_breakpoint): Do not remove the valchain.
8617 (bpstat_stop_status): If not stopped by watchpoint, skip
8618 watchpoints when generating stop status list.
8619 * infrun.c (handle_inferior_event): Make
8620 stepped_after_stopped_by_watchpoint a global variable.
8621 * remote.c (remote_stopped_data_address): Return watch data
8622 address rather than zero if stepped_after_stopped_by_watchpoint is
8625 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8628 * configure.in: Check for curses after termcap.
8629 On osf5.*, do not check for ncurses.
8630 * configure: Regenerate.
8632 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8634 * ppcobsd-nat.c: Include "ppc-tdep.h".
8635 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8637 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8638 Fixes PR tdep/1623 and PR tdep/1624.
8640 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8642 * xmodem.h, xmodem.c: Remove files.
8643 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8645 2004-04-23 Randolph Chung <tausq@debian.org>
8647 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8648 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8649 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8650 for handling stackless frames.
8651 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8653 2004-04-23 Randolph Chung <tausq@debian.org>
8655 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8656 starts at a pc before the frame is created.
8658 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8660 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8662 2004-04-23 Jerome Guitton <guitton@gnat.com>
8664 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8665 use convert_typed_floating to get the appropriate format.
8667 2004-04-22 Randolph Chung <tausq@debian.org>
8669 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8670 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8671 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8672 (hppa_sign_extend): Add prototype.
8673 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8674 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8675 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8676 hppa targets will also use these functions.
8677 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8678 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8679 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8680 (hppa_gdbarch_init): Remove gdbarch setting of
8681 skip_trampoline_code, in_solib_call_trampoline and
8682 in_solib_return_trampoline.
8683 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8684 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8685 hppa_in_solib_call_trampoline.
8686 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8687 Moved from hppa-tdep.c.
8688 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8689 in_solib_call_trampoline and in_solib_return_trampoline.
8691 2004-04-22 Randolph Chung <tausq@debian.org>
8693 * hppa-tdep.c (hppa_debug): New variable.
8694 (find_unwind_entry, hppa_frame_cache): Add debug output.
8695 (_initialize_hppa_tdep): Add command to set debug flag.
8697 2004-04-22 Andrew Cagney <cagney@redhat.com>
8699 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8701 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8702 signal trampoline unwinder.
8703 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8705 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8707 Add OpenBSD/powerpc support.
8708 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8709 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8710 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8711 (ppc_collect_fpregset): New prototypes.
8712 * ppcobsd-nat.c: New file.
8713 * ppcobsd-tdep.c: New file.
8714 * ppcobsd-tdep.h: New file.
8715 * rs6000-tdep.c: Include "regset.h".
8716 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8717 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8719 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8720 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8721 (rs6000-tdep.o): Update dependencies.
8722 * configure.host: Add powerpc-*-openbsd.
8723 * configure.tgt: Add powerpc-*-openbsd.
8724 * config/powerpc/obsd.mh: New file.
8725 * config/powerpc/nm-obsd.h: New file.
8726 * config/powerpc/obsd.mt: New file.
8728 2004-04-22 Andrew Cagney <cagney@redhat.com>
8730 * frame.h (show_frame_info): Delete declaration.
8732 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8733 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8734 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8735 * frv-tdep.c (frv_frame_this_id): Ditto.
8736 * avr-tdep.c (avr_frame_this_id): Ditto.
8738 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8740 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8742 2004-04-22 Jim Blandy <jimb@redhat.com>
8744 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8745 register number zero.
8747 2004-04-21 Michael Snyder <msnyder@redhat.com>
8749 * mips-tdep.c (heuristic_proc_start):
8750 Warning() already prefixes "Warning: ".
8752 2004-04-21 Andrew Cagney <cagney@redhat.com>
8754 * annotate.h (deprecated_annotate_starting_hook)
8755 (deprecated_annotate_stopped_hook)
8756 (deprecated_annotate_exited_hook)
8757 (deprecated_annotate_signal_hook)
8758 (deprecated_annotate_signalled_hook): Deprecate.
8759 * tracepoint.h (deprecated_create_tracepoint_hook)
8760 (deprecated_delete_tracepoint_hook)
8761 (deprecated_modify_tracepoint_hook)
8762 (deprecated_trace_find_hook)
8763 (deprecated_trace_start_stop_hook): Deprecate.
8764 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8765 * remote.h (deprecated_target_resume_hook)
8766 (deprecated_target_wait_loop_hook): Deprecate.
8767 * gdbcore.h (deprecated_exec_file_display_hook)
8768 (deprecated_file_changed_hook): Deprecate.
8769 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8770 * defs.h (deprecated_modify_breakpoint_hook)
8771 (deprecated_command_loop_hook, deprecated_show_load_progress)
8772 (deprecated_print_frame_info_listing_hook)
8773 (deprecated_query_hook, deprecated_warning_hook)
8774 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8775 (deprecated_delete_breakpoint_hook)
8776 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8777 (deprecated_readline_begin_hook, deprecated_readline_hook)
8778 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8779 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8780 (deprecated_context_hook, deprecated_target_wait_hook)
8781 (deprecated_attach_hook, deprecated_detach_hook)
8782 (deprecated_call_command_hook, deprecated_set_hook)
8783 (deprecated_error_hook, deprecated_error_begin_hook)
8784 (deprecated_ui_load_progress_hook): Deprecate.
8785 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8786 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8787 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8788 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8789 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8790 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8791 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8792 * annotate.c, aix-thread.c: Update.
8794 2004-04-21 Andrew Cagney <cagney@redhat.com>
8796 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8797 * vaxnbsd-tdep.c: Include "gdb_string.h".
8799 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8800 (add_symbol_file_from_memory_command): #if 0 function body, call
8803 2004-04-21 Andrew Cagney <cagney@redhat.com>
8805 * gdbcore.h: Update copyright.
8806 (deprecated_add_core_fns): Rename add_core_fns.
8807 * win32-nat.c (_initialize_core_win32): Update.
8808 * sun3-nat.c (_initialize_core_sun3): Update.
8809 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8810 * rs6000-nat.c (_initialize_core_rs6000): Update.
8811 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8812 * nto-tdep.c (_initialize_nto_tdep): Update.
8813 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8814 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8815 * mips-nat.c (_initialize_core_mips): Update.
8816 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8817 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8818 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8819 * lynx-nat.c (_initialize_core_lynx): Update.
8820 * irix5-nat.c (_initialize_core_irix5): Update.
8821 * i386-interix-nat.c (_initialize_core_interix): Update.
8822 * cris-tdep.c (_initialize_cris_tdep): Update.
8823 * corelow.c (deprecated_add_core_fns): Update.
8824 * core-regset.c (_initialize_core_regset): Update.
8825 * core-aout.c (_initialize_core_aout): Update.
8826 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8827 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8828 * alpha-nat.c (_initialize_core_alpha): Update.
8830 2004-04-21 Jim Blandy <jimb@redhat.com>
8832 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8834 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8836 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8838 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8839 (read_attribute_value): Update calls to dwarf_alloc_block.
8840 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8842 (psymtab_to_symtab_1): Likewise. Clean up using
8843 free_stack_comp_unit.
8844 (add_to_cu_func_list): Use the comp_unit_obstack.
8846 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8848 * dwarf2read.c (dwarf2_flag_true_p): New function.
8849 (die_is_declaration): Use the function above. Add some comments.
8851 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8853 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8854 architecture when registering sparcnbsd_core_osabi_sniffer.
8857 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8859 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8862 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8863 * i386-tdep.c: Correct register numbering scheme comments
8865 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8866 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8867 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8868 (i386_gdb_arch_init): Likewise.
8870 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8871 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8874 * m68k-tdep.h: Tweak comments.
8875 * m68k-tdep.c: Tweak comment.
8877 2004-04-17 Randolph Chung <tausq@debian.org>
8879 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8880 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8881 (hppa_hpux_som_init_abi): Set is_elf to 0.
8882 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8883 * hppa-tdep.c (low_text_segment_address): Remove global.
8884 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8885 section offset to calculate segment address.
8886 (internalize_unwinds): Define low_text_segment_address as local and
8887 pass to record_text_segment_lowaddr for ELF targets.
8888 (hppa_gdbarch_init): Zero fill tdep structure.
8889 (hppa_dump_tdep): Print tdep structure.
8890 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8892 2004-04-17 Randolph Chung <tausq@debian.org>
8894 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8895 (hppa_gdbarch_init): Set pseudo_register_read.
8896 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8897 * regcache.c (supply_register): Remove check for
8898 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8900 2004-04-17 Randolph Chung <tausq@debian.org>
8902 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8903 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8904 (hpread_adjust_stack_address): Move to hpread.c.
8905 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8906 obj_private_struct): Move from tm-hppa.h.
8907 * hpread.c (hppa-tdep.h): Include.
8908 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8909 (hpread_read_function_type, hpread_read_doc_function_type)
8910 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8912 * pa64solib.c (hppa-tdep.h): Include.
8913 * somsolib.c (hppa-tdep.h): Include.
8914 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8915 inferior_status): Remove unused forward declarations.
8916 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8917 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8918 obj_private_struct): Move to hppa-tdep.h.
8919 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8921 2004-04-17 Randolph Chung <tausq@debian.org>
8923 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8924 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8925 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8926 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8927 Remove forward declaration and make static.
8928 (hppa_reg_struct_has_addr): Remove.
8930 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8932 * observer.sh: Move comments in sed command to first column.
8934 2004-04-16 Jason Molenda (jmolenda@apple.com)
8936 * frame.c: Minor typeo corrections in comments.
8938 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8940 * observer.c (observer_test_first_notification_function): Update
8942 (observer_test_second_notification_function): Likewise.
8943 (observer_test_third_notification_function): Likewise.
8945 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8947 From Brian Ford <ford@vss.fsi.com>:
8948 * i386-tdep.c (i386_coff_init_abi): New function.
8949 * i386-tdep.h (i386_coff_init_abi): New prototype.
8950 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8951 register number translation functions for DWARF and DWARF 2.
8953 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8955 * dwarf2read.c: Back out my previous change, it was incorrect.
8957 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8959 * dwarf2read.c: Include "hashtab.h".
8960 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8962 (struct partial_die_info): Add comments. Use bitfields to reduce
8963 memory footprint. Add scope, scope_set, has_specification,
8964 spec_offset, die_parent, die_child, and die_sibling.
8965 (peek_die_abbrev): Add prototype.
8966 (partial_read_comp_unit_head): New function, broken out from
8967 dwarf2_build_psymtabs_hard.
8968 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8969 Use partial_read_comp_unit_head. Initialize the CU and
8970 comp_unit_obstack. Update calls to read_partial_die and
8971 scan_partial_symbols. Use free_stack_comp_unit and
8973 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8974 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8975 Update calls to helper functions. Remove NAMESPACE argument.
8977 (partial_die_parent_scope, partial_die_full_name): New functions.
8978 (add_partial_symbol): Remove namespace argument. Update call to
8979 pdi_needs_namespace. Use partial_die_full_name. Handle
8980 DW_TAG_namespace. Check has_namespace_info flag.
8981 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8982 tag. Handle namespaces.
8983 (add_partial_namespace, add_partial_enumeration): Simplify.
8984 (guess_structure_name): New function, derived from
8985 add_partial_structure.
8986 (add_partial_structure): Remove.
8987 (determine_class_name): Update comment.
8988 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8989 (is_type_tag_for_partial, load_partial_dies): New functions.
8990 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8991 Record specifications instead of following them immediately.
8992 (find_partial_die_in_comp_unit, find_partial_die)
8993 (fixup_partial_die, free_stack_comp_unit)
8994 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8995 (partial_die_hash, partial_die_eq): New functions.
8996 * Makefile.in (hashtab_h): Define.
8997 (dwarf2read.o): Update dependencies.
8998 (observer_inc, observer_h): Move to the correct section.
9000 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9002 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9003 (die_is_declaration): Use the function above. Add comment.
9005 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9007 * dwarf2read.c (read_structure_scope): Identify stub types
9008 using die_is_declaration() only.
9010 2004-04-15 Roland McGrath <roland@redhat.com>
9012 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9013 argument instead of NAME.
9014 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9015 in call to symbol_file_add_with_addrs_or_offsets.
9016 (build_addr_info): New function, helper for ...
9017 (symbol_file_add_from_memory): New function.
9018 (add_symbol_file_from_memory_command): New function using that.
9019 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9020 (pre_add_symbol_hook): Add const to argument type.
9021 * symfile.h (symbol_file_add_from_memory): Declare it.
9023 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9025 * NEWS (New native configurations): Mention OpenBSD/vax.
9026 * configure.host: Add vax-*-openbsd*.
9027 * config/vax/obsd.mh: New file.
9028 * config/vax/nm-obsd.h: New file.
9030 * vax-tdep.c: Include "regset.h".
9031 (vax_supply_gregset): New function.
9032 (vax_gregset): New variable.
9033 (vax_regset_from_core_section): New function.
9034 (vax_gdbarch_init): Set regset_from_core_section.
9035 * Makefile.in (vax-tdep.o): Update dependencies.
9037 2004-04-15 Andrew Cagney <cagney@redhat.com>
9039 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9040 (observer_normal_stop_notification_stub)
9041 (observer_attach_normal_stop, observer_detach_normal_stop):
9042 Delete, replaced by #include "observer.inc".
9043 * infrun.c (normal_stop): Pass "stop_bpstat" to
9044 observer_notify_normal_stop.
9045 * Makefile.in (observer_inc): Define.
9046 (observer.o): Update dependencies.
9047 (observer.h, observer.inc): New rules.
9048 * observer.h: Delete file.
9049 * observer.sh: New file.
9051 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9053 * vax-tdep.c (vax_frame_cache): Fix typo.
9055 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9057 * NEWS (New native configurations): Mention NetBSD/vax.
9058 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9059 * config/vax/nbsdelf.mh: New file.
9060 * config/vax/nbsdaout.mh: New file.
9061 * config/vax/nm-nbsd.h: New file.
9062 * config/vax/nm-nbsdaout.h: New file.
9064 * vaxnbsd-tdep.c: New file.
9065 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9066 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9067 * config/vax/nbsd.mt: New file.
9068 * config/vax/tm-nbsd.h: New file.
9070 * Makefile.in (vaxbsd-nat.o): New dependency.
9072 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9073 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9074 struct_addr arguments. Don't push return value address.
9075 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9076 arguments to vax_store_arguments. Store return value address in
9078 (vax_store_struct_return, vax_extract_return_value)
9079 (vax_store_return_value): Remove functions.
9080 (vax_return_value): New function.
9081 (vax_gdbarch_init): Set return value. Don't set
9082 deprecated_store_struct_return, deprecated_extract_struct_return
9083 and deprecated_store_return_value.
9085 2004-04-14 Andreas Schwab <schwab@suse.de>
9087 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9089 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9091 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9093 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9094 (vax_unwind_dummy_id): New functions.
9095 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9096 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9098 (vax_fix_call_dummy): Remove function.
9099 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9100 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9101 call_dummy_location, deprecated_call_dummy_words,
9102 deprecated_sizeof_call_dummy_words,
9103 deprecated_call_dummy_breakpoint_offset,
9104 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9105 and deprecated_dummy_write_sp.
9107 2004-04-13 David Carlton <carlton@kealia.com>
9109 * MAINTAINERS: Move myself to "paper trail" section.
9111 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9113 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9115 (vax_frame_init_saved_regs): Remove function.
9116 (vax_sigtramp_saved_pc): Remove function.
9117 (vax_frame_saved_pc): Remove function.
9118 (vax_frame_args_address): Remove function.
9119 (vax_frame_num_args): Rewrite.
9120 (vax_frame_chain): Remove function.
9121 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9123 (vax_pop_frame): Likewise.
9124 (vax_saved_pc_after_call): Remove function.
9125 (struct vax_frame_cache): New structure.
9126 (vax_frame_cache): New function.
9127 (vax_frame_this_id): New function.
9128 (vax_frame_prev_register): New function.
9129 (vax_frame_unwind): New variable.
9130 (vax_frame_sniffer): New function.
9131 (vax_frame_base_address): New function.
9132 (vax_frame_args_address): New function.
9133 (vax_frame_base): New variable.
9134 (vax_unwind_pc): New function.
9135 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9136 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9137 deprecated_frame_chain, deprecated_frame_saved_pc,
9138 deprecated_frame_args_address and
9139 deprecated_frame_init_saved_regs.
9140 * Makefile.in (vax-tdep.o): Update dependencies.
9142 * vaxbsd-nat.c: New file.
9144 * vax-tdep.h: Update copyright year. Adjust comments.
9145 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9146 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9147 (vax_regnum): New enum. Replacing...
9148 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9149 (VAX_PS_REGNUM): ... these removed macros.
9150 * vax-tdep.c (vax_register_name): Remove prototype.
9151 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9152 (vax_register_byte, vax_register_raw_size,
9153 vax_register_virtual_size, vax_register_virtual_type): Remove
9155 (vax_register_type): New function.
9156 (vax_breakpoint_from_pc): Reorganize.
9157 (vax_gdbarch_init): Set register_type. Don't set
9158 deprecated_register_size, deprecated_register_bytes,
9159 deprecated_register_byte, deprecated_register_raw_size,
9160 deprecated_max_register_raw_size,
9161 deprecated_register_virtual_size,
9162 deprecated_max_register_virtual_size and
9163 deprecated_register_virtual_type. Add comment on stack direction.
9165 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9167 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9168 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9169 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9171 2004-04-10 Randolph Chung <tausq@debian.org>
9173 * MAINTAINERS (write after approval): Add myself.
9175 2004-04-07 Randolph Chung <tausq@debian.org>
9177 * hppa-tdep.c (hppa_inner_than): Remove.
9178 (is_pa_2): Remove unused static variable.
9179 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9181 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9183 * language.h (language_defn): Add new la_post_parser field.
9184 * parser-defs.h (null_post_parser): New declaration (default for
9187 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9188 insert call to that function.
9189 (parse_exp_in_context): New function, including code formerly in
9190 parse_exp_1. Calls language-dependent post-parser after
9192 (parse_expression_in_context): New exported function.
9193 (null_post_parser): New definition.
9194 * expression.h (parse_expression_in_context): Add declaration.
9196 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9197 * c-lang.c (c_language_defn): Ditto.
9198 (cplus_language_defn): Ditto.
9199 (asm_language_defn): Ditto.
9200 (minimal_language_defn): Ditto.
9201 * f-lang.c (f_language_defn): Ditto.
9202 * jv-lang.c (java_language_defn): Ditto.
9203 * language.c (unknown_language_defn): Ditto.
9204 (auto_language_defn): Ditto.
9205 (local_language_defn): Ditto.
9206 * m2-lang.c (m2_language_defn): Ditto.
9207 * scm-lang.c (scm_language_defn): Ditto.
9208 * obj-lang.c (objc_language_defn): Ditto.
9210 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9212 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9213 (amd64nbsd_mcontext_addr): New function.
9214 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9215 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9216 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9218 * corelow.c (core_xfer_partial): Fix coding standards violation.
9219 Add support for TARGET_OBJECT_WCOOKIE.
9221 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9222 deprecated_pc_in_sigtramp.
9223 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9224 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9225 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9226 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9227 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9228 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9229 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9231 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9232 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9235 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9236 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9237 (amd64_collect_fxsave): Likewise.
9239 * i386-sol2-tdep.c: Include "gdb_string.h".
9240 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9242 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9244 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9246 * i386-sol2-tdep.c: Include "solib-svr4.h".
9247 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9248 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9249 * config/i386/tm-i386sol2.h: Include :solib.h".
9250 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9251 solib-svr4.o and solib-legacy.o.
9252 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9255 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9257 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9258 whether a register is supplied by PTRACE_GETFPREGS.
9259 (store_inferior_registers): Likewise.
9260 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9261 whether a register is supplied by PT_GETFPREGS.
9262 (store_inferior_registers): Likewise.
9264 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9265 * config/i386/linux64.mt (TDEPFILES): Likewise.
9267 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9269 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9270 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9271 the program counter is in the range specified by `struct
9273 * amd64-linux-tdep.c: Include "symtab.h".
9274 (amd64_linux_pc_in_sigtramp): Remove function.
9275 (amd64_linux_sigtramp_p): New function.
9276 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9277 deprecated_pc_in_sigtramp.
9278 * amd64nbsd-tdep.c: Include "symtab.h".
9279 (amd64nbsd_sigtramp_p): New function.
9280 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9281 deprecated_pc_in_sigtramp.
9282 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9284 (amd64obsd_pc_in_sigtramp): Remove function.
9285 (amd64obsd_sigtramp_p): New function.
9286 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9287 deprecated_pc_in_sigtramp.
9288 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9289 (i386bsd_pc_ins_sigtramp): Remove prototype.
9290 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9291 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9292 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9293 the program counter is in the range specified by `struct
9295 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9296 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9297 (i386_go32_pc_in_sigtramp): Remove function.
9298 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9299 Initialize TDEP->sigtramp_p.
9300 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9301 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9302 deprecated_pc_in_sigtramp.
9303 * i386-linux-tdep.c: Adjust comments.
9304 (i386_linux_pc_in_sigtramp): Remove function.
9305 (i386_linux_sigtramp_p): New function.
9306 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9307 deprecated_pc_in_sigtramp.
9308 * i386-nto-tdep.c: Update copyright year.
9309 (i386nto_pc_in_sigtramp): Remove function.
9310 (i386nto_sigtramp_p): New function.
9311 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9313 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9314 deprecated_pc_in_sigtramp.
9315 * i386-sol2-tdep.c: Update copyright year.
9316 (i386_sol2_pc_in_sigtramp): Remove function.
9317 (i386_sol2_sigtramp_p): New function.
9318 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9319 deprecated_pc_in_sigtramp.
9320 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9321 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9322 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9323 deprecated_sigtramp_start and deprecated_sigtramp_end.
9324 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9325 (i386nbsd_pc_in_sigtramp): Remove function.
9326 (i386nbsd_sigtramp_p): New function.
9327 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9328 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9329 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9330 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9331 (i386obsd_pc_in_sigtramp): Remove function.
9332 (i386obsd_sigtramp_p): New function.
9333 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9335 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9336 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9338 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9339 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9342 * config/i386/i386aout.mt: Remove file.
9344 * configure.tgt: Remove i[34567]86-*-go32*,
9345 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9346 and i[34567]86-*-isc*. Set gdb_target to i386 for
9347 i[34567]86-*-netware* and i[34567]86-*-*.
9348 * config/i386/i386.mt: New file.
9349 * config/i386/embed.mt: Remove file.
9350 * config/i386/go32.mt: Remove file.
9351 * config/i386/i386nw.mt: Remove file.
9352 * config/i386/i386v.mt: Remove file.
9353 * config/i386/tm-go32.h: Remove file.
9355 * tui/tui-hooks.c: Include "readline/readline.h" after
9356 "gdb_curses.h" instead of before.
9357 * tui/tui-io.c: Likewise.
9359 * tui/tui.c: Fix typo in comment.
9361 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9363 2004-04-08 Andrew Cagney <cagney@redhat.com>
9365 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9366 (deprecated_exception_support_initialized): Declare.
9367 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9368 (initialize_hp_cxx_exception_support)
9369 (child_enable_exception_callback): Update.
9370 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9371 (deprecated_exception_support_initialized): Rename
9372 deprecated_exception_catchpoints_are_fragile and
9373 deprecated_exception_support_initialized.
9374 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9376 * symtab.c (deprecated_hp_som_som_object_present): Rename
9377 hp_som_som_object_present.
9378 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9379 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9380 Update. Delete extern declaration.
9381 * valops.c (hp_som_som_object_present): Ditto.
9382 * parse.c (deprecated_hp_som_som_object_present)
9383 (parse_nested_classes_for_hpacc): Ditto.
9384 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9385 * hppa-hpux-tdep.c (hp_som_som_object_present)
9386 (initialize_hp_cxx_exception_support): Ditto.
9387 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9388 * cp-valprint.c (hp_som_som_object_present)
9389 (cp_print_class_method): Ditto.
9390 * c-typeprint.c (hp_som_som_object_present):
9391 (c_type_print_base): Ditto.
9392 * c-exp.y (hp_som_som_object_present): Ditto.
9394 2004-04-08 Andrew Cagney <cagney@redhat.com>
9396 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9397 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9398 (frame_unwind_find_by_frame): Re-implement the unwind code so
9399 that it can both prepend and append sniffers. Replace
9400 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9401 * tramp-frame.c (tramp_frame_append): Use
9402 frame_unwind_prepend_unwinder.
9403 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9404 frame_unwind_register_unwinder.
9405 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9407 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9408 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9409 (mips_linux_init_abi): Update.
9411 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9413 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9414 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9417 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9419 * ia64-tdep.c (elf.h): Don't include.
9420 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9422 2004-04-07 Jason Molenda (jmolenda@apple.com)
9424 * frame.h: Typeo corrections in comments.
9426 2004-04-07 Jim Blandy <jimb@redhat.com>
9428 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9431 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9433 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9434 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9435 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9436 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9438 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9440 * config/sparc/tm-sol2.h: Update copyright year. Include
9443 * sparc-sol2-tdep.c: Update copyright year. Include
9445 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9446 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9447 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9448 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9451 2004-04-06 Andrew Cagney <cagney@redhat.com>
9453 * infttrace.c: Include "infttrace.h".
9454 * infttrace.h: Include "target.h".
9455 * Makefile.in (infttrace_h): Update.
9456 (infttrace.o): Update.
9458 2004-04-06 Andrew Cagney <cagney@redhat.com>
9460 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9461 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9462 move extern declarations from here ...
9463 * infttrace.h: ... to here.
9464 * Makefile.in (hppah-nat.o): Update dependencies.
9466 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9467 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9468 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9469 (hppa_breakpoint_from_pc): Delete.
9471 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9473 2004-04-05 Andrew Cagney <cagney@redhat.com>
9475 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9476 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9479 2004-04-06 Randolph Chung <tausq@debian.org>
9481 Committed by Andrew Cagney (mechanical change).
9482 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9483 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9484 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9485 child_enable_exception_callback, current_ex_event,
9486 null_symtab_and_line, child_get_current_exception_event,
9487 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9488 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9489 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9490 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9491 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9492 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9493 Move hpux-specific definitions ...
9494 * hppa-hpux-tdep.c: ... to here.
9496 2004-04-05 Andrew Cagney <cagney@redhat.com>
9498 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9499 skip_prologue_using_sal.
9501 2004-04-05 Andrew Cagney <cagney@redhat.com>
9503 * config/i386/tm-i386.h: Delete file.
9504 * config/i386/tm-vxworks.h: Update copyright, do not include
9506 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9507 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9508 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9509 * config/i386/ncr3000.mt (TM_FILE): Delete.
9510 * config/i386/interix.mt (TM_FILE): Delete.
9511 * config/i386/i386v.mt (TM_FILE): Delete.
9512 * config/i386/i386nw.mt (TM_FILE): Delete.
9513 * config/i386/i386gnu.mt (TM_FILE): Delete.
9514 * config/i386/i386aout.mt (TM_FILE): Delete.
9515 * config/i386/embed.mt (TM_FILE): Delete.
9517 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9519 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9520 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9521 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9522 (accg7_regnum): New constants.
9523 (last_spr_regnum, last_pseudo_regnum): Update.
9524 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9525 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9526 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9528 (frv_register_sim_regno): Update spr_map[].
9530 2004-04-04 Andrew Cagney <cagney@redhat.com>
9532 * config/mips/xm-riscos.h: Delete.
9533 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9534 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9535 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9536 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9537 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9538 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9539 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9540 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9541 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9542 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9543 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9544 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9545 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9546 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9547 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9548 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9549 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9550 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9551 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9552 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9553 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9554 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9555 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9556 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9557 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9558 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9560 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9561 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9562 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9563 * configure.host: Remove m680[01]0-sun-sunos3*,
9564 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9565 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9566 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9567 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9569 * NEWS: Mention removed systems.
9571 2004-04-04 Andrew Cagney <cagney@redhat.com>
9573 GDB 6.1 release created from 6.1 branch.
9575 2004-04-04 Andrew Cagney <cagney@redhat.com>
9577 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9578 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9579 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9581 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9582 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9583 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9585 2004-04-03 Jim Blandy <jimb@redhat.com>
9587 * MAINTAINERS: Chris Faylor has changed employers; add him to
9588 "paper trail" section, and update his E-mail address.
9590 2004-04-03 Andrew Cagney <cagney@redhat.com>
9592 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9593 generic dummy frames.
9594 * dummy-frame.c: Update copyright.
9595 (dummy_frame_sniffer): Delete check for generic dummy frames.
9597 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9598 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9599 (REG_PARM_STACK_SPACE): Delete.
9600 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9601 Inline reference to REG_PARM_STACK_SPACE.
9603 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9604 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9605 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9606 (FRAME_BASE_BEFORE_SIGTRAMP)
9607 (hppa32_hpux_frame_base_before_sigtramp)
9608 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9609 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9610 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9611 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9612 (FRAME_BASE_BEFORE_SIGTRAMP)
9613 (hppa64_hpux_frame_base_before_sigtramp)
9614 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9616 2004-04-03 Andrew Cagney <cagney@redhat.com>
9618 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9620 2004-04-02 Andrew Cagney <cagney@redhat.com>
9622 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9623 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9624 * dummy-frame.h: Delete out-of-date comments.
9625 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9626 * gdbarch.h, gdbarch.c: Re-generate.
9628 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9630 Committed by Andrew Cagney <cagney@redhat.com>.
9631 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9632 into account an instruction saving a register if we have already
9633 seen an earlier instruction saving that same register.
9635 2004-04-02 Andrew Cagney <cagney@redhat.com>
9637 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9638 * gdbarch.h, gdbarch.c: Re-generate.
9639 * frame.c (legacy_get_prev_frame): Delete references to
9640 DEPRECATED_INIT_FRAME_PC_FIRST.
9642 * infrun.c (pc_in_sigtramp): Delete function.
9643 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9646 2004-04-02 Andrew Cagney <cagney@redhat.com>
9648 * infrun.c (handle_step_into_function): Delete code conditional on
9650 (handle_inferior_event, step_over_function): Ditto.
9652 2004-04-02 Andrew Cagney <cagney@redhat.com>
9654 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9655 "previous frame inner to this frame" test.
9657 2004-04-02 Andrew Cagney <cagney@redhat.com>
9659 * frame.c (safe_frame_unwind_memory): New function.
9660 * frame.h (safe_frame_unwind_memory): Declare. Update description
9662 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9663 "next_frame". Use safe_frame_unwind_memory.
9664 (tramp_frame_sniffer): Update call to tramp_frame_start.
9666 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9668 * dwarf2read.c (dwarf2_objfile_data_key): New.
9669 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9670 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9671 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9672 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9673 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9674 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9675 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9677 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9678 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9679 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9680 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9681 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9682 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9684 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9686 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9687 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9688 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9689 (read_partial_die, read_full_die, read_indirect_string)
9690 (dwarf_decode_line_header, dwarf_decode_macros)
9691 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9692 Update uses of removed variables.
9693 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9695 (_initialize_dwarf2_read): New function.
9696 * symfile.h (dwarf2_has_info): Update prototype.
9697 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9698 * elfread.c (elf_symfile_read): Likewise.
9700 2004-04-01 Jim Blandy <jimb@redhat.com>
9702 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9703 function for register numbers on all the rs6000-derived targets.
9704 (rs6000_gdbarch_init): Don't register a separate
9705 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9706 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9709 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9712 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9714 * valarith.c: Update copyright notice.
9715 (value_add): Handle range types.
9717 (value_equal): Ditto.
9718 (value_less): Ditto.
9720 (value_complement): Ditto.
9721 (value_binop): Simplify slightly by using is_integral_type and
9722 eliminiating unnecessary COERCE_ENUMs.
9724 2004-03-31 Andrew Cagney <cagney@redhat.com>
9726 * frame.h (frame_unwind_id): Declare.
9727 * frame.c (frame_unwind_id): New function.
9728 (get_prev_frame_1): New function.
9729 (frame_debug_got_null_frame): New function.
9730 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9731 code proper to prev_frame, update description.
9732 * infrun.c (step_over_function): Use frame_unwind_id.
9734 2004-04-31 J. Brobecker <brobecker@gnat.com>
9736 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9737 (hppa64_push_dummy_call): Likewise.
9739 2004-03-30 Jim Blandy <jimb@redhat.com>
9741 From Ulrich Weigand:
9742 * utils.c (query): Do not use a va_list variable multiple times.
9744 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9746 * Makefile.in (linux_nat_h): Update dependencies.
9747 * configure.in: Check for <gnu/libc-version.h>.
9748 * configure: Regenerate.
9749 * config.in: Regenerate.
9750 * linux-nat.h: Include "target.h". Add waitstatus field to
9752 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9753 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9755 (lin_lwp_handle_extended): New function. Handle clone events.
9756 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9758 (child_wait): Handle clone events.
9759 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9760 * linux-nat.c (linux_enable_event_reporting): Turn on
9761 PTRACE_O_TRACECLONE.
9762 (linux_handle_extended_wait): Handle clone events.
9763 * thread-db.c: Include <gnu/libc-version.h>.
9764 (struct private_thread_info): Add dying flag.
9765 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9767 (attach_thread): Update comments. Handle dying threads.
9768 (detach_thread): Set the dying flag.
9769 (check_event): Always call attach_thread.
9771 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9773 * mips-tdep.c (mips_pdr_data): New.
9774 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9775 (_initialize_mips_tdep): Initialize mips_pdr_data.
9777 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9779 * minsyms.c (install_minimal_symbols): Move dropping leading
9780 char from linkage name from here...
9781 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9782 test for "__gnu_compiled*" symbols.
9784 2004-03-28 Jim Blandy <jimb@redhat.com>
9786 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9787 registers to temp register r0 and byte stores as prologue
9790 2004-03-28 Andrew Cagney <cagney@redhat.com>
9792 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9795 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9797 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9798 and switch the layout to force a display of register window.
9800 2004-02-26 J. Brobecker <brobecker@gnat.com>
9802 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9803 of the INTEGER class.
9805 2004-03-26 Jim Blandy <jimb@redhat.com>
9807 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9808 bytes long on PPC GNU/Linux.
9810 2004-03-26 David Carlton <carlton@kealia.com>
9812 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9814 2004-03-25 Andrew Cagney <cagney@redhat.com>
9816 * PROBLEMS: Add general section titles, remove references to
9819 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9821 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9823 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9824 FP_REGISTER_VIRTUAL_SIZE.
9825 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9826 of DEPRECATED_REGISTER_RAW_SIZE.
9827 (arm_register_type): Add gdbarch argument.
9828 (arm_register_raw_size, arm_register_virtual_size): Delete.
9829 (arm_register_byte, arm_extract_return_value)
9830 (arm_store_return_value, arm_get_longjmp_target): Update references
9831 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9832 (arm_gdbarch_init): Likewise. Don't set
9833 deprecated_register_raw_size, deprecated_register_virtual_size,
9834 deprecated_max_register_raw_size,
9835 deprecated_max_register_virtual_size, or
9836 deprecated_max_register_virtual_type. Do set register_type.
9837 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9838 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9839 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9840 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9841 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9842 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9844 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9845 (remote_rdp_store_register): Likewise.
9847 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9849 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9850 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9851 to after osabi initialization.
9852 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9853 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9855 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9856 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9858 (mips_linux_init_abi): Append signal trampoline unwinders.
9860 2004-03-24 Andrew Cagney <cagney@redhat.com>
9862 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9863 * tramp-frame.c: Include "gdb_assert.h".
9864 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9866 (tramp_frame_append): Validate the tramp frame's instructions.
9867 * Makefile.in (tramp-frame.o): Update dependencies.
9869 2004-03-23 Andrew Cagney <cagney@redhat.com>
9871 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9873 2004-03-23 Andrew Cagney <cagney@redhat.com>
9875 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9876 Nasser as past testsuite/lib/ (and other) maintainers.
9878 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9880 * infcmd.c (attach_command): Reread symbols if we already have
9883 2004-03-23 Andrew Cagney <cagney@redhat.com>
9885 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9887 2004-03-23 Andrew Cagney <cagney@redhat.com>
9889 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9890 * gdbarch.h, gdbarch.c: Re-generate.
9891 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9892 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9893 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9894 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9895 (DEPRECATED_SIGTRAMP_START): Update.
9896 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9897 (DEPRECATED_SIGTRAMP_START): Update.
9898 * blockframe.c (find_pc_sect_partial_function): Update.
9899 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9901 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9903 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9906 2004-03-23 Andrew Cagney <cagney@redhat.com>
9908 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9909 predicate, deprecate.
9910 * gdbarch.h, gdbarch.c: Re-generate.
9911 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9912 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9913 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9914 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9915 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9916 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9917 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9918 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9919 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9920 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9921 * blockframe.c (find_pc_partial_function): Update.
9922 * breakpoint.c (bpstat_what): Update.
9923 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9924 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9925 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9926 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9927 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9928 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9929 * i386-nto-tdep.c (i386nto_init_abi): Update.
9930 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9931 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9932 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9933 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9934 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9935 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9936 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9937 * infrun.c (pc_in_sigtramp): Update.
9938 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9939 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9940 * mips-tdep.c (mips_gdbarch_init): Update.
9941 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9942 * ppc-linux-tdep.c: Update comment.
9943 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9944 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9945 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9946 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9947 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9948 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9949 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9950 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9951 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9952 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9954 2004-03-23 Andrew Cagney <cagney@redhat.com>
9956 * tramp-frame.h, tramp-frame.h: New files.
9957 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9958 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9960 * Makefile.in: Update all dependencies.
9962 2004-03-23 Andrew Cagney <cagney@redhat.com>
9964 * Makefile.in (trad_frame_h): Add $(frame_h).
9965 * trad-frame.h: Update copyright. Include "frame.h".
9966 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9967 (trad_frame_set_id, trad_frame_get_id): Declare.
9968 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9969 * trad-frame.c: Update copyright.
9970 (struct trad_frame_cache): Define.
9971 (trad_frame_cache_zalloc): New function.
9972 (trad_frame_set_id, trad_frame_get_id): New functions.
9973 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9975 2004-03-22 Andrew Cagney <cagney@redhat.com>
9977 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9978 s390_pltstub_unwind_cache.
9979 (s390_stub_frame_unwind_cache): Rename
9980 s390_pltstub_frame_unwind_cache.
9981 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9982 (s390_stub_frame_prev_register): Rename
9983 s390_pltstub_frame_prev_register.
9984 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9985 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9987 From Ulrich Weigand:
9988 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9989 pointer calls like PLT calls.
9991 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9993 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9994 PC rather than the partial function start address. Use the start
9995 address to sanity check the found PDR.
9997 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9999 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10000 linux_handle_extended_wait.
10002 2004-03-22 Andrew Cagney <cagney@redhat.com>
10004 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10007 * frame.h (generic_pop_current_frame): Delete declaration.
10008 (deprecate_pop_dummy_frame): Deprecate
10009 generic_pop_dummy_frame.
10010 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10011 (generic_pop_current_frame): Delete function.
10012 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10013 generic_pop_current_frame.
10014 * v850-tdep.c (v850_pop_frame): Update.
10015 * mcore-tdep.c (mcore_pop_frame): Update.
10016 * sh64-tdep.c (sh64_pop_frame): Update.
10017 * h8300-tdep.c (h8300_pop_frame): Update.
10019 2004-03-22 Andrew Cagney <cagney@redhat.com>
10021 * frame.h (deprecated_pc_in_call_dummy): Rename
10022 generic_pc_in_call_dummy.
10023 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10024 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10025 generic_pc_in_call_dummy.
10026 (pc_in_dummy_frame): Make static.
10027 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10028 * gdbarch.h, gdbarch.c: Re-generate.
10029 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10030 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10031 (legacy_get_prev_frame): Ditto.
10032 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10035 2004-03-21 Andrew Cagney <cagney@redhat.com>
10037 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10038 declaration and out-of-date comment.
10039 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10041 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10042 deprecated_pc_in_call_dummy.
10044 * infrun.c (handle_inferior_event): For non legacy frames, use the
10045 frame ID and frame type to identify a signal trampoline. Update
10048 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10050 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10051 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10053 2004-03-21 Andrew Cagney <cagney@redhat.com>
10055 * frame-unwind.h: Update copyright.
10056 (struct frame_data): Add opaque declaration.
10057 (frame_sniffer_ftype): Declare.
10058 (struct frame_unwind): Add "unwind_data" and "sniffer".
10059 (frame_unwind_register_unwinder): Declare.
10060 (frame_unwind_find_by_frame): Add parameter "this_cache".
10061 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10062 (legacy_get_prev_frame, legacy_get_prev_frame)
10063 (get_frame_type): Pass the prologue_cache to
10064 frame_unwind_find_by_frame.
10065 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10067 (frame_unwind_register_unwinder): New function.
10068 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10070 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10072 * bcache.c (print_percentage): Use floating point to avoid
10073 incorrect results when portion*100 overflows.
10075 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10077 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10078 (ppc_linux_init_extra_frame_info)
10079 (ppc_linux_frameless_function_invocation)
10080 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10081 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10082 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10083 (rs6000_frame_chain): Delete declarations.
10084 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10085 (ppc_linux_init_extra_frame_info)
10086 (ppc_linux_frameless_function_invocation)
10087 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10088 (ppc_linux_init_abi): Remove registration of above deleted functions.
10089 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10090 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10091 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10092 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10093 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10094 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10095 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10096 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10097 frame management for all OSABIs.
10099 2004-03-19 Andrew Cagney <cagney@redhat.com>
10101 Committed by Kevin Buettner <kevinb@redhat.com>.
10103 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10105 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10106 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10107 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10108 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10109 unwinders. #ifdef legacy frame code.
10110 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10112 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10113 (struct rs6000_frame_cache, rs6000_frame_cache)
10114 (rs6000_frame_this_id, rs6000_frame_prev_register)
10115 (rs6000_frame_sniffer, rs6000_frame_unwind)
10116 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10117 (rs6000_frame_base): Implement a traditional frame unwinder.
10118 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10121 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10123 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10124 breakpoint address for watchpoints or the catch eventpoints.
10125 Add new paramter ``bptype''. Adjust all callers.
10127 2004-03-19 Andrew Cagney <cagney@redhat.com>
10129 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10131 * PROBLEMS: Delete note that ARM does not use frame code, problem
10134 2004-03-18 Andrew Cagney <cagney@redhat.com>
10136 * stack.c (return_command): Delete code wrapped in #ifdef
10137 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10139 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10141 2004-03-18 Andrew Cagney <cagney@redhat.com>
10143 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10144 DEPRECATED_IN_SIGTRAMP.
10145 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10146 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10147 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10148 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10149 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10150 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10151 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10152 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10153 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10154 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10156 2004-03-18 Andrew Cagney <cagney@redhat.com>
10158 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10159 (struct frame_base_table_entry): Define.
10160 (struct frame_base_table): Re-implement as a linked list.
10161 (frame_base_init): Re-implement.
10162 (frame_base_table): Delete function.
10163 (append_predicate): Delete function.
10164 (frame_base_append_sniffer): Update.
10165 (frame_base_set_default): Update.
10166 (frame_base_find_by_frame): Update.
10167 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10168 * Makefile.in (frame-base.o): Update dependencies.
10170 2004-03-17 Andrew Cagney <cagney@redhat.com>
10172 * frame.c (legacy_get_prev_frame): Pass correct frame to
10173 frame_unwind_find_by_frame.
10175 2004-03-17 David Carlton <carlton@kealia.com>
10177 * NEWS: Mention C++ nested types and namespaces
10179 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10181 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10182 and "Regressions since gdb 5.3.". Add known regressions since
10185 2004-03-16 David Carlton <carlton@kealia.com>
10187 * dwarf2read.c (process_structure_scope): Process children even
10188 when we're a declaration.
10190 2004-03-16 Andrew Cagney <cagney@redhat.com>
10192 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10193 * blockframe.c (find_pc_partial_function)
10194 (find_pc_sect_partial_function): Merge into a single
10195 find_pc_partial_function.
10197 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10199 * i386bsd-nat.c: s/regno/regnum/g.
10200 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10202 (store_inferior_registers): Likewise.
10204 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10206 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10207 of i387_fill_fsave.
10208 (store_inferior_registers): Call i387_collect_fsave and
10209 i387_collect_fxsave instead of i387_fill_fsave and
10212 2004-03-15 Andrew Cagney <cagney@redhat.com>
10214 * Makefile.in (frame-unwind.o): Update dependencies.
10215 * frame-unwind.c: Include "gdb_obstack.h".
10216 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10218 (append_predicate): Delete function.
10219 (struct frame_unwind_table_entry): New structure.
10220 (struct frame_unwind_table): Replace "sniffer" with "head" and
10222 (frame_unwind_append_sniffer): Update.
10223 (frame_unwind_find_by_frame): Update.
10224 (_initialize_frame_unwind): Registe frame_unwind_init using
10225 gdbarch_data_register_pre_init.
10227 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10229 * i386bsd-nat.c: Update copyright year.
10230 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10231 define unconditionally.
10233 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10235 * i387-tdep.h (i387_collect_fsave): New prototype.
10236 * i387-tdep.c (i387_collect_fsave): New function containing most
10237 of the code from i387_fill_fsave.
10238 (i387_fill_fsave): Call i387_collect_fsave.
10240 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10242 * i386-linux-tdep.c: Update copyright year.
10243 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10244 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10245 svr4_ilp32_link_map_offsets instead of
10246 i386_linux_svr4_fetch_link_map_offsets.
10248 2004-03-15 David Carlton <carlton@kealia.com>
10250 Fix for PR c++/1553:
10251 * dwarf2read.c (read_structure_type): Determine type name by
10252 calling determine_class_name.
10253 (determine_class_name): New.
10254 (determine_prefix): Look at TYPE_TAG_NAME and call
10255 determine_class_name when appropriate.
10256 (determine_prefix_aux, class_name): Delete.
10257 (read_namespace): Set die->type.
10259 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10261 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10262 unused macro definition. The definition in target.h (or perhaps
10263 elsewhere) takes precedence.
10265 2004-03-15 Andrew Cagney <cagney@redhat.com>
10267 * ppc-tdep.h: Update copyright.
10268 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10269 function signatures to match "regsets.h".
10270 * ppc-linux-tdep.c: Include "regset.h".
10271 (ELF_GREGSET_SIZE): Delete.
10272 (right_supply_register): New function.
10273 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10274 using right_supply_register.
10275 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10277 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10278 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10279 (_initialize_ppc_linux_tdep): Do not register
10280 ppc_linux_regset_core_fns.
10281 (ppc_linux_regset_from_core_section): Replace
10282 fetch_core_registers.
10283 (ppc_linux_regset_core_fns): Delete.
10284 * ppc-linux-nat.c: (right_fill_reg): New function.
10285 (supply_gregset): Update call to ppc_linux_supply_gregset.
10286 (fill_gregset): Clear the register set, use right_fill_reg.
10287 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10288 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10290 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10293 2004-03-15 Andrew Cagney <cagney@redhat.com>
10295 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10296 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10297 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10298 and register_gdbarch_data.
10299 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10300 (struct gdbarch_data): Replace "init" by "pre_init" and
10302 * gdbarch.h, gdbarch.c: Re-generate.
10303 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10304 with"obstack", use OBSTACK_ZALLOC.
10305 (dwarf2_frame_ops): Delete.
10306 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10307 (dwarf2_frame_init_reg): Use gdbarch_data.
10308 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10309 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10310 (_initialize_svr4_solib): Update.
10311 * user-regs.c (_initialize_user_regs): Update.
10312 * reggroups.c (_initialize_reggroup): Update.
10313 * regcache.c (_initialize_regcache): Update.
10314 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10315 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10316 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10317 * frame-unwind.c (_initialize_frame_unwind): Update.
10318 * frame-base.c (_initialize_frame_base): Update.
10319 * user-regs.c (user_reg_add): Update.
10320 * reggroups.c (reggroup_add): Update.
10321 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10322 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10323 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10324 * frame-base.c (frame_base_table): Update.
10325 * remote.c (_initialize_remote): Update.
10326 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10328 2004-03-15 Andrew Cagney <cagney@redhat.com>
10330 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10332 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10334 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10335 * frv-linux-tdep.c: New file.
10336 * frv-tdep.c (struct gdbarch_tdep): Add new field
10337 ``sigcontext_reg_addr''.
10338 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10339 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10340 (frv_sigramp_frame_sniffer): New functions.
10341 (frv_sigtramp_frame_unwind): New static global.
10342 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10344 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10345 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10347 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10349 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10350 but not via a call to error(), when unable to read memory.
10352 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10354 * frv-tdep.c (frv_call_dummy_words): Delete.
10355 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10357 2004-03-15 Andrew Cagney <cagney@redhat.com>
10359 * infrun.c (handle_step_into_function, step_over_function): Only
10360 update and use STEP_FRAME_ID when the system is using legacy
10361 frames. Update comments.
10363 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10365 * amd64-linux-tdep.h: Remove file.
10366 * amd64-linux-tdep.c: Don't include "inferior.h" and
10367 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10368 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10369 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10370 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10371 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10373 (user_to_gdb_regmap): Remove variable.
10374 (amd64_linux_gregset_reg_offset): New variable.
10375 (amd64_core_fns): Remove variable.
10376 (fetch_core_registers): Remove function.
10377 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10379 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10380 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10381 * Makefile.in (amd64_linux_tdep_h): Remove.
10382 (amd64-linux-nat.o): Update dependencies.
10383 (amd64-linux-tdep.o): Update dependencies.
10385 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10386 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10388 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10390 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10391 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10393 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10395 * dwarf2read.c (read_structure_type): Rename from
10396 read_structure_scope. Don't create a symbol or call process_die.
10397 Return immediately if die->type is set. Call read_type_die before
10398 dwarf2_add_member_fn.
10399 (process_structure_scope): New function.
10400 (read_enumeration_type, process_enumeration_scope): New functions,
10401 broken out from read_enumeration. Don't create the enumeration
10402 type if it has already been created.
10403 (read_enumeration): Removed.
10404 (process_die): Call read_structure_type, process_structure_scope,
10405 read_enumeration_type, and process_enumeration_scope. Just call
10406 new_symbol for base and subrange types. Add a comment about other
10408 (read_type_die): Call read_enumeration_type.
10409 (add_partial_structure, new_symbol): Update comments.
10411 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10413 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10415 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10417 * tui/tui-win.h (tui_get_cmd_list): Declare.
10418 * tui/tui-win.c (tui_command): New function.
10419 (tui_get_cmd_list): New function.
10420 (_initialize_tui_win): Moved initialization of tui command in
10423 * tui/tui-data.c (init_content_element): Setup new data members.
10424 (init_win_info): Likewise.
10425 (free_content_elements): Free it.
10426 * tui/tui-data.h (struct tui_data_element): Store the register
10428 (struct tui_data_info): Keep the current register group.
10430 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10432 * tui/tui-regs.h (tui_show_registers): Update prototype.
10433 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10434 (tui_resize_all): No need to calculate anything for register window.
10435 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10436 (tui_set_register_element, tui_set_general_regs_content): Remove.
10437 (tui_set_special_regs_content): Remove.
10438 (tui_set_general_and_special_regs_content): Remove.
10439 (tui_set_float_regs_content): Remove.
10440 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10441 (tui_set_regs_content): Remove.
10442 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10443 (tui_v_show_registers_command_support): Remove.
10444 (tui_show_registers): Use a reggroup to specify the registers to show.
10445 (tui_show_register_group): New function.
10446 (tui_display_registers_from): Compute the layout of register window
10447 and refresh with new API; be sure to delete old register windows.
10448 (tui_check_register_values): Update to use tui_get_register and
10450 (tui_display_register): Just refresh the register window part.
10451 (tui_register_format): Format registers and save in tui_data_element.
10452 (tui_get_register): New to combine tui_reg_value_has_changed and
10453 tui_get_register_raw_value; fix to use the new gdb API.
10454 (tui_show_float_command): Renamed tui_reg_float_command.
10455 (tui_show_general_command): Renamed tui_reg_general_command.
10456 (tui_show_special_command): Renamed tui_reg_system_command.
10457 (_initialize_tui_regs): Remove unused commands.
10459 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10461 * NEWS (New native configurations): Mention OpenBSD/amd64.
10463 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10464 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10466 * config/i386/nm-fbsd64.h: Likewise.
10467 * config/i386/nm-obsd.h: Likewise.
10468 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10469 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10471 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10473 * frv-tdep.c (set_variant_scratch_registers): New function.
10474 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10477 From Richard Sandiford <rsandifo@redhat.com>:
10478 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10480 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10482 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10483 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10484 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10485 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10486 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10487 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10488 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10489 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10490 definitions from frv-tdep.c to frv-tdep.h.
10492 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10494 Add shared library support for FR-V FDPIC ABI:
10495 * Makefile.in (solib-frv.o): Add dependencies.
10496 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10498 (frv_push_dummy_call): Add support for FDPIC ABI.
10499 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10501 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10502 (frv_fdpic_find_canonical_descriptor): Declare.
10503 * solib-frv.c: New file.
10504 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10505 * config/frv/tm-frv.h (solib.h): Include.
10507 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10509 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10510 (frv-tdep.o): Update dependencies.
10511 * frv-tdep.h: New file.
10512 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10513 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10515 (struct gdbarch_tdep): Add new member ``frv_abi''.
10516 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10518 (new_variant): Set ``frv_abi'' field.
10519 (gdb_arch_init): Detect FDPIC executables.
10521 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10523 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10526 2004-03-11 Andrew Cagney <cagney@redhat.com>
10528 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10530 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10532 * solist.h (master_so_list): New function.
10533 * solib.c (master_so_list): Likewise.
10534 * solib-svr4.c (enable_break): Iterate over so_list entries
10535 obtained from master list instead of entries obtained directly
10536 via svr4_current_sos().
10538 2004-03-10 Ben Elliston <bje@gnu.org>
10540 * MAINTAINERS: Update my mail address.
10542 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10544 * remote-m32r-sdi.c: Support hardware watchpoint.
10546 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10548 * user-regs.c: Update copyright years.
10549 (struct user_regs): Rename to gdb_user_regs.
10550 (append_user_reg, builtin_user_regs, user_regs_init)
10551 (user_reg_add, user_reg_map_name_to_regnum)
10552 (usernum_to_user_reg): Update.
10554 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10556 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10557 (skip_children): New functions.
10558 (locate_pdi_sibling): Call skip_children.
10560 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10562 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10563 * gdbtypes.c (check_typedef): Update comments.
10565 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10567 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10568 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10569 pointer. Update comment about comp_unit_head.
10570 (struct abbrev_info): Shorten two int flags.
10571 (dwarf_alloc_abbrev): Take a CU argument.
10572 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10573 each time through the loop. Update cleanup argument.
10574 (psymtab_to_symtab_1): Update cleanup call.
10575 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10577 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10578 Just call obstack_free and clear the pointer.
10580 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10582 * infrun.c (handle_inferior_event): Remove short-circuit code for
10583 events in a different thread.
10585 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10587 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10588 print the whole transfer.
10589 (initialize_targets): Update description of "set debug target".
10591 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10593 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10595 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10597 * MAINTAINERS (write after approval): Add myself.
10599 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10601 * sh-tdep.c (sh_print_registers_info): Use for loop.
10602 Don't skip multiple registers when a float register is encountered.
10604 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10607 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10608 to official SH documentation.
10610 2004-03-07 Andrew Cagney <cagney@redhat.com>
10612 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10615 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10617 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10618 (arm_get_next_pc): Handle BX and BLX.
10620 2004-03-07 Andrew Cagney <cagney@redhat.com>
10622 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10623 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10625 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10626 (hppa_target_read_fp): Delete.
10627 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10628 register_virtual_size, max_register_raw_size,
10629 max_register_virtual_size, register_byte, register_size,
10630 target_read_fp, fp_regnum, and register_bytes. Set register_type
10631 instead of register_virtual_type.
10632 (hppa32_register_type, hppa64_register_type): Replace
10633 hppa32_register_virtual_type and hppa64_register_virtual_type.
10634 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10635 (HPPA_FP_REGNUM): Define.
10637 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10639 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10640 (pa_do_registers_info): Delete.
10641 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10642 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10643 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10645 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10646 GDB_TARGET_IS_HPPA code.
10647 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10648 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10649 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10650 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10651 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10652 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10653 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10654 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10655 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10656 (hppa_frameless_function_invocation, hppa64_store_return_value)
10657 (hppa_store_struct_return, hppa64_extract_return_value)
10658 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10659 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10660 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10661 (find_proc_framesize, deposit_21, restore_pc_queue)
10662 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10663 (rp_saved, pc_in_linker_stub): Delete.
10665 Unconditionally enable 64-bit frame and ABI code.
10666 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10667 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10668 push_dummy_frame, fix_call_dummy, push_arguments,
10669 call_dummy_location, extract_return_value, use_struct_convention,
10670 store_return_value, store_struct_return, saved_pc_after_call,
10671 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10672 frame_chain, frame_chain_valid, frameless_function_invocation,
10673 frame_saved_pc, and pop_frame.
10675 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10676 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10677 (hppa_gdbarch_init): Do not set PC_REGNUM.
10679 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10681 * config/alpha/tm-fbsd.h: Remove file.
10682 * config/alpha/fbsd.mt: Tweak comment.
10683 (TM_FILE): Set to tm-alpha.h.
10685 2004-03-05 Andrew Cagney <cagney@redhat.com>
10687 * infrun.c (step_over_function): When non-legacy code, and no
10688 step_frame_id, use the unwinder to get the caller's frame ID.
10690 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10692 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10693 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10694 bfd_arch_unknown. Adjust comment.
10696 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10697 * i386obsd-tdep.c: Correct spelling in comment.
10698 * i386nbsd-tdep.c: Correct spelling in comment.
10699 * sparc-tdep.c: Correct spelling in comments.
10701 2004-03-05 David Carlton <carlton@kealia.com>
10703 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10706 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10708 * sparc-tdep.c: Fix typo in comment.
10710 2004-03-04 J. Brobecker <brobecker@gnat.com>
10712 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10714 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10716 * dwarf2read.c: Add comment describing memory lifetimes.
10717 (struct dwarf2_pinfo): Update comment.
10718 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10719 (read_enumeration, new_symbol): Don't use obsavestring.
10721 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10723 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10724 instead of amd64_fill_fxsave.
10725 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10726 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10728 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10729 Reorganize code a bit.
10731 2004-03-04 Orjan Friberg <orjanf@axis.com>
10733 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10734 when the frame pointer is pushed. Don't set the frame pointer's
10735 address on the stack unless it's actually located there.
10736 Set the SRP's address on the stack correctly when the PC is still in
10738 (cris_return_value): New function.
10739 (cris_gdbarch_init): Clear deprecated store_return_value,
10740 extract_return_value.
10742 2004-03-02 Jim Blandy <jimb@redhat.com>
10744 * stabsread.c (reg_value_complaint): The maximum register number
10745 is one less than the number of registers.
10747 2004-03-02 Andrew Cagney <cagney@redhat.com>
10749 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10750 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10751 trailing comma and redundant assignment of I386_ST0_REGNUM.
10752 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10753 32-bit segment registers.
10755 2004-03-01 Andrew Cagney <cagney@redhat.com>
10757 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10758 use frame_relative_level and get_next_frame.
10760 2004-02-29 Andrew Cagney <cagney@redhat.com>
10762 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10763 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10764 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10767 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10769 * inflow.c (terminal_inferior): Don't give up the terminal if we
10770 previously couldn't get the inferior's terminal state.
10772 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10774 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10777 2004-02-28 Andrew Cagney <cagney@redhat.com>
10779 * NEWS: Refer to GDB 6.1.
10780 * README: Refer to GDB 6.1.
10781 * PROBLEMS: Refer to GDB 6.1.
10783 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10785 * thread-db.c (disable_thread_signals): Remove unused function.
10787 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10789 * amd64-nat.c: Include "gdb_string.h".
10790 (amd64_collect_native_gregset): Zero-extend the 32-bit
10791 general-purpose registers and %eip.
10793 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10794 * amd64-tdep.c (amd64_collect_fxsave): New function.
10795 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10797 * i387-tdep.h: Update copyright year.
10798 (i387_collect_fxsave): New prototype.
10799 * i387-tdep.c: Update copyright year.
10800 (i387_collect_fxsave): New function containing most of the code
10801 from i387_fill_fxsave.
10802 (i387_fill_fxsave): Call i387_collect_fxsave.
10804 2004-02-28 Andrew Cagney <cagney@redhat.com>
10806 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10807 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10809 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10811 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10813 2004-02-28 Andrew Cagney <cagney@redhat.com>
10815 * utils.c: Use "", instead of <>, to include readline.
10816 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10817 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10818 * source.c, solib.c, exec.c, event-top.c: Ditto.
10819 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10820 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10821 * Makefile.in: Update all dependencies.
10822 (readline_tilde_h, readline_history_h): Define.
10823 (readline_headers): Delete.
10825 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10827 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10828 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10829 "config/i386/tm-lx64.h".
10831 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10832 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10833 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10835 2004-02-28 Andrew Cagney <cagney@redhat.com>
10837 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10839 * breakpoint.c (_initialize_breakpoint): Use
10840 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10841 Add help to show command.
10843 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10845 * i386-nat.c: Reformat to be closer to coding standards.
10846 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10847 `retval'. Make variables `align' and `size' local to while-loop.
10848 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10849 (_initialize_i386_nat): New prototype.
10851 * tui/tui.c: Include <readline/readline.h> instead of
10852 "readline/readline.h". Include it after <term.h> and
10855 2004-02-27 Andrew Cagney <cagney@redhat.com>
10857 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10858 the new frame unwind code.
10859 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10860 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10863 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10864 "return_value" and "push_dummy_call".
10865 (hppa32_use_struct_convention): Delete unused function.
10866 (hppa32_store_return_value): Delete unused function.
10867 (hppa32_extract_return_value): Delete unused function.
10868 (hppa32_stack_align): Delete function.
10870 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10872 * coffread.c (enter_linenos): Don't let rawptr reference memory
10873 outside linetab[]'s limits.
10875 2004-02-27 Andrew Cagney <cagney@redhat.com>
10877 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10878 inferior stack space - the stack needs to grow upwards.
10879 (hppa32_frame_align): New function.
10880 (hppa64_frame_align): Replace hppa_frame_align.
10881 (hppa_gdbarch_init): Update.
10883 2004-02-26 Orjan Friberg <orjanf@axis.com>
10885 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10886 (dwarf2-frame.h): Include.
10887 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10888 Remove static variables related to ABI setting.
10889 (struct gdbarch_tdep): Remove cris_abi member.
10890 (struct frame_extra_info): Remove.
10891 (cris_unwind_cache, stack_item): New structs.
10892 (cris_frame_unwind, cris_frame_base): New variables.
10893 (push_stack_item, pop_stack_item)
10894 (cris_frame_unwind_cache, cris_frame_this_id)
10895 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10896 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10897 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10898 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10899 (cris_reg_struct_has_addr): New functions.
10900 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10901 (cris_frame_saved_pc, cris_saved_pc_after_call,
10902 (cris_store_struct_return, cris_frameless_function_invocation)
10903 (cris_pop_frame, cris_skip_prologue_main)
10904 (cris_abi_original_store_return_value)
10905 (cris_abi_v2_store_return_value)
10906 (cris_abi_original_extract_return_value)
10907 (cris_abi_v2_extract_return_value)
10908 (cris_abi_original_reg_struct_has_addr)
10909 (cris_abi_v2_reg_struct_has_addr)
10910 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10911 (cris_push_return_address, cris_abi_update): Remove.
10912 (_initialize_cris_tdep): Remove ABI command.
10913 (cris_dump_tdep): Ditto.
10914 (cris_gdbarch_init): Remove ABI command.
10915 Set store_return_value, extract_return_value, push_dummy_code,
10916 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10917 frame_unwind_append_sniffer, frame_base_set_default.
10918 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10919 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10920 sizeof_call_dummy_words, get_saved_register, push_return_address,
10921 pop_frame, store_struct_return, frame_init_saved_regs,
10922 init_extra_frame_info, frameless_function_invocation, frame_chain,
10923 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10926 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10928 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10929 * valprint.c (print_hex_chars): Change from static to external.
10930 (print_char_chars): New function.
10931 * printcmd.c (print_scalar_formatted): For integer and enum types
10932 that are longer than LONGEST, perform processing via appropriate
10933 print_*_chars routines.
10935 2004-02-26 Andrew Cagney <cagney@redhat.com>
10937 * Makefile.in: Update dependencies.
10938 Changes from Ulrich Weigand,
10939 * s390-tdep.c: Include "dwarf2-frame.h".
10940 (s390_dwarf2_frame_init_reg): New function.
10941 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10942 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10944 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10946 * breakpoint.c (pending_break_support): New setting variable.
10947 (break_command_1): Account for pending_break_support setting
10948 when creating pending breakpoints.
10949 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10950 (_initialize_breakpoint): Add "set breakpoint pending" and
10951 "show breakpoint pending" commands.
10953 2004-02-26 Andrew Cagney <cagney@redhat.com>
10956 * charset.c (backslashable, backslashed, represented): Remove 'e'
10957 from list of escaped characters, not part of ISO-C.
10959 2004-02-25 J. Brobecker <brobecker@gnat.com>
10961 From Peter Schauer <schauer@pdf.de>:
10962 * tui/tui.c: Move system header includes after local includes.
10963 Fixes a build failure on solaris systems.
10965 2004-02-25 J. Brobecker <brobecker@gnat.com>
10967 * configure.in: Refine the previous change.
10968 * configure: Regenerate.
10970 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10972 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10973 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10974 "amd64-tdep.h" instead of "x86-64-tdep.h".
10975 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10976 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10977 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10978 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10979 and "x86-64-tdep.c".
10980 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10981 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10982 and "x86-64-tdep.c".
10983 * amd64bsd-nat.c: Update copyright year.
10984 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10985 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10987 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10989 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10991 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10993 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10995 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10997 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10998 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10999 * Makefile.in (amd64_linux_tdep_h): Renamed from
11000 x86_64_linux_tdep_h.
11001 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11002 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11003 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11004 (amd64obsd-tdep.o): Update dependencies.
11005 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11007 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11009 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11010 amd64-linux-nat.c amd64-linux-tdep.c.
11011 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11012 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11013 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11014 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11015 amd64-tdep.o and amd64-linux-tdep.o.
11016 (TM_FILE): Set to tm-linux64.h.
11017 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11018 (NAT_FILE): Set to nm-linux64.h.
11019 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11020 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11022 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11024 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11027 2004-02-25 Roland McGrath <roland@redhat.com>
11029 * remote.c (remote_protocol_qPart_auxv): New variable.
11030 (init_all_packet_configs): Initialize it.
11031 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11032 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11033 (show_remote_cmd): Call it.
11034 (_initialize_remote): Initialize commands.
11035 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11036 service TARGET_OBJECT_AUXV requests.
11038 2004-02-25 J. Brobecker <brobecker@gnat.com>
11040 * configure.in: Make sure that the wborder function is available.
11041 Otherwise, search for it in the cur_colr library.
11042 * configure: Regenerate.
11044 2004-02-25 Andrew Cagney <cagney@redhat.com>
11046 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11048 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11050 * config/i386/tm-x86-64linux.h: Tweak comments.
11052 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11054 * MAINTAINERS: Add self to write-after-approval list.
11056 2004-02-25 Andrew Cagney <cagney@redhat.com>
11058 PR cli/1566. Problem found, and fix suggested by David Allan.
11059 * cli/cli-script.c (execute_control_command): Unconditionally
11060 install a cleanup. Default "ret" to "invalid_control". Use
11061 "break" instead of "return" to escape from the switch.
11063 2004-02-24 J. Brobecker <brobecker@gnat.com>
11065 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11066 with the lines macro defined in term.h on AiX.
11067 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11068 a collision with the label_width macro defined in term.h on AiX.
11070 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11072 Committed by Kevin Buettner <kevinb@redhat.com>.
11074 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11075 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11076 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11077 instead of ia64_write_pc().
11078 * ia64-linux-tdep.c (regcache.h): Include.
11079 (ia64_linux_write_pc): New function.
11081 2004-02-23 Roland McGrath <roland@redhat.com>
11083 * auxv.c (info_auxv_command): Fix typos in error messages.
11085 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11087 * x86-64-tdep.h: Tweak comment.
11088 (enum amd64_regnum): New.
11089 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11090 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11091 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11092 (X86_64_XMM1_REGNUM): Removed.
11093 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11094 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11095 prototypes for renamed functions.
11096 * x86-64-tdep.c: Fix typo.
11097 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11099 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11100 Use constants from `enum amd64_regnum' for register numbers.
11101 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11102 (amd64_analyze_prologue, amd64_frame_cache,
11103 amd64_sigtramp_frame_cache): Use constants from `enum
11104 amd64_regnum' for register numbers.
11105 (amd64_supply_fpregset): Adjust for renamed functions.
11106 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11107 `enum amd64_regnum' for register numbers.
11108 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11109 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11110 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11111 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11112 (amd64_linux_fill_gregset): Adjust for renamed macros.
11113 (fetch_core_registers): Adjust for renamed functions.
11114 (amd64_linux_init_abi): Adjust for renamed functions.
11115 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11117 * amd64-nat.c: Adjust for renamed macros.
11118 * amd64bsd-nat.c (fetch_inferior_registers)
11119 (store_inferior_registers): Use constants from `enum amd64_regnum'
11120 for register numbers. Adjust for renamed variables.
11121 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11123 (_initialize_amd64fbsd_nat): Use constants from `enum
11124 amd64_regnum' for register numbers.
11125 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11126 `enum amd64_regnum' for register numbers.
11127 (amd64fbsd_init_abi): Adjust for renamed functions.
11128 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11129 `enum amd64_regnum' for register numbers.
11130 (amd64nbsd_init_abi): Adjust for renamed functions.
11131 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11132 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11133 `enum amd64_regnum' for register numbers.
11134 (amd64obsd_init_abi): Adjust for renamed functions.
11135 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11137 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11139 * breakpoint.c (print_one_breakpoint): Do not output spaces
11140 after printing <PENDING> for a pending breakpoint.
11142 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11144 * printcmd.c (print_scalar_formatted): Initialize val_long
11145 to remove compiler warning message.
11147 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11149 * defs.h (nquery, yquery): New prototypes.
11150 * breakpoint.c (break_command_1): Use new nquery interface.
11151 * utils.c (defaulted_query, nquery, yquery): New functions.
11153 2004-02-23 Andrew Cagney <cagney@redhat.com>
11155 * hppa-tdep.c (hppa_frame_align): New function.
11156 (hppa32_push_dummy_call): New function.
11157 (hppa64_push_dummy_call): New function.
11158 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11161 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11162 FIX_CALL_DUMMY when push_dummy_call is available.
11163 (call_function_by_hand, push_dummy_code): Ditto.
11165 2004-02-22 Andrew Cagney <cagney@redhat.com>
11167 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11168 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11169 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11170 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11171 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11172 call_dummy_location to ON_STACK.
11174 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11176 * x86-64-linux-tdep.c: Tweak comment.
11177 (amd64_linux_supply_gregset): Renamed from
11178 x86_64_linux_supply_gresget.
11179 (amd64_linux_fill_gregset): Renamed from
11180 x86_64_linux_fill_gregset.
11181 (fetch_core_registers): Adjust for renamed functions.
11182 (amd64_core_fns): Renamed from x86_64_core_fns.
11183 (amd64_linux_sigtramp_start): Renamed from
11184 x86_64_linux_sigtramp_start.
11185 (amd64_linux_pc_in_sigtramp): Renamed from
11186 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11187 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11188 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11189 (amd64_linux_sigcontext_addr): Renamed from
11190 x86_64_linux_sigcontext_addr.
11191 (amd64_linux_sc_reg_offset): Renamed from
11192 x86_64_linux_sc_reg_offset.
11193 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11194 Adjust for renamed functions and variables.
11195 (_initialize_amd64_linux_tdep): Renamed from
11196 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11198 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11199 Adjust for renamed functions.
11201 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11202 from x86_64_linux_gregset64_reg_offset.
11203 (amd64_linux_gregset32_reg_offset): Rename from
11204 x86_64_linux_gregset64_reg_offset.
11205 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11206 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11207 (amd64_linux_dr_set_control): Renamed from
11208 x86_64_linux_dr_set_control. Adjust for renamed functions.
11209 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11210 Adjust for renamed functions.
11211 (amd64_linux_dr_reset_addr): Renamed from
11212 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11213 (amd64_linux_dr_get_status): Renamed from
11214 x86_64_linux_dr_get_status. Adjust for renamed functions.
11215 (_initialize_amd64_linux_nat): Renamed from
11216 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11218 * config/i386/nm-x86-64linux.h: Update copyright year.
11219 Adjust for renamed functions.
11221 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11222 amd64fbsd_sigtramp_start.
11223 (amd64fbsd_sigtramp_end_addr): Renamed from
11224 amd64fbsd_sigtramp_end.
11225 (amd64fbsd_init_abi): Adjust for renamed variables.
11226 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11228 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11229 amd64fbsd_sigtramp_start.
11230 (amd64fbsd_sigtramp_end_addr): Renamed from
11231 amd64fbsd_sigtramp_end.
11233 2004-02-22 Andrew Cagney <cagney@redhat.com>
11235 * hppa-tdep.c (hppa32_return_value): New function.
11236 (hppa64_return_value): New function.
11237 (hppa_gdbarch_init): Set return_value; keep disabled.
11239 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11240 struct-return and inferior function call methods.
11242 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11244 (struct hppa_frame_cache): Define.
11245 (hppa_frame_cache, hppa_frame_this_id): New functions.
11246 (hppa_frame_prev_register): New function.
11247 (hppa_frame_unwind, hppa_frame_base): New variables.
11248 (hppa_frame_unwind_sniffer): New function.
11249 (hppa_frame_base_address, hppa_unwind_pc): New function.
11250 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11251 sniffer, and frame base sniffer; keep disabled.
11252 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11253 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11255 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11256 to predicates for "seriously old code".
11258 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11261 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11263 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11265 * config/pa/tm-hppa.h: Update copyright.
11266 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11267 (deprecated_init_frame_pc_default): Delete declaration.
11268 (hppa_frame_init_saved_regs): Delete declaration.
11269 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11270 * hppa-tdep.c: Include "arch-utils.h".
11271 (hppa_gdbarch_init): Set deprecated init_frame_pc
11272 and deprecated frame_init_saved_regs.
11273 (hppa_frame_init_saved_regs): Make static.
11275 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11277 Remove old 386BSD support.
11278 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11279 * configure.host: Remove i[34567]86-*-bsd*.
11280 * configure.tgt: Remove i[34567]86-*-bsd*.
11281 * i386b-nat.c: Removed.
11282 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11283 (i386b-nat.o): Remove dependencies.
11285 * config/i386/i386bsd.mh: Removed.
11286 * config/i386/i386bsd.mt: Removed.
11287 * config/i386/nm-i386bsd.h: Removed.
11288 * config/i386/tm-i386bsd.h: Removed.
11289 * config/i386/xm-i386bsd.h: Removed.
11291 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11293 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11294 (amd64fbsd_init_abi): Set link map offsets.
11295 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11296 (amd64nbsd_init_abi): Set link map offsets.
11297 * amd64obsd-tdep.c: Include "solib-svr4.h".
11298 (amd64obsd_init_abi): Set link map offsets.
11299 * i386fbsd-tdep.c: Include "solib-svr4.h".
11300 (i386fbsd_init_abi): Set link map offsets.
11301 * i386nbsd-tdep.c: Include "solib-svr4.h".
11302 (i386nbsdelf_init_abi): Set link map offsets.
11303 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11304 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11305 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11306 solib-legacy.o and core-aout.o. Reformat.
11307 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11308 solib-svr4.o, solib-legacy.o. Reformat.
11309 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11310 * config/i386/nbsdelf.mh: Reformat.
11311 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11312 solib-svr4.o, solib-legacy.o and corelow.o.
11313 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11314 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11315 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11316 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11317 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11318 (TM_FILE): Set to tm-fbsd.h.
11319 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11320 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11322 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11324 (TM_FILE): Set to nm-nbsd.h.
11325 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11326 Simplify shared library support. Don't include "elf/common.h".
11327 (SVR4_SHARED_LIBS): Don't define.
11328 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11330 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11331 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11332 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11333 Don't include "i386/tm-i386.h". Include "solib.h".
11334 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11335 Don't include "i386/tm-i386.h".
11336 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11337 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11338 Include "i386/xm-i386.h".
11339 (HOST_LONG_DOUBLE_FORMAT): Remove.
11341 Fix OpenBSD/i386 sigtramp recognition.
11342 * i386-tdep.h: Update copyright year.
11343 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11344 (i386bsd_sigtramp_end): New prototypes.
11345 (i386fbsd_sigtramp_start_addr): Renamed from
11346 i386fbsd_sigtramp_start.
11347 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11348 (i386obsd_sigtramp_start_addr): Renamed from
11349 i386obsd_sigtramp_start.
11350 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11351 * i386bsd-tdep.c: Update copyright year.
11352 (i386bsd_pc_in_sigtramp): Make public.
11353 * i386fbsd-nat.c: Update copyright year.
11354 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11355 * i386fbsd-tdep.c: Update copyright year.
11356 (i386fbsd_sigtramp_start_addr): Renamed from
11357 i386fbsd_sigtramp_start.
11358 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11359 (i386fbsdaout_init_abi): Adjust for renamed variables.
11360 * i386obsd-nat.c: Update copyright year.
11361 (_initialize_i386obsd_nat): Adjust for renamed variables.
11362 * i386obsd-tdep.c: Include "target.h".
11363 (i386obsd_page_size): New variable.
11364 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11365 (i386obsd_sigtramp_end): New functions.
11366 (i386obsd_sigtramp_start_addr): Renamed from
11367 i386obsd_sigtramp_start.
11368 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11369 (i386obsd_init_abi): Adjust for renamed variables. Set
11370 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11371 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11373 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11374 trampoline change in OpenBSD kernel.
11376 * amd64-nat.c: Update copyright year.
11377 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11378 architecture from REGCACHE.
11380 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11381 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11383 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11385 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11386 i[34567]86-*-openbsd3.[0-3].
11387 * config/i386/obsdaout.mh: New file.
11389 * config/i386/obsd.mh (MH_FLAGS): Remove.
11392 * i386obsd-tdep.c: Update copyright years. Include
11394 (i386obsd_init_abi): Don't set regset_from_core_section here.
11395 (i386obsd_aout_init_abi): New function. Set
11396 regset_from_core_section here.
11397 (i386obsd_elf_init_abi): New function.
11398 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11399 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11400 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11401 (TM_FILE): Set to tm-nbsd.h.
11403 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11406 * solib-svr4.h: Update copyright year.
11407 (svr4_ilp32_fetch_link_map_offsets)
11408 (svr4_lp64_fetch_link_map_offsets): New prototype.
11409 * solib-svr4.c: Update copyright year.
11410 (svr4_ilp32_fetch_link_map_offsets)
11411 (svr4_lp64_fetch_link_map_offsets): New function.
11413 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11415 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11416 to the partial symbol table.
11418 2004-02-20 J. brobecker <brobecker@gnat.com>
11420 * PROBLEMS: Add description of problem documented under gdb/1560.
11422 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11424 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11426 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11428 (amd64obsd_init_abi): Reorder initializations. Use
11429 amd64obsd_r_reg_offset to initialize the general-purpose register
11430 set details. Set regset_from_core_section.
11431 (_initialize_amd64obsd_tdep): Rename from
11432 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11433 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11434 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11436 * NEWS (New native configurations): Mention OpenBSD/alpha.
11437 * configure.tgt: Add alpha*-*-openbsd*.
11438 * configure.host: Add alpha*-*-openbsd*.
11439 * alphanbsd-tdep.c: Update copyright year.
11440 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11442 2004-02-20 Andrew Cagney <cagney@redhat.com>
11445 * configure.tgt: Delete target "none-*-*".
11446 * configure.host: Delete host "none-*-*".
11447 * config/none/none.mh: Delete file.
11448 * config/none/none.mt: Delete file.
11449 * config/none/xm-none.h: Delete file.
11450 * config/none/tm-none.h: Delete file.
11451 * config/none/nm-none.h: Delete file.
11453 2004-02-19 Fred Fish <fnf@redhat.com>
11455 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11456 cache->uses_fp prior to setting it.
11458 2004-02-19 Fred Fish <fnf@redhat.com>
11460 Fix for PR breakpoint/1558.
11461 * sh-tdep.c (IS_JSR): New macro.
11462 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11464 2004-02-19 Jim Blandy <jimb@redhat.com>
11466 * findvar.c (value_from_register): Doc fix.
11468 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11470 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11471 type being greater than sizeof of host's LONGEST. Always use
11472 unpack_long() unless format 'f' chosen.
11474 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11476 Committed by Elena Zannoni <ezannoni@redhat.com>
11478 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11479 contains a symbol wich is the best, non-exact match for the given
11480 pc. Update comments.
11482 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11484 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11485 macro, which was part of the now removed Mach 3 port.
11486 * utils.c (request_quit): Ditto.
11488 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11490 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11491 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11493 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11495 Committed by Mark Kettenis <kettenis@gnu.org>.
11497 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11500 2004-02-18 Andrew Cagney <cagney@redhat.com>
11502 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11503 CONFIG_INSTALL and CONFIG_UNINSTALL.
11504 * configure: Re-generate.
11505 * interps.h (INTERP_TUI): Define.
11506 * Makefile.in: Update dependencies.
11508 (tui-main.o): Specify dependencies.
11509 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11510 * tui/tui-main.c: New file.
11512 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11514 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11515 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11517 * configure.host: Add x86_64-*-openbsd*.
11518 * configure.tgt: Add x86_64-*-openbsd*.
11519 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11521 * tui/tui.c: Don't include <malloc.h>.
11523 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11524 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11527 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11528 static. Remove extraneous whitespace.
11529 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11532 2004-02-17 Jim Blandy <jimb@redhat.com>
11534 * findvar.c (value_from_register): Doc fix.
11536 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11538 Committed by Jim Blandy <jimb@redhat.com>.
11540 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11541 CORE_ADDR as type for selectors. Correct types for GNU run time
11542 message lookup function to use double indirection.
11543 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11544 * objc-lang.h (lookup_child_selector): Adapt prototype.
11546 * s390-nat.c (SUBOFF): New macro.
11547 (supply_gregset, fill_gregset): Use it to handle debugging
11548 of 32-bit exectuables running under a 64-bit kernel.
11549 * s390-tdep.c: Include "solib-svr4.h".
11550 (s390_svr4_fetch_link_map_offset): New function.
11551 (s390x_svr_fetch_link_map_offset): Likewise.
11552 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11553 * Makefile.in (s390-tdep.o): Update dependencies.
11555 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11557 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11558 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11559 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11560 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11561 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11562 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11563 S390_SIGNAL_FRAMESIZE,
11564 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11565 (struct frame_extra_info): Remove.
11566 (s390_memset_extra_info): Remove.
11567 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11568 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11569 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11570 (is_rse): Renamed to ...
11571 (is_rsy): ... this. Support long displacements.
11572 (is_rxe): Renamed to ...
11573 (is_rxy): ... this. Support long displacements.
11574 (compute_x_addr): Support long displacements.
11575 (struct s390_prologue_data): New data type.
11576 (s390_on_stack): Change API to use struct s390_prologue_data.
11577 (s390_store): Reimplement.
11578 (s390_load): New function.
11579 (s390_get_signal_frame_info): Remove.
11580 (s390_get_frame_info): Remove, replace by ...
11581 (s390_analyze_prolog): ... this new function.
11582 (s390_check_function_end): Remove.
11583 (s390_function_start): Remove.
11584 (s390_frameless_function_invokation): Remove.
11585 (s390_is_sigreturn): Remove.
11586 (s390_init_frame_pc_first): Remove.
11587 (s390_init_frame_extra_info): Remove.
11588 (s390_frame_init_saved_regs): Remove.
11589 (s390_frame_saved_pc_nofix): Remove.
11590 (s390_frame_saved_pc): Remove.
11591 (s390_frame_chain): Remove.
11592 (s390_fp_regnum, s390_read_fp): Remove.
11593 (s390_pop_frame_regular, s390_pop_frame): Remove.
11594 (s390_saved_pc_after_call): Remove.
11595 (s390_skip_prologue): Reimplement.
11596 (s390_in_function_epilogue_p): Support long displacements.
11597 (struct s390_unwind_cache): New data structure.
11598 (s390_frame_unwind_cache): New function.
11599 (s390_prologue_frame_unwind_cache): Likewise.
11600 (s390_backchain_frame_unwind_cache): Likewise.
11601 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11602 (s390_frame_unwind): Define.
11603 (s390_frame_sniffer): New function.
11604 (struct s390_pltstub_unwind_cache): New data structure.
11605 (s390_pltstub_frame_unwind_cache): New function.
11606 (s390_pltstub_frame_this_id): Likewise.
11607 (s390_pltstub_frame_prev_register): Likewise.
11608 (s390_pltstub_frame_unwind): Define.
11609 (s390_pltstub_frame_sniffer): New function.
11610 (struct s390_sigtramp_unwind_cache): New data structure.
11611 (s390_sigtramp_frame_unwind_cache): New function.
11612 (s390_sigtramp_frame_this_id): Likewise.
11613 (s390_sigtramp_frame_prev_register): Likewise.
11614 (s390_sigtramp_frame_unwind): Define.
11615 (s390_sigtramp_frame_sniffer): New function.
11616 (s390_frame_base_address, s390_local_base_address): New functions.
11617 (s390_frame_base): Define.
11618 (s390_unwind_pc, s390_unwind_sp): New function.
11619 (s390_push_dummy_call): Use new frame base location.
11620 (s390_unwind_dummy_id): Likewise.
11621 (s390_gdbarch_init): Remove calls to:
11622 set_gdbarch_frameless_function_invocation,
11623 set_gdbarch_deprecated_init_frame_pc,
11624 set_gdbarch_deprecated_frame_chain,
11625 set_gdbarch_deprecated_frame_init_saved_regs,
11626 set_gdbarch_deprecated_pop_frame,
11627 set_gdbarch_deprecated_init_extra_frame_info,
11628 set_gdbarch_deprecated_init_frame_pc_first,
11629 set_gdbarch_deprecated_target_read_fp,
11630 set_gdbarch_deprecated_frame_saved_pc,
11631 set_gdbarch_deprecated_saved_pc_after_call,
11632 set_gdbarch_deprecated_fp_regnum.
11634 set_gdbarch_in_solib_call_trampoline,
11635 frame_unwind_append_sniffer,
11636 frame_base_set_default,
11637 set_gdbarch_unwind_pc,
11638 set_gdbarch_unwind_sp.
11639 * Makefile.in (s390-tdep.o): Update dependencies.
11641 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11642 (S390_STACK_FRAME_OVERHEAD): Remove.
11643 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11644 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11645 (s390_promote_integer_argument): Remove.
11646 (s390_cannot_extract_struct_value_address): Remove.
11647 (s390_use_struct_convention, s390_store_struct_return): Remove.
11648 (s390_extract_return_value, s390_store_return_value): Remove.
11649 (s390_return_value_convention, s390_return_value): New functions.
11650 (is_float_singleton): Handle typedefs.
11651 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11652 Remove, replace by ...
11653 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11654 s390_function_arg_integer): ... these new functions.
11655 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11656 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11657 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11660 set_gdbarch_deprecated_store_struct_return,
11661 set_gdbarch_deprecated_extract_return_value,
11662 set_gdbarch_deprecated_store_return_value,
11663 set_gdbarch_use_struct_convention,
11664 set_gdbarch_extract_struct_value_address,
11665 set_gdbarch_deprecated_pc_in_call_dummy,
11666 set_gdbarch_deprecated_push_arguments,
11667 set_gdbarch_deprecated_save_dummy_frame_tos,
11668 set_gdbarch_deprecated_push_return_address,
11669 set_gdbarch_deprecated_sizeof_call_dummy_words,
11670 set_gdbarch_deprecated_call_dummy_words,
11671 set_gdbarch_deprecated_dummy_write_sp.
11673 set_gdbarch_push_dummy_call,
11674 set_gdbarch_unwind_dummy_id,
11675 set_gdbarch_return_value.
11677 * config/s390/nm-linux.h: Update comments.
11678 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11679 (STOPPED_BY_WATCHPOINT): Redefine.
11680 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11681 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11682 (s390_stopped_by_watchpoint): Likewise.
11683 (watch_area_cnt): Remove.
11684 * s390-nat.c: Update comments.
11685 (watch_area): Remove typedef.
11686 Global replace watch_area by struct watch_area.
11687 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11688 (s390_stopped_by_watchpoint): Remove pid argument,
11689 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11690 (s390_fix_watch_points): Remove pid argument,
11691 use s390_inferior_tid. Recompute area spanned by watchpoints.
11692 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11693 argument. Reimplement.
11695 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11696 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11697 (FETCH_INFERIOR_REGISTERS): Define.
11698 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11700 * config/s390/s390x.mt: Remove.
11701 * config/s390/tm-s390.h: Remove.
11702 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11703 (TARGET_ELF64): Remove.
11704 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11705 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11706 s390*-*-* case; always set gdb_target to s390.
11707 * regformats/reg-s390.dat: Remove control registers.
11708 * regformats/reg-s390x.dat: Likewise.
11709 * s390-tdep.h: New file.
11710 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11711 Include "inferior.h" and "s390-tdep.h".
11712 Remove private definition of offsetof.
11713 (s390_register_u_addr): Remove.
11714 (regmap_gregset, regmap_fpregset): Define.
11715 (supply_gregset, fill_gregset): Reimplement.
11716 (supply_fpregset, fill_fpregset): Likewise.
11717 (s390_inferior_tid): New function.
11718 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11719 (fetch_inferior_registers, store_inferior_registers): Likewise.
11720 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11721 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11722 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11723 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11724 (struct gdbarch_tdep): Define.
11725 (struct s390_register_info): Define.
11726 (s390_register_info): New variable.
11727 (s390_register_name): Reimplement.
11728 (s390_register_type): New function.
11729 (s390_register_raw_size, s390x_register_raw_size): Remove.
11730 (s390_cannot_fetch_register): Remove.
11731 (s390_register_byte): Remove.
11732 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11733 (s390_dwarf_regmap): New variable.
11734 (s390_dwarf_reg_to_regnum): New function.
11735 (s390_stab_reg_to_regnum): Remove.
11736 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11737 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11738 (s390_convert_register_p): Likewise.
11739 (s390_register_to_value, s390_value_to_register): Likewise.
11740 (s390_register_reggroup_p): Likewise.
11741 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11742 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11743 (s390_supply_regset, s390_regset_from_core_section): New functions.
11744 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11745 (S390_FPR_SIZE): Likewise.
11746 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11747 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11748 (S390_NUM_GPRS): Move here from tm-s390.h.
11749 (S390_NUM_FPRS): Likewise.
11750 (s390_in_function_epilogue_p): New function.
11751 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11752 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11753 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11754 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11755 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11757 set_gdbarch_deprecated_max_register_raw_size,
11758 set_gdbarch_deprecated_max_register_virtual_size,
11759 set_gdbarch_deprecated_register_byte,
11760 set_gdbarch_cannot_fetch_register,
11761 set_gdbarch_cannot_store_register,
11762 set_gdbarch_deprecated_register_size,
11763 set_gdbarch_deprecated_register_raw_size,
11764 set_gdbarch_deprecated_register_virtual_size,
11765 set_gdbarch_deprecated_register_virtual_type,
11766 set_gdbarch_deprecated_register_bytes.
11768 set_gdbarch_num_pseudo_regs,
11769 set_gdbarch_register_type,
11770 set_gdbarch_convert_register_p,
11771 set_gdbarch_register_to_value,
11772 set_gdbarch_value_to_register,
11773 set_gdbarch_register_reggroup_p,
11774 set_gdbarch_regset_from_core_section,
11775 set_gdbarch_pseudo_register_read,
11776 set_gdbarch_pseudo_register_write,
11777 set_gdbarch_in_function_epilogue_p.
11778 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11779 (s390_tdep_h): New variable.
11781 2004-02-17 Jim Blandy <jimb@redhat.com>
11783 * findvar.c (value_from_register): If the type has no length, just
11784 return an acceptable value --- don't report an internal error.
11786 * stabsread.c (read_type): If we find any type numbers that are
11787 forward references, complain if the references aren't resolved by
11788 the time we're finished reading.
11789 (cleanup_undefined_types): Make error message more appropriate for
11792 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11794 * Makefile.in (defs_h): Remove dependency on progress_h.
11795 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11797 * main.c (captured_main): Delete use of START_PROGRESS and
11800 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11802 * objfiles.c (terminate_minimal_symbol_table): Add back
11803 initialization of MSYMBOL_TYPE.
11805 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11807 Committed by Andrew Cagney.
11808 * Makefile.in (ia64_tdep_h): New macro.
11809 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11810 (ia64-tdep.o): Likewise.
11811 * ia64-tdep.h: New file.
11812 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11813 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11814 (ia64_aix_sigcontext_register_address): Likewise.
11815 (ia64_linux_getunwind_table): Delete declaration.
11816 * ia64-linux-tdep.c: Likewise.
11818 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11820 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11821 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11822 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11824 2004-02-17 Andrew Cagney <cagney@redhat.com>
11826 * symtab.c (skip_prologue_using_sal): New function.
11827 * symtab.h (skip_prologue_using_sal): Declare.
11828 * frv-tdep.c: Include "symtab.h".
11829 (skip_prologue_using_sal): Delete function.
11830 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11831 * rs6000-tdep.c (refine_prologue_limit): Mention
11832 skip_prologue_using_sal.
11833 * ia64-tdep.c (refine_prologue_limit): Ditto.
11834 * Makefile.in: Update dependencies.
11836 2004-02-16 Andrew Cagney <cagney@redhat.com>
11838 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11839 START_INFERIOR_TRAPS_EXPECTED.
11840 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11841 START_INFERIOR_TRAPS_EXPECTED.
11842 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11844 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11845 macro, moved to "nm-osf.h". Update copyright.
11846 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11849 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11850 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11851 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11852 frameless_look_for_prologue.
11853 * frame.h (legacy_frameless_look_for_prologue): Rename
11854 frameless_look_for_prologue.
11855 * gdbarch.h, gdbarch.c: Re-generate.
11856 * sh64-tdep.c (sh64_gdbarch_init): Update.
11857 * sh-tdep.c (sh_gdbarch_init): Update.
11858 * s390-tdep.c (s390_gdbarch_init): Update.
11859 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11860 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11861 * m68k-tdep.c (m68k_gdbarch_init): Update.
11862 (delta68_frame_args_address): Update.
11863 * m32r-tdep.c (m32r_gdbarch_init): Update.
11864 * hppa-tdep.c (hppa_gdbarch_init): Update.
11865 * h8300-tdep.c (h8300_gdbarch_init): Update.
11866 * frv-tdep.c (frv_gdbarch_init): Update.
11867 (frv_frameless_function_invocation): Update.
11868 * cris-tdep.c (cris_gdbarch_init): Update.
11869 (cris_frameless_function_invocation): Update.
11870 * avr-tdep.c (avr_gdbarch_init): Update.
11871 * arm-tdep.c (arm_gdbarch_init): Update.
11872 * stack.c (frame_info): Update, call predicate.
11873 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11874 * frame.c (legacy_get_prev_frame): Update, call predicate..
11875 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11876 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11877 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11879 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11880 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11881 * vax-tdep.c (vax_gdbarch_init): Ditto.
11883 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11886 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11888 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11891 2004-02-16 Andrew Cagney <cagney@redhat.com>
11893 * tui/tui-windata.c: Include "gdb_string.h".
11894 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11895 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11896 * Makefile.in: Update dependencies.
11898 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11900 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11901 * infrun.c: Include "gdb_assert.h".
11902 (singlestep_ptid, saved_singlestep_ptid)
11903 (stepping_past_singlestep_breakpoint): New variables.
11904 (resume): Set singlestep_ptid. Check for singlestep thread
11906 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11907 (handle_inferior_event): Handle singlestep thread hop.
11909 2004-02-16 Andrew Cagney <cagney@redhat.com>
11911 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11912 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11913 (dwarf2_frame_init_reg): Ditto.
11915 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11916 suggested by Joshua Neuheisel
11918 * configure.in: Always check for curses, including pdcurses.
11919 Warn, instead of error, when no curses are found. Enable TUI when
11920 curses is available.
11921 * configure: Re-generate.
11923 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11925 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11926 sh_sh4_register_convert_to_virtual.
11927 (sh_register_convert_to_raw): Rename from
11928 sh_sh4_register_convert_to_raw.
11929 (sh_pseudo_register_read): Accomodate above name change.
11930 (sh_pseudo_register_write): Ditto.
11932 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11934 * sh-tdep.c (sh_generic_register_name): Remove.
11935 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11937 2004-02-15 Andrew Cagney <cagney@redhat.com>
11939 * configure.in (build_warnings): Add -Wunused-function.
11940 * configure: Re-generate.
11942 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11943 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11945 * procfs.c (procfs_init_inferior): Assume that
11946 START_INFERIOR_TRAPS_EXPECTED is defined.
11947 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11948 * config/ns32k/tm-nbsd.h: Delete file,
11949 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11951 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11952 * config/vax/tm-vax.h: Delete file.
11954 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11955 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11956 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11957 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11958 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11959 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11960 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11962 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11964 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11965 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11966 (struct dwarf2_frame_ops): New.
11967 (dwarf2_frame_default_init_reg): New function, based on
11968 dwarf2_frame_init_reg.
11969 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11970 (dwarf2_frame_init_reg): Call architecture-specific function.
11971 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11972 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11973 instead of dwarf2_frame_data.
11974 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11975 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11977 2004-02-15 Andrew Cagney <cagney@redhat.com>
11979 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11980 register_gdbarch_swap.
11981 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11982 * f-lang.c (_initialize_f_language): Update, use
11983 DEPRECATED_REGISTER_GDBARCH_SWAP.
11984 * remote.c (_initialize_remote): Ditto.
11985 * regcache.c (_initialize_regcache): Ditto.
11986 * parse.c (_initialize_parse): Ditto.
11987 * infrun.c (_initialize_infrun): Ditto.
11988 * mi/mi-main.c (_initialize_mi_main): Ditto.
11989 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11991 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11992 poking .cacheable directly.
11993 * symfile.c (symfile_bfd_open): Ditto.
11995 * Makefile.in: Update all dependencies.
11997 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11998 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11999 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12000 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12001 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12003 2004-02-14 Andrew Cagney <cagney@redhat.com>
12005 * arch-utils.c (legacy_convert_register_p): Check
12006 DEPRECATED_REGISTER_CONVERTIBLE_P.
12007 * findvar.c (value_of_register): Ditto.
12009 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12010 * gdbarch.h, gdbarch.c: Re-generate.
12011 * arch-utils.c (deprecated_register_convertible_not): Delete.
12012 * arch-utils.h (deprecated_register_convertible_not): Delete.
12013 * mi/mi-main.c (get_register): Update. Update copyright.
12014 * infcmd.c (default_print_registers_info): Update.
12016 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12017 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12018 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12019 * gdbarch.h, gdbarch.c: Re-generate.
12020 * frame.c (deprecated_get_next_frame_hack): Delete function.
12021 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12022 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12024 * infcall.c (call_function_by_hand): Update.
12026 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12028 * symfile.c (init_entry_point_info, entry_point_address): Move
12030 * objfiles.c (init_entry_point_info, entry_point_address):..to
12032 * symfile.h (init_entry_point_info, entry_point_address): Remove
12034 * objfiles.h (init_entry_point_info, entry_point_address):Add
12036 * cris-tdep.c: Remove include of symfile.h. Add include of
12038 * infcall.c: Ditto.
12039 * mcore-tdep.c: Ditto.
12040 * mn10300-tdep.c: Ditto.
12041 * sh64-tdep.c: Ditto.
12042 * v850-tdep.c: Ditto.
12043 * arm-tdep.c: Remove include of symfile.h.
12044 * blockframe.c: Ditto.
12045 * coffread.c: Ditto.
12046 * dbxread.c: Ditto.
12047 * dwarf2read.c: Ditto.
12048 * dwarfread.c: Ditto.
12049 * frv-tdep.c: Ditto.
12050 * ia64-tdep.c: Ditto.
12051 * mdebugread.c: Ditto.
12052 * mipsread.c: Ditto.
12053 * rs6000-tdep.c: Ditto.
12054 * s390-tdep.c: Ditto.
12055 * sh-tdep.c: Ditto.
12056 * xstormy16-tdep.c: Ditto.
12057 * gdbarch.sh: Remove include of symfile.h.
12058 * gdbarch.c: Regenerate.
12059 * solib-irix.c (enable_break): Use entry_point_address().
12060 Add comment about include file.
12061 * xcoffread.c: Add comment about include file.
12062 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12063 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12064 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12065 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12066 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12068 2004-02-13 Andrew Cagney <cagney@redhat.com>
12070 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12071 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12073 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12075 2004-02-12 Fred Fish <fnf@redhat.com>
12077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12078 set_gdbarch_store_return_value.
12080 2004-02-12 Andrew Cagney <cagney@redhat.com>
12082 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12083 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12084 (interrupt_query): Ditto.
12085 (ofunc): Delete unused variable.
12086 * cris-tdep.c (cris_abi): Delete unused function.
12087 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12088 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12089 (cris_get_asr_quick_shift_steps): Ditto.
12090 (cris_skip_prologue_frameless_p): Ditto.
12091 * arm-tdep.c (arm_push_return_address): Delete unused function.
12092 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12093 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12094 * s390-tdep.c (s390_function_start): Delete unused function.
12096 2004-02-12 Andrew Cagney <cagney@redhat.com>
12098 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12099 gdbarch.h, gdbarch.c: Re-generate.
12100 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12101 to generic_prologue_frameless_p.
12102 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12103 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12105 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12107 * mips-linux-tdep.c: Include "frame.h".
12108 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12109 (mips_linux_skip_resolver): New functions.
12110 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12111 and set_gdbarch_in_solib_call_trampoline.
12112 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12113 to after set_gdbarch_in_solib_return_trampoline. Only set the
12114 solib hooks to mips16 functions if the OS ABI is unknown.
12115 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12116 including "config/tm-linux.h".
12117 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12118 * Makefile.in (mips-linux-tdep.o): Update.
12120 2004-02-11 David Carlton <carlton@kealia.com>
12122 * linespec.c (decode_compound): Only look for a class symbol when
12123 considering all but the rightmost component.
12125 2004-02-11 Andrew Cagney <cagney@redhat.com>
12127 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12128 abi code are are separatly grouped.
12130 2004-02-11 Andrew Cagney <cagney@redhat.com>
12132 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12133 * gdbarch.h, gdbarch.c: Re-generate.
12134 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12135 * v850-tdep.c (v850_gdbarch_init): Update.
12136 * sh64-tdep.c (sh64_gdbarch_init): Update.
12137 * sh-tdep.c (sh_gdbarch_init): Update.
12138 * s390-tdep.c (s390_gdbarch_init): Update.
12139 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12140 * mips-tdep.c (mips_gdbarch_init): Update.
12141 * mcore-tdep.c (mcore_gdbarch_init): Update.
12142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12143 * m32r-tdep.c (m32r_gdbarch_init): Update.
12144 * ia64-tdep.c (ia64_gdbarch_init): Update.
12145 * hppa-tdep.c (hppa_gdbarch_init): Update.
12146 * h8300-tdep.c (h8300_gdbarch_init): Update.
12147 * frv-tdep.c (frv_gdbarch_init): Update.
12148 * d10v-tdep.c (d10v_gdbarch_init): Update.
12149 * cris-tdep.c (cris_gdbarch_init): Update.
12150 * avr-tdep.c (avr_gdbarch_init): Update.
12151 * arm-tdep.c (arm_gdbarch_init): Update.
12152 * alpha-tdep.c (alpha_gdbarch_init): Update.
12154 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12156 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12158 (sh_sh4al_dsp_register_name): Ditto.
12160 2004-02-10 Andrew Cagney <cagney@redhat.com>
12162 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12163 (mips_init_frame_pc_first): Delete function.
12164 (mips_frame_saved_pc): Delete function.
12165 (mips_frame_chain): Delete function.
12166 (mips_init_extra_frame_info): Delete function.
12167 (mips_xfer_register): Delete unused variable "reg".
12168 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12169 (mips_n32n64_return_value): Delete unused variable "reg".
12170 (mips_n32n64_return_value): Delete unused variable "pos".
12171 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12172 (mips_o32_return_value): Delete unused variable "pos".
12173 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12174 (mips_print_fp_register): Delete unused variable "namelen"
12175 (mips_print_fp_register): Delete unused variable "flt2"
12176 (get_frame_pointer): Delete function.
12177 (cached_proc_desc): Delete static variable.
12178 (mips_pop_frame): Delete function.
12179 (mips_find_saved_regs): Delete function.
12180 (mips_get_saved_register): Delete function.
12181 (mips_saved_pc_after_call): Delete function.
12182 (SIGFRAME_BASE): Delete macro.
12183 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12184 (SIGFRAME_PC_OFF): Delete macro.
12185 (SIGFRAME_REGSAVE_OFF): Delete macro.
12186 (mips_dump_tdep): Do not print deleted macro definitions.
12188 2004-02-10 Andrew Cagney <cagney@redhat.com>
12190 * Makefile.in (SFILES): Remove explictly listed tui files.
12191 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12193 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12195 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12196 to use paddr functions to format ia64 addresses and long values.
12197 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12198 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12199 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12200 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12201 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12203 2004-02-10 Andrew Cagney <cagney@redhat.com>
12205 * defs.h: Do not include "tui.h".
12206 * gdb_curses.h: New file.
12207 * tui/tui-hooks.h: New file.
12208 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12209 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12210 (tui_initialize_io): Delete declaration.
12211 (tui_initialize_readline: Delete redundant declaration.
12212 (struct tui_point): Delete definition.
12213 * tui/tui-data.h (struct tui_point): Define.
12214 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12215 * utils.c: Include "tui/tui.h".
12216 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12217 * printcmd.c [TUI]: Include "tui/tui.h".
12218 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12219 * tui/tui-command.c: Include "gdb_curses.h".
12220 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12221 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12222 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12223 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12224 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12225 * Makefile.in: Update all dependencies.
12226 (tui_hooks_h, gdb_curses_h): Define.
12227 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12229 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12231 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12232 auxf2. Add comments about some other rarely used fields.
12234 2004-02-10 Andrew Cagney <cagney@redhat.com>
12236 * Makefile.in (init.c): Fix script removing duplicates. Problem
12237 reported by Peter Schauer.
12239 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12241 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12242 obstack_specify_allocation.
12243 * objfiles.c (allocate_objfile): Ditto.
12244 * solib-sunos.c (solib_add_common_symbols)
12245 (allocate_rt_common_objfile): Ditto.
12246 * symfile.c (reread_symbols): Ditto.
12247 * gdb_obstack.h: Add comment.
12249 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12251 * linespec.c (decode_line_1, locate_first_half)
12252 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12253 commented out code.
12255 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12257 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12260 2004-02-09 Andrew Cagney <cagney@redhat.com>
12262 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12263 fails, try find_pc_section. Fix PR c++/1267.
12264 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12265 instead of find_pc_mapped_section.
12266 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12267 not default to the section containing PC. Fix PR symtab/1519.
12269 2004-02-09 Andrew Cagney <cagney@redhat.com>
12271 * Makefile.in (mips-tdep.o): Update dependencies.
12272 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12274 (mips_unwind_pc): Return the pseudo PC register.
12275 (mips_unwind_dummy_id): New function.
12276 (mips16_fetch_instruction): New function.
12277 (mips32_fetch_instruction): New function.
12278 (struct mips_frame_cache): Define.
12279 (mips_mdebug_frame_cache): New function.
12280 (mips_mdebug_frame_this_id): New function.
12281 (mips_mdebug_frame_prev_register): New function.
12282 (mips_mdebug_frame_unwind): Define.
12283 (mips_mdebug_frame_sniffer): New function.
12284 (mips_mdebug_frame_base_address): New function.
12285 (mips_mdebug_frame_base): Define.
12286 (mips_mdebug_frame_base_sniffer): New function.
12287 (mips_gdbarch_init): Append unwind and base sniffers. Set
12290 2004-02-08 Andrew Cagney <cagney@redhat.com>
12292 * frame.c: Print both the register number and name.
12294 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12295 and a sed into a single sed. Make .c and .o patterns more robust.
12297 (INIT_FILES): Replace OBS with COMMON_OBS.
12298 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12300 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12302 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12303 the PT_WCOOKIE request.
12305 2004-02-08 Andrew Cagney <cagney@redhat.com>
12307 * mips-tdep.c (mips_unwind_pc): New function.
12308 (mips_gdbarch_init): Set mips_unwind_pc.
12310 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12311 (get_frame_id): Allow the UNKNOWN_FRAME.
12312 (frame_register_unwind, get_frame_type): Ditto.
12314 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12315 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12316 unwind_dummy_id indicates a legacy frame.
12318 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12319 * configure: Re-generate.
12321 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12324 2004-02-08 Andrew Cagney <cagney@redhat.com>
12326 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12328 * configure: Re-generate.
12329 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12330 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12331 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12332 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12333 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12334 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12335 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12336 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12337 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12338 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12340 2004-02-07 Andrew Cagney <cagney@redhat.com>
12342 * Makefile.in: Update all dependencies.
12344 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12345 * configure: Re-generate.
12346 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12347 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12348 (COMMON_OBS): Add "main.o" and "annotate.o".
12349 (ANNOTATE_OBS): Delete.
12350 (OBS): Remove ANNOTATE_OBS.
12351 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12353 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12354 against CONFIG_OBS and "main.o".
12355 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12356 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12358 * tui/tui-command.c: Include "gdb_string.h", delete register
12359 attribute, use ISO-C function signatures.
12360 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12361 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12362 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12363 * tui/tui.c: Ditto.
12365 * tui/tui-command.c: Change variable and function names to lower
12367 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12368 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12369 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12370 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12371 * tui/tui-winsource.c, tui/tui.c: Ditto.
12373 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12375 * buildsym.c (free_pending_blocks, finish_block)
12376 (record_pending_block, make_blockvector, end_symtab): Replace
12377 symbol_obstack with objfile_obstack.
12378 * coffread.c (process_coff_symbol, coff_read_struct_type)
12379 (coff_read_enum_type): Ditto.
12380 * cp-namespace.c (initialize_namespace_symtab)
12381 (check_one_possible_namespace_symbol): Ditto.
12382 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12383 (dwarf2_symbol_mark_computed): Ditto.
12384 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12385 * elfread.c (elf_symtab_read): Ditto.
12386 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12387 (hpread_read_enum_type, hpread_read_function_type)
12388 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12390 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12391 (java_link_class_type): Ditto.
12392 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12393 (new_symbol): Ditto.
12394 * minsyms.c (install_minimal_symbols): Ditto.
12395 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12396 (terminate_minimal_symbol_table): Replace symbol_obstack with
12398 (free_objfile): Remove freeing of symbol_obstack.
12399 * objfiles.h: Remove symbol_obstack field.
12400 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12402 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12404 (solib_add_common_symbols): Replace symbol_obstack with
12406 * somsolib.c (som_solib_add): Ditto.
12407 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12408 (common_block_start, common_block_end): Ditto.
12409 * symfile.c (reread_symbols): Remove freeing and init of
12411 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12412 * symfile.h: Update comment.
12413 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12415 * symtab.c (symbol_set_names): Replace symbol_obstack with
12417 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12419 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12420 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12423 2004-02-07 Andrew Cagney <cagney@redhat.com>
12425 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12426 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12427 fields and variables.
12428 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12429 (m_beInvisible): Delete macro.
12430 * tui/tui-data.h: Fix case case fields and variables.
12431 (m_genWinPtrIsNull): Delete macro.
12432 (tui_win_list): Rename winList.
12433 (TUI_SRC_WIN): Rename srcWin.
12434 (TUI_DISASM_WIN): Rename disassemWin.
12435 (TUI_DATA_WIN): Rename dataWin.
12436 (TUI_CMD_WIN): Rename cmdWin.
12437 (m_genWinPtrNotNull): Delete macro.
12438 (m_winPtrIsNull): Delete macro.
12439 (m_winPtrNotNull): Delete macro.
12440 (tui_win_is_source_type): Replace m_winIsSourceType
12441 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12442 (tui_win_has_locator): Replace m_hasLocator.
12443 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12444 m_setWinHighlightOff.
12445 * tui/tui-data.c: Update references.
12446 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12447 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12448 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12449 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12450 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12451 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12452 * tui/tui-winsource.c, tui/tui.c: Ditto.
12454 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12456 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12457 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12460 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12461 variable `i6' to `i7'.
12462 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12464 2004-02-07 Andrew Cagney <cagney@redhat.com>
12466 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12467 (TuiPoint, TuiPointPtr): Ditto.
12468 (TuiStatus, TuiStatusPtr): Ditto.
12469 (TuiWinType, TuiWinTypePtr): Ditto.
12470 (struct tui_point): Rename _TuiPoint.
12471 (tui_get_low_disassembly_address): Rename
12472 tuiGetLowDisassemblyAddress.
12473 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12474 (tuiFree): Delete declaration.
12475 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12476 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12477 * tui/tui.c (tuiFree): Delete function.
12478 * cli/cli-cmds.c (disassemble_command): Update references.
12479 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12480 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12481 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12482 * tui/tui-winsource.c: Ditto.
12484 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12486 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12487 coffstab_build_psymtabs, elfstab_build_psymtabs)
12488 (stabsect_build_psymtabs): Replace psymbol_obstack with
12490 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12491 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12493 * dwarfread.c (scan_compilation_units): Ditto.
12494 * elfread.c (elfstab_offset_sections): Ditto.
12495 * hppa-tdep.c (read_unwind_info): Ditto.
12496 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12497 (hpread_end_psymtab): Ditto.
12498 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12499 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12501 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12502 * objfiles.c (add_to_objfile_sections)
12503 (build_objfile_section_table): Ditto.
12504 (allocate_objfile): Remove init of psymbol_obstack.
12505 (free_objfile): Remove freeing of psymbol_obstack.
12506 * objfiles.h (struct objfile): Remove field
12507 psymbol_obstack. Update comments.
12508 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12509 psymbol_obstack with objfile_obstack.
12510 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12512 * somread.c (som_symfile_offsets, init_import_symbols)
12513 (init_export_symbols): Replace psymbol_obstack with
12515 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12516 * symfile.c (default_symfile_offsets, syms_from_objfile)
12517 (reread_symbols): Remove freeing and init of psymbol_obstack.
12518 (cashier_psymtab): Update comment.
12519 * symmisc.c (print_objfile_statistics): Don't report stats for
12521 * symtab.h (struct general_symbol_info, struct partial_symtab):
12523 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12524 (xcoff_symfile_offsets): Replace psymbol_obstack with
12527 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12529 * objfiles.h (struct objfile): Add objfile_obstack field.
12530 Remove type_obstack field.
12532 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12533 read_structure_scope read_enumeration, new_symbol): Replace
12534 type_obstack with objfile_obstack.
12535 * dwarfread.c (struct_type, enum_type): Ditto.
12536 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12537 (lookup_fundamental_type): Ditto.
12538 * gdbtypes.h (TYPE_ALLOC): Ditto.
12539 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12540 (hpread_read_doc_function_type, hpread_read_struct_type)
12541 (fix_static_member_physnames, hpread_read_array_type)
12542 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12543 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12544 (java_link_class_type): Ditto.
12545 * mdebugread.c (parse_type): Ditto.
12546 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12547 * solib-sunos.c (solib_add_common_symbols): Ditto.
12548 * stabsread.c (define_symbol, read_type, read_member_functions,
12549 read_cpp_abbrev, read_one_struct_field): Ditto.
12550 * symfile.c (reread_symbols): Ditto.
12551 * symmisc.c (print_objfile_statistics): Ditto.
12553 2004-02-07 Andrew Cagney <cagney@redhat.com>
12555 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12556 (tui_exec_info_content): Rename TuiExecInfoContent.
12557 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12558 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12559 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12560 (TuiList, TuiListPtr): Ditto.
12561 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12562 (TuiDataType, TuiDataTypePtr): Ditto.
12563 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12564 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12565 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12566 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12567 (TuiDataElement, TuiDataElementPtr): Ditto.
12568 (TuiWinElement, TuiWinElementPtr): Ditto.
12569 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12570 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12571 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12572 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12573 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12574 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12575 * tui/tui-command.c, tui/tui-data.c: Update references.
12576 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12577 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12578 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12579 * tui/tui-winsource.c, tui/tui.c: Ditto.
12581 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12583 * dwarf2-frame.h: Update copyright.
12584 (enum dwarf2_frame_reg_rule): New.
12585 (struct dwarf2_frame_state_reg): New.
12586 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12587 * dwarf2-frame.c: Update copyright.
12588 (enum dwarf2_reg_rule): Remove.
12589 (struct dwarf2_frame_state): Remove defenition of `struct
12590 dwarf2_frame_state_reg'.
12591 (read_reg): Call get_frame_arch to get the architecture instead of
12592 using CURRENT_GDBARCH.
12593 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12595 (dwarf2_frame_init_reg): New function.
12596 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12597 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12598 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12599 tags with DWARF2_FRAME_.
12600 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12601 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12602 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12604 2004-02-06 Andrew Cagney <cagney@redhat.com>
12606 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12607 (enum tui_data_type): Rename _TuiDataType.
12608 (struct tui_layout_def): Rename _TuiLayoutDef.
12609 (struct tui_source_element): Rename _TuiSourceElement.
12610 (struct tui_data_element): Rename _TuiDataElement.
12611 (struct tui_command_element): Rename _TuiCommandElement.
12612 (struct tui_locator_element): Rename _TuiLocatorElement.
12613 (union tui_which_element): Define.
12614 (struct tui_win_element): Rename _TuiWinElement.
12615 (struct tui_data_info): Rename _TuiDataInfo.
12616 (struct tui_source_info): Rename _TuiSourceInfo.
12617 (struct tui_command_info): Rename _TuiCommandInfo.
12618 (tui_initialize_static_data): Rename initializeStaticData.
12619 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12620 (tui_alloc_win_info): Rename allocWinInfo.
12621 (tui_init_generic_part): Rename initGenericPart.
12622 (tui_init_win_info): Rename initWinInfo.
12623 (tui_alloc_content): Rename allocContent.
12624 (tui_add_content_elements): Rename addContentElements.
12625 (tui_init_content_element): Rename initContentElement.
12626 (tui_free_window): Rename freeWindow.
12627 (tui_free_win_content): Rename freeWinContent.
12628 (tui_free_data_content): Rename freeDataContent.
12629 (tui_free_all_source_wins_content): Rename
12630 freeAllSourceWinsContent.
12631 (tui_del_window): Rename tuiDelWindow.
12632 (tui_del_data_windows): Rename tuiDelDataWindows.
12633 (tui_partial_win_by_name): Rename partialWinByName.
12634 (tui_win_name): Rename winName.
12635 (tui_current_layout): Rename currentLayout.
12636 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12637 (tui_term_height): Rename termHeight.
12638 (tui_set_term_height_to): Rename setTermHeightTo.
12639 (tui_term_width): Rename termWidth.
12640 (tui_set_term_width_to): Rename setTermWidthTo.
12641 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12642 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12643 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12644 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12645 (tui_source_windows): Rename sourceWindows.
12646 (tui_clear_source_windows): Rename clearSourceWindows.
12647 (tui_clear_source_windows_detail): Rename
12648 clearSourceWindowsDetail.
12649 (tui_clear_win_detail): Rename clearWinDetail.
12650 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12651 (tui_default_tab_len): Rename tuiDefaultTabLen.
12652 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12653 (tui_win_with_focus): Rename tuiWinWithFocus.
12654 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12655 (tui_layout_def): Rename tuiLayoutDef.
12656 (tui_win_resized): Rename tuiWinResized.
12657 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12658 (tui_next_win): Rename tuiNextWin.
12659 (tui_prev_win): Rename tuiPrevWin.
12660 (tui_add_to_source_windows): Rename addToSourceWindows.
12661 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12662 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12663 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12664 * tui/tui.c, tui/tui-data.c: Ditto.
12665 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12666 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12668 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12669 (struct symtab): Declare.
12670 (tui_set_source_content): Rename tuiSetSourceContent.
12671 (tui_show_symtab_source): Rename tuiShowSource.
12672 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12673 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12674 * tui/tui-source.c: Update copyright. Update references.
12675 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12676 * tui/tui-stack.c: Update references.
12678 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12679 (struct tui_win_info): Declare.
12680 (tui_scroll_forward): Rename tuiScrollForward.
12681 (tui_scroll_backward): Rename tuiScrollBackward.
12682 (tui_scroll_left): Rename tuiScrollLeft.
12683 (tui_scroll_right): Rename tuiScrollRight.
12684 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12685 (tui_resize_all): Rename tuiResizeAll.
12686 (tui_refresh_all_win): Rename tuiRefreshAll.
12687 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12688 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12689 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12690 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12692 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12693 (tui_erase_data_content): Rename tuiEraseDataContent.
12694 (tui_display_all_data): Rename tuiDisplayAllData.
12695 (tui_check_data_values): Rename tuiCheckDataValues.
12696 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12697 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12698 (tui_first_data_element_no_in_line): Rename
12699 tuiFirstDataElementNoInLine.
12700 (tui_delete_data_content_windows): Rename
12701 tuiDeleteDataContentWindows.
12702 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12703 (tui_display_data_from): Rename tuiDisplayDataFrom.
12704 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12705 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12706 * tui/tui-win.c, tui/tui-regs.c: Update references.
12707 * tui/tui-layout.c, tui/tui.c: Update references.
12709 * tui/tui-wingeneral.h: Update copyright.
12710 (m_allBeVisible): Delete macro.
12711 (m_allBeInvisible): Delete macro.
12712 (struct tui_gen_win_info): Declare.
12713 (struct tui_win_info): Declare.
12714 (tui_unhighlight_win): Rename unhighlightWin.
12715 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12716 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12717 (tui_make_window): Rename makeWindow.
12718 (tui_copy_win): Rename copyWin.
12719 (tui_box_win): Rename boxWin.
12720 (tui_highlight_win): Rename highlightWin.
12721 (tui_check_and_display_highlight_if_needed): Rename
12722 checkAndDisplayHighlightIfNeeded.
12723 (tui_refresh_all): Rename refreshAll.
12724 (tui_delete_win): Rename tuiDelwin.
12725 (tui_refresh_win): Rename tuiRefreshWin.
12726 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12727 (tui_make_visible, tui_make_invisible): New functions.
12728 (tui_make_all_visible, tui_make_all_invisible): New functions.
12729 (make_all_visible): Rename makeAllVisible.
12730 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12731 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12732 * tui/tui-windata.c, tui/tui-win.c: Update references.
12733 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12734 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12736 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12738 * proc-api.c (write_with_trace): Initialize local variable to
12739 silence compiler warning.
12741 2004-02-06 Andrew Cagney <cagney@redhat.com>
12743 * tui/tui-source.h: Do not include "defs.h".
12744 (struct tui_win_info): Declare.
12745 (tui_set_source_content_nil): Declare.
12746 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12747 (union tui_line_or_address): Rename _TuiLineOrAddress.
12748 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12749 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12750 (tui_update_source_window_as_is): Rename
12751 tuiUpdateSourceWindowAsIs.
12752 (tui_update_source_windows_with_addr): Rename
12753 tuiUpdateSourceWindowsWithAddr.
12754 (tui_update_source_windows_with_line): Rename
12755 tuiUpdateSourceWindowsWithLine.
12756 (tui_clear_source_content): Rename tuiClearSourceContent.
12757 (tui_erase_source_content): Rename tuiEraseSourceContent.
12758 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12759 (tui_show_source_content): Rename tuiShowSourceContent.
12760 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12761 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12762 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12763 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12764 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12765 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12766 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12767 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12768 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12769 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12770 (struct tui_win_info): Declare.
12771 * tui/tui-stack.c: Update references.
12772 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12773 * tui/tui-win.c, tui/tui-source.c: Ditto.
12774 * tui/tui.c, tui/tui-disasm.c: Ditto.
12776 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12778 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12779 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12781 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12783 * infrun.c (handle_inferior_event): Allow for breakpoint
12784 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12785 and SIGEMT. Update comments.
12786 * NEWS (Revised SPARC target): Mention support for non-executable
12789 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12791 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12792 * inftarg.c: Update copyright year.
12793 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12794 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12795 (sparc_xfer_wcookie): New function.
12796 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12797 * Makefile.in (sparc-nat.o): Update dependencies.
12798 * config/sparc/nm-nbsd.h: Include "target.h".
12799 (NATIVE_XFER_WCOOKIE): New define.
12800 (sparc_xfer_wcookie): New prototype.
12802 2004-02-04 Andrew Cagney <cagney@redhat.com>
12804 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12805 SYSCALL_TRAP function.
12806 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12808 2004-02-04 Andrew Cagney <cagney@redhat.com>
12809 Daniel Jacobowitz <drow@mvista.com>
12811 * objfiles.h: Delete comments refering to inside_entry_func and
12812 DEPRECATED_FRAME_CHAIN_VALID.
12813 * defs.h (inside_entry_func): Update prototype..
12814 * blockframe.c (inside_entry_func): Rename to
12815 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12816 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12818 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12820 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12821 outside of #ifdef SOLIB_ADD region.
12822 (do_restore_lang_radix_cleanup): Ditto.
12823 (resolve_pending_breakpoint): Ditto.
12825 2004-02-03 Andrew Cagney <cagney@redhat.com>
12827 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12828 (process_note_abi_tag_sections): Delete unused function.
12829 (ia64_read_fp): Delete unused function.
12830 (gdbarch_extract_struct_value_address): Delete declaration.
12832 2004-02-02 Andrew Cagney <cagney@redhat.com>
12834 * vax-tdep.c (vax_frame_chain): Delete call to
12835 deprecated_inside_entry_file.
12836 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12838 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12840 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12841 column that's "empty" or "same value" when eliminating REG_RA
12844 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12846 * NEWS: Add information about new pending breakpoint support.
12848 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12850 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12851 and pending fields for pending breakpoint support.
12852 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12853 (condition_command): Only parse condition if not a pending
12855 (print_one_breakpoint): Add support for pending breakpoints.
12856 (describe_other_breakpoints): Add checks to verify we are not
12857 dealing with pending breakpoints.
12858 (check_duplicates): Don't check pending breakpoints.
12859 (set_raw_breakpoint): Initialize pending flag.
12860 (do_restore_lang_radix_cleanup): New cleanup routine.
12861 (resolve_pending_breakpoint): New function.
12862 (re_enable_breakpoints_in_shlibs): Try and resolve any
12863 pending breakpoints via resolve_pending_breakpoint.
12864 (mention): Add pending breakpoint support.
12865 (parse_breakpoint_sals): Add new parameter to pass to
12866 decode_line_1 to indicate silent errors when files or functions
12867 are not found. Change all callers.
12868 (do_captured_parse_breakpoint): New function.
12869 (break_command_1): Change prototype to return an rc value and to
12870 take an optional pending breakpoint pointer. Support creating
12871 a pending breakpoint if a "not found" form of error occurs when
12872 parsing the breakpoint. Also support resolving an existing pending
12873 breakpoint and be silent if the resolution fails.
12874 (create_breakpoints): Change prototype to take pending breakpoint
12875 pointer. When resolving a pending breakpoint, use the new pointer
12876 to provide a conditional or commands added by the end-user.
12877 (delete_breakpoint): Add appropriate check for pending.
12878 (breakpoint_re_set_one): Ditto.
12879 (do_enable_breakpoint): Ditto.
12881 2004-02-02 David Carlton <carlton@kealia.com>
12883 * valops.c (enum oload_classification): New.
12884 (find_overload_match): Break implementation into separate
12885 functions; delete #if 0'd code; look for symbols within
12887 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12888 (find_oload_champ,oload_method_static,classify_oload_match): New.
12889 * cp-support.h: Add declaration for cp_func_name; update
12890 declaration for make_symbol_overload_list.
12891 * cp-support.c (cp_func_name): New.
12892 (overload_list_add_symbol): Fix comment, use
12893 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12894 (make_symbol_overload_list): Take a function name and a namespace
12895 instead of a symbol; change implementation.
12896 (make_symbol_overload_list_using): New.
12897 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12899 2004-02-02 Fred Fish <fnf@redhat.com>
12901 * main.c (gdb_stdtarg): Move definition to group with other
12902 gdb_stdtarg definitions and update copyright years.
12903 * remote-sim.c (gdb_os_write_stderr): Write output to
12904 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12905 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12906 gdb_stderr stream and update copyright years.
12908 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12910 * Makefile.in (mips-linux-nat.o): Update dependencies.
12911 * mips-linux-nat.c: Include mips-tdep.h.
12913 2004-02-01 Roland McGrath <roland@redhat.com>
12915 * sol-thread.c (sol_thread_xfer_partial): New function.
12916 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12917 (init_sol_core_ops): Likewise.
12919 * procfs.c (procfs_xfer_partial): New function.
12920 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12921 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12923 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12924 procfs_xfer_auxv function.
12926 * procfs.c (procfs_make_note_section): If we can read
12927 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12928 * linux-proc.c (linux_make_note_section): Likewise.
12930 * auxv.h: New file.
12931 * auxv.c: New file.
12932 * Makefile.in (auxv_h): New variable.
12933 (COMMON_OBS): Add auxv.o here.
12934 (auxv.o): New target.
12936 * corelow.c (core_xfer_partial): New function.
12937 (init_core_ops): Use it for core_ops.to_xfer_partial.
12939 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12940 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12941 macro if that is defined.
12943 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12945 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12946 and check the specified thread for each breakpoint.
12947 * breakpoint.h (bpstat_stop_status): Update prototype.
12948 * infrun.c (handle_inferior_event): Update calls to
12949 bpstat_stop_status.
12951 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12953 * Makefile.in (cli-cmds.o): Add $(readline_h).
12955 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12957 * cli/cli-cmds.c: Include readline.h.
12958 (complete_command): Pass the start of the last word to
12961 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12963 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12964 argument, and change first argument to a CORE_ADDR.
12965 * breakpoint.h (bpstat_stop_status): Update prototype.
12966 * infrun.c (adjust_pc_after_break): Add a new comment.
12967 (handle_inferior_event): Update calls to bpstat_stop_status.
12969 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12971 * breakpoint.h: Update copyright years.
12973 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12975 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12976 (bpstat_stop_status): Don't decrement PC.
12977 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12979 * infrun.c (adjust_pc_after_break): New function.
12980 (handle_inferior_event): Call it, early. Remove later references
12981 to DECR_PC_AFTER_BREAK.
12982 (normal_stop): Add commentary.
12984 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12986 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12987 2004-01-27 double-free fix.
12989 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12991 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12992 (sparc32_frame_prev_register): Handle StackGhost.
12993 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12995 2004-01-29 Roland McGrath <roland@redhat.com>
12997 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12998 * configure: Regenerated.
13000 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13001 * Makefile.in (procfs.o): Add dep.
13003 2004-01-28 Andrew Cagney <cagney@redhat.com>
13005 * tui/tui-stack.h: Update copyright.
13006 (struct frame_info): Add opaque declaration.
13007 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13008 (tui_show_locator_content): Rename tuiShowLocatorContent.
13009 (tui_show_frame_info): Rename tuiShowFrameInfo.
13010 * tui/tui-stack.c: Update copyright. Update references.
13011 * tui/tui-winsource.c: Update references.
13012 * tui/tui-win.c: Update references.
13013 * tui/tui-layout.c: Update references.
13014 * tui/tui-hooks.c: Update copyright, update references.
13015 * tui/tui.c: Update copyright, update references.
13016 * tui/tui-disasm.c: Update references.
13018 2004-01-28 David Carlton <carlton@kealia.com>
13020 * dwarf2read.c (add_partial_structure): Use demangled name if
13021 namespace equals "".
13023 2004-01-27 Jim Blandy <jimb@redhat.com>
13025 Clean up misapplied patch:
13026 * dwarf2read.c (determine_prefix): Change one of the two forward
13027 declarations for 'determine_prefix_aux' to a declaration for this.
13028 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13029 argument to 'die_specification'.
13031 * dwarf2read.c (read_func_scope): Re-indent comment.
13033 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13035 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13036 b->exp to NULL after freeing so that error during re-parsing or
13037 evaluation of expressions associated with breakpoint don't
13038 eventually lead to re-freeing of storage.
13039 Committed by Andrew Cagney.
13041 2004-01-27 Andrew Cagney <cagney@redhat.com>
13043 * source.c (ambiguous_line_spec): Delete undefined declaration.
13044 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13045 (m32r_set_server_address, m32r_set_download_path): Ditto.
13046 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13048 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13050 * dwarf2read.c: Update calls to changed and renamed functions, and
13051 references to moved variables.
13053 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13054 language, language_defn, list_in_scope, and ftypes members.
13055 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13056 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13057 (baseaddr): Remove globals.
13059 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13060 (set_cu_language, die_is_declaration, die_specification)
13061 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13062 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13063 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13064 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13066 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13067 cu.list_in_scope. Don't initialize cu_header_offset.
13068 (add_partial_symbol): Add local baseaddr.
13069 (psymtab_to_symtab_1): Add local baseaddr. Use
13070 objfile->section_offsets for consistency. Don't initialize
13071 cu_header_offset; do initialize cu.header.offset and
13073 (read_file_scope, read_func_scope, read_lexical_block_scope)
13074 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13076 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13078 * PROBLEMS: Add gdb/1516.
13080 2003-12-29 Robert Millan <robertmh@gnu.org>
13082 Patch committed by Andrw Cagney.
13083 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13084 * configure.tgt: Match knetbsd*-gnu.
13086 2004-01-26 Andrew Cagney <cagney@redhat.com>
13088 * breakpoint.c (catch_command_1): Delete #ifdef code.
13089 (catch_fork_command_1): Delete #ifdef wrapper.
13090 (catch_exec_command_1): Ditto.
13091 (catch_load_command_1): Ditto.
13092 (catch_unload_command_1): Ditto.
13094 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13095 (catch_breakpoint): Delete #if0ed function.
13096 (disable_catch_breakpoint): Ditto.
13097 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13098 (disable_catch, enable_catch, delete_catch): Ditto.
13100 2004-01-26 Andrew Cagney <cagney@redhat.com>
13102 * remote.c (echo_check, quit_flag): Delete variables.
13103 (cisco_kernel_mode): Delete variable.
13104 (minitelnet_return, tty_input, escape_count): Delete variables.
13105 (remote_cisco_mode): Delete variable.
13106 (remote_cisco_open, remote_cisco_close): Delete function.
13107 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13108 (init_remote_cisco_ops): Delete function.
13109 (_initialize_remote): Do not install "remote cisco" code.
13110 (read_frame): Delete cisco specific code.
13111 (remote_info_process): Delete function.
13112 (remote_wait): Delete cisco specific code.
13113 (remote_cisco_section_offsets): Delete function.
13114 (remote_cisco_objfile_relocate): Delete function.
13115 (remote_async_wait): Delete cisco specific code.
13116 (minitelnet, readtty, readsocket): Delete function.
13118 2004-01-26 Andrew Cagney <cagney@redhat.com>
13120 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13121 comments mentioning extract_returned_value_address.
13122 * infcmd.c (print_return_value): Update. Add comments on
13123 extract_returned_value_address.
13124 * stack.c (return_command): Add comments on
13125 extract_returned_value_address.
13126 * values.c: Update comment.
13127 * m32r-tdep.c: Update comment.
13128 * sparc-tdep.c: Update comment.
13129 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13131 * sh64-tdep.c (sh64_gdbarch_init): Update.
13132 * sh-tdep.c (sh_gdbarch_init): Update.
13133 * s390-tdep.c (s390_gdbarch_init): Update.
13134 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13135 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13136 * m68k-tdep.c (m68k_gdbarch_init): Update.
13137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13138 * m32r-tdep.c (m32r_gdbarch_init): Update.
13139 * ia64-tdep.c (ia64_gdbarch_init): Update.
13140 * h8300-tdep.c (h8300_gdbarch_init): Update.
13141 * frv-tdep.c (frv_gdbarch_init): Update.
13142 * arm-tdep.c (arm_gdbarch_init): Update.
13143 * alpha-tdep.c (alpha_gdbarch_init): Update.
13145 2004-01-26 Andrew Cagney <cagney@redhat.com>
13147 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13148 SYMBOL_LOCATION_FUNCS
13149 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13150 "struct symbol_ops".
13151 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13152 type to "struct symbol_ops".
13153 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13154 (struct symbol): Replace ".aux_value.loc.funcs" and
13155 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13156 (SYMBOL_OBJFILE): Delete macro.
13157 (SYMBOL_LOCATION_FUNCS): Delete macro.
13158 (SYMBOL_LOCATION_BATON): Update.
13159 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13160 intead of SYMBOL_LOCATION_FUNCS.
13161 * ax-gdb.c (gen_var_ref): Ditto.
13162 * printcmd.c (address_info): Ditto.
13163 * findvar.c (read_var_value): Ditto.
13164 (symbol_read_needs_frame): Ditto.
13166 2004-01-26 Andrew Cagney <cagney@redhat.com>
13168 * dwarf2read.c (read_func_scope): Document frame-base hack.
13170 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13172 * infcmd.c (print_return_value): Plug memory leak; delete
13173 ui_stream object. Rename argument `structure_return' to
13176 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13178 * infcmd.c (print_return_value): Wrap long lines.
13179 (finish_command_continuation, finish_command): Remove unused
13180 variable `funcaddr'. Fix some coding-standards problems.
13182 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13183 SECT_SIZE is large enough, not whether it's exactly the right size.
13184 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13185 TDEP->fpregset to zero.
13187 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13188 floating-point registers for traditional NetBSD core files.
13189 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13190 TDEP->sizeof_fpregset here.
13192 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13194 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13195 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13196 function with code split out from
13197 sparc32nbsd_sigcontext_frame_cache.
13198 (sparc32nbsd_sigcontext_frame_cache): Use
13199 sparc32nbsd_sigcontext_saved_regs.
13200 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13202 * sparcobsd-tdep.c: New file.
13203 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13204 (sparcobsd-tdep.o): New dependency.
13205 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13206 * config/sparc/obsd.mt: New file.
13208 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13209 TDEP->fpregset to be initialized to enable core file register
13212 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13214 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13215 Add opaque declarations.
13216 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13217 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13218 function with code split out from
13219 sparc64nbsd_sigcontext_frame_cache.
13220 (sparc64nbsd_sigcontext_frame_cache): Use
13221 sparc64nbsd_sigcontext_saved_regs.
13222 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13224 * sparc64obsd-tdep.c: New file.
13225 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13226 (sparc64obsd-tdep.o): New dependency.
13227 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13228 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13229 * config/sparc/obsd64.mt: New file.
13231 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13232 read the instruction at PC.
13234 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13235 value of GDB_OSABI_DEFAULT.
13236 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13237 instead of GDB_OSABI_NETBSD_AOUT.
13239 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13241 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13244 2004-01-23 Andrew Cagney <cagney@redhat.com>
13246 * printcmd.c (display_command): Replace tui_set_display call with
13247 tui_set_layout_for_display_command.
13248 * tui/tui.h (enum tui_win_type): Define.
13249 (tui_set_layout): Delete declaration.
13250 (tui_set_layout_for_display_command): Rename set_tui_layout.
13251 * tui/tui-data.h (enum tui_layout_type): Define.
13252 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13254 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13255 (tui_default_win_height): Rename tuiDefaultWinHeight.
13256 (tui_default_win_viewport_height): Rename
13257 tuiDefaultWinViewportHeight.
13258 (tui_set_layout): RenametuiSetLayout.
13259 * tui/tui-layout.c: Update references.
13260 * tui/tui.c: Update references.
13261 * tui/tui-disasm.c: Update references.
13263 2004-01-23 David Carlton <carlton@kealia.com>
13265 Partial workaround for PR c++/1511:
13266 * cp-namespace.c: Include frame.h.
13267 (cp_lookup_transparent_type): New
13268 (cp_lookup_transparent_type_loop): New.
13269 * cp-support.h: Declare cp_lookup_transparent_type.
13270 * symtab.c (basic_lookup_transparent_type): Renamed from
13271 lookup_transparent_type.
13272 (lookup_transparent_type): Replace old body by a call to
13273 current_language->la_lookup_transparent_type.
13274 * symtab.h: Update copyright. Declare
13275 basic_lookup_transparent_type.
13276 * language.h: Update copyright.
13277 (struct language_defn): Add la_lookup_transparent_type.
13278 * language.c: Update copyright.
13279 (unknown_language_defn): Add basic_lookup_transparent_type.
13280 (auto_language_defn): Add basic_lookup_transparent_type.
13281 (local_language_defn): Add basic_lookup_transparent_type.
13282 * ada-lang.c: Update copyright.
13283 (ada_language_defn): Add basic_lookup_transparent_type.
13284 * c-lang.c: Update copyright.
13285 (c_language_defn): Add basic_lookup_transparent_type.
13286 (cplus_language_defn): Add basic_lookup_transparent_type.
13287 (asm_language_defn): Add basic_lookup_transparent_type.
13288 (minimal_language_defn): Add basic_lookup_transparent_type.
13289 * f-lang.c: Update copyright.
13290 (f_language_defn): Add basic_lookup_transparent_type.
13291 * jv-lang.c: Update copyright.
13292 (java_language_defn): Add basic_lookup_transparent_type.
13293 * m2-lang.c: Update copyright.
13294 (m2_language_defn): Add basic_lookup_transparent_type.
13295 * objc-lang.c: Update copyright.
13296 (objc_language_defn): Add basic_lookup_transparent_type.
13297 * p-lang.c: Update copyright.
13298 (p_language_defn): Add basic_lookup_transparent_type.
13299 * scm-lang.c: Update copyright.
13300 (scm_language_defn): Add basic_lookup_transparent_type.
13301 * Makefile.in (cp-namespace.o): Depend on frame.h.
13303 2004-01-23 David Carlton <carlton@kealia.com>
13305 Patch for PR c++/1520:
13306 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13307 properly if we have a specification die.
13308 (determine_prefix_aux): Rename from determine_prefix.
13309 (determine_prefix): Like the old determine_prefix, but never
13312 2004-01-23 Theodore A. Roth <troth@openavr.org>
13314 * avr-tdep.c: Update copyright.
13315 (avr_iaddr_p): Delete unused function.
13316 (avr_saddr_p): Delete unused function.
13318 2004-01-23 David Carlton <carlton@kealia.com>
13320 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13321 Fix for PR symtab/1534.
13323 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13325 * NEWS (New native configurations): Mention OpenBSD/sparc and
13327 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13328 * configure.host: Likewise.
13329 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13330 handler for OpenBSD.
13331 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13333 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13335 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13336 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13338 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13339 * cli/cli-cmds.c (shell_escape): Likewise.
13341 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13342 OpenBSD .note.openbsd.ident sections.
13344 2004-01-22 David Carlton <carlton@kealia.com>
13346 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13347 get_scope_pc_bounds.
13348 (read_file_scope): Ditto.
13349 (get_scope_pc_bounds): New function, produced by extracting code
13350 from the above two functions, consolidating it, and adding support
13351 for DW_TAG_namespace.
13353 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13355 * osabi.c (MAX_NOTESZ): New define.
13356 (check_note): New function.
13357 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13360 2004-01-21 Roland McGrath <roland@redhat.com>
13362 * MAINTAINERS (write after approval): Add myself.
13364 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13366 * utils.c (init_page_info): Move declarations of `rows' and
13367 `cols' before the __GO32__-specific code. Move the closing brace
13368 outside the #ifdef __GO32__..#endif block.
13369 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13371 2004-01-21 Paul Brook <paul@codesourcery.com>
13373 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13374 BPSTAT_WHAT_CHECK_SHLIBS.
13376 2004-01-21 Paul Brook <paul@codesourcery.com>
13378 * MAINTAINERS: Add myself to write-after-approval.
13380 2004-01-20 Andrew Cagney <cagney@redhat.com>
13382 * ax-gdb.c (print_axs_value): Delete unused function.
13383 * jv-lang.c (java_lookup_type): Delete unused function.
13384 * cli/cli-dump.c (dump_filetype): Delete unused function.
13385 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13386 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13387 (mips_getstring): Delete unused function.
13388 (pmon_insert_breakpoint): Delete #if0ed function.
13389 (PMON_MAX_BP): Delete #if0ed MACRO.
13390 (mips_pmon_bp_info): Delete #if0ed variable.
13391 (pmon_remove_breakpoint): Delete #if0ed function.
13392 * monitor.c (monitor_write_even_block): Delete unused function.
13393 (monitor_write_memory_block): Delete #if0ed code.
13394 * dink32-rom.c (dink32_load): Delete unused function.
13395 (_initialize_dink32_rom): Delete #if0ed code.
13396 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13398 * tui/tui-command.c: Update references.
13399 * tui/tui-io.c: Update references.
13400 * tui/tui-command.h: Update copyright.
13401 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13403 * source.c (ambiguous_line_spec): Delete never-defined function.
13404 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13405 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13406 * cli/cli-cmds.c (validate_comname): Ditto.
13408 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13410 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13411 (tui_show_disassem): Rename tuiShowDisassem.
13412 (tui_show_disassem_and_update_source): Rename
13413 tuiVerticalDisassemScroll.
13414 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13415 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13416 * tui/tui.h: Update copyright.
13417 (enum tui_status): Define.
13418 * tui/tui-data.h (enum tui_scroll_direction): Define.
13419 * tui/tui-disasm.c: Update copyright. Update references.
13420 * tui/tui-winsource.c: Update copyright. Update references.
13421 * tui/tui-win.c: Update references.
13422 * tui/tui-layout.c: Update references.
13424 2004-01-20 Andrew Cagney <cagney@redhat.com>
13426 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13427 sym2 to start of block.
13429 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13431 * MAINTAINERS: Delete mmalloc.
13432 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13433 * NEWS: Mention removal of --with-malloc.
13434 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13435 * config.in: Regenerate.
13436 * configure: Regenerate.
13437 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13438 USE_MMALLOC, MMCHECK_FORCE.
13439 * gdbinit.in: Remove mmalloc.
13440 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13441 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13442 * config/i386/go32.mh: Likewise.
13443 * config/i386/interix.mh: Likewise.
13444 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13446 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13448 * linespec.c (decode_variable, symtab_from_filename): Call
13449 error_silent with error message instead of throwing an exception
13451 * defs.h (error_silent, error_output_message): Add prototypes.
13452 (catch_exceptions_with_msg): Ditto.
13453 * utils.c (error_silent, error_output_message): New functions.
13454 * top.c (catch_exceptions_with_msg): New function.
13456 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13458 * mi/mi-cmds.h (enum print_values): Add definition.
13460 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13461 type and value for simple data types and just the name and type
13462 for complex ones, if required.
13464 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13465 children, if required.
13467 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13469 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13470 unused declarations.
13472 2004-01-19 Andrew Cagney <cagney@redhat.com>
13474 * top.h (mapped_symbol_files): Delete declaration.
13475 * main.c (captured_main): Delete option "m" and "mapped".
13476 * objfiles.c (mapped_symbol_files): Delete variable.
13477 * symfile.c (symbol_file_command): Delete mmap code.
13478 (symbol_file_add_with_addrs_or_offsets): Ditto.
13479 (add_symbol_file_command, reread_separate_symbols): Ditto.
13480 * objfiles.h (OBJF_MAPPED): Delete.
13481 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13482 (free_objfile) [USE_MMALLOC]: Ditto.
13483 (open_existing_mapped_file): Delete function.
13484 (open_mapped_file): Delete function.
13485 (map_to_file): Delete function.
13487 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13489 * infrun.c (step_into_function): Account for possible breakpoint
13490 adjustment when computing ``stop_func_start''.
13492 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13494 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13495 the region size against the size of a pointer, not the size of
13496 a register as given by DEPRECATED_REGISTER_SIZE.
13498 2004-01-19 Andrew Cagney <cagney@redhat.com>
13500 * tui/tui-regs.h: Include "tui-data.h".
13501 (tuiFirstRegElementNoInLine): Delete declaration.
13502 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13503 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13504 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13505 (tui_calculate_regs_column_count): Rename
13506 tuiCalculateRegsColumnCount.
13507 (tui_check_register_values): Rename tuiCheckRegisterValues.
13508 (tui_show_registers): Rename tuiShowRegisters.
13509 (tui_display_registers_from_line): Rename
13510 tuiDisplayRegistersFromLine.
13511 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13512 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13513 (tui_first_reg_element_no_inline): Rename
13514 tuiFirstRegElementNoInLine.
13515 * tui/tui-data.h: Update copyright.
13516 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13517 * tui/tui-windata.c: Update copyright, update references.
13518 * tui/tui-regs.c: Update copyright, update references.
13519 * tui/tui-win.c: Update copyright, update references.
13520 * tui/tui-layout.c: Update copyright, update references.
13522 2004-01-18 Andrew Cagney <cagney@redhat.com>
13524 * tui/tui-io.c: Update copyright.
13525 (key_is_end_sequence, key_is_backspace): New functions.
13526 (key_is_command_char, key_is_start_sequence): New function.
13527 (tui_getc): Update references.
13528 * tui/tui-io.h: Update copyright.
13529 (m_tuiStartNewLine): Delete macro.
13530 (m_isBackspace, m_isDeleteChar): Delete macros.
13531 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13532 (m_isNextPage, m_isPrevPage): Delete macros.
13533 (m_isLeftArrow, m_isRightArrow): Delete macros.
13534 (m_isXdbStyleCommandChar): Delete macro.
13535 (key_is_start_sequence): Declare, replace m_isStartSequence.
13536 (key_is_end_sequence): Declare, replace m_isEndSequence.
13537 (key_is_backspace): Declare ,replace m_isBackspace.
13538 (key_is_command_char): Declare, replace m_isCommandChar.
13539 * tui/tui-command.c: Update copyright.
13540 (tuiDispatchCtrlChar): Update references.
13542 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13545 * tui/tui-command.c: Rename tui/tuiCommand.c.
13546 * tui/tui-command.h: Rename tui/tuiCommand.h.
13547 * tui/tui-data.c: Rename tui/tuiData.c.
13548 * tui/tui-data.h: Rename tui/tuiData.h.
13549 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13550 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13551 * tui/tui-io.c: Rename tui/tuiIO.c.
13552 * tui/tui-io.h: Rename tui/tuiIO.h.
13553 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13554 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13555 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13556 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13557 * tui/tui-source.c: Rename tui/tuiSource.c.
13558 * tui/tui-source.h: Rename tui/tuiSource.h.
13559 * tui/tui-stack.c: Rename tui/tuiStack.c.
13560 * tui/tui-stack.h: Rename tui/tuiStack.h.
13561 * tui/tui-win.c: Rename tui/tuiWin.c.
13562 * tui/tui-win.h: Rename tui/tuiWin.h.
13563 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13564 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13565 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13566 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13567 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13568 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13569 * tui/tui-file.c: Update includes.
13570 * tui/tui-hooks.c: Update includes.
13571 * tui/tui-interp.c: Update includes.
13572 * tui/tui.c: Update includes.
13573 * Makefile.in: Update all tui/ dependencies.
13574 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13576 * Makefile.in: Update copyright. Update dependencies.
13578 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13581 2004-01-18 Andrew Cagney <cagney@redhat.com>
13583 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13584 instead of register_gdbarch_init.
13586 * remote-sds.c (tohex): Delete unused function. Update copyright.
13587 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13588 * v850-tdep.c (v850_register_virtual_size): Ditto.
13589 * target.c (normal_target_post_startup_inferior): Ditto.
13590 * source.c (ambiguous_line_spec): Ditto.
13591 * remote.c (adapt_remote_get_threadinfo): Ditto.
13592 * mi/mi-out.c (out_field_fmt): Ditto.
13593 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13594 (output_control_change_notification): Ditto.
13595 * m68k-tdep.c (m68k_register_byte): Ditto.
13596 (m68k_remote_breakpoint_from_pc): Ditto.
13597 * ui-out.c (init_ui_out_state): Delete unused declaration.
13598 * stabsread.c (search_value): Ditto.
13599 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13600 * maint.c (print_section_table): Ditto.
13601 * infrun.c (set_follow_fork_mode_command): Ditto.
13603 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13605 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13606 DW_CFA_def_cfa_exporession. Add support for
13607 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13608 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13610 2004-01-18 Andrew Cagney <cagney@redhat.com>
13612 * ocd.c: Update copyright.
13613 (bdm_read_register_command): Delete unused function.
13614 (_initialize_remote_ocd): Delete commented out reference.
13615 (get_quoted_char, reset_packet): Delete #if0ed function.
13616 (output_packet, put_quoted_char): Delete #if0ed function.
13617 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13618 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13619 (BDM_BREAKPOINT): Delete #if0ed macro.
13620 (remote_timeout): Delete #if0ed variable.
13622 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13624 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13625 (core-sol2.o): Remove dependency.
13626 * core-sol2.c: Remove file.
13628 2004-01-17 Andrew Cagney <cagney@redhat.com>
13630 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13631 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13634 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13636 * remote.c: Update copyright years.
13638 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13640 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13642 2004-01-17 Andrew Cagney <cagney@redhat.com>
13644 * mdebugread.c: Update copyright.
13645 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13646 (parse_type, parse_procedure): Ditto.
13647 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13649 * cris-tdep.c (cris_store_struct_return): Put back accidently
13652 * gdbarch.sh: Update copyright year.
13653 * gdbarch.h, gdbarch.c: Re-generate.
13655 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13657 Suggested by George Anzinger.
13658 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13659 correct stack offset. Include unknown opcode numbers in the error
13662 2004-01-17 Andrew Cagney <cagney@redhat.com>
13664 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13665 extract_struct_value_address, i386 does not set it.
13666 * sparc64-tdep.c (sparc64_init_abi): Do not set
13667 extract_struct_value_address, never called.
13668 (sparc64_extract_struct_value_address): Delete function.
13669 * m68hc11-tdep.c: Update copyright.
13670 (m68hc11_gdbarch_init): Delete redundant assignment of
13671 extract_struct_value_address.
13672 * i386-tdep.c: Update copyright.
13673 (i386_gdbarch_init): Do not set extract_struct_value_address,
13675 (i386_extract_struct_value_address): Delete function.
13676 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13677 extract_struct_value_address, never called.
13678 (sparc32_extract_struct_value_address): #if 0 function. Add
13679 comments explaining its future.
13681 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13683 * arm-tdep.c (arm_write_pc): New function.
13684 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13686 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13688 * breakpoint.c (must_shift_inst_regs): Delete.
13689 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13690 and SHIFT_INST_REGS.
13691 * infcmd.c (step_1, step_1_continuation): Delete references to
13693 * infrun.c (keep_going): Likewise.
13694 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13695 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13697 2004-01-17 Andrew Cagney <cagney@redhat.com>
13699 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13700 * gdbarch.h, gdbarch.c: Re-generate.
13701 * infcmd.c (print_return_value): Delete reference to
13702 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13704 * cris-tdep.c (cris_gdbarch_init): Do not set
13705 deprecated_extract_struct_value_address.
13707 * xstormy16-tdep.c: Update copyright.
13708 (xstormy16_extract_struct_value_address): Update to current
13709 extract struct value address interface.
13710 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13711 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13712 current extract struct value address interface.
13713 (sh64_gdbarch_init): Set extract_struct_value_address.
13715 * cris-tdep.c: Update copyright.
13716 (cris_extract_struct_value_address): Delete function.
13717 (struct_return_address): Delete variable.
13718 (cris_store_struct_return): Do not set struct_return_address.
13720 * mcore-tdep.c: Update copyright.
13721 (mcore_extract_struct_value_address): Delete function. Update
13723 (mcore_gdbarch_init): Update.
13724 * mn10300-tdep.c: Update copyright.
13725 (mn10300_extract_struct_value_address): Delete function.
13726 (mn10300_gdbarch_init): Update.
13727 * v850-tdep.c: Update copyright.
13728 (v850_extract_struct_value_address): Delete.
13729 (v850_gdbarch_init): Update.
13730 * ns32k-tdep.c: Update copyright.
13731 (ns32k_extract_struct_value_address): Delete.
13732 (ns32k_gdbarch_init): Update.
13733 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13734 (hppa_gdbarch_init): Update.
13735 * vax-tdep.c: Update copyright.
13736 (vax_extract_struct_value_address): Delete.
13737 (vax_gdbarch_init): Update.
13739 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13740 * gdbarch.h, gdbarch.c: Re-generate.
13741 * procfs.c (procfs_fetch_registers): Delete reference to
13742 DEPRECATED_NPC_REGNUM.
13743 (procfs_store_registers): Ditto.
13744 * regcache.c (generic_target_write_pc): Simplify.
13745 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13747 * core-sol2.c (fetch_core_registers): Replace
13748 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13750 * hppa-tdep.c: Update copyright year.
13751 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13753 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13755 * mips-tdep.c (mips_write_pc): New function.
13756 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13757 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13758 (mips_find_saved_regs, mips_software_single_step: Ditto.
13759 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13760 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13762 2004-01-17 Andrew Cagney <cagney@redhat.com>
13764 * mips-tdep.c: Re-indent. Group functions by ABI.
13766 2004-01-17 Andrew Cagney <cagney@redhat.com>
13768 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13769 * gdbarch.c: Re-generate.
13770 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13771 DECR_PC_AFTER_BREAK to zero.
13772 * vax-tdep.c (vax_gdbarch_init): Ditto.
13773 * v850-tdep.c (v850_gdbarch_init): Ditto.
13774 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13775 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13776 * sh-tdep.c (sh_gdbarch_init): Ditto.
13777 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13778 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13779 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13780 * mips-tdep.c (mips_gdbarch_init): Ditto.
13781 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13782 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13783 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13784 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13785 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13786 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13787 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13788 * frv-tdep.c (frv_gdbarch_init): Ditto.
13789 * cris-tdep.c (cris_gdbarch_init): Ditto.
13790 * avr-tdep.c (avr_gdbarch_init): Ditto.
13791 * arm-tdep.c (arm_gdbarch_init): Ditto.
13792 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13794 2004-01-17 J. Brobecker <brobecker@gnat.com>
13796 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13797 Delete, no longer used.
13798 (read_subrange_type): New function, mostly extracted from
13800 (read_array_type): Replace extracted code by call to
13801 read_subrange_type().
13802 (dwarf2_get_attr_constant_value): New function.
13803 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13804 (add_partial_symbol): Likewise.
13805 (process_die): Likewise.
13806 (new_symbol): Likewise.
13807 (read_type_die): Likewise.
13809 2004-01-16 Andrew Cagney <cagney@redhat.com>
13811 * symfile.c: Update copyright year.
13812 (compare_symbols): Delete unused function.
13813 * stabsread.c: Update copyright year.
13814 (lrs_general_complaint): Delete unused function.
13815 (ref_search_value): Ditto.
13816 (get_substring): Delete declaration.
13817 * sh64-tdep.c: Update copyright year.
13818 (sh64_get_gdb_regnum): Delete unused function.
13819 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13820 Delete unused function.
13822 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13824 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13825 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13827 2004-01-16 Andrew Cagney <cagney@redhat.com>
13829 Changes from Peter Schauer.
13830 * rs6000-tdep.c: Update copyright year.
13831 (rs6000_push_dummy_call): Update the stack pointer before
13832 accessing the corresponding stack region.
13833 * rs6000-nat.c: Update copyright year.
13834 (set_host_arch): Set "info.abfd" to "exec_bfd".
13836 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13838 * blockframe.c: Update copyright year.
13839 (inside_entry_func): Don't treat a zero PC specially.
13841 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13843 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13845 (gcore_create_callback): Ditto. Skip any memory segment that has
13846 no permissions set.
13848 2004-01-14 David Carlton <carlton@kealia.com>
13850 Change symbols for C++ nested types to contain the fully qualified
13851 name, if possible. (At least in the DWARF-2 case.) Partial fix
13852 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13854 * c-exp.y (qualified_type): Handle types nested within classes.
13855 * cp-namespace.c: Update comments.
13856 (cp_set_block_scope): Delete #if 0.
13857 (cp_lookup_nested_type): Handle types nested within classes.
13858 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13860 (add_partial_symbol): Add the name of the enclosing namespace to
13862 (pdi_needs_namespace): New.
13863 (add_partial_namespace): Tweak comment.
13864 (add_partial_structure): New.
13865 (psymtab_to_symtab_1): Initialize processing_current_prefix
13867 (process_die): instead of here.
13868 (read_structure_scope): Try to figure out the name of the class or
13869 namespace that the structure might be defined within.
13870 (read_enumeration): Generate fully-qualified names, if possible.
13871 (read_namespace): Don't set name to NULL.
13872 (die_specification): New.
13873 (new_symbol): Generate fully-qualified names for types.
13874 (read_type_die): Determine appropriate prefix.
13875 (determine_prefix): New.
13876 (typename_concat): New.
13878 * valops.c (value_aggregate_elt): Pass NOSIDE to
13879 value_struct_elt_for_reference.
13880 (value_struct_elt_for_reference): Make static, add NOSIDE
13881 parameter, call value_maybe_namespace_elt as a last resort.
13882 (value_namespace_elt): Break out code into
13883 value_maybe_namespace_elt.
13884 (value_maybe_namespace_elt): New.
13886 2004-01-12 Andrew Cagney <cagney@redhat.com>
13888 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13889 cooked floating-point registers.
13890 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13891 and value_to_register.
13893 2004-01-13 Andrew Cagney <cagney@redhat.com>
13895 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13896 * gdbarch.c: Re-generate.
13897 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13898 FUNCTION_START_OFFSET.
13899 * v850-tdep.c (v850_gdbarch_init): Ditto.
13900 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13901 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13902 * sh-tdep.c (sh_gdbarch_init): Ditto.
13903 * s390-tdep.c (s390_gdbarch_init): Ditto.
13904 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13905 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13906 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13907 * mips-tdep.c (mips_gdbarch_init): Ditto.
13908 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13909 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13911 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13912 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13913 * i386-tdep.c (i386_gdbarch_init): Ditto.
13914 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13915 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13916 * frv-tdep.c (frv_gdbarch_init): Ditto.
13917 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13918 * cris-tdep.c (cris_gdbarch_init): Ditto.
13919 * avr-tdep.c (avr_gdbarch_init): Ditto.
13920 * arm-tdep.c (arm_gdbarch_init): Ditto.
13921 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13923 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13925 * infrun.c (follow_fork_mode_ask): Remove.
13926 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13927 (follow_fork): Simplify and remove internal error for
13928 follow_fork_mode_ask.
13929 (_initialize_infrun): Update "set follow-fork-mode" help text.
13931 2004-01-13 Andrew Cagney <cagney@redhat.com>
13933 * configure.in: Update copyright year.
13934 (build_warnings): Add -Wunused-label.
13935 * configure: Re-generate.
13937 2004-01-12 Andrew Cagney <cagney@redhat.com>
13939 * exec.h (exec_ops): Make "extern".
13941 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13942 the function is void.
13943 (mips_pseudo_register_write): Ditto.
13945 2004-01-12 Andrew Cagney <cagney@redhat.com>
13947 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13948 call. Never defined.
13949 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13950 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13951 (struct sparc_gregset, struct regcache): Ditto.
13952 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13954 2004-01-12 Andrew Cagney <cagney@redhat.com>
13956 * mi/ChangeLog: Delete file. Renamed to ...
13957 * mi/ChangeLog-1999-2003: New file.
13958 * tui/ChangeLog: Delete file. Renamed to ...
13959 * tui/ChangeLog-1998-2003: New file.
13961 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13963 * sparc64nbsd-tdep.c: Include "regset.h".
13964 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13966 (fetch_core_registers): Remove function.
13967 (sparc64nbsd_core_fns): Remove variable.
13968 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13970 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13971 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13972 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13974 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13975 sparc_extract_struct_value_address.
13976 (sparc32_gdbarch_init): Set extract_struct_value_address.
13977 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13979 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13980 return_value_on_stack.
13982 * NEWS: Mention that %cs and %ss have been added to the AMD64
13985 * frame.c: Update copyright year.
13986 (get_prev_frame): Improve comment.
13988 * sparc64fbsd-tdep.c: Include "regset.h".
13989 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13991 (fetch_core_registers): Remove function.
13992 (sparc64fbsd_core_fns): Remove variable.
13993 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13995 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13996 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13997 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13999 * sparcnbsd-tdep.c: Include "regset.h".
14000 (fetch_core_registers): Remove function.
14001 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14002 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14004 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14006 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14008 * sparc-tdep.h (struct regset): Provide opaque declaration.
14009 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14010 fpregset and sizeof_fpregset members.
14011 * sparc-tdep.c (struct regset): Provide opaque declaration.
14012 (sparc_regset_from_core_section): New function.
14013 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14014 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14015 Set regset_from_core_section when appropriate.
14017 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14019 * x86-64-tdep.c (amd64_non_pod_p): New function.
14020 (amd64_classify_aggregate): Return class memory for non-POD
14021 C++ structure types.
14023 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14024 argument. Use it to reserve a register if necessary.
14025 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14026 amd64_push_arguments.
14028 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14030 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14031 register numbers in comments.
14032 * x86-64-tdep.h: Update copyright year.
14033 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14034 Adjust for addition of %cs and %ss.
14035 * amd64fbsd-nat.c: Update copyright year.
14036 (reg_offset): Add register offsets for %cs and %ss.
14037 * amd64fbsd-tdep.c: Update copyright year.
14038 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14039 (amd64fbsd_sc_reg_offset): Likewise.
14040 * x86-64-linux-nat.c: Update copyright year.
14041 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14043 * amd64nbsd-nat.c: Update copyright year.
14044 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14045 * amd64nbsd-tdep.c: Update copyright year.
14046 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14047 * x86-64-linux-tdep.c: Update copyright year.
14048 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14049 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14050 * regformats/reg-x86-64.dat: Add %cs and %ss.
14052 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14053 variables to prevent long lines. Update comments to reflect
14056 2004-01-09 David Carlton <carlton@kealia.com>
14058 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14059 * dwarf2read.c (read_namespace): Pull out name-generating code
14060 into namespace_name. Rename previous_namespace to previous_prefix
14061 and processing_current_namespace to processing_current_prefix..
14062 (namespace_name): New function.
14063 (add_partial_symbol): Substitute uses of pdi->name with
14065 * cp-support.h: Rename processing_current_namespace to
14066 processing_current_prefix.
14067 Update copyright year.
14068 * cp-namespace.c: Rename processing_current_namespace to
14069 processing_current_prefix.
14070 Update copyright year.
14072 2004-01-09 Andrew Cagney <cagney@redhat.com>
14074 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14076 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14078 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14080 (process_one_symbol): Deal with N_PATCH stabs.
14082 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14084 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14086 Update copyright year.
14088 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14090 * config/pa/tm-hppa.h: Update extern declarations for
14091 hppa32_hpux_frame_saved_pc_in_sigtramp,
14092 hppa32_hpux_frame_base_before_sigtramp, and
14093 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14095 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14097 * config/pa/tm-hppah.h: Update copyright years.
14099 2004-01-08 Andrew Cagney <cagney@redhat.com>
14101 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14102 (mips_o32_reg_struct_has_addr): Delete function.
14103 (mips_gdbarch_init): Update.
14104 (mips_extract_struct_value_address): Delete function.
14106 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14108 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14111 2004-01-07 Andrew Cagney <cagney@redhat.com>
14113 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14114 architecture's elf flags (when available).
14116 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14117 FPU to the start, check the MIPS FPU when looking for an old
14119 (set_mipsfpu_single_command): Update the architecture.
14120 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14122 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14123 (mips_mask_address_p): Add "tdep" parameter.
14124 (show_mask_address, mips_addr_bits_remove): Update.
14125 (mips_dump_tdep): Update.
14126 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14127 (MIPS_STACK_ARGSIZE): Delete macro.
14128 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14129 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14130 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14131 (mips_dump_tdep): Update.
14132 (MIPS_SAVED_REGSIZE): Delete macro.
14133 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14134 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14135 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14136 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14137 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14138 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14139 (mips_pop_frame, return_value_location): Update.
14140 (mips_n32n64_return_value, mips_dump_tdep): Update.
14142 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14145 * mips-tdep.c: Update copyright.
14146 (mips_gdbarch_init): Merge two code blocks handling the register
14147 name and number layout.
14149 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14151 * tracepoint.c (validate_actionline): Fix segv at EOF
14153 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14155 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14156 properly for static fields.
14158 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14159 Jason Molenda <jmolenda@apple.com>
14161 * disasm.c: Update copyright to include 2004.
14162 (do_mixed_source_and_assembly): For uiout asm list
14163 and tuple cleanups, initialize to null_cleanup instead of
14164 NULL and do so prior to loop. Only reset when we close off
14165 the tuple/list. Move check for whether to close off the
14166 asm tuple/list to after dump_insns call where it will be run
14167 on each loop iteration.
14169 2004-01-05 Andrew Cagney <cagney@redhat.com>
14171 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14172 should be a switch case and not a label.
14173 * mips-tdep.c (mips32_next_pc): Delete unused labels
14174 "greater_equal_branch" and "less_zero_branch".
14175 * jv-valprint.c (java_print_value_fields): Delete unused label
14178 * target.c (unpush_target): Only close a target that is in the
14181 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14183 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14184 address from [sp + 64] instead of %o2.
14186 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14187 fixes PR backtrace/1476.
14189 2004-01-05 Andrew Cagney <cagney@redhat.com>
14191 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14192 move to start of file.
14193 * i386-tdep.h (struct regcache): Add opaque declaration.
14194 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14196 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14197 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14198 * win32-nat.c (fake_create_process): Use ISO C style definition.
14199 * stabsread.c (define_symbol): Delete #ifndef
14200 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14201 stabs_argument_has_addr call, macro never defined.
14203 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14205 * op50-rom.c: Delete.
14206 * w89k-rom.c: Delete.
14207 * Makefile.in: Remove references.
14209 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14211 * x86-64-tdep.c: Update copyright year.
14212 (struct amd64_register_info): Rename from x86_64_register_info.
14213 (amd64_register_info): Rename from x86_64_register_info.
14214 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14215 (amd64_register_name): Rename from x86_64_register_name.
14216 (amd64_register_type): Rename from x86_64_register_type.
14217 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14218 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14219 (amd64_dwarf_reg_to_regnum): Rename from
14220 x86_64_dwarf_reg_to_regnum.
14221 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14222 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14223 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14224 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14225 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14226 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14227 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14228 (amd64_frame_cache): Rename from x86_64_frame_cache.
14229 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14230 (amd64_frame_prev_register): Rename from
14231 x86_64_frame_prev_register.
14232 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14233 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14234 (amd64_sigtramp_frame_cache): Rename from
14235 x86_64_sigtramp_frame_cache.
14236 (amd64_sigtramp_frame_prev_register): Rename from
14237 x86_64_sigtramp_frame_prev_register.
14238 (amd64_sigtramp_frame_unwind): Rename from
14239 x86_64_sigtramp_frame_unwind.
14240 (amd64_sigtramp_frame_sniffer): Rename from
14241 x86_64_sigtramp_frame_sniffer.
14242 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14243 (amd64_frame_base): Rename from x86_64_frame_base.
14244 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14245 (amd64_frame_align): Rename from x86_64_frame_align.
14246 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14247 (amd64_regset_from_core_section): Rename from
14248 x86_64_regset_from_core_section.
14249 (x86_64_init_abi): Update comments.
14251 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14253 * MAINTAINERS (write after approval): Add myself.
14255 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14257 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14260 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14262 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14263 such that it mentions a specific version of GCC that exhibits this
14266 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14268 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14269 structure that has a single `float' member, store it in %f1 in
14272 * sparc-sol2-nat.c: Add missing '\'.
14274 * sparc-tdep.c (sparc32_return_value): New function.
14275 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14277 (sparc32_gdbarch_init): Set return_value, don't set
14278 extract_return_value, store_return_value, use_struct_convention
14279 and return_value_on_stack.
14281 * sparc-sol2-nat.c: Add missing ')'.
14283 2004-01-03 J. Brobecker <brobecker@gnat.com>
14285 * infrun.c (handle_step_into_function): New function.
14286 (handle_inferior_event): Extract out some code into the new
14289 2004-01-03 J. Brobecker <brobecker@gnat.com>
14291 * infrun.c (handle_inferior_event): Move the declaration of
14292 real_stop_pc inside the if blocks where it is used.
14294 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14296 * sparc64-tdep.c (sparc64_16_byte_align_p)
14297 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14298 Use check_typedef to get subtypes of structures and unions.
14299 (sparc64_store_return_value): Fix calculation of the appropriate
14300 offset into VALBUF when storing a structure or union.
14301 (sparc64_return_value): New function.
14302 (sparc64_use_struct_convention): Remove function.
14303 (sparc64_init_abi): Set return_value, don't set
14304 extract_return_value, store_return_value and
14305 use_struct_convention.
14307 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14309 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14310 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14311 gdb/config/alpha/xm-alphaosf.h,
14312 gdb/config/powerpc/tm-ppcle-eabi.h,
14313 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14314 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14315 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14316 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14317 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14318 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14319 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14320 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14321 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14322 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14323 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14324 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14325 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14326 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14327 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14328 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14329 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14330 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14331 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14332 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14333 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14334 Remove lines for .cvsignore files.
14336 2004-01-03 J. Brobecker <brobecker@gnat.com>
14338 * infrun.c: Back out the previous change.
14340 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14342 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14343 sparc-*-sunos4* to the list of REMOVED configurations.
14345 * configure.tgt: Add back sparc-*-vxworks*.
14346 * remote-vxsparc.c: Remove all includes except for "defs.h",
14347 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14348 Include "sparc-tdep.h".
14349 (SPARC_R_G1): New define.
14350 (vxsparc_gregset): New variable.
14351 (ext_format_sparc): Remove extern declaration.
14352 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14353 sparc32_supply_fpregset.
14354 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14355 sparc_collect_rwindow and sparc32_collect_fpregset.
14356 * config/sparc/tm-vxworks.h: New file, based on recently removed
14358 * config/sparc/vxworks.mt: New file, based on recently removed
14361 2004-01-03 J. Brobecker <brobecker@gnat.com>
14363 * infrun.c (handle_step_into_function): New function.
14364 (handle_inferior_event): Extract out some code into the new
14367 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14369 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14370 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14371 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14372 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14373 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14374 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14375 (sparc_nat_h): New variable.
14376 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14377 (tm-sun4os4.h): Remove dependency.
14378 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14379 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14380 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14381 sparc-tdep.o): Update dependencies.
14382 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14383 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14384 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14386 * configure.host: Remove existing sparc-*-lynxos*,
14387 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14388 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14389 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14390 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14392 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14393 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14394 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14395 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14396 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14397 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14398 sparc64-*-solaris2* and sparc64-*-* triplets.
14399 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14400 "symtab.h" and "objfiles.h".
14401 (BIAS): Remove define.
14402 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14403 (X_DISP19): Remove macros.
14404 (sparc_fetch_instruction): Remove function.
14405 (struct gdbarch_tdep): Remove definition.
14406 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14407 (sparc_breakpoint_from_pc): Remove function.
14408 (struct sparc64_frame_cache): Remove definition.
14409 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14410 sparc64_unwind_pc): Remove functions.
14411 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14412 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14413 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14414 (sparc64_frame_cache): Change return type to `struct
14415 sparc_frame_cache *'. Simply call sparc_frame_cache.
14416 (sparc64_frame_this_id, sparc64_frame_prev_register,
14417 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14418 instead of `struct sparc64_frame_cache.
14419 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14420 sparc_analyze_control_transfer, sparc_software_single_step,
14421 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14422 _initialize_sparc64_tdep): Remove functions.
14423 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14424 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14426 (sparc64_supply_gregset, sparc64_collect_gregset,
14427 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14428 (sparc64_init_abi): New function.
14429 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14430 inclusion guard. Include "sparc-tdep.h".
14432 (r_tstate_offset, r_fprs_offset): New defines.
14433 (enum sparc_regnum): Remove defenition.
14434 (enum sparc64_regnum): Reformat.
14435 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14436 (sparc64_init_abi, sparc64_supply_gregset,
14437 sparc64_collect_gregset, sparc64_supply_fpregset,
14438 sparc64_collect_fpregset): New prototypes.
14439 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14440 Add extern declarations.
14441 (sparc64_sol2_init_abi): New prototype.
14442 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14443 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14445 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14447 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14449 (_initialize_sparc64fbsd_nat): Remove initialization of
14450 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14451 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14452 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14453 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14454 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14455 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14456 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14457 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14458 (sparc64fbsd_r_y_offset): Remove variables.
14459 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14460 Make static and const.
14461 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14462 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14464 (sparc64fbsd_gregset): New variable.
14465 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14466 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14467 and sparc64_supply_fpregset.
14468 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14469 (sparc64fbsd_sigtramp_frame_this_id)
14470 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14471 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14472 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14473 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14474 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14475 * sparcnbsd-tdep.c: Update copyright year. Include
14476 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14477 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14478 "value.h" and "sparcnbsd-tdep.h".
14479 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14480 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14481 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14482 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14484 (sparcnbsd_gregset): New variable.
14485 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14486 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14487 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14488 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14489 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14491 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14492 (sparc32nbsd_sigcontext_frame_this_id)
14493 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14494 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14495 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14496 (sparcnbsd_get_longjmp_target_32,
14497 sparcnbsd_get_longjmp_target_64): Remove functions.
14498 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14499 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14500 sparcnbsd_init_elf): Remove.
14501 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14502 (sparcnbsd_elf_init_abi): New functions.
14503 (_initialize_sparcnbsd_tdep): New prototype.
14504 (_initialize_sparnbsd_tdep): Update.
14505 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14506 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14507 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14508 * config/sparc/linux.mh: Update comment.
14509 (XM_FILE, HOST_IPC): Remove variables.
14510 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14512 * config/sparc/linux.mt: Update comment.
14513 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14514 * config/sparc/nbsd.mt: Reformat.
14515 * config/sparc/nbsd64.mh: Update comment.
14516 (NATDEPFILES): Add sparc-nat.o.
14517 * config/sparc/nbsd64.mt: Update comment.
14518 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14519 (TM_FILE): Set to tm-nbsd.h.
14520 * config/sparc/nbsdelf.mh: Update comment.
14521 (NATDEPFILES): Add sparc-nat.o.
14523 * config/sparc/nbsdaout.mh: Update comment.
14524 (NATDEPFILES): Add sparc-nat.o
14526 * config/sparc/nm-linux.h: Update copyright year. Don't include
14527 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14529 (KERNEL_U_SIZE): Remove define.
14530 (kernel_u_size): Remove prototype.
14531 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14532 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14534 (CHILD_PREPARE_TO_STORE): Remove define.
14535 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14536 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14537 sparcnbsd-nat.c: Rewrite files.
14538 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14539 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14540 sparcnbsd-tdep.h: Remove files.
14541 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14542 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14543 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14544 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14545 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14546 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14547 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14548 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14549 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14550 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14551 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14552 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14553 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14554 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14555 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14556 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14557 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14558 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14559 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14561 2004-01-02 Andrew Cagney <cagney@redhat.com>
14563 From 2003-12-18 Kazuhiro Inaoka:
14564 * configure.host: Add m32r-linux target.
14566 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14568 * top.c (print_gdb_version): Update year to 2004.
14570 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14572 * MAINTAINERS: Add myself to the write-after-approval category.
14574 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14576 From Bernardo Innocenti <bernie@develer.com>:
14577 * configure.tgt: Add uClinux target.
14579 2004-01-02 Andrew Cagney <cagney@redhat.com>
14581 * utils.c (do_my_cleanups): Make static, add forward declaration.
14582 * defs.h (do_my_cleanups): Delete declaration.
14584 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14586 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14587 bfd/ChangeLog-0203.
14589 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14591 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14592 in <machine/reg.h>.
14593 * configure, config.in: Regenerate.
14595 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14596 tui/ChangeLog-1998-2003.
14602 version-control: never