1 2004-11-21 Mark Kettenis <kettenis@gnu.org>
3 * sparc64fbsd-nat.c: Update copyright year.
4 (_initialize_sparc64fbsd_nat): Construct and add target vector.
5 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
8 2004-11-21 Daniel Jacobowitz <dan@debian.org>
10 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
12 2004-11-21 Daniel Jacobowitz <dan@debian.org>
14 * linux-nat.c (my_waitpid): New function.
15 (linux_test_for_tracefork): Make more robust and verbose. Take
16 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
17 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
18 argument. Update calls to linux_test_for_tracefork.
19 (linux_enable_event_reporting, child_follow_fork)
20 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
21 (child_insert_exec_catchpoint): Update calls to
22 linux_supports_tracefork and linux_supports_tracevforkdone.
24 2004-11-21 Daniel Jacobowitz <dan@debian.org>
26 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
27 (value_subscripted_rvalue): Likewise.
28 * valops.c (search_struct_field, value_slice): Likewise.
30 2004-11-21 Mark Kettenis <kettenis@gnu.org>
32 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
33 Reorder includes a bit. Fix comment.
34 * Makefile.in (inf-ptrace.o): Update dependencies.
36 2004-11-21 Andreas Schwab <schwab@suse.de>
38 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
39 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
40 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
41 to glibc_skip_solib_resolver.
42 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
44 * Makefile.in (m68klinux-tdep.o): Update dependencies.
46 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
48 * infttrace.h (ttrace_write_reg_64): Add prototype.
49 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
51 (store_inferior_registers): Correct formatting. Replace uses of
52 deprecated_registers with calls to regcache_raw_read,
53 regcache_raw_write_part and regcache_raw_read_part.
55 2004-11-21 Mark Kettenis <kettenis@gnu.org>
57 * config/pa/hppahpux.mh: Remove file.
58 * config/pa/hpux1020.mh: Remove file.
60 2004-11-20 Andreas Schwab <schwab@suse.de>
62 * configure.host: Set host floatformat for m68k.
64 2004-11-20 Eli Zaretskii <eliz@gnu.org>
66 * config/djgpp/fnchange.lst: Resolve file-name clash between
67 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
69 2004-11-20 Mark Kettenis <kettenis@gnu.org>
71 * hppa-hpux-nat.c: New file.
72 * config/pa/hpux.mh (NATDEPFILES): New file.
73 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
74 (hppa-hpux-nat.o): New dependency.
75 * configure.host: Remove hppa*-*-hpux10.20.
76 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
78 * inf-ptrace.c: Fix coding style.
80 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
81 * infptrace.c (call_ptrace): Simply call ptrace with four
84 * dbxread.c (process_one_symbol): Fix a few coding standard
85 issues. Improve code formatting.
87 * dbxread.c: Include "gdb_string.h".
88 (record_minimal_symbol, read_ofile_symtab): Replace
89 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
90 * Makefile.in (dbxread.o): Update dependencies.
92 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
93 of bytes read for aligned LEB128 encodings.
95 2004-11-19 Mark Kettenis <kettenis@gnu.org>
97 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
98 parse_and_eval_address to u_long before converting it to a pointer
100 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
101 ps_strings from int to u_long.
102 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
103 u_long instead of CORE_ADDR.
105 2004-11-18 Mark Kettenis <kettenis@gnu.org>
107 * dbxread.c (process_one_symbol): Do not adjust address of first
108 N_SLINE stab for a function for code generated by non-GCC
111 2004-11-18 Kevin Buettner <kevinb@redhat.com>
113 * solib-null.c: New file.
115 2004-11-17 Andrew Cagney <cagney@gnu.org>
117 * MAINTAINERS: Drop MIPS and remote.
119 2004-11-15 Andrew Cagney <cagney@gnu.org>
121 * findvar.c (value_of_register): Set the frame ID.
122 * value.c (value_primitive_field): Copy the frame ID.
123 * valops.c (value_assign): Simplify lval_register case, there's
126 2004-11-14 Daniel Jacobowitz <dan@debian.org>
128 * Makefile.in (mips-linux-tdep.o): Update dependencies.
129 * mips-linux-tdep.c: Include "regcache.h".
130 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
132 2004-11-14 Daniel Jacobowitz <dan@debian.org>
134 * Makefile.in (linux-thread-db.o): Fix typo in last change.
136 2004-11-14 Daniel Jacobowitz <dan@debian.org>
138 * linux-thread-db.c: New file, renamed from thread-db.c.
139 * thread-db.c: Remove.
140 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
141 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
142 to linux-thread-db.o.
143 * config/arm/linux.mh (NATDEPFILES): Likewise.
144 * config/i386/linux.mh (NATDEPFILES): Likewise.
145 * config/i386/linux64.mh (NATDEPFILES): Likewise.
146 * config/ia64/linux.mh (NATDEPFILES): Likewise.
147 * config/m32r/linux.mh (NATDEPFILES): Likewise.
148 * config/m68k/linux.mh (NATDEPFILES): Likewise.
149 * config/mips/linux.mh (NATDEPFILES): Likewise.
150 * config/pa/linux.mh (NATDEPFILES): Likewise.
151 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
152 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
153 * config/s390/s390.mh (NATDEPFILES): Likewise.
154 * config/sparc/linux.mh (NATDEPFILES): Likewise.
155 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
157 2004-11-13 Andrew Cagney <cagney@gnu.org>
159 * config/i386/i386lynx.mh: Delete file.
160 * config/i386/i386lynx.mt: Delete file.
161 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
162 * i386ly-tdep.c: Delete.
164 * config/tm-lynx.h: Delete, inline contents ...
165 * config/rs6000/tm-rs6000ly.h: ... here.
167 * config/tm-sysv4.h: Delete file, inlining contents.
168 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
169 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
170 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
172 * regcache.h (deprecated_register_valid): Delete.
173 (deprecated_registers): Delete.
174 * regcache.c (deprecated_register_valid): Delete.
175 (deprecated_registers): Delete.
176 (deprecated_read_register_byte, _initialize_regcache)
177 (deprecated_write_register_bytes, build_regcache): Update.
178 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
180 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
181 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
183 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
184 v850-*-* under removed.
185 * configure.host: Delete ns32k-*-netbsd*.
186 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
187 ns32k-*-netbsd*, and v850*-*-*.
188 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
190 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
191 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
192 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
193 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
194 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
195 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
196 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
197 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
198 * v850-tdep.c: Delete.
200 2004-11-13 Joel Brobecker <brobecker@gnat.com>
202 * irix5-nat.c (fetch_core_registers): Replace use of
203 deprecated_registers by equivalent code.
205 2004-11-13 Joel Brobecker <brobecker@gnat.com>
207 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
208 with equivalent code.
209 (fill_fpregset): Likewise.
211 2004-11-13 Andrew Cagney <cagney@gnu.org>
213 * MAINTAINERS: Do not list "Deleted" architectures.
215 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
216 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
218 * NEWS: Mention that vxworks was deleted.
219 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
220 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
221 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
222 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
223 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
224 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
225 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
226 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
227 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
228 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
229 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
230 * remote-vxmips.c, remote-vx.c: Delete.
231 * remote-vx68.c: Delete.
232 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
233 * config/m68k/os68k.mt, ada-lang.h: Ditto.
234 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
235 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
237 2004-11-13 Eli Zaretskii <eliz@gnu.org>
239 * config/i386/xm-go32.h: Don't include fopen-bin.h.
240 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
242 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
243 branch that doesn't define CRLF_SOURCE_FILES; always use
245 (print_source_lines_base, forward_search_command)
246 (reverse_search_command): Enable the code that accepts DOS-style
247 CRLF line endings on all platforms (this removes the need for
250 * defs.h: Fix wording of the comment before FOPEN_RB.
251 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
253 * config/djgpp/fnchange.lst: Group renames for opcode directory
256 * config/djgpp/djconfig.sh: Replace file names that don't exist
257 anymore with existing files, for checking the unpacked
260 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
261 Export pre-cooked values in configure-* targets that begin with
262 "@test -f stage_last".
264 2004-11-12 Andrew Cagney <cagney@gnu.org>
266 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
267 * value.h (struct value): Update comment.
268 * valops.c (value_assign): Fold lval_reg_fame_relative into
270 * findvar.c (value_from_register, locate_var_value): Ditto.
272 2004-11-12 Randolph Chung <tausq@debian.org>
274 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
275 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
276 (write_exp_msymbol): Remove conditional check for symbols starting
277 with $. Update comments.
279 2004-11-12 Randolph Chung <tausq@debian.org>
281 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
282 so_lib_thread_start_addr.
283 * pa64solib.h (so_list): Forward declare.
284 (pa64_solib_thread_start_addr): Prototype.
285 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
286 (no_shared_libraries): Remove.
287 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
288 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
289 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
290 the elf solib handler to find the start address.
292 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
293 files to the target makefile.
294 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
295 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
296 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
298 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
299 files for symbol reading and shared library handling here.
300 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
301 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
302 without bringing in 64-bit support.
304 2004-11-12 Andrew Cagney <cagney@gnu.org>
306 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
307 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
308 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
309 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
310 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
311 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
312 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
314 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
315 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
316 (VALUE_REGNUM): Define.
317 (struct value): Delete location.regnum, rename "regno" to
319 * value.c, valops.c, valarith.c, findvar.c: Update.
321 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
322 (VALUE_BITPOS): Delete.
323 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
324 * value.c (value_type, value_offset, value_bitpos)
325 (value_bitsize): New functions. Update references.
326 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
327 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
328 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
329 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
330 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
331 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
332 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
333 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
334 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
336 2004-11-12 Andrew Cagney <cagney@gnu.org>
338 * cris-tdep.c (cris_register_offset): Delete, never called.
339 (cris_spec_reg_applicable): Delete cris_ver_sim.
340 * MAINTAINERS: List d10v as OBSOLETE.
341 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
342 FOPEN_WB et.al., defined by "fopen-bin.h".
344 2004-11-12 Randolph Chung <tausq@debian.org>
346 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
347 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
348 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
349 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
351 2004-11-12 Mark Kettenis <kettenis@jive.nl>
353 * tui/tui-io.c: Don't include "terminal.h".
354 * Makefile.in (tui-io.o): Update dependencies.
356 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
358 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
359 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
360 set_gdbarch_regset_from_core_section for core file support.
361 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
364 2004-11-11 Randolph Chung <tausq@debian.org>
366 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
367 stop_after_branch parameter and use it to determine if we should look
368 at the delay slot of the first branch insn to find prologue insns.
369 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
370 (hppa_frame_cache): Likewise.
372 2004-11-11 Randolph Chung <tausq@debian.org>
374 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
375 register so that it can be unwound from anywhere in the prologue.
377 2004-11-10 msnyder <msnyder@redhat.com>
379 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
380 must invalidate lr_reg (so we don't try to save it again).
381 Ditto for cr_offset and cr_reg.
383 2004-11-05 Jon Beniston <jon@beniston.com>
385 Committed by Andrew Cagney.
386 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
387 when an unexpected packet is received, as the target stubs
388 continually retransmit the same packet until ACKed.
390 2004-11-10 Randolph Chung <tausq@debian.org>
392 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
395 2004-11-10 Randolph Chung <tausq@debian.org>
397 * blockframe.c (inside_entry_func): Move to .....
398 * frame.c (inside_entry_func): ... here, and make static.
399 (backtrace_past_entry): New flag.
400 (get_prev_frame): Stop backtrace at the entry function if enabled
401 by flag. Update comments.
402 (_initialize_frame): Add command to set backtrace_past_entry flag.
403 * defs.h (inside_entry_func): Remove prototype.
405 2004-11-10 Mark Kettenis <kettenis@gnu.org>
407 * dwarf2read.c: Fix formatting.
409 2004-11-10 Andrew Cagney <cagney@gnu.org>
411 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
412 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
413 macros with function declarations.
414 * value.c (coerce_ref, coerce_array, coerce_number)
415 (coerce_enum): New functions.
416 (value_as_long, value_as_address): Update.
417 * ada-lang.c (ada_coerce_ref, ada_value_binop)
418 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
419 * jv-lang.c (evaluate_subexp_java): Update.
420 * valarith.c (value_less, value_neg, value_complement)
421 (value_binop, value_add, value_subscript, value_x_binop)
422 (value_logical_not, value_sub): Update.
423 * valops.c (check_field, value_struct_elt, value_ind)
424 (value_find_oload_method_list, value_cast, value_assign): Update.
425 * eval.c (evaluate_subexp_standard): Update.
427 2004-11-10 Mark Kettenis <kettenis@gnu.org>
429 * mips-tdep.c (mips32_relative_offset): Change return type to
430 LONGEST, change argument type to ULONGEST. Fix sign-extension.
432 2004-11-10 Randolph Chung <tausq@debian.org>
434 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
435 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
436 (hppa_fetch_pointer_argument): Likewise.
437 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
438 deprecated_read_memory_nobpt.
439 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
440 add_set_cmd sequence with add_setshow_boolean_cmd.
442 2004-11-09 Andrew Cagney <cagney@gnu.org>
444 GDB 6.3 released from GDB 6.3 branch.
446 2004-11-09 Andrew Cagney <cagney@gnu.org>
448 * values.c: Rename to ...
449 * value.c: ..., new file.
450 * Makefile.in: Update.
452 2004-11-09 Daniel Jacobowitz <dan@debian.org>
454 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
457 2004-11-09 Andrew Cagney <cagney@gnu.org>
461 * value.h (struct value): Delete field bfd_section.
462 (VALUE_BFD_SECTION): Delete macro.
463 (COERCE_REF): Update.
464 (value_at, value_at_lazy): Delete asection parameter.
465 * printcmd.c (print_formatted, x_command): Update.
466 (do_examine): Delete asection parameter.
467 (next_section): Delete variable.
468 * valops.c (value_cast, value_at, value_at_lazy)
469 (value_coerce_function, value_addr, value_ind, value_string)
470 (find_rt_vbase_offset, value_full_object): Update.
471 * hpacc-abi.c (hpacc_virtual_fn_field)
472 (hpacc_value_rtti_type): Update.
473 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
474 (gnuv3_baseclass_offset): Update.
475 * f-valprint.c (f_val_print): Update.
476 * c-valprint.c (c_val_print): Update.
477 * p-valprint.c (pascal_val_print): Update.
478 * jv-valprint.c (java_value_print): Update.
479 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
480 * ada-lang.c (ada_value_primitive_packed_val)
481 (ada_evaluate_subexp): Update.
482 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
483 * expprint.c (print_subexp_standard): Update.
484 * infcall.c (call_function_by_hand): Update.
485 * valarith.c (value_add): Update.
486 * eval.c (evaluate_subexp_standard): Update.
487 * values.c (allocate_value, value_copy, value_static_field): Update.
488 * findvar.c (read_var_value, locate_var_value): Update.
490 2004-11-09 Andrew Cagney <cagney@gnu.org>
492 * i386-linux-tdep.c: Include "dwarf2-frame.h".
493 * Makefile.in: Update all dependencies.
495 2004-11-08 Andrew Cagney <cagney@gnu.org>
497 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
498 (sentinel_frame_unwinder): Add the prev_pc method.
499 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
500 available. Do not handle the sentinel-frame case.
501 * frame-unwind.h (frame_prev_register_ftype): Define.
502 (struct frame_unwind): Add prev_pc;
504 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
506 * configure.in: Check for ncurses/term.h.
507 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
508 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
509 * tui/tui.c: Don't include term.h.
510 * configure, config.in: Rebuilt.
512 2004-11-08 Mark Kettenis <kettenis@gnu.org>
514 * m68kbsd-nat.c: Include "inf-ptrace.h".
515 (_initialize_m68kbsd_nat): Fix pasto.
516 * Makefile.in (m68kbsd-nat.o): Update dependencies.
518 2004-11-08 Randolph Chung <tausq@debian.org>
520 * infrun.c (debug_infrun): New variable.
521 (resume, proceed, wait_for_inferior): Annotate with debug messages.
522 (handle_inferior_event, keep_going): Likewise.
523 (_initialize_infrun): Register "set debug infrun" command.
525 2004-11-08 Andreas Schwab <schwab@suse.de>
527 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
528 PTRACE_EVENT_VFORKDONE.
529 (child_follow_fork): Adjust.
531 2004-11-08 Andrew Cagney <cagney@gnu.org>
533 * README: Refer to 6.3, not 6.2, update directory listing droppng
534 references to intl/ and mmalloc/.
535 * PROBLEMS: Refer to 6.3 not 6.2.
537 * PROBLEMS: Delete no-longer applicable problems.
539 2004-11-07 Andrew Cagney <cagney@redhat.com>
540 Daniel Jacobowitz <dan@debian.org>
541 Roland McGrath <roland@redhat.com>
543 * Makefile.in (symfile-mem.o): Update dependencies.
544 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
545 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
546 * inf-ptrace.c (inf_ptrace_attach): Call
547 observer_notify_inferior_created.
548 * inftarg.c (child_attach): Likewise.
549 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
550 (symbol_file_add_from_memory): Take NAME argument. Use it for
551 the new BFD's filename.
552 (add_symbol_file_from_memory_command): Update call to
553 symbol_file_add_from_memory.
554 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
555 (symbol_file_add_from_memory_wrapper): New.
556 (_initialize_symfile_mem): Register add_vsyscall_page as an
557 inferior_created observer.
559 2004-11-07 Mark Kettenis <kettenis@gnu.org>
561 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
562 fetch_inferior_registers. Make static.
563 (m68kbsd_store_inferior_registers): Rename from
564 store_inferior_registers. Make static.
565 (_initialize_m68kbsd_nat): Construct and add target vector.
566 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
567 inftarg.o. Add inf-ptrace.o.
568 (NAT_FILE): Set to tm-solib.h.
569 (LOADLIBES): New variable.
570 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
571 inftarg.o. Add inf-ptrace.o.
572 (NAT_FILE): Delete variable.
573 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
574 inftarg.o. Add inf-ptrace.o.
575 (NAT_FILE): Set to tm-solib.h.
576 * config/m68k/nm-nbsdaout.h: Remove file.
578 2004-11-07 Daniel Jacobowitz <dan@debian.org>
580 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
581 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
582 (dwarf2_signal_frame_unwind): New.
583 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
584 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
586 2004-11-07 Mark Kettenis <kettenis@gnu.org>
588 * Makefile.in (mips64obsd-tdep.o): Fix typo.
590 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
591 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
592 to only include the structure members we actually need.
593 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
594 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
595 only include the structure members we actually need.
596 (mipsnbsd_init_abi): Update.
598 * mips64obsd-nat.c: Include "mips-tdep.h".
599 (MIPS64OBSD_NUM_REGS): Remove define.
600 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
601 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
602 floating-point registers correctly.
603 * Makefile.in (mips64obsd-nat.o): Update dependencies.
605 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
607 (mips64obsd_sigframe_init): New function.
608 (mips64obsd_sigframe): New variable.
609 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
611 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
613 2004-11-06 Joel Brobecker <brobecker@gnat.com>
615 * alpha-mdebug-tdep.c: #include mdebugread.h.
616 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
617 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
619 2004-11-05 Andrew Cagney <cagney@gnu.org>
621 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
622 CFI and the init_reg method leave the register unspecified.
623 Include the register name in the "Incomplete CFI data" complaint.
624 Supress leading zeros in the address.
626 2004-11-05 Mark Kettenis <kettenis@gnu.org>
628 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
629 skipping a personality routine in a CIE augmentation.
631 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
633 * defs.h (fatal, vfatal): New function prototypes.
634 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
636 (backtrace_command): Change to call backtrace_command_stub via
637 catch_errors instead of calling backtrace_command_1 directly.
638 (backtrace_full_command): Ditto.
639 * utils.c (error_stream_1): New static function.
640 (verror): Change to call error_stream_1 instead of error_stream.
641 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
642 (vfatal, fatal): New functions.
644 2004-11-05 Andrew Cagney <cagney@gnu.org>
646 * stack.c (parse_frame_specification_1): Clear selected_frame_p
647 when not using selected frame.
649 2004-11-05 Mark Kettenis <kettenis@jive.nl>
651 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
652 personality routine in a CIE augmentation.
654 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
656 * stack.c (set_current_sal_from_frame): New function.
657 (print_args_stub): Use it.
658 (print_frame_info): Don't set sal here.
660 2004-11-04 Mark Kettenis <kettenis@gnu.org>
662 * dwarf2-frame.c (read_encoded_value): Change type of third
663 argument to `unsigned char *'. Add support for LEB128 encodings.
665 2004-11-04 Jim Blandy <jimb@redhat.com>
667 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
668 prevent cross-objfile references.
669 (make_cv_type): Doc fix. Don't create cross-objfile references,
671 (replace_type): Add assertion to prevent cross-objfile references.
672 (check_typedef): Never resolve a stub type by copying over a type
675 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
677 * Makefile.in (m32r-tdep.o): Update dependencies.
678 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
679 ABI-specific overrides.
681 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
683 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
684 unnecessary parallel execution bit.
685 (m32r_memory_remove_breakpoint): Ditto.
686 (m32r_breakpoint_from_pc): Update.
688 2004-11-03 Randolph Chung <tausq@debian.org>
690 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
691 frame_func_unwind to locate the unwind entry.
692 (hppa_frame_this_id): Likewise.
694 2004-11-03 Andrew Cagney <cagney@gnu.org>
696 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
697 packet, obsolete configurations, end-of-life deprecated_registers.
699 2004-11-02 Mark Kettenis <kettenis@gnu.org>
701 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
702 encodings as well as unsigned encodings.
704 2004-11-02 Andrew Cagney <cagney@gnu.org>
706 * value.h (COERCE_VARYING_ARRAY): Delete.
707 * valops.c (value_cast, value_slice): Delete use.
708 * valarith.c (value_subscript, value_concat): Delete use.
710 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
712 * NEWS: GDB understands GNAT Ada.
714 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
716 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
717 (amd64-sol2-tdep.o): Add dependencies.
718 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
719 config/i386/sol2-64.mt: New files.
720 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
721 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
722 (supply_gregset): Correct order of arguments to
723 amd64_supply_native_gregset.
724 (fill_gregset): Correct order of arguments to
725 amd64_collect_native_gregset.
726 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
727 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
728 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
729 for definition of NEW_PROC_API.
730 * configure: Regenerate.
732 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
734 * MAINTAINERS (Write After Approval): Add myself.
736 2004-11-01 Andrew Cagney <cagney@gnu.org>
738 * configure.tgt: Mark d10v-*-* as obsolete.
739 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
741 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
743 * values.c (modify_field): Correct handling of bit-fields that
744 don't fit in 32 bits. Use unsigned operations throughout and
745 simplify the code a bit. Document preconditions.
747 2004-10-31 Andrew Cagney <cagney@gnu.org>
749 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
750 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
751 (in_plt_section): Delete.
753 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
754 (mips_gdbarch_init): Do not set same.
756 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
757 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
759 * gdbarch.sh (in_solib_call_trampoline): Delete.
760 * gdbarch.h, gdbarch.c: Re-generate.
762 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
763 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
764 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
765 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
766 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
768 2004-10-31 Mark Kettenis <kettenis@gnu.org>
770 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
771 (mipsnbsd_fetch_inferior_registers): Rename from
772 fetch_inferior_registers. Make static.
773 (mipsnbsd_store_inferior_registers): Rename from
774 store_inferior_registers. Make static.
775 (_initialize_mipsnbsd_nat): New function and prototype.
776 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
777 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
778 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
781 2004-10-31 Andrew Cagney <cagney@gnu.org>
783 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
784 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
785 delete corresponding unused function.
786 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
787 in_solib_call_trampoline.
788 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
789 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
790 * config/mips/tm-nbsd.h: Ditto.
791 * config/arm/tm-linux.h: Ditto.
792 * config/mips/tm-linux.h: Ditto.
794 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
795 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
796 in_solib_call_trampoline, delete corresponding unused function.
797 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
798 (vaxnbsd_aout_init_abi): Ditto.
799 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
800 (sparc32nbsd_aout_init_abi): Ditto.
801 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
802 (ppc_linux_init_abi): Ditto.
803 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
804 (ns32knbsd_init_abi_aout): Ditto.
805 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
806 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
807 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
808 (m68kbsd_aout_init_abi): Ditto.
809 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
810 (i386_cygwin_init_abi): Ditto.
811 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
812 (i386bsd_init_abi): Ditto.
814 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
815 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
816 isn't used by this architecture.
817 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
818 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
819 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
820 * s390-tdep.c (s390_gdbarch_init): Ditto.
821 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
822 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
823 * i386-tdep.c (i386_svr4_init_abi): Ditto.
824 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
825 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
826 * amd64-tdep.c (amd64_init_abi): Ditto.
828 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
829 in_solib_call_trampoline to its default value of
830 generic_in_solib_call_trampoline.
831 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
832 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
833 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
834 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
835 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
836 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
838 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
840 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
842 * config/mips/tm-mips.h: Delete file.
843 * remote-mips.c: Delete tm-mips.h from comment.
844 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
845 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
846 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
847 * config/mips/tm-linux.h: Don't include tm-mips.h.
848 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
849 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
850 * config/mips/tm-wince.h: Don't include.
852 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
853 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
854 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
855 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
857 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
858 * mdebugread.c (ecoff_relocate_efi): Delete function.
859 * objfiles.c (objfile_relocate): Delete #ifdef
860 MDEBUG_EFI_SYMBOL_NAME code.
862 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
863 Andrew Cagney <cagney@gnu.org>
865 * gdbarch.sh (single_step_through_delay): Add.
866 * gdbarch.h, gdbarch.c: Re-generate.
867 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
868 (mips_step_skips_delay): Delete.
869 * mips-tdep.c (mips_single_step_through_delay): Replace
870 mips_step_skips_delay.
871 (mips_gdbarch_init): Set single_step_through_delay.
872 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
874 2004-10-31 Mark Kettenis <kettenis@gnu.org>
876 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
877 from TRAMP_FRAME frame type.
879 2004-10-31 Andrew Cagney <cagney@gnu.org>
881 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
883 * mips-tdep.c (mips_ignore_helper): Delete.
884 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
885 * infrun.c (handle_inferior_event): Delete #ifdef
886 DEPRECATED_IGNORE_HELPER_CALL code.
888 * config/mips/tm-mips.h (RA_REGNUM): Delete.
890 2004-10-31 Mark Kettenis <kettenis@gnu.org>
892 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
893 (fill_fpregset): Do not compile for 64-bit systems.
894 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
895 * Makefile.in (i386-sol2-nat.o): Update dependencies.
896 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
898 2004-10-30 Andrew Cagney <cagney@gnu.org>
900 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
901 (struct mdebug_extra_func_info): Define.
902 * config/alpha/tm-alpha.h: Delete same.
903 * config/mips/tm-mips.h: Delete same.
904 * mdebugread.c: Delete same.
905 * Makefile.in: Update dependencies.
906 * mips-mdebug-tdep.c: Include "mdebugread.h".
908 * objfiles.c: Include "mdebugread.h".
909 * mdebugread.c: Include "mdebugread.h".
910 (ecoff_relocate_cfi): Delete.
911 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
912 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
913 * mdebugread.h (ecoff_relocate_efi): New file.
914 * Makefile.in: Update dependencies.
916 * mips-tdep.c (struct frame_extra_info): Delete.
917 (temp_proc_desc): Delete.
919 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
920 MIPS_EFI_SYMBOL_NAME.
921 (mips_extra_func_info_t, mips_extra_func_info): Delete.
922 (struct mdebug_extra_func_info): Replace struct
923 alpha_extra_func_info and alpha_extra_func_info_t.
924 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
925 MIPS_EFI_SYMBOL_NAME.
926 (struct mdebug_extra_func_info): Replace struct
927 alpha_extra_func_info and alpha_extra_func_info_t.
928 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
929 * mdebugread.c, alpha-mdebug-tdep.c:
931 Suggested by Mark Kettenis.
932 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
933 fields frame_adjust and high_addr.
934 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
935 (non_heuristic_proc_desc): Delete references.
937 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
938 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
939 * mips-tdep.c: Update.
941 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
942 (MIPS_LAST_EMBED_REGNUM): Add.
943 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
944 (LAST_EMBED_REGNUM): Delete.
945 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
947 * config/mips/tm-mips.h (PS_REGNUM): Delete.
948 * mips-tdep.h (MIPS_PS_REGNUM): Add.
949 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
950 * mips-linux-nat.c: Update.
952 * mips-tdep.h: Add comments on registers.
953 (MIPS_UNUSED_REGNUM): Define.
954 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
955 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
956 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
957 * mips-linux-nat.c, remote-mips.c: Update.
959 * config/mips/tm-mips.h (t_insn): Delete.
960 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
961 Replace t_insn with ULONGEST.
963 2004-10-30 Mark Kettenis <kettenis@gnu.org>
965 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
966 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
967 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
968 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
969 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
970 (mipsnbsd_core_osabi_sniffer): New function.
971 (mipsnbsd_init_abi): Set regset_from_core_section.
972 (_initialize_mipsnbsd_tdep): Remove calls to
973 deprecated_add_core_fns.
974 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
975 (mipsnbsd_regset_from_core_section): New functions.
976 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
977 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
979 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
980 Remove optimization for DEPRECATED_FP_REGNUM.
982 2004-10-30 Andrew Cagney <cagney@gnu.org>
984 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
985 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
986 (alpha_setup_arbitrary_frame): Delete.
987 * mips-tdep.c (setup_arbitrary_frame): Delete.
988 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
989 (setup_arbitrary_frame): Delete.
990 * stack.c (parse_frame_specification_1): When specified, call
991 create_new_frame with two parameters. Delete #ifdef
992 SETUP_ARBITRARY_FRAME.
994 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
995 (MIPS_INSTLEN): Delete.
996 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
997 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
998 * remote-mips.c, mips-tdep.c: Update.
1000 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1001 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1002 * mips-tdep.c (mips_mdebug_frame_cache)
1003 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1004 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1005 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1006 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1007 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1008 (mips_gdbarch_init): Do not append mdebug sniffers.
1009 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1010 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1011 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1012 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1013 * Makefile.in: Update dependencies.
1015 * mips-tdep.h (mips_abi_regsize): Declare.
1016 * mips-tdep.c (mips_abi_regsize): Make non-static.
1018 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1019 (make_mips16_addr): Delete.
1021 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1023 * i386-sol2-nat.c: New file.
1024 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1026 (i386-sol2-nat.o): Update dependencies.
1027 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1030 2004-10-30 Andrew Cagney <cagney@gnu.org>
1032 Total breakage identified by Joel Brobecker.
1033 * mips-tdep.c (after_prologue): Delete.
1034 (mips_skip_prologue): Use skip_prologue_using_sal.
1035 (heuristic_proc_desc): Delete, unused.
1037 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1039 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1040 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1041 Cleanup coding style.
1043 2004-10-30 Andrew Cagney <cagney@gnu.org>
1045 * mips-tdep.h (mips_pc_is_mips16): Declare.
1046 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1047 non-static. Update calls.
1049 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1050 * command.h (add_setshow_enum_cmd): Declare.
1051 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1053 * mips-tdep.c (_initialize_mips_tdep): Use
1054 add_setshow_zinteger_cmd.
1056 * mips-tdep.c (mips_eabi_extract_return_value)
1057 (mips_o64_extract_return_value, mips_o64_store_return_value)
1058 (return_value_location, mips_eabi_reg_struct_has_addr)
1059 (mips_eabi_use_struct_convention)
1060 (mips_eabi_store_return_value): Delete.
1061 (mips_eabi_store_return_value): New function.
1062 (mips_eabi_return_value): New function.
1063 (mips_gdbarch_init): For O64 and EABI, delete
1064 extract_return_value, store_return_value, use_struct_convention
1065 and reg_struct_has_addr, add return_value.
1067 * mips-tdep.c (read_signed_register): Use
1068 regcache_cooked_read_signed.
1070 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1072 * mipsread.c: Cleanup coding style.
1073 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1074 (mipscoff_symfile_finish): Remove prototypes.
1076 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1078 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1079 (mips_mdebug_frame_cache, mips16_scan_prologue)
1080 (mips32_scan_prologue, mips_stub_frame_cache)
1081 (heuristic_proc_start, heuristic_proc_desc)
1082 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1083 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1084 (mips_o32_return_value, mips_o64_push_dummy_call)
1085 (mips_step_skips_delay, mips_skip_trampoline_code)
1086 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1087 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1088 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1089 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1090 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1091 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1092 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1093 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1094 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1095 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1097 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1098 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1100 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1102 * mipsnbsd-nat.c: Include "mips-tdep.h".
1103 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1104 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1106 2004-10-29 Andrew Cagney <cagney@gnu.org>
1108 * stack.c (parse_frame_specification_1): New function based on
1109 parse_frame_specification. Add message and selected_frame_p
1110 paramters. Truely always return non-NULL.
1111 (parse_frame_specification): Call parse_frame_specification_1.
1112 (frame_info): Update. Eliminate target_has_stack check.
1113 (select_frame_command): Update.
1115 2004-10-29 Andrew Cagney <cagney@gnu.org>
1117 * frame.h (get_selected_frame): Add message parameter.
1118 * frame.c (get_selected_frame): Add and use message parameter.
1119 * stack.c (current_frame_command, return_command, locals_info)
1120 (catch_info, args_info, up_silently_base, down_silently_base): Use
1121 get_selected_frame with an explicit message.
1122 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1123 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1124 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1125 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1126 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1127 * breakpoint.c: Update.
1129 2004-10-29 Andrew Cagney <cagney@gnu.org>
1131 * trad-frame.c (trad_frame_get_prev_register): Use
1132 frame_unwind_register instead of frame_register_unwind, do not
1133 recurse the register's location.
1134 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1135 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1136 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1137 * sh-tdep.c (sh_frame_prev_register): Ditto.
1138 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1139 * i386-tdep.c (i386_frame_prev_register): Ditto.
1140 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1141 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1143 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1145 * proc-events.c: Fix several coding-style issues. Consistently
1146 use #ifdef instead of #if defined().
1147 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1149 (_initialize_proc_events): New prototype.
1151 * proc-why.c: Fix several coding-style issues.
1152 (proc_prettyfprint_why): Use ARRAY_SIZE.
1154 2004-10-27 Jim Blandy <jimb@redhat.com>
1156 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1157 manner independent of the host byte order.
1159 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1161 * mips-tdep.c (id_delayed): Remove prototype.
1163 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1165 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1166 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1167 to enum with register numbers.
1168 (enum mips_insn_size): New enum.
1170 2004-10-26 Andrew Cagney <cagney@gnu.org>
1172 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1173 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1174 (mips_gdbarch_init): Update.
1175 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1177 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1178 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1179 IN_SOLIB_RETURN_TRAMPOLINE.
1180 * mips-tdep.c (mips_dump_tdep): Do not print
1181 IN_SOLIB_RETURN_TRAMPOLINE.
1182 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1183 (mips_gdbarch_init): Update.
1185 * mips-tdep.h (mips_software_single_step): Move to here ...
1186 * config/mips/tm-mips.h: ... from here.
1187 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1188 (SOFTWARE_SINGLE_STEP): Delete.
1189 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1191 2004-10-25 Andrew Cagney <cagney@gnu.org>
1193 * NEWS: Add Changes since GDB 6.3 section.
1195 2004-10-23 Andreas Schwab <schwab@suse.de>
1197 * ada-lang.c (grow_vect): Return the new array instead of
1198 expecting pointer to pointer to avoid violation of aliasing rules.
1199 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1201 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1203 * s390-tdep.c (enum pv_boolean): Remove.
1204 (pv_is_array_ref): Remove.
1205 (s390_on_stack): Remove.
1206 (S390_NUM_SPILL_SLOTS): Remove.
1207 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1208 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1209 (s390_store): Track all stores of orginal incoming registers to the
1210 stack constant offsets relative to the CFA, instead of only tracking
1211 stores into specific spill slots.
1212 (s390_load): Likewise.
1213 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1214 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1215 defined as call-saved by the ABI.
1216 (s390_push_dummy_call): Use bottom of dummy call argument save area
1217 as return value, not the top. Do not store to the called function's
1219 (s390_unwind_dummy_id): Adapt accordingly.
1221 2004-10-23 Andrew Cagney <cagney@gnu.org>
1223 * objfiles.h (struct objfile): Rename obj_private to
1224 deprecated_obj_private, sym_private to deprecated_sym_private, and
1225 sym_stab_info to deprecated_sym_stab_info.
1226 * gdb-stabs.h: Update.
1227 * elfread.c: Update.
1228 * dbxread.c: Update.
1229 * coffread.c: Update.
1230 * xcoffread.c: Update.
1231 * symfile.c: Update.
1232 * somread.c: Update.
1233 * nlmread.c: Update.
1234 * mdebugread.c: Update.
1236 * coffread.c: Update.
1238 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1240 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1241 * configure.host: Add mips64*-*-openbsd*.
1242 * configure.tgt: Add mips64*-*-openbsd*.
1243 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1245 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1246 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1248 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1250 * symtab.c (symbol_search_name): Minor reformatting.
1252 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1254 * symtab.h: Fix typo in comment.
1256 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1258 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1259 (dwarf_decode_line_header): Likewise.
1261 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1263 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1265 2004-10-19 Andrew Cagney <cagney@gnu.org>
1267 GDB 6.3 branch created.
1268 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1270 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1272 * dwarf2read.c (set_cu_language): Set language to Ada for
1273 DW_LANG_Ada83 and DW_LANG_Ada95.
1275 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1277 From Andreas Schwab <schwab@suse.de>:
1278 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1279 for xmalloc and xrealloc.
1281 2004-10-15 Andrew Cagney <cagney@gnu.org>
1283 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1284 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1285 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1286 Update dependencies.
1288 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1290 * ada-lang.c (ada_lookup_symbol): Correct comment.
1291 (ada_evaluate_subexp): Change error message for
1292 OP_FUNCALL case so as not to indicate an internal error.
1294 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1296 Committed by Paul Hilfinger.
1297 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1298 type sizes in XVE/XVU types, and emit a warning when that happens,
1299 instead of rounding up the size of the resulting type.
1300 Some minor reformatting.
1301 (ada_is_aligner_type): Do not consider a type as an aligner type
1302 if there is a corresponding XVS type as well.
1303 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1304 have several levels of pointer indirection to the array.
1306 2004-10-15 Jerome Guitton <guitton@gnat.com>
1308 Committed by Paul Hilfinger.
1309 * ada-lang.c (check_size): New function.
1310 (coerce_unspec_val_to_type): call check_size to make sure
1311 that the object size is reasonable.
1312 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1313 Implements the case when we get a reference when we evaluate
1314 the expression of one of the bounds of the slice.
1315 (ada_value_struct_elt): when a packed array field is
1316 a reference, use ada_coerce_ref to dereference it; use
1317 ada_value_ind only if it is a pointer.
1319 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1321 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1322 a bit to avoid the necessity of an advance declaration. Remove
1324 (set_reg_offset): Move implemenation up.
1325 (mips16_get_imm): Likewise.
1326 (mips16_scan_prologue): Likewise.
1327 (reset_saved_regs): Likewise.
1328 (mips32_scan_prologue): Likewise.
1330 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1332 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1333 Remove sp as a parameter, compute it internally instead. Move
1334 prologue scanning limit from heuristic_proc_desc to here.
1335 (mips16_scan_prologue): Likewise.
1336 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1337 by call to mips16_scan_prologue.
1338 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1339 by call to mips32_scan_prologue.
1340 (heuristic_proc_desc): Remove code that's no longer necessary.
1341 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1342 (mips_skip_prologue): Update calls to mips16_scan_prologue
1343 and mips32_scan_prologue.
1345 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1347 * mips-tdep.c (mips16_scan_prologue): Merge code from
1348 mips16_skip_prologue. Now return the address of the first
1349 instruction past the function prologue.
1350 (mips16_skip_prologue): Remove, no longer necessary.
1351 (mips_skip_prologue): Replace call to mips16_skip_prologue
1352 by call to mips16_scan_prologue.
1354 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1356 * mips-tdep.c (mips32_scan_prologue): Merge code from
1357 mips32_skip_prologue. Now return the address of the first
1358 instruction past the function prologue.
1359 (mips32_skip_prologue): Remove. No longer necessary.
1360 (mips16_skip_prologue): Add parameter end_pc instead of
1362 (mips_skip_prologue): Compute the upper limit for the
1363 prologue scanning. Update call to mips16_skip_prologue.
1364 Replace call to mips32_skip_prologue by call to
1365 mips32_scan_prologue.
1367 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1369 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1370 NetBSD system call stubs that store %rp in the ERP slot of the
1373 * source.c: Always define O_BINARY to 0 if not defined already.
1374 (openp): Unconditionally use O_BINARY.
1376 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1377 * event-top.c (gdb_readline2): Likewise.
1379 2004-10-14 Orjan Friberg <orjanf@axis.com>
1381 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1382 deprecated_add_core_fns which was removed by mistake.
1384 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1386 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1387 references to deprecated_registers[] with equivalent code.
1389 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1391 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1392 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1393 instead of explicit test and print statement.
1395 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1397 * sparc-nat.c: Include "inf-ptrace.h".
1398 (sparc_target): New function.
1399 * sparc-nat.h: Update copyright year.
1400 (sparc_target): New prototype.
1401 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1402 (_initialize_sparcnbsd_nat): Construct and add target vector.
1403 * sparc64nbsd-nat.c: Include "target.h".
1404 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1405 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1406 Update dependencies.
1407 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1408 inftarg.o, add inf-ptrace.o.
1409 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1410 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1411 (NAT_FILE): Set to nm-bsd.h.
1412 (LOADLIBES): New variable.
1413 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1414 infarg.o, add inf-ptrace.o.
1415 * config/sparc/nm-nbsdaout.h: Remove file.
1416 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1417 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1418 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1420 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1421 "fopen-same.h". Update comment.
1423 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1425 * i386gnu-nat.c: Include "gdb_string.h".
1426 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1427 registers when the floating-point state isn't initialized.
1428 * Makefile.in (i386gnu-nat.o): Update dependencies.
1430 2004-10-11 David Anderson <davea@sgi.com>
1432 * regcache.c (regcache_raw_read): Comment was missing "to".
1433 Extraneous ' removed.
1434 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1435 comment now describes use.
1437 2004-10-11 Orjan Friberg <orjanf@axis.com>
1439 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1440 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1441 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1442 (cris_sigtramp_frame_sniffer): New functions.
1443 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1444 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1445 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1446 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1447 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1449 (cris_version_update): Remove, replace with ...
1450 (set_cris_version): New function.
1451 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1452 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1453 (_initialize_cris_tdep): Remove CRIS mode command.
1454 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1455 cris-fpless-backtrace command.
1456 (cris_scan_prologue): Fix prologue scanning limit.
1457 (cris_register_type): Update to reflect actual registers.
1458 (cris_register_bytes_ok) Remove.
1459 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1460 Remove set_gdbarch_deprecated_register_size,
1461 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1463 2004-10-10 Andrew Cagney <cagney@gnu.org>
1465 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1468 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1470 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1472 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1474 * mips-tdep.c (mips16_scan_prologue): Renames
1475 mips16_heuristic_proc_desc. Update comment.
1476 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1477 (heuristic_proc_desc): Update calls to the 2 functions above.
1479 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1481 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1482 Update comments. Also immediately return empty cache when the start
1483 address of our function could not be found.
1484 (mips_insn32_frame_cache): Likewise.
1486 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1488 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1489 (mips_insn16_frame_cache): Pass frame cache in call to
1490 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1491 Remove code that became redundant as a consequence.
1492 (mips32_heuristic_proc_desc): No longer compute a fake
1493 procedure descriptor. Compute the full frame cache instead.
1494 Some minor comment reformatting.
1496 2004-10-10 Jim Blandy <jimb@redhat.com>
1498 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1499 reader, tracing bytecode stuff): Remove self.
1501 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1503 * sparc64-linux-tdep.c: Update copyright year. Don't include
1505 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1506 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1507 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1509 * sparc-linux-tdep.c: Update copyright year.
1510 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1511 to struct frame_info *. Use safe_frame_unwind_memory instead of
1512 deprecated_read_memory_nobpt.
1513 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1514 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1515 changed signature of sparc_linux_sigtramp_start.
1516 (sparc32_linux_pc_in_sigtramp): Remove function.
1517 (sparc32_linux_sigtramp_p): New function.
1518 (sparc32_linux_sigtramp_frame_sniffer): Use
1519 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1521 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1523 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1525 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1526 (decode_packed_array_type, value_subscript_packed)
1527 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1528 argument in call to lim_warning.
1530 * configure.in: Really disable the TUI if an enhanced curses
1531 library isn't found.
1532 * configure: Regenerate.
1534 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1536 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1537 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1538 * config/i386/nm-nbsdaout.h: Remove file.
1539 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1540 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1541 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1542 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1543 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1544 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1545 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1546 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1547 (ldd, ld_un, ld_2): Remove defines.
1548 * config/i386/nm-obsd.h: Likewise.
1550 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1552 * ada-lex.l: Remove useless rule whose right-context clause
1553 causes unreferenced static function warning for yyrealloc.
1554 (ada_flex_use): Remove the artificial reference to yyrealloc.
1556 2004-10-08 Andrew Cagney <cagney@gnu.org>
1558 * target.h (struct target_ops): Rename to_xfer_memory to
1559 deprecated_xfer_memory.
1561 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1563 * win32-nat.c: Update.
1564 * v850ice.c: Update.
1565 * uw-thread.c: Update.
1566 * thread-db.c: Update.
1567 * sol-thread.c: Update.
1569 * remote-vx.c: Update.
1570 * remote-st.c: Update.
1571 * remote-sim.c: Update.
1572 * remote-sds.c: Update.
1573 * remote-rdp.c: Update.
1574 * remote-rdi.c: Update.
1575 * remote-mips.c: Update.
1576 * remote-m32r-sdi.c: Update.
1577 * remote-e7000.c: Update.
1579 * ppc-bdm.c: Update.
1580 * nto-procfs.c: Update.
1581 * monitor.c: Update.
1582 * linux-nat.c: Update.
1583 * inftarg.c: Update.
1584 * hpux-thread.c: Update.
1585 * go32-nat.c: Update.
1586 * gnu-nat.c: Update.
1588 * corelow.c: Update.
1589 * bsd-kvm.c: Update.
1590 * aix-thread.c: Update.
1592 2004-10-08 Andrew Cagney <cagney@gnu.org>
1594 * target.c (debug_target): Move to near start of file.
1595 (target_stopped_data_address_p): Re-org logic, add casts.
1597 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1599 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1600 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1601 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1602 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1605 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1607 * target.h (to_stopped_data_address): Change prototype to
1608 take a CORE_ADDR pointer and return an int.
1609 * target.c (update_current_target): Change to_stopped_data_address
1610 to match new prototype.
1611 (debug_to_stopped_data_address): Change appropriately.
1612 * breakpoint.c (bpstat_stop_status): Change call to
1613 target_stopped_data_address to use new prototype.
1614 * frv-tdep.c (frv_have_stopped_data_address): New function.
1615 (frv_stopped_data_address): Change to new prototype and
1617 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1618 prototype and functionality.
1619 (ia64_stopped_by_watchpoint): New function.
1620 * i386-nat.c (i386_stopped_data_address): Change to new
1621 prototype and functionality.
1622 (i386_stopped_by_watchpoint): New function.
1623 * remote.c (remote_stopped_data_address): Change to new prototype
1625 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1626 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1627 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1628 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1629 new i386_stopped_by_watchpoint function.
1630 (i386_stopped_by_watchpoint): New prototype.
1631 (i386_stoppped_data_address): Change to new prototype.
1632 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1633 new ia64_stopped_by_watchpoint function.
1634 (ia64_stopped_by_watchpoint): New prototype.
1635 (ia64_stopped_data_address): Ditto.
1637 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1639 * ada-typeprint.c (ada_print_type): Use int_string for printing
1640 modulus of modular type.
1641 * ada-lang.h (ada_modulus): Change return type to unsigned.
1642 * ada-lang.c (ada_language_arch_info): Correct type of
1644 (ada_modulus): Return unsigned result.
1645 (ada_lookup_symbol): Remove user disambiguation and modify comment
1648 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1650 Committed by Paul Hilfinger.
1651 * ada-lang.c (decode_packed_array): On big-endian targets,
1652 left-justify the value if it comes with a modular type.
1654 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1656 Committed by Paul Hilfinger.
1657 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1658 (is_name_suffix): Add support for "___JM" suffixes.
1659 (ada_check_typedef): Renames ada_completed_type.
1660 Update all users of CHECK_TYPEDEF, check_typedef, and
1661 ada_complete_type to call ada_check_typedef.
1662 * ada-typeprint.c: Likewise.
1663 * ada-valprint.c: Likewise.
1665 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1667 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1669 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1671 * MAINTAINERS: Update e-mail address.
1673 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1675 From Maciej W. Rozycki <macro@mips.com>:
1676 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1677 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1679 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1681 * m32r-tdep.c (decode_prologue): Support functions written
1682 in assembler language. Recognize trap instructions as the
1684 (m32r_frame_unwind_cache): Ditto.
1685 (m32r_skip_prologue): Extend search limit. Quit analyzing
1686 prologue if pc's location is not readable.
1688 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1690 * Makefile.in (.l.c): Do conversions of names of alloc and free
1691 functions that are done for .y.c files, plus special one
1692 for yy_flex_realloc. Also, correct missing-file tests here.
1693 * ada-lex.l (malloc, free): Remove macros.
1694 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1696 (ada_flex_use): Dummy definition to remove warnings about unused
1698 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1699 to suppress warning.
1701 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1703 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1705 (sh_return_value_fpu): Ditto for CPUs with FPU.
1706 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1707 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1708 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1709 RETURN_VALUE functions.
1711 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1713 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1714 (sh_pseudo_register_write): Ditto.
1716 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1718 * sh-tdep.c (IS_MACL_STS): New define.
1720 (IS_MACL_LDS): Ditto.
1721 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1722 instructions in prologue.
1723 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1724 instructions in epilogue.
1726 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1728 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1729 (sh_sh_register_name): Add eight empty register names.
1730 (sh_sh3_register_name): Ditto.
1731 (sh_sh3e_register_name): Ditto.
1732 (sh_sh2e_register_name): Ditto.
1733 (sh_sh2a_register_name): New function, defining SH2A register set.
1734 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1736 (sh_sh_dsp_register_name): Add eight empty register names.
1737 (sh_sh3_dsp_register_name): Ditto.
1738 (sh_sh4_register_name): Ditto.
1739 (sh_sh4_nofpu_register_name): Ditto.
1740 (sh_sh4al_dsp_register_name): Ditto.
1741 (sh2a_show_regs): New function.
1742 (sh2a_nofpu_show_regs): New function.
1743 (sh_sh2a_register_type): New function.
1744 (do_bank_register_info): New function.
1745 (sh_print_pseudo_register): Call do_bank_register_info.
1746 Call sh_print_pseudo_register for valid "bank" register.
1747 (sh_sh2a_register_sim_regno): New function.
1748 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1749 Increment pseudo register count by one for all sh variants with
1750 pseudo registers to accomodate pseudo bank register.
1751 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1752 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1753 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1754 Increment pseudo register numbers.
1756 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1758 * dwarf2read.c (read_subroutine_type): Call make_function_type
1759 instead of lookup_function_type.
1761 2004-10-05 Jim Blandy <jimb@redhat.com>
1763 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1764 (Previous change missed some uses.)
1766 2004-10-05 Andrew Cagney <cagney@gnu.org>
1768 * target.h (deprecated_child_ops): Rename child_ops.
1769 * wince.c: Update copyright. Rename child_ops.
1770 * win32-nat.c: Rename child_ops.
1771 * target.c: Rename child_ops.
1772 * rs6000-nat.c: Rename child_ops.
1773 * linux-nat.c: Rename child_ops.
1774 * infttrace.c: Rename child_ops.
1775 * inftarg.c: Rename child_ops.
1776 * infptrace.c: Rename child_ops.
1777 * hppah-nat.c: Update copyright. Rename child_ops.
1778 * hpux-thread.c: Update copyright. Rename child_ops.
1780 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1782 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1784 2004-10-05 Andrew Cagney <cagney@gnu.org>
1786 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1788 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1790 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1791 (die_ref_table): Remove.
1792 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1793 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1794 the usage of this type.
1795 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1796 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1797 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1798 (dwarf2_create_include_psymtab): Update comment.
1799 (find_partial_die): Remove third argument. Remove unreachable call
1801 (dwarf2_find_containing_comp_unit): Update comments. Change one
1802 assertion to an error. Remove an unreachable error.
1803 (dwarf2_find_comp_unit): Update comments.
1804 (type_at_offset): Remove dead code.
1805 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1806 (store_in_ref_table): Add CU argument.
1807 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1808 inter-compilation-unit references.
1809 (load_full_comp_unit, process_full_comp_unit): New functions, based
1810 on psymtab_to_symtab_1.
1811 (psymtab_to_symtab_1): Use them.
1812 (dwarf2_add_dependence): New function.
1813 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1814 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1815 (partial_die_parent_scope, guess_structure_name): Update for changes
1816 to find_partial_die.
1817 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1818 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1819 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1820 (read_die_and_children): Update call to store_in_ref_table.
1821 (do_free_die_list_cleanup): Remove.
1822 (fixup_partial_die): Update for changes to find_partial_die.
1823 (read_full_die): Handle queueing absolute references.
1824 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1825 (dwarf2_attr, die_specification, die_type)
1826 (die_containing_type, dwarf2_extension): Update calls to
1828 (dump_die): Update DW_FORM_ref* handling.
1829 (dwarf2_get_ref_die_offset): Likewise.
1830 (free_one_comp_unit): Release the dies list.
1831 (dwarf2_mark_helper): New function.
1832 (dwarf2_mark): Use it.
1834 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1836 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1837 when writing to memory.
1839 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1841 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1842 (m32r_extract_struct_value_address): Delete function.
1843 (m32r_return_value): New function.
1844 (m32r_gdbarch_init): Instead of store_return_value,
1845 extract_return_value, deprecated_extract_struct_value_address
1846 and deprecated_use_struct_convention, set return_value.
1848 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1850 * dwarf2read.c (read_subrange_type): Add comment for variable
1853 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1855 * Makefile.in (.l.c): Modify rule for compatibility with recent
1856 versions of flex, and remove most command-line options.
1857 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1860 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1862 Turn on initial Ada support (mainly expression evaluation).
1864 * Makefile.in (SFILES): Remove ada-tasks.c.
1865 (HFILES_NO_SRCDIR): Add ada-lang.h.
1866 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1867 (YYOBJ): Add ada-exp.o.
1868 (rule .l.c): Generalize to not mention ada.
1869 * symtab.c: Include ada-lang.h.
1870 (symbol_natural_name, symbol_demangled_name)
1871 (symbol_search_name): Add Ada case.
1873 2004-10-01 Andrew Cagney <cagney@gnu.org>
1875 * Makefile.in (COMMON_OBS): Add inf-child.o.
1876 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1877 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1878 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1879 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1880 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1881 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1882 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1883 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1884 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1885 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1886 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1887 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1888 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1890 * target.c (xfer_using_stratum): Change return type to LONGEST.
1891 On each iteration offset, readbuf and writebuf.
1892 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1893 partial_length, and read/modify/write predicate, update comments.
1894 Pass buffer.word to ptrace write.
1896 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1898 * symfile.c (init_filename_language_table): Add extensions for
1900 * defs.h (enum language): Add language_ada.
1901 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1902 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1903 (add_symbols_from_enclosing_procs): Make a no-op for now.
1904 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1905 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1906 (find_line_in_linetable, find_next_line_in_linetable)
1907 (read_all_symtabs, is_plausible_func_for_line)
1908 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1909 (is_runtime_sym_defined, check_size): Remove declaration.
1910 (function_name_from_pc, ada_translate_error_message)
1911 (ada_lookup_minimal_symbol): Remove definition.
1912 (ada_add_block_symbols): Remove useless label.
1913 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1914 useless declaration.
1915 (ada_is_exception_sym): Likewise.
1917 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1919 Add m32r-linux support.
1920 * configure.tgt: Add m32r*-*-linux*.
1921 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1922 and m32r-linux-tdep.c.
1923 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1924 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1925 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1927 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1928 config/m32r/linux.mh, config/m32r/linux.mt,
1929 config/m32r/nm-linux.h: New files.
1931 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1933 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1934 (mips32_fetch_instruction): Remove, unused.
1936 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1938 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1939 conditions that will always be true.
1941 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1943 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1944 (vaxbsd_fetch_inferior_registers): Rename from
1945 fetch_inferior_registers. Make static.
1946 (vaxbsd_store_inferior_registers): Rename from
1947 store_inferior_registers. Make static.
1948 (_initialize_vaxbsd_nat): Construct and add target vector.
1949 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1950 inftarg.o. Add inf-child.o and inf-ptrace.o.
1951 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1952 inftarg.o. Add inf-child.o and inf-ptrace.o.
1954 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1955 inftarg.o. Add inf-child.o and inf-ptrace.o.
1957 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1959 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1960 (m88kbsd_fetch_inferior_registers): Rename from
1961 fetch_inferior_registers. Make static.
1962 (m88kbsd_store_inferior_registers): Rename from
1963 store_inferior_registers. Make static.
1964 (_initialize_m88kbsd_nat): New prototype and function.
1965 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1966 inftarg.o. Add inf-child.o and inf-ptrace.o.
1968 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1970 2004-09-30 Andrew Cagney <cagney@gnu.org>
1972 * target.c (target_xfer_partial): New function.
1973 (target_read_memory_partial, target_write_memory_partial)
1974 (default_xfer_partial, target_read_partial, target_write_partial)
1975 (xfer_using_stratum): Use.
1976 (debug_to_xfer_partial): Delete function.
1977 (setup_target_debug): Do not override to_xfer_partial.
1979 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1981 * fork-child.c: Update copyright year. Fix coding style.
1983 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1985 * defs.h (msavestring, mstrsave): Remove prototypes.
1986 * utils.c (msavestring, mstrsave): Remove functions.
1987 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1988 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1990 * source.c (find_and_open_source): Use xstrdup instead of
1993 2004-09-30 Andrew Cagney <cagney@gnu.org>
1995 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1996 (inf_ptrace_xfer_memory): Delete.
1997 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1998 (target_read_memory, target_write_memory): Use xfer_using_stratum
1999 when target_xfer_partial_p.
2000 (debug_target): Move to start of file.
2001 (target_read_memory_partial, target_write_memory_partial): Use
2002 to_xfer_partial when target_xfer_partial_p.
2004 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2005 inf_ptrace_xfer_memory with equivalent code.
2006 * inftarg.c (child_xfer_partial): When performing a write, pass
2007 writebuf to child_xfer_memory.
2009 * target.c (target_read_string): Use target_read_memory instead of
2012 2004-09-29 Andrew Cagney <cagney@gnu.org>
2014 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2015 the address of status.
2017 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2018 (kill_inferior): Inline ptrace_wait call.
2019 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2020 * inftarg.c (child_wait): Inline ptrace_wait call.
2022 * target.h (struct target_ops): Delete field to_post_wait.
2023 (target_post_wait): Delete macro.
2024 (child_post_wait): Delete declaration.
2025 * target.c (update_current_target, update_current_target)
2026 (debug_to_post_wait, setup_target_debug): Delete functions and
2028 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2029 * inftarg.c (child_post_wait): Delete.
2030 (init_child_ops): Do not set to_post_wait.
2031 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2032 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2033 * inf-child.c (inf_child_post_wait): Delete.
2034 (inf_child_target): Do not set to_post_wait.
2035 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2036 (inf_ptrace_target): Do not set to_post_wait.
2038 * wince.c (child_ops): Delete.
2039 * win32-nat.c (child_ops): Delete.
2041 * inftarg.c (inftarg_set_find_memory_regions)
2042 (inftarg_set_make_corefile_notes): Delete functions.
2043 (_initialize_linux_nat): Inline calls.
2045 * target.h (child_ops): Declare.
2046 * inftarg.c (child_ops): Move from here ...
2047 * target.c (child_ops): ... to here.
2048 * wince.c (child_ops): Delete extern declaration.
2049 * win32-nat.c (child_ops): Delete extern declaration.
2050 * linux-nat.c (child_ops): Delete extern declaration.
2051 * hpux-thread.c (child_ops): Delete extern declaration.
2053 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2055 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2057 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2059 * configure.in: Only set host_makefile_frag when building a native
2061 * configure: Regenerate.
2063 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2066 2004-09-28 Andrew Cagney <cagney@gnu.org>
2068 Problem identified by Paul Hilfinger.
2069 * Makefile.in (ada_lex_c): Define.
2070 (ada-lex.o): Delete rule.
2072 * linux-proc.c: Delete file.
2073 * Makefile.in: Update.
2074 * config/sparc/linux64.mh (NATDEPFILES):
2075 * config/sparc/linux.mh (NATDEPFILES): Update.
2076 * config/s390/s390.mh (NATDEPFILES): Update.
2077 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2078 * config/powerpc/linux.mh (NATDEPFILES): Update.
2079 * config/pa/linux.mh (NATDEPFILES): Update.
2080 * config/mips/linux.mh (NATDEPFILES): Update.
2081 * config/m68k/linux.mh (NATDEPFILES): Update.
2082 * config/ia64/linux.mh (NATDEPFILES): Update.
2083 * config/i386/linux64.mh (NATDEPFILES): Update.
2084 * config/i386/linux.mh (NATDEPFILES): Update.
2085 * config/arm/linux.mh (NATDEPFILES): Update.
2086 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2087 * linux-nat.c: Update copyright. Include <sys/param.h>,
2088 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2089 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2090 (O_LARGEFILE): Possibly define.
2091 (_initialize_linux_nat, linux_proc_pending_signals)
2092 (add_line_to_sigset, linux_proc_xfer_memory)
2093 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2094 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2095 (struct linux_corefile_thread_data)
2096 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2097 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2099 2004-09-16 Andrew Cagney <cagney@gnu.org>
2101 * lin-lwp.c: Delete file.
2102 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2103 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2104 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2105 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2106 (linux_nat_attach, detach_callback, linux_nat_detach)
2107 (resume_callback, resume_clear_callback, linux_nat_resume)
2108 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2109 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2110 (status_callback, running_callback, count_events_callback)
2111 (select_singlestep_lwp_callback, select_event_lwp_callback)
2112 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2113 (child_wait, stop_and_resume_callback, linux_nat_wait)
2114 (kill_callback, kill_wait_callback, linux_nat_kill)
2115 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2116 (linux_nat_xfer_memory, linux_nat_thread_alive)
2117 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2118 (_initialize_linux_nat): New functions.
2119 * Makefile.in: Update all dependencies.
2120 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2121 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2122 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2123 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2124 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2125 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2126 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2127 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2128 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2129 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2130 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2131 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2132 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2134 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2136 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2137 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2139 * configure.in: Don't comment out NATDEPFILES in the generated
2140 Makefile if NAT_FILE is unset.
2141 * configure: Regenerate.
2143 2004-09-27 Andrew Cagney <cagney@gnu.org>
2145 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2146 (insert_step_resume_breakpoint): Delete.
2147 (insert_step_resume_breakpoint_at_frame): New function.
2148 (insert_step_resume_breakpoint_at_sal): New function.
2149 (handle_inferior_event, step_into_function)
2150 (insert_step_resume_breakpoint): Simplify by using same.
2152 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2154 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2156 * fbsd-proc.c: Remove file.
2157 * Makefile.in (fbsd-proc.o): Remove dependency.
2159 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2162 * config/i386/nm-fbsd64.h: Remove file.
2163 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2165 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2167 * amd64-nat.h: Update copyright year.
2168 (amd64bsd_target): New prototype.
2169 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2170 (amd64bsd_target): New function.
2171 (amd64bsd_fetch_inferior_registers): Rename from
2172 fetch_inferior_registers. Make static.
2173 (amd64bsd_store_inferior_registers): Rename from
2174 store_inferior_registers. Make static.
2175 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2176 (_initialize_amd64fbsd_nat): Construct and add target vector.
2177 * amd64nbsd-nat.o: Include "target.h".
2178 (_initialize_amd64nbsd_nat): Construct and add target vector.
2179 * amd64obsd-nat.c: Include "target.h".
2180 (_initialize_amd64obsd_nat): Construct and add target vector.
2181 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2182 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2183 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2185 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2186 Remove infptrace.o and inftarg.o. Add inf-child.o and
2188 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2189 (amd64obsd-nat.o): Update dependencies.
2191 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2193 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2194 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2195 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2196 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2197 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2199 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2201 (inf_ptrace_detach): Inline detach call.
2203 * configure.in: Check for waddstr instead of mvwaddstr when
2204 searching for curses library. Check for wborder.
2205 * configure, config.in: Regenerate.
2206 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2209 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2211 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2213 Committed by Andrew Cagney.
2214 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2215 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2217 (fetch_register_using_p): Implement 'p' packet. Based on code by
2219 (remote_fetch_registers): Call fetch_register_using_p.
2220 (init_all_packet_configs, show_remote_cmd)
2221 (_initialize_remote): Add p-packet.
2223 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2225 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2226 instead of call_ptrace. Call wait directly instead of
2228 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2229 (inf_ptrace_wait): Inline ptrace_wait call.
2231 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2233 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2234 rolled back instead.
2236 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2238 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2239 the new argument order.
2241 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2243 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2244 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2245 (struct gdbarch_tdep): Remove.
2246 (struct xstormy16_frame_cache): New frame cache structure.
2247 (xstormy16_register_byte, xstormy16_register_raw_size)
2248 (xstormy16_reg_virtual_type, xstormy16_register_type)
2249 (xstormy16_push_arguments, xstormy16_push_return_address)
2250 (xstormy16_pop_frame, xstormy16_store_struct_return)
2251 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2252 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2253 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2254 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2255 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2256 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2257 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2258 (xstormy16_extract_return_value, xstormy16_store_return_value):
2259 Regcachify. Drop useless struct convention handling.
2260 (xstormy16_register_type, xstormy16_return_value)
2261 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2262 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2263 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2264 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2265 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2266 (xstormy16_unwind_dummy_id) : New functions.
2267 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2268 of xstormy16_scan_prologue.
2269 (xstormy16_frame_unwind): New frame_unwind structure.
2270 (xstormy16_frame_base): New frame_base structure.
2271 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2272 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2274 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2276 * language.c (language_gdbarch_post_init): Fix off-by one error.
2278 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2280 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2281 (struct dwarf2_offset_and_type): New.
2282 (set_die_type, reset_die_and_siblings_types, get_die_type)
2283 (offset_and_type_hash, offset_and_type_eq): New functions.
2284 (read_structure_type, read_enumeration_type, read_array_type)
2285 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2286 (read_tag_reference_type, read_tag_const_type)
2287 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2288 (read_typedef, read_base_type, read_subrange_type): Use
2291 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2293 * Makefile.in (dwarf2read.o): Update dependencies.
2294 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2295 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2297 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2298 mark, and has_form_ref_addr.
2299 (struct dwarf2_per_cu_data): New.
2300 (dwarf2_max_cache_age): New.
2301 (dwarf2_build_psymtabs_hard): Free cached compilation units
2302 after loading. Create and manage the list of compilation units.
2303 Remove unnecessary NULL initialization. Fix indentation.
2304 (psymtab_to_symtab_1): Initialize all of CU.
2305 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2306 (find_partial_die): Use dwarf2_find_containing_comp_unit
2308 (free_stack_comp_unit): Update comments. Clear the per-cu
2309 pointer. Handle aging.
2310 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2311 (age_cached_comp_units, free_one_cached_comp_unit)
2312 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2313 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2314 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2315 (show_dwarf2_cmd): New.
2316 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2317 and "maint show dwarf2 max-cache-age".
2318 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2320 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2323 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2325 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2326 and dwarf2_cu struct pointer as arguments. Change function to use
2327 obstack if provided and use dwarf2_cu to determine language-specific
2329 (partial_die_parent_scope): Change comment to include java. Use
2330 new version of typename_concat instead of obconcat.
2331 (partial_die_full_name): Use typename_concat.
2332 (read_namespace): Ditto.
2333 (read_enumeration_type): Use typename_concat instead of obconcat.
2334 (new_symbol): Ditto.
2335 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2336 (guess_structure_name): Ditto.
2337 (read_subroutine_type): Ditto.
2338 (read_structure_type): Ditto.
2339 (is_vtable_name): Add Java support.
2340 (determine_class_name): Switch to new typename_concat call.
2341 (determine_prefix): Switch to new typename_concat call.
2342 * jv-exp.y (FuncStart): New pattern.
2343 (MethodInvocation): Add support for simple function calls. Change
2344 warning message for other forms of inferior call currently not
2346 * valarith.c (value_subscript): Treat an array with upper-bound
2347 of -1 as unknown size.
2349 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2351 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2352 (lookup_partial_symtab): Use symtab_to_fullname.
2354 2004-09-19 Jim Blandy <jimb@redhat.com>
2356 * minsyms.c (lookup_minimal_symbol): Doc fix.
2358 2004-09-20 Andrew Cagney <cagney@gnu.org>
2360 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2362 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2363 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2365 * infptrace.c: Update.
2367 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2369 * symtab.c (output_source_filename): Mark first argument as const.
2370 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2371 for "info sources" output.
2373 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2375 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2376 <machine/vmparam.h>.
2377 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2378 (register_u_addr): Remove prototype.
2380 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2382 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2383 (i386bsd_fetch_inferior_registers): Rename from
2384 fetch_inferior_registers. Make static.
2385 (i386bsd_store_inferior_registers): Rename from
2386 store_inferior_registers. Make static.
2387 (i386bsd_target): New function.
2388 * i386bsd-nat.h: New file.
2389 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2391 (i386fbsd_resume): Rename from child_resume. Make static.
2392 (_initialize_i386fbsd_nat): Construct and add target vector.
2393 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2394 (_initialize_i386nbsd_nat): Construct and add target vector.
2395 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2397 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2398 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2399 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2400 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2401 (LOADLIBES): New variable.
2402 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2403 inf-ptrace.o. Remove inftarg.o.
2404 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2405 inf-ptrace.o. Remove inftarg.o.
2406 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2407 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2408 (LOADLIBES): New variable.
2409 * Makefile.in (i386bsd_nat_h): New variable.
2410 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2413 * sparc64nbsd-tdep.c: Include "objfiles.h".
2414 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2415 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2416 svr4_lp64_fetch_link_map_offsets.
2417 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2419 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2420 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2421 svr4_lp64_fetch_link_map_offsets.
2422 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2425 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2426 * fbsd-nat.h: New file.
2427 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2428 (fbsd_nat_h): New variable.
2429 (fbsd-nat.o): New dependency.
2431 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2432 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2434 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2437 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2439 * ada-exp.y (type_int): New function to add layer of abstraction
2440 around references to expression types.
2442 (type_long_long): Ditto.
2443 (type_float): Ditto.
2444 (type_double): Ditto.
2445 (type_long_double): Ditto.
2447 (type_system_address): Ditto.
2448 (simple_exp): Use type_* functions in place of builtin_*
2451 (write_var_from_name): Ditto.
2452 (write_object_renaming): Ditto.
2453 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2455 (build_ada_types): Remove, replacing with...
2456 (ada_language_arch_info): New function to initialize primitive
2457 type vector in language_arch_info.
2458 (ada_array_length): Remove use of builtin_type_ada_int.
2459 (value_pos_atr): Ditto.
2460 (ada_evaluate_subexp): Ditto.
2461 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2462 builtin_type_ada_long_long, builtin_type_ada_char,
2463 builtin_type_ada_float, builtin_type_ada_double,
2464 builtin_type_ada_long_double, builtin_type_ada_natural,
2465 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2466 (ada_builtin_types): Remove.
2467 (ada_language_defn): Remove entries for la_builtin_type_vector and
2468 string_char_type and use ada_language_arch_info.
2469 (_initialize_ada_language): Do type-vector initialization along
2470 the lines of c-lang.c.
2471 (ada_create_fundamental_type): Break up line.
2472 (ada_dump_symtab): Remove unused function.
2473 (enum ada_primitive_types): Define.
2474 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2475 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2476 builtin_type_ada_float, builtin_type_ada_double,
2477 builtin_type_ada_long_double, builtin_type_ada_natural,
2478 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2479 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2480 (processInt): Ditto.
2481 (processReal): Ditto.
2482 (name_lookup): Ditto.
2483 * ada-typeprint.c (print_range): Use builtin_type_int, not
2484 builtin_type_ada_int.
2486 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2488 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2490 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2491 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2492 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2493 * configure.in: Improve checks for curses library by checking for
2494 mvwaddstr instead of initscr. Drop HP curses in favour of
2495 standard curses on HP-UX.
2496 * configure: Regenerated.
2498 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2500 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2501 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2502 Minor formatting changes.
2503 (empty_array): Slight rewrite for formatting.
2504 (emit_char,parse,ada_language_defn,build_ada_types,
2505 ada_is_exception_sym, _initialize_ada_language): Move
2507 (ada_dump_symtab): Remove unused definition.
2508 (ada_maybe_exception_partial_symbol): Remove unused definition.
2510 2004-09-16 Andrew Cagney <cagney@gnu.org>
2512 * inf-child.c: Include "gdb_string.h".
2513 (inf_child_core_file_to_sym_file): Delete.
2514 (inf_child_target): Set to_fetch_registers and to_store_registers.
2515 * inf-ptrace.c: Include "gdb_string.h".
2516 * Makefile.in: Update all dependencies.
2518 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2521 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2523 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2524 call to heuristic_proc_desc. Remove code that became redundant
2526 (read_next_frame_reg): Remove special case for SP_REGNUM.
2527 (set_reg_offset): Fix small typo.
2528 (reset_saved_regs): New procedure.
2529 (mips32_heuristic_proc_desc): No longer compute a fake
2530 procedure descriptor. Compute the full frame cache instead.
2531 Some minor comment reformatting.
2533 2004-09-14 Andrew Cagney <cagney@gnu.org>
2535 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2538 * thread-db.c (thread_db_new_objfile): Assume that there is a
2541 2004-09-13 Jim Blandy <jimb@redhat.com>
2543 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2544 so that its storage isn't referenced after its lifetime ends.
2546 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2547 and never assigned to. Delete it, and the 'if (use_buffer)'
2548 clauses. Delete 'raw_buffer', since it is now unused.
2550 2004-09-13 Andrew Cagney <cagney@gnu.org>
2552 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2553 * configure: Re-generate.
2554 * nlm/Makefile.in (TAGS): Update.
2555 * Makefile.in (TAGS): Update.
2556 * config/vax/nbsd.mt (TM_FILE): Update.
2557 * config/sparc/vxworks.mt (TM_FILE): Update.
2558 * config/sparc/sol2.mt (TM_FILE): Update.
2559 * config/sparc/sol2-64.mt (TM_FILE): Update.
2560 * config/sparc/obsd64.mt (TM_FILE): Update.
2561 * config/sparc/obsd.mt (TM_FILE): Update.
2562 * config/sparc/nbsd64.mt (TM_FILE): Update.
2563 * config/sparc/nbsd.mt (TM_FILE): Update.
2564 * config/sparc/linux64.mt (TM_FILE): Update.
2565 * config/sparc/linux.mt (TM_FILE): Update.
2566 * config/sparc/fbsd.mt (TM_FILE): Update.
2567 * config/sh/wince.mt (TM_FILE): Update.
2568 * config/sh/nbsd.mt (TM_FILE): Update.
2569 * config/sh/linux.mt (TM_FILE): Update.
2570 * config/sh/embed.mt (TM_FILE): Update.
2571 * config/s390/s390.mt (TM_FILE): Update.
2572 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2573 * config/rs6000/rs6000.mt (TM_FILE): Update.
2574 * config/rs6000/aix4.mt (TM_FILE): Update.
2575 * config/powerpc/vxworks.mt (TM_FILE): Update.
2576 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2577 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2578 * config/powerpc/obsd.mt (TM_FILE): Update.
2579 * config/powerpc/nbsd.mt (TM_FILE): Update.
2580 * config/powerpc/linux.mt (TM_FILE): Update.
2581 * config/powerpc/aix.mt (TM_FILE): Update.
2582 * config/pa/obsd.mt (TM_FILE): Update.
2583 * config/pa/linux.mt (TM_FILE): Update.
2584 * config/pa/hppahpux.mt (TM_FILE): Update.
2585 * config/pa/hppa64.mt (TM_FILE): Update.
2586 * config/pa/hppa.mt (TM_FILE): Update.
2587 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2588 * config/mips/wince.mt (TM_FILE): Update.
2589 * config/mips/vxmips.mt (TM_FILE): Update.
2590 * config/mips/nbsd.mt (TM_FILE): Update.
2591 * config/mips/linux.mt (TM_FILE): Update.
2592 * config/mips/irix6.mt (TM_FILE): Update.
2593 * config/mips/irix5.mt (TM_FILE): Update.
2594 * config/mips/embed.mt (TM_FILE): Update.
2595 * config/m68k/vxworks68.mt (TM_FILE): Update.
2596 * config/m68k/st2000.mt (TM_FILE): Update.
2597 * config/m68k/os68k.mt (TM_FILE): Update.
2598 * config/m68k/obsd.mt (TM_FILE): Update.
2599 * config/m68k/nbsd.mt (TM_FILE): Update.
2600 * config/m68k/monitor.mt (TM_FILE): Update.
2601 * config/m68k/linux.mt (TM_FILE): Update.
2602 * config/m68k/cisco.mt (TM_FILE): Update.
2603 * config/ia64/linux.mt (TM_FILE): Update.
2604 * config/ia64/aix.mt (TM_FILE): Update.
2605 * config/ia64/ia64.mt (TM_FILE): Update.
2606 * config/i386/vxworks.mt (TM_FILE): Update.
2607 * config/i386/obsd64.mt (TM_FILE): Update.
2608 * config/i386/obsd.mt (TM_FILE): Update.
2609 * config/i386/nto.mt (TM_FILE): Update.
2610 * config/i386/nbsd64.mt (TM_FILE): Update.
2611 * config/i386/nbsd.mt (TM_FILE): Update.
2612 * config/i386/linux64.mt (TM_FILE): Update.
2613 * config/i386/linux.mt (TM_FILE): Update.
2614 * config/i386/i386sol2.mt (TM_FILE): Update.
2615 * config/i386/i386lynx.mt (TM_FILE): Update.
2616 * config/i386/fbsd64.mt (TM_FILE): Update.
2617 * config/i386/fbsd.mt (TM_FILE): Update.
2618 * config/i386/cygwin.mt (TM_FILE): Update.
2619 * config/h8300/h8300.mt (TM_FILE): Update.
2620 * config/frv/frv.mt (TM_FILE): Update.
2621 * config/cris/cris.mt (TM_FILE): Update.
2622 * config/arm/wince.mt (TM_FILE): Update.
2623 * config/arm/nbsd.mt (TM_FILE): Update.
2624 * config/arm/linux.mt (TM_FILE): Update.
2625 * config/arm/embed.mt (TM_FILE): Update.
2626 * config/alpha/nbsd.mt (TM_FILE): Update.
2627 * config/alpha/fbsd.mt (TM_FILE): Update.
2628 * config/alpha/alpha.mt (TM_FILE): Update.
2629 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2630 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2632 Eliminate event_loop_p, always has the value 1.
2633 * defs.h (event_loop_p): Delete macro.
2634 * breakpoint.c (until_break_command): Simplify.
2635 * utils.c (prompt_for_continue): Simplify.
2636 * tracepoint.c (read_actions): Simplify.
2637 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2638 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2639 (set_prompt, init_main): Simplify.
2640 (init_signals, disconnect): Delete, unused.
2641 * remote.c (remote_async_resume)
2642 (extended_remote_async_create_inferior): Simplify.
2643 * mi/mi-interp.c (mi_input): Delete, unused.
2644 (mi_interpreter_resume, mi_command_loop): Simplify.
2645 * interps.c (current_interp_command_loop): Simplify.
2646 * infrun.c (proceed): Simplify.
2647 * infcmd.c (run_command, continue_command, step_1, jump_command)
2648 (until_command, advance_command, finish_command)
2649 (interrupt_target_command): Simplify.
2650 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2652 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2653 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2654 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2655 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2656 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2657 * mips-tdep.c (mips_dump_tdep): Do not print same.
2659 2004-09-12 Andrew Cagney <cagney@gnu.org>
2661 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2663 * Makefile.in (valprint.o): Delete explict rule.
2665 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2666 reported by Dave Anderson.
2668 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2670 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2672 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2673 Andrew Cagney <cagney@gnu.org>
2675 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2676 (mi_cmd_data_list_register_values)
2677 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2678 the register number computation.
2680 2004-09-12 Andrew Cagney <cagney@gnu.org>
2682 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2683 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2684 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2685 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2687 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2688 inf-ptrace.o and inf-child.o.
2689 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2690 * Makefile.in: Update dependencies.
2692 2004-09-11 Andrew Cagney <cagney@gnu.org>
2694 * language.c (hex_string, hex_string_custom): Move from here ...
2695 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2696 (CELLSIZE): Increase to 50.
2697 * language.h (hex_string, hex_string_custom): Move from here ...
2698 * defs.h: ... to here.
2699 * Makefile.in: Update all dependencies.
2701 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2703 * language.c (local_hex_format_custom): Remove.
2704 (local_hex_string): Rename to hex_string, use C format, and move to
2706 (local_hex_string_custom): Rename to hex_string_custom and change
2707 interface. Now uses C format. Move to utils.c
2708 (local_octal_format_custom): Remove.
2709 (local_decimal_format_custom): Remove.
2710 (unknown_language_defn): Remove language-specific number
2712 (auto_language_defn): Ditto.
2713 (local_language_defn): Ditto.
2714 * language.h (struct language_format_info): Delete declaration.
2715 (struct language_defn): Remove language_format_info fields
2716 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2717 (local_binary_format): Remove macro.
2718 (local_binary_format_prefix): Remove macro.
2719 (local_binary_format_specifier): Remove macro.
2720 (local_binary_format_suffix): Remove macro.
2721 (local_octal_format): Remove macro.
2722 (local_octal_format_prefix): Remove macro.
2723 (local_octal_format_specifier): Remove macro.
2724 (local_octal_format_suffix): Remove macro.
2725 (local_decimal_format): Remove macro.
2726 (local_decimal_format_prefix): Remove macro.
2727 (local_decimal_format_specifier): Remove macro.
2728 (local_decimal_format_suffix): Remove macro.
2729 (local_hex_format): Remove macro.
2730 (local_hex_format_prefix): Remove macro.
2731 (local_hex_format_specifier): Remove macro.
2732 (local_hex_format_suffix): Remove macro.
2733 (local_decimal_format_custom): Remove.
2734 (local_octal_format_custom): Remove.
2735 (local_hex_format_custom): Remove.
2736 (local_hex_string): Rename to hex_string and move to defs.h.
2737 (local_hex_string_custom): Rename to hex_string_custom, change
2738 interface, and move to defs.h.
2739 * utils.c: (int_string): New function.
2740 (hex_string): New function (from language.c).
2741 (hex_string_custom): New function (from language.c).
2742 (octal2str): New function.
2743 (decimal2str): Add width parameter.
2744 (paddr_u): Use new decimal2str interface.
2746 * defs.h (hex_string): Declare.
2747 (hex_string_custom): Declare.
2748 (int_string): Declare.
2749 * printcmd.c (print_scalar_formatted): Remove localized binary
2751 * valprint.c (print_longest): Use int_string.
2752 (print_floating): Use C hex format.
2753 (print_hex_chars): Ditto.
2754 (print_binary_chars): Remove language-specific formatting.
2755 (print_octal_chars): Use C octal format.
2756 (print_decimal_chars): Delocalize format.
2757 (print_decimal): Remove.
2758 * ada-lang.c (ada_language_defn): Remove language-specific number
2760 * p-lang.c (pascal_language_defn): Ditto.
2761 * c-lang.c (c_language_defn): Ditto.
2762 (cplus_language_defn): Ditto.
2763 (asm_language_defn): Ditto.
2764 (minimal_language_defn): Ditto.
2765 * f-lang.c (f_language_defn): Ditto.
2766 * jv-lang.c (java_language_defn): Ditto.
2767 * m2-lang.c (m2_language_defn): Ditto.
2768 * scm-lang.c (scm_language_defn): Ditto.
2769 * objc-lang.c (objc_language_defn): Ditto.
2770 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2772 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2773 * ui-out.c (ui_out_field_core_addr): Ditto.
2774 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2775 * exec.c (print_section_info): Ditto.
2776 * i387-tdep.c (print_i387_status_word): Ditto.
2777 (print_i387_control_word): Ditto.
2778 (i387_print_float_info): Ditto.
2779 * maint.c (maint_print_section_info): Ditto.
2780 * solib.c (info_sharedlibrary_command): Ditto.
2781 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2782 * symtab.c (print_msymbol_info): Ditto.
2783 * tracepoint.c (tracepoints_info): Ditto.
2784 * solib-frv.c (lm_base): Ditto.
2785 (frv_current_sos): Ditto.
2786 (enable_break2): Ditto.
2787 (enable_break): Ditto.
2788 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2789 (process_one_symbol): Ditto.
2790 * infcmd.c (program_info): Ditto.
2791 * mdebugread.c (parse_partial_symbols): Ditto.
2792 * symfile.c (add_symbol_file_command): Ditto.
2793 * cli/cli-cmds.c (edit_command): Ditto.
2794 (list_command): Ditto.
2795 * infcall.c (call_function_by_hand): Ditto.
2796 * remote-vx.c (vx_run_files_info): Ditto.
2801 * aix-thread.c (pdc_symbol_addrs): Ditto.
2802 (pdc_read_regs): Ditto.
2803 (pdc_write_regs): Ditto.
2804 (pdc_read_data): Ditto.
2805 (pdc_write_data): Ditto.
2806 * d10v-tdep.c (display_trace): Ditto.
2807 * rs6000-nat.c (find_toc_address): Ditto.
2808 * aix-thread.c: Don't include language.h.
2809 * buildsym.c: Ditto.
2811 * mdebugread.c: Ditto.
2812 * rs6000-nat.c: Ditto.
2813 * buildsym.c (make_blockvector): Use renamed hex_string.
2815 2004-09-10 Jason Molenda (jmolenda@apple.com)
2817 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2818 chars after 'if' or 'while' commands in user-defined commands.
2820 2004-09-08 Jim Blandy <jimb@redhat.com>
2822 Fix bug reported and analyzed by Olivier Crete:
2823 * symfile.c (copy_section_addr_info): New function.
2824 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2825 original set of address arguments, instead of handwritten code
2826 that uses one length to allocate and a different length to
2827 initialize. Use make_cleanup_free_section_addr_info.
2828 * symfile.h (copy_section_addr_info): New declaration.
2829 * utils.c: #include "symfile.h".
2830 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2832 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2833 * Makefile.in (utils.o): Update dependencies.
2835 2004-09-08 Andrew Cagney <cagney@gnu.org>
2837 * thread-db.c (keep_thread_db): Delete.
2838 (thread_db_new_objfile, thread_db_create_inferior)
2839 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2841 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2843 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2844 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2845 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2846 (i386_frameless_signal_p): Remove prototype.
2847 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2848 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2850 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2851 instead of FP0_REGNUM.
2852 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2853 of FP0_REGNUM and FPC_REGNUM.
2855 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2856 (sunos_solib_create_inferior_hook): Don't call
2857 sunos_relocate_main_executable.
2859 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2860 solib_svr4_fetch_link_map_offsets to
2861 svr4_ilp32_fetch_link_map_offsets.
2862 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2863 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2864 svr4_ilp32_fetch_link_map_offsets.
2865 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2867 2004-09-07 Jim Blandy <jimb@redhat.com>
2869 * frame.h (frame_register): Doc fix.
2871 2004-09-07 Andrew Cagney <cagney@gnu.org>
2873 * vx-share/wait.h: Delete #ifdef USG.
2874 * utils.c (request_quit): Ditto.
2875 * tui/tui.c (tui_reset): Ditto.
2877 * remote-sds.c: Ditto.
2878 * remote-rdi.c: Ditto.
2879 * mdebugread.c: Ditto.
2880 * m68klinux-nat.c: Ditto.
2881 * infttrace.c: Ditto.
2882 * infptrace.c: Ditto.
2883 * i386v-nat.c: Ditto.
2886 * core-aout.c: Ditto.
2888 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2890 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2891 heuristic_proc_desc.
2892 (mips_insn32_frame_cache): Likewise.
2894 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2896 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2897 left behind by error.
2899 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2901 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2902 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2904 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2906 * config/rs6000/xm-aix4.h: Remove this file.
2907 * config/rs6000/aix4.mh (XM_FILE): Delete.
2909 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2911 * config/rs6000/xm-rs6000.h: Remove this file.
2912 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2914 2004-09-03 Andrew Cagney <cagney@gnu.org>
2916 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2917 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2920 * mips-tdep.c (temp_saved_regs): Delete.
2921 (set_reg_offset): Replace saved_regs parameter with this_cache.
2922 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2923 (mips32_heuristic_proc_desc): Add this_cache parameter.
2924 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2925 (after_prologue): Pass a NULL this_cache.
2927 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2928 non-kernel trap prologues.
2930 * mips-tdep.c (find_proc_desc): Delete function.
2931 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2933 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2934 mips_insn32_frame_cache.
2936 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2937 Simplify as NEXT_FRAME is NULL.
2938 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2940 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2942 (mips_skip_prologue): Update.
2944 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2945 "cur_frame" parameter.
2946 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2947 (mips_insn32_frame_cache, find_proc_desc): Update
2949 * config/vax/nm-obsd.h: Delete file.
2950 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2951 * config/vax/nm-nbsd.h: Delete file.
2952 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2953 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2954 * config/sh/nm-nbsd.h: Delete file.
2955 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2956 * config/rs6000/nm-rs6000ly.h: Delete file.
2957 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2958 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2959 * config/powerpc/nm-obsd.h: Delete file.
2960 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2961 * config/powerpc/nm-nbsd.h: Delete file.
2962 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2963 * config/pa/nm-obsd.h: Delete file.
2964 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2965 * config/mips/nm-nbsd.h: Delete file.
2966 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2967 * config/m88k/nm-obsd.h: Delete file.
2968 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2969 * config/m68k/nm-nbsd.h: Delete file.
2970 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2971 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2972 * config/i386/nm-nbsd.h: Delete file.
2973 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2974 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2975 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2976 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2977 * config/i386/nm-i386lynx.h: Delete file.
2978 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2979 * config/arm/nm-nbsd.h: Delete file.
2980 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2981 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2983 * config/i386/tm-fbsd.h: Delete file.
2984 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2985 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2987 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2988 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2989 * config/rs6000/aix4.mt (TM_FILE): Set to
2990 config/rs6000/tm-rs6000.h.
2991 * config/powerpc/tm-ppc-aix.h: Delete file.
2992 * config/powerpc/aix.mt (TM_FILE): Set to
2993 config/rs6000/tm-rs6000.h.
2994 * config/m68k/tm-linux.h: Delete file.
2995 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2996 * config/i386/tm-linux64.h: Delete file.
2997 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2998 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3000 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3001 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3002 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3003 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3004 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3005 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3006 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3007 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3008 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3010 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3013 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3015 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3016 Minor reformatting. Some code factoring.
3018 2004-09-02 Andrew Cagney <cagney@gnu.org>
3020 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3021 * config/vax/tm-nbsd.h: Delete file.
3022 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3023 * config/sparc/tm-vxworks.h: Delete file.
3024 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3025 * config/sparc/tm-nbsd.h: Delete file.
3026 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3027 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3028 * config/sparc/tm-linux.h: Delete file.
3029 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3030 * config/s390/tm-linux.h: Delete file.
3031 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3032 * config/pa/tm-bsd.h: Delete file.
3033 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3034 * config/m68k/tm-obsd.h: Delete file.
3035 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3036 * config/m68k/tm-nbsd.h: Delete file.
3037 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3038 * config/i386/tm-vxworks.h: Delete file.
3039 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3040 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3041 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3042 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3043 * config/i386/tm-nbsd.h: Delete file.
3044 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3045 * config/i386/tm-i386lynx.h: Delete file.
3046 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3047 * config/cris/tm-cris.h: Delete file.
3049 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3050 * configure: Re-generate.
3051 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3052 * config/arm/tm-nbsd.h: Delete file.
3054 * config/powerpc/tm-ppcle-sim.h: Delete.
3055 * config/powerpc/tm-ppcle-eabi.h: Delete.
3056 * config/powerpc/tm-nbsd.h: Delete.
3057 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3058 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3061 * config/i386/nto.mh (NAT_FILE): Delete.
3062 * config/i386/nm-nto.h: Delete.
3064 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3065 * config/m68k/tm-os68k.h: Ditto.
3066 * config/m68k/tm-monitor.h: Ditto.
3067 * config/m68k/tm-cisco.h: Ditto.
3068 * config/m68k/st2000.mt (TM_FILE): Delete.
3069 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3070 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3071 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3072 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3074 * config/m68k/tm-st2000.h: Delete.
3075 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3076 * config/sparc/fbsd.mt (TM_FILE): Delete.
3077 * config/sparc/tm-fbsd.h: Delete.
3079 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3080 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3081 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3083 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3084 GDB_TM_FILE and GDB_XM_FILE.
3085 * gdbarch.c: Re-generate.
3086 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3087 quotes in macro definition.
3088 * configure.in: Re-generate.
3090 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3091 validating architecture methods.
3092 * gdbarch.c: Re-generate.
3094 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3095 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3096 GDB_MULTI_ARCH_PARTIAL.
3097 * gdbarch.h: Re-generate.
3099 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3100 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3101 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3102 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3103 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3104 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3105 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3106 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3107 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3108 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3109 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3110 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3112 2004-09-01 Andrew Cagney <cagney@gnu.org>
3114 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3115 and main_func_highpc.
3116 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3117 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3118 * nlmread.c (nlm_symfile_read): Update.
3120 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3122 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3123 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3124 (find_proc_desc): Remove dead code.
3126 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3128 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3130 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3132 * observer.sh: Add struct so_list declaration.
3133 * Makefile.in: Add dependencies on observer.h for solib.c and
3135 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3137 (_initialize_breakpoint): Register
3138 disable_breakpoints_in_unloaded_shlib as an observer of the
3139 "solib unloaded" observation event.
3140 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3141 call decode_line_1 so unfound breakpoint errors are silent.
3142 * solib.c (update_solib_list): When a solib is discovered to have
3143 been unloaded by the program, notify all observers of the
3144 "solib unloaded" observation event.
3146 2004-09-01 Andrew Cagney <cagney@gnu.org>
3148 * frame.c: Include "objfiles.h".
3149 (inside_main_func): New function.
3150 (get_prev_frame): Use new inside_main_func.
3151 * Makefile.in (frame.o): Update dependencies.
3152 * defs.h (inside_main_func): Delete declaration.
3153 * blockframe.c (inside_main_func): Delete function.
3155 2004-08-31 Jim Blandy <jimb@redhat.com>
3157 * dwarf2read.c (is_vtable_name): New function, based on logic from
3158 read_structure_type, but passing the correct length to strncmp,
3159 and using 'sizeof' instead of 'strlen'.
3160 (read_structure_type): Call it.
3162 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3164 * config/powerpc/aix.mh: Add comment.
3166 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3168 * MAINTAINERS: Add self to Write-After-Approval.
3170 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3172 * MAINTAINERS: Add self to Write-After-Approval.
3174 2004-08-30 Andrew Cagney <cagney@gnu.org>
3176 Fix PR breakpoints/1757.
3177 * infrun.c (struct execution_control_state): Replace
3178 remove_breakpoints_on_following_step with
3179 step_after_step_resume_breakpoint.
3180 (init_execution_control_state): Update.
3181 (handle_inferior_event): For signals, when stepping off a
3182 breakpoint, set step_after_step_resume_breakpoint. When
3183 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3184 (keep_going): Delete code handling
3185 remove_breakpoints_on_following_step.
3187 2004-08-29 David Lecomber <david@streamline-computing.com>
3190 * language.h (enum array_ordering): New enum.
3191 * language.h (struct language_defn): New la_array_ordering
3193 * language.c (unknown_language_defn, auto_language_defn)
3194 (local_language_defn): Ditto.
3195 * ada-lang.c (ada_language_defn): Ditto.
3196 * c-lang.c (c_language_defn, cplus_language_defn)
3197 (asm_language_defn, minimal_language_defn): Ditto.
3198 * f-lang.c (f_language_defn): Ditto.
3199 * jv-lang.c (java_language_defn): Ditto.
3200 * m2-lang.c (f_language_defn): Ditto.
3201 * objc-lang.c (objc_language_defn): Ditto.
3202 * p-lang.c (pascal_language_defn): Ditto.
3203 * scm-lang.c (scm_language_defn): Ditto.
3204 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3205 oriented large to small in type structure.
3206 * dwarf2read.c (read_array_order): New function.
3207 (read_array_type): Use read_array_order to check row/column
3210 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3212 * target.c (target_resize_to_sections): Check
3213 current_target.to_sections for an old value when updating.
3215 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3217 * procfs.c (dbx_link_bpt_addr): New static global variable.
3218 (dbx_link_shadow_contents): New static global variable.
3219 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3220 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3222 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3223 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3225 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3226 after the inferior has been forked.
3227 (remove_dbx_link_breakpoint): New function.
3228 (dbx_link_addr): New function.
3229 (insert_dbx_link_bpt_in_file): New function.
3230 (insert_dbx_link_bpt_in_region): New function.
3231 (insert_dbx_link_breakpoint): New function.
3232 (proc_trace_syscalls_1): New function, extracted from
3233 proc_trace_syscalls.
3234 (proc_trace_syscalls): Replace extract code by call to
3235 proc_trace_syscalls_1.
3236 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3239 2004-08-25 Jim Blandy <jimb@redhat.com>
3241 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3243 2004-08-25 Andrew Cagney <cagney@gnu.org>
3245 * infrun.c (struct execution_control_state): Delete field
3246 "stepping_through_sigtramp".
3247 (init_execution_control_state): Do not set same.
3248 (context_switch): Do not pass same to save_infrun_state and
3250 * gdbthread.h (struct thread_info): Delete field
3251 stepping_through_sigtramp.
3252 (save_infrun_state, load_infrun_state): Delete parameter
3253 stepping_through_sigtramp.
3254 * thread.c (load_infrun_state, save_infrun_state): Update.
3256 * infrun.c: Re-indent. Move expression operators to the beginning
3257 of the line. Remove long disabled #if 0 code.
3259 2004-08-24 Andrew Cagney <cagney@gnu.org>
3261 * doublest.h (floatformat_ieee_quad): Rename
3262 floatformat_ia64_quad.
3263 * doublest.c (floatformat_ieee_quad): Rename
3264 floatformat_ia64_quad.
3265 (_initialize_doublest): Update.
3267 2004-08-24 Jim Blandy <jimb@redhat.com>
3269 * dwarf2expr.h (struct dwarf_expr_context): New members
3270 'num_pieces' and 'pieces', for returning the result of an
3271 expression that uses DW_OP_piece.
3272 (struct dwarf_expr_piece): New struct type.
3273 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3275 (free_dwarf_expr_context): Free pieces, if any.
3276 (add_piece): New function.
3277 (execute_stack_op): Implement DW_OP_piece.
3278 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3279 expression is a list of pieces, print an error message.
3280 (dwarf2_loc_desc_needs_frame): If the expression yields
3281 pieces, and any piece is in a register, then we need a frame.
3283 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3284 the stack until we've decided what sort of result the evaluation
3285 has produced. Use separate variables, with more specific names.
3287 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3289 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3290 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3291 (arm_netbsd_init_abi_common): Register them.
3293 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3295 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3297 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3298 safe_frame_unwind_memory instead of target_read_memory.
3300 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3302 (fetch_register, store_register): Remove prototypes.
3303 (child_resume): Reorganize code and comments such that it is
3304 grouped a bit more logically.
3305 (attach): Explicitly compare errno against 0.
3306 (detach): Likewise. Use perror_with_name instead of
3308 * Makefile.in (infptrace.o): Update dependencies.
3310 * ia64-linux-nat.c: Update copyright year.
3311 (fetch_debug_register, store_debug_register)
3312 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3314 * config/ia64/nm-linux.h: Update copyright year.
3315 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3317 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3318 from CORE_ADDR to struct frame_info *. Use
3319 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3320 (amd64_linux_sigtramp_p): Adjust for changed signature of
3321 and64_linux_sigtramp_start
3323 * gdb_ptrace.h: GNU/Linux.
3325 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3328 * infptrace.c: Include "gdb_assert.h".
3329 (PTRACE_XFER_TYPE): Remove define.
3330 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3331 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3333 (fetch_inferior_registers, store_inferior_registers): Remove
3334 redundant culry braces. Tweak comment. s/regno/regnum.
3335 * Makefile.in (infptrace.o): Update dependencies.
3337 * configure.in: Change test for return type of ptrace to default
3338 to `long' instead of `int'.
3339 * configure: Regenerate.
3341 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3343 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3345 * configure.in: Check for ttrace function.
3346 * configure, config.in: Regenerate.
3348 * gdb_ptrace.h: New file.
3349 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3351 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3352 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3353 (attach): Don't define PT_ATTACH.
3354 (detach): Don't define PT_DETACH.
3355 * Makefile.in (gdb_ptrace_h): New variable.
3356 (infptrace.o): Update dependencies.
3358 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3360 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3361 instead of `int' if not already defined.
3362 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3364 * infptrace.c (call_ptrace): Revert change that replaced
3365 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3367 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3369 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3372 * linux-nat.c (kill_inferior): Add missing third and fourth
3373 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3375 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3378 * proc-why.c (proc_prettyfprint_why): Fix format string.
3380 * solib-osf.c (osf_current_sos): Remove unsused label.
3382 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3384 * configure, config.in: Regenerate.
3385 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3386 <ncurses/ncurses.h>.
3388 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3389 * config/nm-nbsd.h: Update copyright year.
3390 (PTRACE_ARG3_TYPE): Remove define.
3392 * sparc-nat.c (fetch_inferior_registers)
3393 (store_inferior_registers, sparc_xfer_wcookie):
3394 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3396 * alphabsd-nat.c (fetch_inferior_registers):
3397 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3399 * amd64bsd-nat.c (fetch_inferior_registers)
3400 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3402 * armnbsd-nat.c: Update copyright year.
3403 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3404 (store_register, store_regs, store_fp_register, store_fp_regs):
3405 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3406 * hppabsd-nat.c (fetch_inferior_registers)
3407 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3409 * i386bsd-nat.c (fetch_inferior_registers)
3410 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3411 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3412 * m68kbsd-nat.c (fetch_inferior_registers)
3413 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3415 * m88kbsd-nat.c (fetch_inferior_registers)
3416 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3418 * mipsnbsd-nat.c: Update copyright year.
3419 (fetch_inferior_registers, store_inferior_registers):
3420 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3421 * ns32knbsd-nat.c: Update copyright year.
3422 (fetch_inferior_registers, store_inferior_registers):
3423 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3424 * ppcnbsd-nat.c (fetch_inferior_registers):
3425 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3427 * ppcobsd-nat.c (fetch_inferior_registers):
3428 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3430 * shnbsd-nat.c: Update copyright year.
3431 (fetch_inferior_registers, store_inferior_registers):
3432 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3433 * vaxbsd-nat.c (fetch_inferior_registers)
3434 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3437 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3439 * infptrace.c (call_ptrace, child_resume, attach, detach)
3440 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3441 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3442 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3445 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3447 * defs.h: Remove out-of-date comment.
3448 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3449 [!GETENV_PROVIDED] (getenv): Remove prototype.
3451 * standalone.c: Remove file.
3452 * Makefile.in (standalone.o): Remove dependency.
3454 * i386-linux-nat.c (dummy_sse_values): Remove function and
3456 (i386_linux_dr_get): Fix typo in comment.
3457 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3459 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3461 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3463 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3466 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3468 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3469 parenthesis in definition.
3470 * configure: Regenerated.
3472 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3474 * PROBLEMS: Mention build/1411.
3476 2004-08-09 Robert Millan <robertmh@gnu.org>
3478 Committed by Nathanael Nerode.
3479 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3480 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3482 2004-08-12 Andrew Cagney <cagney@gnu.org>
3484 * NEWS: Mention fixes in GDB 6.2.1.
3485 * PROBLEMS: Remove mention of mips-irix.
3487 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3489 * config/powerpc/xm-aix.h: Delete.
3490 * config/powerpc/aix.mh (MH_FILE): Remove.
3491 * config/powerpc/aix432.mh (MH_FILE): Remove.
3493 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3495 * config/powerpc/aix.mh: Remove obsolete comment.
3496 * config/powerpc/aix432.mh: Likewise.
3498 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3500 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3502 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3504 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3505 this file is now empty.
3506 * config/xm-aix4.h: Remove, this file is no longer included
3509 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3511 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3512 that file is now empty.
3513 (termdef): Remove prototype, function no longer used.
3515 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3517 * doc/gdbint.texinfo (Host Definition): Remove documentation
3518 for USE_O_NOCTTY, no longer used.
3519 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3520 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3522 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3524 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3525 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3526 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3528 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3530 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3531 instead of FIVE_ARG_PTRACE.
3533 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3534 (new_tty): Use O_NOCTTY unconditionally.
3536 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3538 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3539 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3542 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3544 * xcoff_symfile_finish: Replace last call to xmfree by call
3547 2004-08-10 Andrew Cagney <cagney@gnu.org>
3549 * main.c (captured_main): Delete call to init_malloc.
3550 * defs.h (init_malloc): Delete declaration.
3551 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3552 (init_malloc): Delete functions.
3554 * defs.h (xmfree): Delete.
3555 * utils.c (xmfree): Delete function.
3556 (xfree): Inline calls to xmfree and mfree.
3557 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3558 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3559 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3560 * somread.c (som_symfile_finish): Ditto.
3561 * objfiles.c (allocate_objfile, free_objfile):
3562 * nlmread.c (nlm_symfile_finish): Ditto.
3563 * hpread.c (hpread_symfile_finish): Ditto.
3564 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3565 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3566 * coffread.c (coff_symfile_finish): Ditto.
3568 * defs.h (xmcalloc): Delete declaration.
3569 * utils.c (xmcalloc): Delete.
3570 (xcalloc): Inline calls to xmcalloc and mcalloc.
3571 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3573 * symtab.c (create_demangled_names_hash): Ditto.
3575 * defs.h (xmrealloc): Delete.
3576 * utils.c (xmrealloc): Delete.
3577 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3578 * symmisc.c (extend_psymbol_list): Use xrealloc.
3579 * source.c (find_source_lines): Ditto.
3580 * hpread.c (hpread_lookup_type): Ditto.
3581 * dbxread.c (add_bincl_to_list): Ditto.
3583 * utils.c (xmmalloc): Delete.
3584 (xmalloc): Inline xmmalloc and mmalloc calls.
3585 (msavestring): Use xmalloc.
3586 * defs.h (xmmalloc): Delete declaration.
3587 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3589 * symmisc.c (extend_psymbol_list): Ditto.
3590 * symfile.c (init_psymbol_list): Ditto.
3591 * source.c (find_source_lines): Ditto.
3592 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3593 * elfread.c (elf_symtab_read): Ditto.
3594 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3595 * coffread.c (coff_symfile_init): Ditto.
3597 2004-08-10 David Carlton <carlton@bactrian.org>
3599 * MAINTAINERS: Remove David Carlton from c++ testsuite
3602 2004-08-10 Jerome Guitton <guitton@gnat.com>
3604 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3605 print a line feed before the prompt.
3607 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3609 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3611 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3613 General cleanup of the AIX xm include file:
3614 * config/xm-aix4.h (fd_set): Remove undefine.
3615 Remove include of <sys/select.h>.
3616 (HAVE_TERMIO): Remove define.
3618 (NULL): Remove redefine.
3619 (alloca): Remove #pragma.
3620 (vfork): Remove define.
3622 (SIGWINCH_HANDLER): Remove.
3623 (SIGWINCH_HANDLER_BODY): Remove.
3625 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3627 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3628 GDB_OSABI_OPENBSD_ELF.
3630 2004-08-07 Robert Millan <robertmh@gnu.org>
3632 * bsd-kvm.c: Check for nlist.h before including it.
3634 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3636 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3637 sigcontext' offset consistency checks for ancient BSD.
3639 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3641 * configure.in: Check for <sys/types.h>. Check return and
3642 argument types of ptrace.
3643 * configure, config.in: Regenerate.
3645 2004-08-09 Jim Blandy <jimb@redhat.com>
3647 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3648 rs6000_register_sim_regno): Doc fixes.
3650 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3652 * mips-tdep.c: Include "floatformat.h".
3653 (n32n64_floatformat_always_valid): New function.
3654 (floatformat_n32n64_long_double_big): New constant.
3655 (mips_gdbarch_init): Set size and format of long double
3656 for N32 and N64 ABIs.
3657 * Makefile.in (mips-tdep.o): Update dependencies.
3659 2004-08-08 Andrew Cagney <cagney@gnu.org>
3661 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3662 print. Improve script's error messages.
3663 * gdbarch.h: Re-generate.
3665 * gdbarch.sh (pformat): New function.
3666 (float_format, double_format, long_double_format): List with bit
3667 members. Use pformat when printing.
3668 * gdbarch.c, gdbarch.h: Re-generate.
3670 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3672 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3673 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3674 (ppcnbsd_supply_pcb): New function.
3675 (_initialize_ppcnbsd_nat): New prototype and function.
3676 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3677 (LOADLIBES): New variable.
3678 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3680 2004-08-08 Andrew Cagney <cagney@gnu.org>
3682 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3683 (builtin_type_ieee_double, builtin_type_ia64_quad)
3684 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3685 BE/LE floating-point types.
3686 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3687 (builtin_type_ieee_double, builtin_type_ia64_quad)
3688 (builtin_type_ia64_spill): Declare.
3689 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3690 (floatformat_ieee_double, floatformat_arm_ext)
3691 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3692 of LE/BE floatformats.
3693 * doublest.h: (struct floatformat, floatformat_ieee_single)
3694 (floatformat_ieee_double, floatformat_arm_ext)
3695 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3697 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3699 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3701 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3702 instead of regcache_raw_supply when storing the registers.
3704 * i386gnu-nat.c: Update copyright year.
3705 (gnu_store_registers): Don't use deprecated_registers and
3706 deprecated_registers_valid. Use regcache_valid_p and
3707 regcache_raw_supply instead.
3709 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3712 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3713 variables. Incapitalized "process".
3715 * configure.in: Add cursesX to the list of possible curses libs.
3716 Add cursesX.h to the list of possible curses headers.
3717 * configure, config.in: Regenerate.
3719 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3721 * configure.in: Test for struct lwp in <sys/lwp.h>.
3722 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3723 the offset of l_addr in struct lwp.
3725 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3727 * bsd-kvm.c: Include "gdbcore.h"
3728 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3730 2004-08-07 Andrew Cagney <cagney@gnu.org>
3732 * gdbtypes.c (build_flt, build_complex): New functions.
3733 (gdbtypes_post_init): Use.
3735 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3737 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3738 through to builtin_type_uint128.
3740 * c-exp.y: Use builtin_type function to obtain builtin types.
3742 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3744 * gdbtypes.c (gdbtypes_post_init): Update.
3745 (build_gdbtypes): Move initialization of builtin_type_int0
3746 through to builtin_type_uint128 from here ...
3747 (_initialize_gdbtypes): ... to here.
3748 * d10v-tdep.c (d10v_register_type): Update.
3750 * doublest.c: Update copyright.
3751 (floatformat_from_length): Call error when floatformat is NULL.
3752 (extract_floating_by_length): Remove NULL fmt check.
3753 (store_floating_by_length): Ditto.
3755 2004-08-07 Andrew Cagney <cagney@gnu.org>
3757 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3758 that the register is valid.
3760 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3762 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3763 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3764 struct frame_info *. Use safe_frame_unwind_memory instead of
3765 deprecated_read_memory_nobpt.
3766 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3767 changed signature of i386_linux_sigtramp_start and
3768 i386_linux_rt_sigtramp_start.
3770 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3771 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3772 instead of deprecated_read_memory_nobpt.
3773 (i386nbsd_sigtramp_p): Adjust for changed signature of
3774 i386nbsd_sigtramp_offset.
3776 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3777 safe_frame_unwind_memory instead of target_read_memory.
3779 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3781 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3782 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3783 (_initialize_kernel_u_addr): Remove prototype and function.
3784 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3786 * xcoffread.c: Likewise.
3788 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3790 * vax-nat.c: New file.
3791 * vaxbsd-nat.c: Tweak comment.
3792 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3794 (vax-nat.o): New dependency.
3795 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3796 (vax-*-ultrix2*): Remove.
3797 * config/vax/vax.mh: New file.
3798 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3799 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3800 (vax_register_u_addr): New prototype.
3801 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3802 * config/vax/vaxult2.mh: Remove file.
3803 * config/vax/vaxult.mh: Remove file.
3804 * config/vax/vaxbsd.mh: Remove file.
3805 * config/vax/vax.mt (TM_FILE): Remove.
3806 * config/vax/tm-vaxbsd.h: Remove file.
3808 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3810 * aix-thread.c (get_signaled_thread): New function.
3811 (iter_trap): Delete, no longer used.
3812 (iter_tid): New function.
3813 (pd_update): Find the thread that received the SIGTRAP signal
3814 by first locating the kernel thread, and then finding its
3817 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3819 * lin-lwp.c (child_wait): Continue inferior after processing
3820 PTRACE_EVENT_CLONE event.
3822 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3824 * MAINTAINERS: Add self to Write-After-Approval.
3826 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3828 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3829 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3831 2004-08-05 Andrew Cagney <cagney@gnu.org>
3833 * config/xm-sysv4.h: Delete file.
3834 * config/mips/xm-irix5.h: Delete file.
3835 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3836 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3837 * config/ia64/xm-aix.h: Delete file.
3838 * config/ia64/aix.mh (XM_FILE): Delete.
3839 * config/pa/xm-hppah.h: Delete file.
3840 * config/pa/hpux11w.mh (XM_FILE): Delete.
3841 * config/pa/hpux11.mh (XM_FILE): Delete.
3842 * config/pa/hpux1020.mh (XM_FILE): Delete.
3843 * config/pa/hppahpux.mh (XM_FILE): Delete.
3845 * config/alpha/xm-alphalinux.h: Delete file.
3846 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3847 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3848 * config/alpha/xm-alphaosf.h: Delete file.
3849 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3850 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3851 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3852 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3854 * config/i386/xm-i386v.h: Delete file.
3855 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3856 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3857 * config/i386/xm-i386sco.h: Delete file.
3858 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3859 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3860 * config/i386/xm-i386v4.h: Delete file.
3861 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3862 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3863 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3864 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3866 * config/vax/xm-vax.h: Delete file.
3867 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3868 * config/vax/xm-vaxult2.h: Delete file.
3869 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3870 * config/vax/vaxult2.mh (XM_FILE): Delete.
3871 * config/vax/xm-vaxult.h: Delete file.
3872 * config/vax/vaxult.mh (XM_FILE): Delete.
3873 * config/vax/xm-vaxbsd.h: Delete file.
3874 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3876 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3877 * gdbarch.h, gdbarch.c: Re-generate.
3878 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3879 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3880 * frame.h: Delete deprecated_read_fp from comments.
3881 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3882 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3884 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3886 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3887 trampoline in OpenBSD 3.5-current.
3889 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3892 * Makefile.in: Remove embedded page breaks.
3894 2004-08-04 Jim Blandy <jimb@redhat.com>
3896 * regcache.c (regcache_raw_read): Assert that, after calling
3897 target_fetch_registers, the register we're reading is cached.
3899 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3900 a call to 'internal_error', with a more helpful error message.
3901 * rs6000-tdep.c (e500_pseudo_register_read,
3902 e500_pseudo_register_write, rs6000_store_return_value): Same.
3904 2004-08-04 Andrew Cagney <cagney@gnu.org>
3906 * Makefile.in: Update dependencies.
3908 2004-08-04 Jim Blandy <jimb@redhat.com>
3910 Change the layout of the PowerPC E500 raw register cache to allow
3911 the lower 32-bit halves of the GPRS to be their own raw registers,
3912 not pseudoregisters.
3913 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3914 add ppc_ev0_upper_regnum flag.
3915 * rs6000-tdep.c: #include "reggroups.h".
3916 (spe_register_p): Recognize the ev upper half registers as SPE
3918 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3920 (e500_move_ev_register): New function.
3921 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3922 vector registers are the pseudo-registers now, formed by splicing
3923 together the gprs and the upper-half registers.
3924 (e500_register_reggroup_p): New function.
3926 (P8, A4): New macro.
3927 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3928 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3930 (registers_e500): Rearrange register set so that the raw register
3931 set contains 32-bit GPRs and upper-half registers, and the SPE
3932 vector registers become pseudo-registers.
3933 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3934 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3935 register numbers are now the same for the E500 as they are for
3936 other PowerPC variants. Register e500_register_reggroup_p as the
3937 register group function for the E500.
3938 * Makefile.in (rs6000-tdep.o): Update dependencies.
3940 Adapt PPC E500 native support to the new raw regcache layout.
3941 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3942 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3943 (fetch_spe_register, store_spe_register): Handle fetching/storing
3944 all the SPE registers at once, if regno == -1. These now take
3945 over the job of fetch_spe_registers and store_spe_registers.
3946 (fetch_spe_registers, store_spe_registers): Deleted.
3947 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3948 unconditionally; they're always raw. Fetch/store SPE upper half
3949 registers, if present, instead of ev registers.
3950 (fetch_register, store_register): Remove sanity checks: gprs are
3951 never pseudo-registers now, so we never need to even mention any
3952 registers that are ever pseudoregisters.
3954 Use a fixed register numbering when communicating with the PowerPC
3956 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3957 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3958 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3960 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3961 init_sim_regno_table.
3962 * Makefile.in (gdb_sim_ppc_h): New variable.
3963 (rs6000-tdep.o): Update dependencies.
3965 2004-08-02 Andrew Cagney <cagney@gnu.org>
3967 * cris-tdep.c (cris_register_size): Restore function, still used
3970 * gdbarch.sh (deprecated_target_read_fp)
3971 (deprecated_frame_locals_address, deprecated_frame_args_address)
3972 (deprecated_frame_chain_valid, deprecated_frame_chain)
3973 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3974 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3975 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3976 * gdbarch.h, gdbarch.c: Re-generate.
3977 * regcache.c (deprecated_read_fp): Do not call
3978 DEPRECATED_TARGET_READ_FP_P.
3979 * infcmd.c (default_print_registers_info): Do not call
3980 DEPRECATED_DO_REGISTERS_INFO.
3981 * frame-base.c (default_frame_locals_address): Do not call
3982 DEPRECATED_FRAME_LOCALS_ADDRESS.
3983 (default_frame_args_address): Do not call
3984 DEPRECATED_FRAME_ARGS_ADDRESS.
3986 * gdbarch.sh (deprecated_register_raw_size)
3987 (deprecated_register_virtual_size:int): Delete.
3988 * gdbarch.h, gdbarch.c: Re-generate.
3989 * cris-tdep.c (cris_register_size): Delete.
3990 (cris_gdbarch_init): Update.
3991 * alpha-tdep.c (alpha_register_raw_size)
3992 (alpha_register_virtual_size): Delete.
3993 (alpha_gdbarch_init): Update.
3995 * gdbarch.sh (deprecated_register_virtual_type)
3996 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3997 (deprecated_dummy_write_sp): Delete.
3998 * gdbarch.h, gdbarch.c: Re-generate.
4000 * gdbarch.sh (deprecated_register_bytes): Delete.
4001 * gdbarch.h, gdbarch.c: Re-generate.
4002 * regcache.c (deprecated_register_bytes): New function.
4003 * regcache.h (deprecated_register_bytes): Declare.
4004 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4005 * v850-tdep.c (v850_gdbarch_init): Update.
4006 * sh64-tdep.c (sh64_gdbarch_init): Update.
4007 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4008 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4009 * mcore-tdep.c (mcore_gdbarch_init): Update.
4010 * cris-tdep.c (cris_gdbarch_init): Update.
4011 * arm-tdep.c (arm_gdbarch_init): Update.
4012 * remote.c (init_remote_state): Update.
4013 * remote-vx.c (vx_prepare_to_store): Update.
4014 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4015 * irix5-nat.c (fetch_core_registers): Update.
4016 * cris-tdep.c (cris_register_bytes_ok): Update.
4017 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4019 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4020 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4021 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4022 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4023 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4024 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4025 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4026 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4027 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4028 with mips_insn16 and mips_insn32.
4030 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4031 * rs6000-tdep.c (rs6000_push_dummy_call)
4032 (rs6000_extract_return_value): Use register_size.
4033 * xstormy16-tdep.c (xstormy16_get_saved_register)
4034 (xstormy16_extract_return_value): Ditto.
4035 * valops.c (value_assign): Ditto.
4036 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4037 * v850-tdep.c (v850_extract_return_value): Ditto.
4038 * tracepoint.c (collect_symbol): Ditto.
4039 * target.c (debug_print_register): Ditto.
4040 * stack.c (frame_info): Ditto.
4041 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4042 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4043 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4044 (store_register_using_P): Ditto.
4045 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4046 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4047 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4048 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4049 * regcache.c (deprecated_read_register_bytes)
4050 (deprecated_write_register_bytes, read_register)
4051 (write_register): Ditto.
4052 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4053 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4054 * monitor.c (monitor_supply_register, monitor_fetch_register)
4055 (monitor_store_register): Ditto.
4056 * mn10300-tdep.c (mn10300_pop_frame_regular)
4057 (mn10300_print_register): Ditto.
4058 * mipsv4-nat.c (fill_fpregset): Ditto.
4059 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4060 (mips64_fill_fpregset): Ditto.
4061 * mi/mi-main.c (register_changed_p, get_register)
4062 (mi_cmd_data_write_register_values): Ditto.
4063 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4064 * irix5-nat.c (fill_gregset, fetch_core_registers):
4065 * infrun.c (write_inferior_status_register): Ditto.
4066 * infptrace.c (fetch_register, store_register): Ditto.
4067 * infcmd.c (default_print_registers_info): Ditto.
4068 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4069 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4070 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4071 * hpux-thread.c (hpux_thread_fetch_registers)
4072 (hpux_thread_store_registers): Ditto.
4073 * hppah-nat.c (store_inferior_registers, fetch_register):
4074 * findvar.c (value_from_register): Ditto.
4075 * dve3900-rom.c (fetch_bitmapped_register):
4076 * cris-tdep.c (cris_gdbarch_init): Ditto.
4077 * alpha-tdep.h: Ditto.
4078 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4080 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4081 DEPRECATED_REGISTER_RAW_SIZE from comments.
4082 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4083 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4084 DEPRECATED_REGISTER_RAW_SIZE.
4085 * findvar.c (value_of_register): Simplify by assuming that the
4086 registers raw and virtual sizes are identical.
4087 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4089 * arch-utils.c (generic_register_size): Simplify by assuming
4092 * regcache.c (legacy_read_register_gen, real_register)
4093 (legacy_write_register_gen): Delete, not used.
4095 * regcache.c (struct regcache_descr): Delete legacy_p.
4096 (init_legacy_regcache_descr): Delete function.
4097 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4098 Do not use deprecated register functions.
4099 (regcache_raw_read, deprecated_write_register_gen):
4100 (deprecated_read_register_gen, regcache_raw_write): Delete code
4101 predicated on legacy_p.
4102 (register_size): Delete check against register raw size.
4104 * cris-tdep.c (cris_register_type): Replace
4105 cris_register_virtual_type.
4106 (cris_gdbarch_init): Update, set register_type.
4108 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4109 * gdbarch.h, gdbarch.c: Re-generate.
4110 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4111 (arm_gdbarch_init) Do not set frameless function invocation.
4112 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4113 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4114 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4115 (frv_gdbarch_init): Do not set frameless function invocation.
4116 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4117 * sh-tdep.c (sh_gdbarch_init): Ditto.
4118 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4119 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4120 * avr-tdep.c (avr_gdbarch_init): Ditto.
4122 * blockframe.c (legacy_frame_chain_valid): Delete function.
4124 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4125 and pc. Update comments.
4126 (pc_in_dummy_frame): Delete function.
4127 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4129 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4130 call_hi, top and pc, use the id.
4131 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4133 * dummy-frame.c: Include "gdb_string.h".
4134 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4135 (generic_save_dummy_frame_tos): Delete.
4136 (dummy_frame_push): New function, replaces above.
4137 * dummy-frame.h: Update copyright.
4138 (dummy_frame_push): Declare.
4139 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4140 (generic_save_call_dummy_addr): Delete declarations.
4141 * infcall.c: Include "dummy-frame.h".
4142 (call_function_by_hand): Add locals caller_regcache,
4143 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4144 with call to frame_save_as_regcache plus cleanup. Delete calls to
4145 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4146 Move clear_proceed_status to just before the resume, add call to
4147 dummy_frame_push (discard cleanup).
4148 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4149 (dummy-frame.o): Add $(gdb_string_h).
4151 2004-08-01 Andrew Cagney <cagney@gnu.org>
4153 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4154 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4155 * dummy-frame.c (find_dummy_frame): Delete.
4156 (struct dummy_frame_cache, dummy_frame_sniffer)
4157 (dummy_frame_prev_register, dummy_frame_this_id)
4158 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4159 frame unwinder using a dummy_frame_cache.
4161 2004-08-01 Andrew Cagney <cagney@gnu.org>
4163 * frame.h (frame_save_as_regcache): Declare.
4164 * frame.c (frame_save_as_regcache): New function.
4165 (do_frame_read_register): Replace do_frame_unwind_register.
4166 (frame_pop): Use frame_save_as_regcache.
4167 * dummy-frame.c (generic_push_dummy_frame): Use
4168 frame_save_as_regcache.
4170 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4172 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4173 file as included until we record the first line in the linetable.
4175 2004-08-01 Andrew Cagney <cagney@gnu.org>
4177 * frame.h (deprecated_pop_dummy_frame)
4178 (deprecated_read_register_dummy)
4179 (deprecated_generic_find_dummy_frame): Delete.
4180 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4181 (deprecated_read_register_dummy)
4182 (deprecated_find_dummy_frame_regcache)
4183 (discard_innermost_dummy)
4184 (deprecated_pop_dummy_frame): Delete.
4185 (dummy_frame_this_id): Simplify.
4186 (struct dummy_frame): Delete "fp" and "sp".
4187 (find_dummy_frame): Simplify.
4188 (generic_push_dummy_frame): Do not set "fp" or "sp".
4189 (fprint_dummy_frames): Do not print "fp" and "sp"
4191 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4193 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4194 (struct i386_insn): New structure.
4195 (i386_match_insn): New function.
4196 (i386_frame_setup_skip_insns): New variable.
4197 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4198 array i386_frame_setup_insns of instructions that should be
4199 skipped inside the frame setup sequence.
4201 2004-08-01 Andrew Cagney <cagney@gnu.org>
4203 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4204 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4205 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4206 * stack.c (frame_info): Delete references to
4207 DEPRECATED_FRAME_INIT_SAVED_REGS and
4208 deprecated_get_frame_saved_regs.
4209 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4210 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4211 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4212 (frame_unwind_register_signed)
4213 (frame_unwind_register_unsigned)
4214 (frame_unwind_unsigned_register): Use register_size.
4215 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4216 (deprecated_frame_xmalloc_with_cleanup)
4217 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4218 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4220 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4221 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4222 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4223 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4225 * infcall.c (call_function_by_hand): Do not use
4226 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4227 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4228 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4229 DEPRECATED_STACK_ALIGN.
4231 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4233 Committed by Andrew Cagney.
4234 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4236 2004-08-01 Andrew Cagney <cagney@gnu.org>
4238 * mips-tdep.c (mips16_frame_cache)
4239 (mips16_frame_this_id, mips16_frame_prev_register)
4240 (mips16_frame_unwind, mips16_frame_sniffer)
4241 (mips16_frame_base_address, mips16_frame_base)
4242 (mips16_frame_base_sniffer, mips32_frame_cache)
4243 (mips32_frame_this_id, mips32_frame_prev_register)
4244 (mips32_frame_unwind, mips32_frame_sniffer)
4245 (mips32_frame_base_address, mips32_frame_base)
4246 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4247 separate heuristic mips16 and mips32 unwinders.
4248 (mips_stub_frame_cache, mips_stub_frame_this_id)
4249 (mips_stub_frame_prev_register)
4250 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4251 (mips_stub_frame_base_address, mips_stub_frame_base)
4252 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4253 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4254 match true mdebug frames.
4255 (non_heuristic_proc_desc): Add forward declaration.
4257 2004-08-01 Andrew Cagney <cagney@gnu.org>
4259 * config/mips/tm-irix6.h: Delete file.
4260 * config/mips/tm-irix5.h: Delete file.
4261 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4262 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4264 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4265 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4266 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4267 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4268 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4269 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4270 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4271 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4272 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4273 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4274 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4275 (TARGET_SIGNAL_RAW_VALUES): Delete.
4276 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4278 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4279 (TARGET_HW_WATCH_LIMIT): Delete.
4280 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4281 * minimon.h: Delete file.
4283 * trad-frame.c (trad_frame_get_this_base)
4284 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4286 * trad-frame.h (trad_frame_set_this_base)
4287 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4289 2004-07-31 Andrew Cagney <cagney@gnu.org>
4291 * trad-frame.c (trad_frame_get_prev_register): Rename
4292 trad_frame_get_prev_register.
4293 * vax-tdep.c (vax_frame_prev_register): Update.
4294 * trad-frame.h: Update.
4295 * trad-frame.c (trad_frame_get_register): Update.
4296 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4297 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4299 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4300 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4302 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4304 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4306 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4308 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4310 * s390-tdep.c (s390_frame_prev_register)
4311 (s390_stub_frame_prev_register)
4312 (s390_sigtramp_frame_prev_register): Update.
4313 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4314 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4315 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4316 * m88k-tdep.c (m88k_frame_prev_register)
4317 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4318 * m32r-tdep.c (m32r_frame_prev_register): Update.
4319 * hppa-tdep.c (hppa_frame_prev_register_helper)
4320 * frv-tdep.c (frv_frame_prev_register): Update.
4321 * d10v-tdep.c (d10v_frame_prev_register): Update.
4322 * cris-tdep.c (cris_frame_prev_register): Update.
4323 * avr-tdep.c (avr_frame_prev_register): Update.
4324 * arm-tdep.c (arm_prologue_prev_register)
4325 (arm_sigtramp_prev_register): Update.
4327 2004-07-31 Andrew Cagney <cagney@gnu.org>
4329 * frame.h (legacy_saved_regs_unwind)
4330 (legacy_frame_chain_valid, legacy_frame_p)
4331 (enum frame_type): Delete UNKNOWN_FRAME.
4332 * dummy-frame.c (dummy_frame_this_id): Simplify.
4333 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4334 * frame.c (struct frame_info): Delete the field "type".
4335 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4336 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4337 (legacy_saved_regs_unwind, legacy_frame_p)
4338 (frame_type_from_pc): Delete.
4339 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4340 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4342 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4344 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4347 * mips-nat.c: Remove file.
4348 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4349 (mips-nat.o): Remove dependency.
4351 * infptrace.c: Update copyright year.
4352 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4353 explicitly setting the buffer to all zeroes.
4355 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4356 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4358 2004-07-30 Andrew Cagney <cagney@gnu.org>
4360 * GDB 6.2 released from gdb_6_2-branch.
4362 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4364 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4366 * exec.c (exec_file_attach):
4367 * nto-tdep.c (nto_find_and_open_solib):
4368 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4369 * solib.c (solib_open):
4370 * somsolib.c (som_solib_sizeof_symbol_table):
4371 * source.c (is_regular_file, openp, open_source_file):
4372 * symfile.c (symfile_bfd_open):
4373 * wince.c (upload_to_device): Differentiate between the search for
4374 binary and source files.
4376 2004-07-30 Andrew Cagney <cagney@gnu.org>
4378 * complaints.c (_initialize_complaints): Pass NULL to
4379 add_setshow_zinteger_cmd for help_doc.
4380 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4382 2004-07-30 Andrew Cagney <cagney@gnu.org>
4385 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4386 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4387 $(PACKAGE).pot and update-po.
4388 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4389 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4390 (update-po): New rules.
4391 (localedir): Define using autoconf.
4392 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4393 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4394 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4395 * configure.in: Generate CATALOGS and LINGUAS from contents of
4396 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4397 * configure: Re-generate.
4398 * po/gdbtext: New file
4400 2004-07-30 Jerome Guitton <guitton@gnat.com>
4402 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4405 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4407 * dwarf2read.c (read_file_scope): Set producer if attribute
4409 (struct dwarf2_cu): Added new member producer.
4411 2004-07-30 Jerome Guitton <guitton@gnat.com>
4413 * inflow.c (kill_command): release file handles in BFD.
4414 * exec.c (exec_file_attach): Ditto.
4415 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4417 2004-07-29 Andrew Cagney <cagney@gnu.org>
4419 * PROBLEMS (mips-irix): Note that it is broken.
4421 2004-07-29 Andrew Cagney <cagney@gnu.org>
4423 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4424 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4426 * config/xm-nbsd.h: Delete file.
4427 * config/arm/xm-nbsd.h: Delete file.
4428 * config/i386/xm-nbsd.h: Delete file.
4429 * config/ns32k/xm-nbsd.h: Delete file.
4430 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4431 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4432 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4433 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4434 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4436 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4437 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4438 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4439 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4440 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4441 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4443 * config/powerpc/xm-linux.h: Delete empty file.
4444 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4445 * config/powerpc/linux.mh (XM_FILE): Delete.
4446 * config/m68k/xm-linux.h: Delete empty file.
4447 * config/m68k/linux.mh (XM_FILE): Delete.
4448 * config/ia64/xm-linux.h: Delete empty file.
4449 * config/ia64/linux.mh (XM_FILE): Delete.
4450 * config/arm/xm-linux.h: Delete empty file.
4451 * config/arm/linux.mh (XM_FILE): Delete.
4453 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4454 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4455 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4456 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4457 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4458 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4459 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4460 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4462 * config/m68k/xm-m68k.h: Delete file.
4463 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4465 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4466 * config/pa/xm-linux.h: Delete empty file.
4467 * config/pa/linux.mh (XM_FILE): Delete.
4468 * config/i386/xm-i386.h: Delete empty file.
4469 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4471 * config/i386/obsdaout.mh (XM_FILE): Delete.
4472 * config/i386/obsd64.mh (XM_FILE): Delete.
4473 * config/i386/fbsd64.mh (XM_FILE): Delete.
4474 * config/i386/nto.mh (XM_FILE): Delete.
4475 * config/i386/obsd.mh (XM_FILE): Delete.
4476 * config/i386/linux64.mh (XM_FILE): Delete.
4477 * config/i386/linux.mh (XM_FILE): Delete.
4478 * config/i386/i386sol2.mh (XM_FILE): Delete.
4479 * config/i386/i386gnu.mh (XM_FILE): Delete.
4480 * config/i386/fbsd.mh (XM_FILE): Delete.
4481 * config/i386/nbsd64.mh (XM_FILE): Delete.
4483 2004-07-29 Andrew Cagney <cagney@gnu.org>
4485 * config/pa/xm-linux.h: Do not include "floatformat.h".
4486 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4487 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4488 * config/i386/xm-i386.h: Do not include "floatformat.h".
4489 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4490 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4491 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4492 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4493 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4494 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4495 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4496 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4497 * configure, config.in: Regenerate.
4498 * configure.host (gdb_host_float_format, gdb_host_double_format)
4499 (gdb_host_long_double_format): Set according to the host.
4501 2004-07-29 Andrew Cagney <cagney@gnu.org>
4503 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4505 2004-07-28 Andrew Cagney <cagney@gnu.org>
4507 * PROBLEMS: Mention threads/1650.
4508 * NEWS: Mention the NPTL fix.
4510 2004-07-28 Andrew Cagney <cagney@gnu.org>
4512 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4513 (add_setshow_cmd_full): Make static.
4514 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4515 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4516 * cli/cli-decode.c (add_setshow_filename_cmd)
4517 (add_setshow_string_cmd): New functions.
4518 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4519 * mips-tdep.c (_initialize_mips_tdep): Update.
4520 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4521 * cli/cli-logging.c (_initialize_cli_logging): Update.
4522 * complaints.c (_initialize_complaints): Update.
4523 * remote.c (_initialize_remote): Update.
4525 2004-07-28 Andrew Cagney <cagney@gnu.org>
4527 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4528 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4529 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4530 print parameters. Make string parameters constant.
4531 * command.h: Update. Update copyright.
4532 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4533 * observer.c (_initialize_observer): Ditto.
4534 * frame.c (_initialize_frame): Ditto.
4535 * complaints.c (_initialize_complaints): Ditto.
4536 * maint.c (_initialize_maint_cmds): Ditto.
4537 * target.c (initialize_targets): Ditto.
4538 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4539 * infcall.c (_initialize_infcall): Ditto.
4540 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4541 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4542 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4543 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4544 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4546 2004-07-28 Andrew Cagney <cagney@gnu.org>
4548 * gdbtypes.c (lookup_primitive_typename): Delete function.
4549 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4550 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4551 * gdbtypes.c (lookup_typename): Ditto.
4552 * f-exp.y (yylex): Ditto.
4553 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4555 * scm-lang.c (c_builtin_types): Delete extern declaration.
4556 (scm_language_defn): Replace
4557 string_char_type and primitive_type_vector with
4558 la_language_arch_info.
4559 * jv-lang.c (java_language_defn): Replace
4560 string_char_type and primitive_type_vector with
4561 la_language_arch_info.
4562 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4563 c_builtin_types in comment.
4564 * c-lang.h (struct language_arch_info): Declare opaque.
4565 (c_language_arch_info): Declare.
4566 (c_builtin_types): Delete declaration.
4567 * c-lang.c (c_language_arch_info): Set string_char_type to
4568 builtin_char, not builtin_true_char. Make global.
4569 (c_builtin_types): Delete array.
4570 (asm_language_defn, minimal_language_defn): Replace
4571 string_char_type and primitive_type_vector with
4572 la_language_arch_info.
4574 2004-07-28 Andrew Cagney <cagney@gnu.org>
4576 * gdbtypes.h (struct builtin_type): Rename true_char to
4578 * gdbtypes.c (gdbtypes_post_init): Update.
4579 * c-lang.c (arch_info): New function.
4580 (enum c_primitive_types): New enum.
4581 (c_language_defn): Instead of string_char_type and
4582 primitive_type_vector set la_language_arch_info.
4584 2004-07-28 Andrew Cagney <cagney@gnu.org>
4586 * language.h (struct language_arch_info): Fix typo
4587 s/primative/primitive/.
4588 * gdbtypes.c (lookup_primitive_typename): Ditto.
4589 * language.c (language_lookup_primitive_type_by_name)
4590 (unknown_language_arch_info): Ditto.
4592 2004-07-27 Andrew Cagney <cagney@gnu.org>
4594 * defs.h (enum language): Add nr_languages.
4595 * language.h (struct language_arch_info): Define.
4596 (struct language_defn): Add la_language_arch_info.
4597 (language_lookup_primative_type_by_name): Declare.
4598 (language_string_char_type): Declare.
4599 * language.c (_initialize_language, language_gdbarch_post_init)
4600 (struct language_gdbarch, language_gdbarch_data): Implement
4601 per-architecture language information.
4602 (unknown_language_arch_info, language_string_char_type)
4603 (language_lookup_primative_type_by_name): New functions.
4604 (unknown_language_defn, auto_language_defn)
4605 (local_language_defn): Set la_language_arch_info to
4606 unknown_language_arch_info.
4607 (unknown_builtin_types): Delete.
4608 * gdbtypes.c (lookup_primitive_typename): Use
4609 language_lookup_primative_type_by_name.
4610 (create_string_type): Use language_string_char_type.
4611 * values.c (value_from_string): Use language_string_char_type.
4612 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4613 * p-lang.c (pascal_language_defn): Ditto.
4614 * m2-lang.c (m2_language_defn): Ditto.
4615 * jv-lang.c (java_language_defn): Ditto.
4616 * objc-lang.c (objc_language_defn): Ditto.
4617 * f-lang.c (f_language_defn): Ditto.
4618 * c-lang.c (c_language_defn, cplus_language_defn)
4619 (asm_language_defn, minimal_language_defn): Ditto.
4621 2004-07-27 Andrew Cagney <cagney@gnu.org>
4623 * gdbtypes.h (struct builtin_type): Declare.
4624 (builtin_type): Declare.
4625 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4626 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4627 (gdbtypes_post_init): New function.
4628 (builtin_type): New function.
4630 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4632 * remote-m32r-sdi.c: Fix breakpoint bug.
4633 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4634 recv_char_data, recv_long_data): New functions to replace communication
4637 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4639 Document PR threads/1650.
4640 * PROBLEMS (Threads): Document problem with many threads
4642 2004-07-26 Andrew Cagney <cagney@gnu.org>
4644 * gdb-mi.el: Move from here ...
4645 * mi/gdb-mi.el: ... to here.
4647 2004-07-26 Andrew Cagney <cagney@gnu.org>
4649 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4650 * main.c (captured_main): When in batch mode always detach.
4652 2004-07-26 Andrew Cagney <cagney@gnu.org>
4654 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4655 and h8300 as broken.
4656 * NEWS: END-OF-LIFE frame compatibility module.
4657 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4660 2004-07-26 Andrew Cagney <cagney@gnu.org>
4662 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4663 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4664 * wince.c (_initialize_wince): Update.
4665 * win32-nat.c (_initialize_win32_nat): Update.
4666 * varobj.c (_initialize_varobj): Update.
4667 * valops.c (_initialize_valops): Update.
4668 * utils.c (initialize_utils, initialize_utils): Update.
4669 * tui/tui-win.c (_initialize_tui_win): Update.
4670 * top.c (init_main): Update.
4671 * symfile.c (_initialize_symfile): Update.
4672 * source.c (_initialize_source): Update.
4673 * somsolib.c (_initialize_som_solib): Update.
4674 * solib.c (_initialize_solib): Update.
4675 * solib-frv.c (_initialize_frv_solib): Update.
4676 * serial.c (_initialize_serial): Update.
4677 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4678 * remote.c (_initialize_remote, _initialize_remote): Update.
4679 * remote-vx.c (_initialize_vx): Update.
4680 * remote-utils.c (_initialize_sr_support): Update.
4681 * remote-sds.c (_initialize_remote_sds): Update.
4682 * remote-mips.c (_initialize_remote_mips): Update.
4683 * remote-e7000.c (_initialize_remote_e7000): Update.
4684 * proc-api.c (_initialize_proc_api): Update.
4685 * printcmd.c: Update.
4686 * parse.c (_initialize_parse): Update.
4687 * pa64solib.c (_initialize_pa64_solib): Update.
4688 * p-valprint.c (_initialize_pascal_valprint): Update.
4689 * monitor.c (_initialize_remote_monitors): Update.
4690 * mips-tdep.c (_initialize_mips_tdep): Update.
4691 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4692 * maint.c (_initialize_maint_cmds): Update.
4693 * lin-lwp.c (_initialize_lin_lwp): Update.
4694 * language.c (_initialize_language): Update.
4695 * kod.c (_initialize_kod): Update.
4696 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4697 * i386-tdep.c (_initialize_i386_tdep): Update.
4698 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4699 * gdbarch.sh: Update.
4700 * gdbarch.c: Re-generate.
4701 * gdb-events.sh: Update.
4702 * gdb-events.c: Re-generate.
4703 * frame.c (_initialize_frame): Update.
4705 * demangle.c (_initialize_demangler): Update.
4706 * dcache.c (_initialize_dcache): Update.
4707 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4708 * cp-valprint.c (_initialize_cp_valprint): Update.
4709 * corefile.c (_initialize_core): Update.
4710 * command.h: Update.
4711 * cli/cli-decode.h: Update.
4712 * cli/cli-cmds.c (init_cli_cmds): Update.
4713 * charset.c (_initialize_charset): Update.
4714 * breakpoint.c (_initialize_breakpoint): Update.
4715 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4716 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4717 * aix-thread.c (_initialize_aix_thread): Update.
4719 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4721 Partial fix for PR backtrace/1718.
4722 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4723 that GCC migrates into the prolugue. Don't handle any
4724 instructions that clobber %ebx.
4726 2004-07-23 Andrew Cagney <cagney@gnu.org>
4728 Use regcache_raw_collect instead of regcache_collect.
4729 * regcache.h (regcache_collect): Delete declaration.
4730 * regcache.c (regcache_colect): Delete function.
4731 * win32-nat.c (do_child_store_inferior_registers): Update.
4732 * sol-thread.c (sol_thread_store_registers): Update.
4733 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4734 * rs6000-nat.c (store_register): Update.
4735 * remote.c (store_register_using_P, remote_store_registers): Update.
4736 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4737 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4738 (fill_vrregset, store_spe_registers, fill_gregset)
4739 (fill_gregset): Update.
4740 * nto-procfs.c (procfs_store_registers): Update.
4741 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4742 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4743 * m68klinux-nat.c (store_register, fill_gregset): Update.
4744 * m68k-tdep.c (fill_gregset): Update.
4745 * infptrace.c (store_register): Update.
4746 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4747 * i386-linux-nat.c (store_register, fill_gregset): Update.
4748 * hppa-linux-nat.c (fill_gregset): Update.
4749 * go32-nat.c (store_register): Update.
4750 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4751 (store_fp_regs): Update.
4752 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4753 (store_nwfpe_extended, store_fpregister, store_fpregs)
4754 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4755 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4756 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4757 (store_regs_user_thread, store_regs_kernel_thread): Update.
4759 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4761 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4762 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4764 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4765 member of `struct comp_unit'.
4767 2004-07-23 Andrew Cagney <cagney@gnu.org>
4769 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4770 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4772 2004-07-23 Martin Hunt <hunt@redhat.com>
4773 Kevin Buettner <kevinb@redhat.com>
4775 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4776 alignment was being added to the offset instead of multiplied.
4778 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4780 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4781 changed signal trampoline in OpenBSD 3.5-current.
4783 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4784 <machine/pcb.h> and "bsd-kvm.h".
4785 (sparc64nbsd_supply_pcb): New function.
4786 (_initialize_sparc64nbsd_nat): Renamed from
4787 _initialize_sparcnbsd_nat. Enable libkvm interface.
4788 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4789 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4790 (LOADLIBES): New variable.
4792 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4794 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4796 2004-07-21 Andrew Cagney <cagney@gnu.org>
4798 Use regcache_raw_supply instead of supply_register.
4799 * regcache.h (supply_register): Delete declaration.
4800 * regcache.c (supply_register): Delete function.
4801 * wince.c (do_child_fetch_inferior_registers): Update.
4802 * win32-nat.c (do_child_fetch_inferior_registers)
4803 (fetch_elf_core_registers): Update.
4804 * v850ice.c (v850ice_fetch_registers): Update.
4805 * thread-db.c (thread_db_store_registers): Update.
4806 * sol-thread.c (sol_thread_store_registers): Update.
4807 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4808 * rs6000-nat.c (fetch_register): Update.
4809 * rom68k-rom.c (rom68k_supply_one_register): Update.
4810 * remote.c (remote_wait, remote_async_wait): Update.
4811 * remote-st.c (get_hex_regs): Update.
4812 * remote-sim.c (gdbsim_fetch_register): Update.
4813 * remote-sds.c (sds_fetch_registers): Update.
4814 * remote-rdp.c (remote_rdp_fetch_register): Update.
4815 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4816 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4817 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4818 * remote-hms.c (init_hms_cmds): Update.
4819 * remote-est.c (init_est_cmds): Update.
4820 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4821 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4822 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4823 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4824 (fetch_register, supply_vrregset, supply_vrregset)
4825 (fetch_spe_registers): Update.
4826 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4827 * monitor.c (monitor_supply_register): Update.
4828 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4829 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4830 (mipsnbsd_supply_fpreg): Update.
4831 * mips-nat.c (fetch_inferior_registers)
4832 (fetch_core_registers): Update.
4833 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4834 (supply_fpregset, mips64_supply_gregset)
4835 (mips64_supply_fpregset): Update.
4836 * m68klinux-nat.c (fetch_register, supply_gregset)
4837 (supply_fpregset): Update.
4838 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4839 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4840 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4841 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4842 * infptrace.c (fetch_register): Update.
4843 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4844 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4845 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4846 (gnu_fetch_registers, gnu_store_registers): Update.
4847 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4848 * i386-linux-nat.c (fetch_register, supply_gregset)
4849 (dummy_sse_values): Update.
4850 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4851 * hppah-nat.c (fetch_register): Update.
4852 * hppa-linux-nat.c (fetch_register, supply_gregset)
4853 (supply_fpregset): Update.
4854 * go32-nat.c (fetch_register): Update.
4855 * dve3900-rom.c (fetch_bitmapped_register)
4856 (_initialize_r3900_rom): Update.
4857 * cris-tdep.c (supply_gregset): Update.
4858 * abug-rom.c (init_abug_cmds): Update.
4859 * core-aout.c (fetch_core_registers): Update.
4860 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4861 (fetch_register, fetch_fp_register): Update.
4862 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4863 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4864 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4865 * alphanbsd-tdep.c (fetch_core_registers): Update.
4866 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4867 * alpha-nat.c (fetch_osf_core_registers)
4868 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4869 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4870 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4872 2004-07-21 Andrew Cagney <cagney@gnu.org>
4874 * PROBLEMS: Mention breakpoints/1702.
4875 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4876 that is known to work.
4878 2004-07-21 Andrew Cagney <cagney@gnu.org>
4880 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4881 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4882 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4883 (handle_inferior_event): Wrap call to deprecated
4884 IGNORE_HELPER_CALL in #ifdef.
4885 * config/mips/tm-nbsd.h: Update.
4887 2004-07-20 Jim Blandy <jimb@redhat.com>
4889 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4890 bfd_mach_ppc has no segment registers.
4892 Include PowerPC SPR numbers for special-purpose registers.
4893 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4894 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4895 new member in initializer.
4896 (S, S4, SN4, S64): New macros for defining special-purpose
4898 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4899 registers_403, registers_403GC, registers_505, registers_860,
4900 registers_601, registers_602, registers_603, registers_604,
4901 registers_750, registers_e500): Use them.
4903 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4904 replace references with expression used to initialize variable.
4906 2004-07-20 Andrew Cagney <cagney@gnu.org>
4908 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4910 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4911 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4912 (s390_sigtramp_frame_sniffer): Update.
4913 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4914 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4915 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4916 (mips32_fetch_instruction): Update.
4917 * mcore-tdep.c (get_insn): Update.
4918 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4919 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4920 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4921 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4922 (i386_linux_rt_sigtramp_start): Update.
4923 * i386-linux-nat.c (child_resume): Update.
4924 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4925 * hppa-linux-tdep.c (insns_match_pattern): Update.
4926 * gdbcore.h: Update.
4927 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4928 * frame.c (safe_frame_unwind_memory): Update.
4929 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4930 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4931 * alpha-tdep.c (alpha_read_insn): Update.
4933 2004-07-20 Andrew Cagney <cagney@gnu.org>
4935 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4936 containing both bytes and mask. Add "frame_type".
4937 * tramp-frame.c (tramp_frame_start): Update.
4938 (tramp_frame_prepend_unwinder): Update.
4939 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4940 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4941 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4942 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4944 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4946 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4947 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4948 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4949 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4951 2004-07-17 Andrew Cagney <cagney@gnu.org>
4953 * NEWS, PROBLEMS: Update for 6.2.
4955 * README: Update to 6.2.
4957 * utils.c (xvasprintf): Call xstrvprintf.
4959 * parse.c: Update copyright.
4960 (null_post_parser): Eliminate ARGSUSED.
4962 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4963 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4964 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4966 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4967 * ppc-linux-nat.c: Use "Linux kernel".
4968 * hppa-linux-tdep.c: Use GNU/Linux.
4969 * hppa-linux-nat.c: Use GNU/Linux.
4970 * dwarfread.c: Add [sic] to use of Linux.
4972 * hppa-linux-nat.c: Do not include <string.h>.
4973 (supply_fpregset): Remove "register" attribute.
4975 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4977 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4979 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4980 * configure, config.in: Regenerated.
4982 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4984 (vaxbsd_supply_pcb): New function.
4985 (_initialize_vaxbsd_nat): New prototype and function.
4986 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4988 (LOADLIBES): New variable.
4989 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4990 (LOADLIBES): New variable.
4991 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4992 (LOADLIBES): New variable.
4993 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4995 2004-07-16 Andrew Cagney <cagney@gnu.org>
4997 * defs.h (event_loop_p): Replace variable declaration with macro,
4999 * main.c (captured_main): Delete options "-async" and "-noasync".
5000 (event_loop_p): Delete variable.
5001 * NEWS: Mention that "-async" and "-noasync" were removed.
5003 2004-07-16 Andrew Cagney <cagney@gnu.org>
5005 * remote-m32r-sdi.c: Re-indent.
5007 2004-07-16 Jim Blandy <jimb@redhat.com>
5009 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5010 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5011 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5012 missing MPC823 SPRs.
5013 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5014 incorrect. (This was corrected in GDB's register name tables on
5017 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5018 should be "esasrr" ("ESA Save and Restore Register").
5020 2004-07-16 Andrew Cagney <cagney@gnu.org>
5022 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5023 calls, no longer applicable. Update comments and rename parameter
5024 "step_frame" to "return_frame".
5026 2004-07-16 Andrew Cagney <cagney@gnu.org>
5028 * frame.c (fprint_field): New function.
5029 (fprint_frame_id): Use fprint_field.
5031 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5033 * ada-lang.c (ada_language_defn): Remove commented out code.
5035 2004-07-15 Jim Blandy <jimb@redhat.com>
5037 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5038 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5040 2004-07-14 Jim Blandy <jimb@redhat.com>
5042 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5044 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5046 * ppc-tdep.h (ppc_num_srs): New enum constant.
5048 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5049 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5050 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5051 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5052 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5053 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5054 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5055 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5056 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5057 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5058 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5059 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5060 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5061 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5062 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5063 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5064 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5065 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5066 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5067 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5068 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5069 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5070 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5071 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5072 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5073 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5074 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5075 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5076 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5077 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5078 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5079 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5080 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5081 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5082 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5083 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5084 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5085 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5086 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5087 special-purpose register numbers.
5089 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5090 manual mentions 'md_twb', but many mention 'm_twb', and at that
5091 point in the register list.)
5093 2004-07-14 Andrew Cagney <cagney@gnu.org>
5095 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5096 instead of "internal-error".
5098 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5100 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5101 that was inserted inside a comment.
5103 2004-07-10 Randolph Chung <tausq@debian.org>
5105 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5107 (hppa_hpux_push_dummy_code): New function.
5108 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5109 Set find_global_pointer method.
5111 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5113 * NEWS: Mention BSD libkvm interface.
5115 2004-07-10 Michael Snyder <msnyder@redhat.com>
5117 * symfile.c (generic_load): Comment typo.
5118 * stack.c (get_selected_block): Ditto.
5119 * regcache.c (regcache_cooked_read): Ditto.
5120 * monitor.c (monitor_debug): Ditto.
5121 * mips-tdep.c (mips_read_pc): Ditto.
5122 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5123 * gdb_mbuild.sh: Ditto.
5124 * gdbarch.sh: Ditto.
5127 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5129 * ada-tasks.c: Remove file.
5131 Remove ARI problems:
5133 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5136 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5138 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5139 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5140 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5141 (UMIN_OF_SIZE): Remove.
5142 (max_of_type): New function to replace orphan macro in gdbtypes.h
5143 (min_of_type): Ditto.
5144 (discrete_type_high_bound): Use max_of_type.
5145 (discrete_type_low_bound): Use min_of_type.
5146 (possible_user_operator_p): Move operator to beginning of line.
5147 (ada_is_variant_part): Ditto.
5148 (ensure_lval): Rewrite to avoid deprecated operations.
5149 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5150 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5151 (ada_enum_name): Remove assignments in 'if' statements.
5152 (build_ada_types): Add gdbarch parameter.
5153 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5154 with gdbarch_data_register_post_init.
5155 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5158 * ada-valprint.c (inspect_it): Remove declaration.
5159 (repeat_count_threshold): Remove declaration.
5160 (ada_print_floating): Remove assignments in 'if' statements.
5161 (print_str): Move operator to beginning of line.
5163 2004-07-08 Jim Blandy <jimb@redhat.com>
5165 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5167 2004-07-08 Bob Rossi <bob@brasko.net>
5169 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5171 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5173 * language.h (struct_language_defn): Add new function pointer:
5174 la_class_name_from_physname. Also add new prototype for
5175 language_class_name_from_physname.
5176 * language.c (language_class_name_from_physname): New function.
5177 (unk_lang_class_name): Ditto.
5178 (unknown_language_defn, auto_language_defn): Change
5179 to add unk_lang_class_name function pointer for
5180 la_class_name_from_physname.
5181 (local_language_defn): Ditto.
5182 * dwarf2read.c (guess_structure_name): Change to call
5183 language_class_name_from_physname.
5184 (determine_class_name): Ditto.
5185 * cp-support.c (class_name_from_physname): Renamed.
5186 (cp_class_name_from_physname): New name of function.
5187 * cp-support.h: Ditto.
5188 * c-lang.c (c_language_defn): Change to add NULL
5189 for class_name_from_physname function pointer.
5190 (cplus_language_defn): Change to add cp_class_name_from_physname.
5191 * jv-lang.c (java_class_name_physname): New function.
5192 (java_find_last_component): New static routine.
5193 (java_language_defn): Add java_class_name_from_physname pointer.
5194 * ada-lang.c (ada_language_defn): Change to add NULL
5195 for class_name_from_physname function pointer.
5196 * f-lang.c (f_language_defn): Ditto.
5197 * m2-lang.c (m2_language_defn): Ditto.
5198 * objc-lang.c (objc_language_defn): Ditto.
5199 * p-lang.c (pascal_language_defn): Ditto.
5200 * scm-lang.c (scm_language_defn): Ditto.
5202 2004-07-06 Andrew Cagney <cagney@gnu.org>
5204 Patch from Bart Robinson.
5205 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5206 (O_LARGEFILE): Define to 0, if not defined.
5208 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5210 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5211 <machine/pcb.h> and "bsd-kvm.h".
5212 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5213 (m68kbsd_supply_pcb): New function.
5214 (_initialize_m68kbsd_nat): New prototype and function.
5215 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5216 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5217 (LOADLIBES): New variable.
5218 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5219 (LOADLIBES): New variable.
5221 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5223 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5225 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5227 (bsd_kvm_cmdlist): New variable.
5228 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5229 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5230 command and "kvm proc" command.
5231 * Makefile.in (bsd-kvm.o): Update dependencies.
5233 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5235 * osabi.c: Update copyright year.
5236 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5237 notes if EI_OSABI is set to ELFOSABI_HPUX.
5239 2004-07-01 Michael Snyder <msnyder@redhat.com>
5241 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5242 that seems to have gotten whacked out of line.
5244 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5246 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5249 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5251 * ada-lang.c (decode_packed_array): Minor change to comment.
5252 (ada_value_slice_ptr): New function.
5253 (ada_value_slice): New function.
5254 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5255 test. Don't know why it is there.
5256 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5257 to avoid dereferencing huge arrays from which one is slicing.
5258 (empty_array): Correct to return an array rather than
5260 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5261 on empty arrays (let'em use 'FIRST instead).
5263 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5265 Address complaints from gdb_ari.sh:
5267 * ada-exp.y: Include gdb_string.h rather than string.h.
5268 (convert_char_literal): Reformat declaration.
5269 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5270 * ada-lex.l: Change use of free to xfree (the macro would do so
5271 anyway, but this is harmless).
5272 Include gdb_string.h rather than string.h.
5273 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5275 * ada-lang.c (parse): Remove K&Rism in parameter list.
5276 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5278 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5280 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5283 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5285 * alphabsd-nat.c: Update copyright year.
5286 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5288 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5290 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5291 (i386_cygwin_in_solib_call_trampoline): New function.
5292 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5293 and skip_trampoline_code gdbarch methods.
5295 2004-06-29 Jim Blandy <jimb@redhat.com>
5297 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5298 name actually used in the dependency lists.
5300 2004-06-29 Randolph Chung <tausq@debian.org>
5302 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5304 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5306 * win32-nat.c (child_pid_to_exec_file): New function.
5307 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5310 2004-06-28 Andrew Cagney <cagney@gnu.org>
5312 * defs.h (xstrvprintf): Declare.
5313 * utils.c (xstrvprintf): New function.
5314 (internal_vproblem, xstrprintf, xasprintf)
5315 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5316 * serial.c (serial_printf): Ditto.
5317 * complaints.c (vcomplaint): Ditto.
5319 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5321 * infcmd.c (attach_command): Move call to target_terminal_inferior
5322 behind loading symbol table.
5324 2004-06-28 Andrew Cagney <cagney@gnu.org>
5326 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5327 change - add back extern deprecated_ui_loop_hook declaration.
5329 2004-06-28 Andrew Cagney <cagney@gnu.org>
5331 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5333 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5334 (c_value_of_variable): Ditto.
5335 * utils.c (internal_vproblem): Ditto.
5336 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5337 * remote.c (add_packet_config_cmd): Ditto.
5338 * remote-rdp.c (rdp_set_command_line): Ditto.
5339 * regcache.c (regcache_dump): Ditto.
5340 * frv-tdep.c (new_variant, new_variant): Ditto.
5341 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5342 (fbsd_find_memory_regions): Ditto.
5343 * breakpoint.c (create_thread_event_breakpoint)
5344 (create_breakpoints): Ditto.
5345 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5346 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5348 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5350 * ada-lang.c: Re-indent file, with some massaging to help indent
5351 a bit when the result is otherwise really too ugly.
5353 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5355 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5356 code_addr_p and special_addr_p to 'unsigned int'.
5358 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5360 * i386v4-nat.c: Update copyright year and tweak comment.
5361 (regmap): Remove trailing comma.
5362 (supply_gregset): Rename local variable i to regnum. Call
5363 regcache_raw_supply instead of supply_register.
5364 (fill_gregset): Rename argument regno to regnum. Call
5365 regcache_raw_collect instead of regcache_collect.
5367 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5369 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5371 (frame_id_build, frame_id_build_special): Update comments.
5372 (frame_id_build_wild): New prototype.
5373 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5374 struct frame_id fields.
5375 (frame_id_build_wild): New function.
5376 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5378 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5380 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5383 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5385 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5387 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5389 * ada-lang.c: Re-indent file.
5391 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5393 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5394 (no_symtab_msg): Likewise.
5396 2004-06-27 Andreas Schwab <schwab@suse.de>
5398 * source.c: Fix whitespace.
5400 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5402 * configure.in: Include <sys/param.h> for td_pcb test.
5403 * configure: Regenerated.
5405 * i386nbsd-nat.c: New file.
5406 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5407 i386obsd-nat.c and i386obsd-tdep.c.
5408 (i386nbsd-nat.o): New dependency.
5409 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5411 (LOADLIBES): New variable.
5412 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5414 (LOADLIBES): New variable.
5416 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5417 (LOADLIBES): New variable.
5419 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5420 fetching from BSD_KVM_PADDR. Correctly lookup address for
5423 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5425 (amd64fbsd_supply_pcb): New funcion.
5426 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5428 2004-06-27 <david@streamline-computing.com>
5430 Partial fix for PR cli/1056.
5431 * valarith.c: Check for zero in division and remainder
5434 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5436 * i387-tdep.c: Remove excessive whitespace.
5438 2004-06-26 Andrew Cagney <cagney@gnu.org>
5440 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5441 * gdb-events.h, gdb-events.c: Re-generate.
5442 * tui/tui-hooks.c (tui_install_hooks): Update.
5443 (tui_remove_hooks): Update.
5444 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5446 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5448 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5449 (gregset_t, fpregset_t): Remove typedefs.
5450 (REG_OFFSET): Rename argument.
5451 (amd64bsd_r_reg_offset): Rename from reg_offset.
5452 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5454 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5456 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5458 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5460 * vax-tdep.c: Tweak comment.
5462 Add OpenBSD/hppa support.
5463 * NEWS (New native configurations): Mention OpenBSD/hppa.
5464 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5465 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5467 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5468 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5469 * configure.host: Add hppa*-*-openbsd*.
5470 * configure.tgt: Add hppa*-*-openbsd*.
5472 2004-06-25 Andrew Cagney <cagney@gnu.org>
5474 * defs.h (deprecated_ui_loop_hook): Deprecated.
5475 * wince.c (child_wait): Update.
5476 * win32-nat.c (child_wait): Update.
5477 * v850ice.c (v850ice_wait): Update.
5478 * top.c (deprecated_ui_loop_hook): Update.
5480 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5481 (do_unix_readchar): Update.
5482 * ser-tcp.c (net_open): Update.
5483 * remote-sim.c (gdb_os_poll_quit): Update.
5484 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5486 2004-06-24 Andrew Cagney <cagney@gnu.org>
5488 * defs.h (deprecated_pre_add_symbol_hook)
5489 (deprecated_post_add_symbol_hook): Deprecated.
5490 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5491 (symbol_file_add_with_addrs_or_offsets): Update references.
5493 2004-06-24 Andrew Cagney <cagney@gnu.org>
5495 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5496 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5497 * wince.c (ui_loop_hook): Delete extern declaration.
5498 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5499 * v850ice.c (ui_loop_hook): Delete extern declaration..
5500 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5501 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5502 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5503 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5504 ui_loop_hook declaration.
5506 2004-06-24 Andrew Cagney <cagney@gnu.org>
5508 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5509 entry_func_highpc fields.
5510 * objfiles.c (init_entry_point_info): Do not clear
5511 entry_func_lowpc and entry_func_highpc.
5512 (objfile_relocate): Do not relocate entry_func_lowpc and
5514 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5516 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5518 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5519 entry_func_lowpc and entry_func_highpc with call to
5522 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5524 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5525 quad-precision floating point arguments in registers.
5527 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5529 From Michael Mueller <m.mueller99@kay-mueller.de>:
5530 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5533 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5535 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5537 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5538 untriggered watchpoints to a separate if clause. Update function
5539 comment regarding STOPPED_BY_WATCHPOINT argument.
5541 2004-06-22 Jim Blandy <jimb@redhat.com>
5543 * gdbarch.sh: Doc fix.
5545 2004-06-21 Martin Hunt <hunt@redhat.com>
5546 Kevin Buettner <kevinb@redhat.com>
5548 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5549 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5550 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5551 to set_gdbarch_sp_regnum(). Use cooked register number.
5552 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5554 2004-06-21 Andrew Cagney <cagney@gnu.org>
5556 * gdbarch.sh: When the macro field is empty, do not generate a
5557 macro definition. When the macro field is "=", generate the macro
5558 name from the upper-case function name.
5559 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5560 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5561 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5562 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5563 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5564 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5565 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5566 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5567 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5568 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5569 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5570 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5571 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5572 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5573 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5574 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5575 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5576 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5577 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5578 (DEPRECATED_USE_STRUCT_CONVENTION)
5579 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5580 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5581 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5582 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5583 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5584 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5585 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5586 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5587 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5588 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5589 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5590 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5591 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5592 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5593 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5594 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5595 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5596 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5598 2004-06-21 Andrew Cagney <cagney@gnu.org>
5600 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5601 macro name, and the function rather than macro value. Only wrap
5602 macro print statements in #ifdef. Move format logic to where it
5604 * gdbarch.c: Re-generate.
5606 * gdbarch.sh (read): Delete "print_p" and "description", add
5607 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5608 Delete references to print_p.
5609 (TARGET_ARCHITECTURE): Delete print predicate.
5610 * gdbarch.c: Re-generate.
5612 * gdbarch.sh: Check that multi-arch methods do not provide a
5614 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5615 (print_registers_info, print_float_info, print_vector_info)
5616 (adjust_breakpoint_address, remote_translate_xfer_address)
5617 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5618 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5619 name from the multi-arch definition.
5621 2004-06-20 Andrew Cagney <cagney@gnu.org>
5623 * gdbarch.sh: Sort by the function, instead of macro name.
5624 * gdbarch.c: Re-generate.
5626 2004-06-20 Andrew Cagney <cagney@gnu.org>
5628 * gdbarch.sh: Use the function, instead of macro name in
5629 errors and the log file.
5630 (return_value): Remove stray ":" in spec.
5632 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5633 * gdbarch.h, gdbarch.c: Re-generate.
5634 * Makefile.in (arch-utils.o): Update dependencies.
5635 * values.c (using_struct_return): Move code calling
5636 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5637 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5638 to legacy_return_value, simplify.
5639 * infcmd.c (print_return_value): Move code calling
5640 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5641 to legacy_return_value, simplify.
5642 * infcall.c (call_function_by_hand): Move code calling
5643 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5644 * arch-utils.c: Update copyright. Include "gdbcore.h".
5645 (legacy_return_value): New function.
5646 * arch-utils.h: Update copyright.
5647 (legacy_return_value): Declare.
5649 2004-06-20 Andrew Cagney <cagney@gnu.org>
5651 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5652 * gdbarch.h, gdbarch.c: Re-generate.
5653 * values.c (using_struct_return): Update call.
5654 * mcore-tdep.c: Update comment.
5655 * infcall.c (call_function_by_hand): Update comment.
5656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5657 * arch-utils.h (always_use_struct_convention): Update.
5658 * v850-tdep.c (v850_gdbarch_init): Update.
5659 * sh64-tdep.c (sh64_gdbarch_init): Update.
5660 * sh-tdep.c (sh_gdbarch_init): Update.
5661 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5662 * mips-tdep.c (mips_gdbarch_init): Update.
5663 * mcore-tdep.c (mcore_gdbarch_init): Update.
5664 * m32r-tdep.c (m32r_gdbarch_init): Update.
5665 * ia64-tdep.c (ia64_gdbarch_init): Update.
5666 * h8300-tdep.c (h8300_gdbarch_init): Update.
5667 * frv-tdep.c (frv_gdbarch_init): Update.
5668 * cris-tdep.c (cris_gdbarch_init): Update.
5669 * arm-tdep.c (arm_gdbarch_init): Update.
5670 * alpha-tdep.c (alpha_gdbarch_init): Update.
5672 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5674 * PROBLEMS: Add more specific information, and a work-around,
5677 2004-06-18 Andrew Cagney <cagney@gnu.org>
5679 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5680 * gdbarch.h, gdbarch.c: Re-generate.
5681 * ada-lang.c (ada_finish_decode_line_1): Update.
5682 * infrun.c (handle_inferior_event): Update.
5683 * infcall.c (find_function_addr): Update.
5684 * linespec.c (minsym_found): Update.
5685 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5687 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5688 * cli/cli-cmds.c (disassemble_command): Update.
5689 * vax-tdep.c (vax_gdbarch_init): Update.
5691 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5693 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5695 2004-06-17 Andrew Cagney <cagney@gnu.org>
5697 GDB 6.1.1 released from the GDB 6.1 branch.
5698 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5701 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5704 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5705 operation as a uleb128. Found by Michael Coulter.
5707 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5709 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5711 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5712 to ada-lang.h; this is needed to be able to implement the kill command
5715 (task_entry): Ditto.
5717 (ada_build_task_list): Ditto.
5719 * ada-lang.c: Conditionalize routines and data structures related
5720 to breakpoints, exceptions, completion, and symbol caching on
5721 GNAT_GDB, since these are not yet used in the submitted public sources.
5722 (ada_main_name): Editorial: Move definition out of exception-related
5725 2004-06-15 Andrew Cagney <cagney@gnu.org>
5727 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5728 deprecated_pc_in_call_dummy.
5730 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5732 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5733 bfd_get_section_size_before_reloc or _raw_size.
5734 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5735 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5736 (dwarf2_read_section): Likewise.
5737 * elfread.c (elf_locate_sections): Likewise.
5738 * gcore.c (derive_heap_segment): Likewise.
5739 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5740 * remote-e7000.c (e7000_load): Likewise.
5741 * remote-m32r-sdi.c (m32r_load): Likewise.
5742 * remote-mips.c (mips_load_srec): Likewise.
5743 (pmon_load_fast): Likewise.
5744 * remote.c (compare_sections_command): Likewise.
5745 * symfile.c (add_section_size_callback): Likewise.
5746 (load_section_callback): Likewise.
5747 (pc_in_unmapped_range): Likewise.
5748 (pc_in_mapped_range): Likewise.
5749 (sections_overlap): Likewise.
5750 (list_overlays_command): Likewise.
5751 (simple_overlay_update_1): Likewise.
5752 (simple_overlay_update): Likewise.
5753 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5754 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5756 2004-06-14 Randolph Chung <tausq@debian.org>
5758 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5759 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5761 (hppa_hpux_inferior_created): New function.
5762 (hppa_hpux_init_abi): Register observer.
5763 * symfile.c (hp_cxx_exception_support_initialized)
5764 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5765 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5767 2004-06-14 Randolph Chung <tausq@debian.org>
5769 * MAINTAINERS (Write After Approval): Alphabetize my entry
5772 2004-06-14 Andrew Cagney <cagney@gnu.org>
5774 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5775 testsuite maintainer.
5777 2004-06-13 Andrew Cagney <cagney@gnu.org>
5779 * infcmd.c (print_return_value): Fix logic, allow
5780 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5782 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5783 defining any macros.
5784 * gdbarch.h: Re-generate.
5786 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5787 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5788 * gdbarch.h: Re-generate.
5790 * values.c (generic_use_struct_convention): Don't check gcc_p.
5792 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5793 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5794 * gdbarch.h, gdbarch.c: Regenerate.
5795 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5796 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5797 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5798 deprecated_max_register_raw_size and
5799 deprecated_max_register_virtual_size.
5800 * v850-tdep.c (v850_gdbarch_init): Ditto.
5801 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5802 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5803 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5804 * cris-tdep.c (cris_gdbarch_init): Ditto.
5806 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5807 * gdbarch.h, gdbarch.c: Re-generate.
5808 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5809 (m68hc11_use_struct_convention): Delete function.
5810 (m68hc11_extract_struct_value_address): Delete function.
5811 (m68hc11_return_value): New function.
5812 (m68hc11_gdbarch_init): Instead of store_return_value,
5813 extract_return_value, return_value_on_stack,
5814 deprecated_extract_struct_value_address and use_struct_convention,
5816 * values.c (using_struct_return): Do not call
5817 RETURN_VALUE_ON_STACK.
5818 * arch-utils.h (generic_return_value_on_stack_not): Delete
5820 * arch-utils.c (generic_return_value_on_stack_not): Delete
5823 2004-06-12 Andrew Cagney <cagney@gnu.org>
5825 * values.c (register_value_being_returned): Delete function.
5826 * infcmd.c (legacy_return_value): Delete function.
5827 * infcall.c (call_function_by_hand): Inline
5828 "register_value_being_returned", simplify.
5829 * values.c (using_struct_return): Update comment, refer to
5830 print_return_value instead of register_value_being_returned.
5831 * infcmd.c (print_return_value): Inline calls to
5832 register_value_being_returned and legacy_return_value. Simplify.
5834 2004-06-11 Randolph Chung <tausq@debian.org>
5836 * somread.c (som_symtab_read): Exclude gcc local symbols.
5838 2004-06-11 Randolph Chung <tausq@debian.org>
5840 * infrun.c (handle_inferior_event): Handle the case when a
5841 trampoline ends up in the runtime resolver, and if the trampoline
5842 has no name. Rearrange the code so that all the trampoline
5843 processing happens before other step-out-of-range handling.
5845 2004-06-11 Martin Hunt <hunt@redhat.com>
5847 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5850 2004-06-10 Andrew Cagney <cagney@gnu.org>
5852 * blockframe.c (legacy_inside_entry_func): Delete.
5853 (legacy_frame_chain_valid): Inline call to
5854 legacy_inside_entry_func, simplify.
5856 2004-06-10 Bob Rossi <bob@brasko.net>
5858 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5859 * dwarf2read.c (partial_die_info): Add dirname field.
5860 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5861 (read_partial_die): Save away DW_AT_comp_dir.
5862 * defs.h (symtab_to_filename): Removed.
5863 * source.c (find_and_open_source): Added.
5864 (open_source_file): Just calls find_and_open_source.
5865 (symtab_to_filename): Removed.
5866 (symtab_to_fullname, psymtab_to_fullname): Added.
5867 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5868 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5870 * symtab.h (partial_symtab): Add dirname field.
5871 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5872 (mi_cmd_file_list_exec_source_file): Call new function
5873 symtab_to_fullname to find fullname.
5874 (mi_cmd_file_list_exec_source_files): Added.
5875 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5876 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5878 2004-06-10 Andrew Cagney <cagney@gnu.org>
5880 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5881 to generic_use_struct_convention, the default value.
5883 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5886 * ns32k-tdep.c (ns32k_push_arguments): New function.
5887 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5888 * infcall.c (call_function_by_hand): Call error instead of
5889 legacy_push_arguments.
5890 * value.h (legacy_push_arguments): Delete declaration.
5891 * valops.c (legacy_push_arguments): Delete function.
5892 (value_push): Delete function.
5894 2004-06-10 Brian Ford <ford@vss.fsi.com>
5896 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5897 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5899 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5901 2004-06-10 Andrew Cagney <cagney@gnu.org>
5903 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5904 * gdbarch.h, gdbarch.c: Re-generate.
5905 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5907 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5908 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5909 deprecated_pc_in_call_dummy instead of
5910 DEPRECATED_PC_IN_CALL_DUMMY.
5911 (arm_skip_prologue): Ditto.
5912 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5913 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5914 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5915 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5917 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5918 (sh64_init_extra_frame_info, sh64_get_saved_register)
5919 (sh64_pop_frame): Ditto.
5920 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5921 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5922 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5923 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5924 (h8300_pop_frame): Ditto.
5925 * blockframe.c (legacy_inside_entry_func)
5926 (legacy_frame_chain_valid): Ditto.
5927 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5928 to deprecated_pc_in_call_dummy.
5930 2004-06-09 Andrew Cagney <cagney@gnu.org>
5932 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5933 provide a default value.
5934 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5935 * gdbarch.h, gdbarch.c: Re-generate.
5936 * arch-utils.c (generic_convert_register_p): Rename
5937 legacy_convert_register_p
5938 (legacy_register_to_value, legacy_value_to_register): Delete
5940 * arch-utils.h (generic_convert_register_p): Rename
5941 legacy_convert_register_p.
5942 (legacy_register_to_value, legacy_value_to_register): Delete
5945 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5946 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5947 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5948 * gdbarch.h, gdbarch.c: Re-generate.
5949 * infcmd.c (default_print_registers_info): Simplify.
5950 * findvar.c (value_of_register): Simplify.
5951 * mi/mi-main.c (get_register): Simplify.
5952 * arch-utils.c (legacy_convert_register_p): Always return 0.
5953 (legacy_register_to_value, legacy_value_to_register): Always call
5956 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5957 #ifdef CLEAR_INSN_CACHE code.
5958 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5959 Delete #ifdef CLEAR_DEFERRED_STORES code.
5961 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5963 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5965 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5967 * config/mips/mipsv4.mh: Delete file.
5969 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5971 (hpread_adjust_stack_address): Delete declaration.
5973 2004-06-08 Andrew Cagney <cagney@gnu.org>
5975 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5976 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5977 PTRACE_ATTACH / PTRACE_DETACH available call error.
5978 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5979 * infttrace.c (update_thread_state_after_attach, attach, detach):
5980 Remove #ifdef wrappers.
5981 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5982 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5983 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5984 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5985 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5986 * config/nm-linux.h (ATTACH_DETACH): Delete.
5987 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5988 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5989 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5990 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5991 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5993 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5995 * configure.in: Set $configdir to the right OS specific value.
5996 Use value when setting $tcldir and $tkdir.
5997 * configure: Regenerate.
5999 2004-06-06 Paul Brook <paul@codesourcery.com>
6001 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6004 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6006 * ada-lang.c (lookup_symbol_in_language): New function to allow
6007 re-use of another language's symbol lookup code. (Placed here
6008 temporarily while Ada support is being integrated into the public
6010 (restore_language): New auxiliary function for
6011 lookup_symbol_in_language.
6012 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6013 temporarily while Ada support is being integrated into the public
6016 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6018 * Makefile.in (check//%): New.
6020 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6021 (mn10300_store_return_value): Rewrite.
6022 (mn10300_type_align): New.
6023 (mn10300_use_struct_convention): Rewrite.
6024 (mn10300_return_value): New, using all of the above.
6025 (mn10300_pop_frame_regular): Add saved_regs_size.
6026 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6028 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6029 regs if PC is on movm.
6031 2004-06-07 Jim Blandy <jimb@redhat.com>
6033 Add native Linux support for the PowerPC E500.
6034 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6035 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6036 all architectures except the E500.
6037 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6039 (struct gdb_evrregset_t): New type.
6040 (have_ptrace_getsetevrregs): New variable.
6041 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6042 fetch_spe_registers): New functions.
6043 (fetch_register): Call fetch_spe_register as appropriate.
6044 Assert that we're only passed raw register numbers.
6045 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6046 Don't fetch gprs if they're pseudoregisters.
6047 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6048 store_spe_registers): New functions.
6049 (store_register): Call store_spe_register as appropriate.
6050 Assert that we're only passed raw register numbers.
6051 (store_ppc_registers): Call store_spe_registers as appropriate.
6052 Don't store gprs if they're pseudoregisters.
6054 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6056 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6057 struct if one exists, even if we are dealing with a zombie thread.
6059 2004-06-07 Andrew Cagney <cagney@gnu.org>
6061 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6062 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6063 Rename PC_REQUIRES_RUN_BEFORE_USE.
6064 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6067 2004-06-07 Randolph Chung <tausq@debian.org>
6069 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6070 unwinding after sp has been saved to the stack but before the end
6071 of the prologue, and after the fp has been modified but before it has
6072 been saved to the stack.
6073 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6074 Remove superfluous definitions.
6075 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6077 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6079 Committed by Randolph Chung.
6080 * hppa-linux-nat.c: Include the correct version of the header file
6081 depending on the kernel version.
6083 2004-06-06 Randolph Chung <tausq@debian.org>
6085 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6086 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6088 2004-06-06 Randolph Chung <tausq@debian.org>
6090 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6091 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6092 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6093 * hppa-tdep.c (hppa_symbol_address): New function definition.
6094 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6096 2004-06-06 Randolph Chung <tausq@debian.org>
6098 * hppa-tdep.h (struct value): Forward declaration.
6099 (gdbarch_tdep): Define tdep find_global_pointer method.
6100 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6101 associated with the function we are trying to call, and write it
6103 (hppa32_convert_from_funct_ptr_addr): New function.
6104 (hppa_find_global_pointer): New function.
6105 (hppa_gdbarch_init): Set default find_global_pointer method; set
6106 convert_from_func_ptr_addr method.
6107 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6108 (hppa_linux_init_abi): Set find_global_pointer method.
6109 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6111 2004-06-06 Randolph Chung <tausq@debian.org>
6113 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6114 to struct value *function.
6115 * gdbarch.c: Regenerate.
6116 * gdbarch.h: Likewise.
6117 * infcall.c (call_function_by_hand): Pass entire function value
6120 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6121 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6122 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6123 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6124 * arm-tdep.c (arm_push_dummy_call): Likewise.
6125 * avr-tdep.c (avr_push_dummy_call): Likewise.
6126 * cris-tdep.c (cris_push_dummy_call): Likewise.
6127 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6128 * frv-tdep.c (frv_push_dummy_call): Likewise.
6129 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6130 * hppa-tdep.c (hppa32_push_dummy_call)
6131 (hppa64_push_dummy_call): Likewise.
6132 * i386-tdep.c (i386_push_dummy_call): Likewise.
6133 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6134 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6135 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6136 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6137 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6138 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6139 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6140 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6141 (ppc64_sysv_abi_push_dummy_call): Likewise.
6142 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6143 (ppc64_sysv_abi_push_dummy_call): Likewise.
6144 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6145 * s390-tdep.c (s390_push_dummy_call): Likewise.
6146 * sh-tdep.c (sh_push_dummy_call_fpu)
6147 (sh_push_dummy_call_nofpu): Likewise.
6148 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6149 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6150 * vax-tdep.c (vax_push_dummy_call): Likewise.
6152 2004-06-04 Jim Blandy <jimb@redhat.com>
6154 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6155 gdbarch argument to register_size.
6157 * rs6000-tdep.c (rs6000_store_return_value): Use
6158 regcache_cooked_write_part instead of
6159 deprecated_write_register_bytes.
6160 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6161 not gdbarch_deprecated_store_return_value.
6163 * ppc-linux-nat.c (store_register, fetch_register): Remove
6164 incorrect assertions. Simplify and generalize handling of
6165 transfers whose sizes are not multiples of, or less than, sizeof
6168 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6170 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6171 as a new thread event.
6172 * thread-db.c (thread_get_info_callback): If the thread is a
6173 zombie, return TD_THR_ZOMBIE.
6174 (thread_from_lwp): If thread_get_info_callback returns
6175 TD_THR_ZOMBIE, check if the thread is still on the thread list
6176 and return a -1 ptid if not found.
6177 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6178 change the status to TARGET_WAITKIND_SPURIOUS.
6180 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6182 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6183 double values in little endian mode.
6185 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6187 Committed by Andrew Cagney.
6188 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6189 after last enum constant to avoid error from IBM C
6192 2004-06-02 Jim Blandy <jimb@redhat.com>
6194 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6195 to 'message', and make it local to the lone block that uses it.
6197 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6199 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6201 * ada-exp.y: Update copyright notice.
6204 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6205 SPECIAL_VARIABLE and unify the treatment of these cases.
6207 (write_attribute_call0): Remove.
6208 (write_attribute_call1): Remove.
6209 (write_attribute_calln): Remove.
6210 (save_qualifier): Add missing semicolon.
6212 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6213 temporarily disabled to allow compilation with FSF head version.
6215 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6216 use individual operators (OP_*) for all attributes.
6217 (exp syntax): Use write_int.
6218 Handle STRING literals with OP_STRING.
6219 (variable syntax): Add limit parameter to calls to
6220 write_object_renaming.
6222 (temp_parse_space): New definition to hold entities that need
6223 only live until the next call to ada_parse.
6224 (string_to_operator): Rename fields of ada_opname_table entries.
6226 (write_var_from_sym): Record block.
6227 (write_var_from_name): Minor reformatting.
6228 Make sure saved name is properly encoded in the case of multiple
6229 matches, and set its language to Ada.
6231 Modify to indicate unresolved name as symbol in the UNRESOLVED
6232 namespace, allocated in temp_parse_space.
6233 (write_int): New function.
6235 (write_object_renaming): Add max_depth parameter to limit
6236 chains of object renamings.
6237 Handle case where root of renaming expression is itself a renaming.
6238 Use temp_parse_space for temporary name buffer.
6239 Handle renamings to dereferenced pointers (___XEXA suffices).
6241 (ada_parse, yyerror, string_to_operator,
6242 write_var_from_sym, write_var_from_name, write_attribute_call0,
6243 write_attribute_call1, write_attribute_calln,
6244 write_object_renaming): Protoize.
6246 (_initialize_ada_exp): New function.
6248 * ada-lang.c: Update copyright notice.
6249 General terminology change to conform to GNAT compiler usage:
6250 mangle => encode, demangle => decode
6251 Include gdb_obstack.h.
6260 (ADA_RETAIN_DOTS): Make sure this is defined.
6261 (TRUNCATION_TOWARDS_ZERO): Define.
6262 (struct string_vector): Define.
6263 (unresolved_names): Remove definition.
6264 (xnew_string_vector): New function.
6265 (string_vector_append): New function.
6266 (extract_string): Make static.
6267 (ada_unqualified_name): New function.
6268 (add_angle_brackets): New function.
6269 (function_name_from_pc): New function.
6270 (place_on_stack): Rename to ensure_lval.
6272 (ensure_lval): Renamed from place_on_stack.
6273 Make identity on lvals.
6275 (is_nonfunction): New interface.
6276 Only symbols in LOC_CONST class can be enumerals.
6277 (fill_in_ada_prototype): Remove; now independent of language.
6278 (add_defn_to_vec): Add obstack and symtab arguments.
6279 Use obstack to hold collected definitions.
6280 (num_defns_collected): New function.
6281 (defns_collected): New function.
6282 (ada_resolve_subexp): Rename to resolve_subexp.
6283 (resolve_subexp): Renamed from ada_resolve_subexp.
6284 (ada_op_name): Return non-const result.
6285 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6288 (to_fixed_array_type): Add declaration.
6289 (coerce_unspec_val_to_type): Remove offset parameter.
6290 (find_sal_from_funcs_and_line): New interface.
6291 (find_line_in_linetable): Ditto.
6293 (all_sals_for_line): Rename to ada_sals_for_line and make
6295 Add new parameter. When set, do not ask the user to choose the
6296 instance, but use the first one found instead.
6297 Use given line number in returned sals.
6299 Skip the prologue if funfirstline is set.
6300 Correct for memory leak when 0 lines found.
6302 (value_pos_atr): Use pos_atr.
6303 (pos_atr): New function.
6304 (standard_lookup): Add block parameter.
6306 (makeTimeStart): Remove declaration and uses.
6307 (makeTimeStop): Remove declaration and uses.
6309 (ada_completer_word_break_characters): Allow for VMS.
6310 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6311 (raise_sym_name): New constant.
6312 (raise_unhandled_sym_name): New constant.
6313 (raise_assert_sym_name): New constant.
6314 (process_raise_exception_name): New constant.
6315 (longest_exception_template): New constant.
6316 (warning_limit): New variable to limit warnings during expression
6318 (warnings_issued): New variable to keep track of warnings issued.
6319 (known_runtime_file_name_patterns): New constant.
6320 (known_auxiliary_function_name_patterns): New constant.
6321 (symbol_list_obstack): New variable.
6323 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6324 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6325 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6326 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6327 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6328 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6329 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6330 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6333 (ada_get_field_index): New function.
6334 (lim_warning): New function.
6335 (ada_translate_error_message): New function.
6336 (MAX_OF_SIZE): New function.
6337 (MIN_OF_SIZE): New function.
6338 (UMAX_OF_SIZE): New function.
6339 (UMIN_OF_SIZE): New function.
6340 (discrete_type_high_bound): New function.
6341 (discrete_type_low_bound): New function.
6342 (base_type): New function.
6343 (do_command): Remove.
6345 (ada_update_initial_language): Use language_ada, not language_unknown.
6346 (ada_encode): Renamed from ada_mangle.
6347 Obey ADA_RETAIN_DOTS.
6348 (ada_decode): Renamed from ada_demangle.
6349 Update coding conventions.
6350 (decoded_names_store): New hash table.
6351 (ada_decode_symbol): New function.
6352 (ada_la_decode): New function.
6354 (modify_general_field): Correct computations of offset and bit
6356 (desc_base_type): Handle ref types, too.
6357 (ada_is_direct_array_type): New function.
6359 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6360 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6361 (ada_is_bogus_array_descriptor,ada_type_of_array,
6362 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6363 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6364 ada_is_array_descriptor_type.
6366 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6367 (ada_is_packed_array_type): Handle pointers or
6368 references to packed arrays as well.
6369 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6370 (decode_packed_array_type): Search for the packed array type
6371 symbol in the currently selected block and associated
6373 Use lookup_symbol again.
6375 (decode_packed_array): Handle pointers and references.
6376 Update call to coerce_unspec_val_to_type.
6377 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6378 (ada_value_primitive_packed_val): Improve comment.
6380 (ada_index_type): Substitute int type for "undefined".
6381 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6382 ada_array_langth, ada_is_string_type): Use renamed
6383 ada_is_simple_array_type.
6384 (empty_array): New function.
6386 (ada_resolve): Rename to resolve.
6387 (resolve): Make static.
6388 Call renamed resolve_subexp.
6390 (ada_resolve_subexp): Rename to resolve_subexp.
6391 (resolve_subexp): Update comment.
6392 Decomment disabled code.
6393 Add LOC_COMPUTED* cases.
6394 Modify to use temporary struct symbols (marked as being in
6395 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6396 OP_UNRESOLVED_VALUE.
6397 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6400 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6401 Use new ada_lookup_symbol_list interface.
6402 Use new ada_resolve_function interface.
6403 Remove OP_TYPE case.
6405 (ada_args_match): Idiot proof against null actuals.
6406 Use intermediate variables to clarify.
6407 (ada_resolve_function): Update comment and interface.
6408 (mangled_ordered_before): Rename to encoded_ordered_before and
6410 (sort_choices): Update comment and interface.
6411 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6412 (user_select_syms): New interface.
6413 Use new sort_choices interface.
6414 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6415 (possible_user_operator_p): Idiot-proof against null values.
6416 (ada_simple_renamed_entity): Don't make cleanup; rely on
6417 caller to free result string.
6418 Remove const from return type.
6419 (make_array_descriptor): Rename uses of place_on_stack to
6421 Make sure that arrays are on stack.
6423 (HASH_SIZE): Define.
6424 (struct cache_entry): Define.
6425 (cache_space): Define.
6427 (clear_ada_sym_cache): New function.
6428 (find_entry): New function.
6429 (lookup_cached_symbol): New function.
6430 (defn_vector_size): Define.
6431 (cache_symbol): New function.
6432 (defn_symbols): Remove.
6434 (standard_lookup): Use lookup_symbol_in_language to get effect of
6438 (symbol_completion_match): New function.
6439 (symbol_completion_add): New function.
6440 (ada_make_symbol_completion_list): New function.
6442 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6443 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6444 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6445 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6447 (ada_lookup_simple_minsym): New function.
6448 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6450 (add_symbols_from_enclosing_procs): New interface.
6451 Conditionalize more helpfully.
6452 Don't bother if program isn't running.
6453 Use new interface to get_frame_block.
6454 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6456 (remove_extra_symbols): New interface.
6457 (xget_renaming_scope): New function.
6458 (is_package_name): New function.
6459 (renaming_is_visible): New function.
6460 (remove_out_of_scope_renamings): New function.
6462 (ada_lookup_symbol_list): New interface.
6463 Properly reinitialize the symbol list obstack.
6464 Don't call add_symbols_from_enclosing_procs if we start from a
6465 static or global block.
6466 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6467 add_symbols_from_enclosing_procs.
6468 Add symtab data to cached entries.
6469 Handle symbols prefixed with
6470 "standard__" specially; strip prefix and don't look in local symbols.
6471 Do not include out of scope renaming symbols in list of
6473 Add const to block parameter.
6474 Move check for non-local, non-global symbols earlier.
6475 Remove timing stuff.
6476 (ada_lookup_symbol): New interface.
6477 Find symtab as well.
6478 (ada_lookup_symbol_nonlocal): New function.
6480 (is_name_suffix): Enhance suffix detection to recognize
6481 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6482 (is_dot_digits_suffix): New function.
6483 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6485 (ada_add_block_symbols): New interface. Use obstack to return results
6486 in a vector of struct ada_symbol_infos. Add symtab argument.
6487 Use new interface to add_defn_to_vec.
6488 Remove calls to fill_in_ada_prototype.
6489 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6491 (ada_finish_decode_line_1): Add const qualification to local to fix
6493 Start looking in static block for functions to avoid attempts
6494 to search frame chain for up-level variables.
6495 Adapt to new ada_sals_for_line interface.
6496 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6497 Handle quoting of the function name inside the spec string.
6498 Skip prologue when funfirstline is set and update the
6499 function documentation to that effect.
6501 (debug_print_lines, debug_print_block, debug_print_blocks,
6502 debug_print_symtab): Remove.
6504 (ada_main_name): New function.
6505 (ada_exception_breakpoint_type): New function.
6506 (is_known_support_routine): New function.
6507 (ada_find_printable_frame): Renamed from find_printable_frame and made
6509 Remove level parameter.
6510 Use new interface to select_frame.
6512 (begin_command): Remove.
6513 (ada_adjust_exception_stop): New function.
6514 (ada_print_exception_stop): New function.
6515 (exception_name_from_cond): New function.
6516 (ada_report_exception_break): Replace disabled code with
6517 conditionalization on GNAT_GDB.
6518 Get the exception name from the condition string.
6519 Remove and move functionality into new functions
6520 ada_print_exception_breakpoint_task and
6521 ada_print_exception_breakpoint_nontask.
6522 (error_breakpoint_runtime_sym_not_found): New function.
6523 (is_runtime_sym_defined): New function.
6524 (ada_breakpoint_rewrite): Uncomment suppressed code.
6525 Use symbolic error-message and runtime-symbol names.
6526 Surround runtime symbol names in quotes.
6527 Allow non-specific breakpoints on exceptions and assertions before
6530 (ada_is_tagged_type): Add parameter.
6531 (ada_is_tag_type): New function.
6532 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6533 (ada_variant_discrim_type): Ditto.
6534 (value_tag_from_contents_and_address): New function.
6535 (type_from_tag): New function.
6536 (struct tag_args): New structure used to communicate with
6538 (ada_tag_name_1): New function.
6539 (ada_tag_name): New function.
6541 (ada_scan_number): Update comment.
6542 (find_struct_field): New function.
6543 (ada_search_struct_field): Make static.
6544 (ada_value_struct_elt): New version that returns references when
6545 given pointers or references to structs.
6546 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6547 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6549 (ada_value_ind): Use new ada_to_fixed_value interface.
6550 (ada_coerce_ref): Ditto.
6551 (field_offset): Remove.
6553 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6554 (ada_find_renaming_symbol): New function.
6555 (ada_prefer_type): Prefer named types over unnamed ones.
6556 (variant_field_index): New function.
6557 (contains_variant_part): Removed: subsumed by variant_field_index.
6558 (ada_template_to_fixed_record_type): New function, mostly from
6559 template_to_fixed_record_type.
6560 (template_to_fixed_record_type):
6561 Do not scan the type fields beyond the last one; prevents a
6563 Handle case where variant field is listed BEFORE discriminant it
6565 Fix calculation of record length when bit length is
6566 not evenly divisible by char length.
6567 Move code to ada_template_to_fixed_record_type and call it.
6569 (template_to_static_fixed_type): Revise comment.
6570 Modify to work on ordinary record types as well as templates,
6571 so as to handle fields that use ___XVE or ___XVU encodings.
6572 (to_record_with_fixed_variant_part): Fill out comment.
6573 Initialize C++ stuff in right type.
6574 Allow case where DVAL is null.
6575 Handle case where variant field is not last.
6576 Fix typo concerning record length.
6577 (to_fixed_record_type): Decomment disabled code.
6578 (to_fixed_record_type): Use variant_field_index instead of
6579 contains_variant_part.
6580 (to_fixed_variant_branch_type): Ditto.
6581 (to_fixed_array_type): Decomment disabled code.
6582 (ada_to_fixed_type): Convert tagged types to the specific type.
6583 Deactivate the size-check for array types in order to avoid
6584 some false size alarms.
6585 (to_static_fixed_type): Decomment disabled code.
6586 Modify to call template_to_static_fixed_type
6587 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6588 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6589 Remove valaddr argument, as it is never really used.
6590 (ada_to_fixed_value): Change interface to act on single struct value*
6592 (adjust_pc_past_prologue): New function.
6593 (ada_attribute_name): Modify to take enum exp_opcode argument.
6595 (ada_enum_name): Recognize new homonym-distinguishing convention.
6596 Adjust local variable's type to remove compiler warning.
6597 Fix a small problem in the part that unqualifies the enumeration name.
6598 (ada_value_binop): New function.
6599 (ada_value_equal): New function.
6601 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6602 Don't give error message when not doing normal evaluation
6603 and a tagged type doesn't seem to contain a structure member.
6604 Give error message for packed arrays.
6605 For indexing arrays, handle pointers to packed arrays correctly.
6606 Handle case of 'first and 'last attributes of bare integral type
6607 without encoded subtype info.
6608 Remove some unnecessary casts.
6609 Fix uninitialized value of type in computing 'first, 'last, or 'length
6611 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6612 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6614 Attributes are now exp_opcode values.
6615 Correct treatment of 'modulus.
6616 Better error message for taking 'length of wrong kind of type;
6618 Change EVAL_NORMAL to noside for consistency.
6619 Use ada_value_binop for DIV, MOD, REM.
6620 Make special case out of array of length 0, since an argument
6621 of 0 upsets some platforms' malloc.
6622 Use OP_STRING instead of OP_ARRAY.
6623 For slice, add check that we have an array type before extracting
6624 a slice out of it. Avoids a SEGV.
6625 When evaluating an array slice, if the array type is a reference to
6626 an aligner type, then replace the aligner type by the actual type.
6627 Decomment disabled code.
6628 Remove some dead code.
6629 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6630 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6631 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6632 and UNOP_MBR to UNOP_IN_RANGE.
6633 If an array type has a parallel ___XVE type, then use it.
6634 Turn arrays into pointers for lvalue arrays.
6635 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6636 bounds error and handle 0-length slices.
6638 When selecting fields, apply ada_to_fixed_value (because the fields
6639 might have ___XVU or ___XVE encodings even if not dynamic.)
6640 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6641 (ada_is_system_address_type): New function.
6643 (get_var_value): Use new interface to ada_lookup_symbol_list.
6644 (get_int_var_value): New interface.
6645 (to_fixed_range_type): Allow unknown bound, with warning.
6646 (ada_is_modular_type): Decomment disabled code.
6647 (ADA_OPERATORS): New definition.
6648 (ada_operator_length): New function.
6649 (ada_expr_op_name): New function.
6650 (ada_forward_operator_length): New function.
6651 (ada_dump_subexp_body): New function.
6652 (ada_print_subexp): New function.
6653 (ada_exp_descriptor): New constant.
6654 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6655 (ada_language_defn): Add ada_exp_descriptor entry.
6656 Change ada_parse => parse.
6657 Add post-parser entry.
6658 Use ada-specific non-local symbol lookup.
6659 Don't use C-style arrays.
6660 String lower-bound is 1.
6661 Decomment disabled code.
6662 (parse): New function.
6663 New fields ada_translate_error_message, ada_lookup_symbol,
6664 ada_lookup_minimal_symbol.
6666 * ada-lang.h: Update copyright dates.
6667 Replace the mangle/demangle terminology throughout by the
6668 more appropriate encode/decode one.
6669 Include breakpoint.h.
6670 Forward declare struct partial_symbol, struct block.
6671 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6672 (EXTRACT_ADDRESS): Remove.
6673 (EXTRACT_INT): Remove.
6674 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6675 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6676 (MAX_RENAMING_CHAIN_LENGTH): Define.
6677 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6679 (enum task_states): Remove.
6680 ada_task_states: Remove.
6681 (fat_string): Remove.
6682 (struct entry_call): Remove.
6683 (struct task_fields): Remove.
6684 (struct task_entry): Remove.
6686 (struct ada_symbol_info): Define.
6687 (enum ada_attribute): Remove.
6688 (enum ada_operator): Define.
6690 (ada_get_field_index): Declare.
6691 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6692 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6693 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6694 (ada_lookup_symbol_list): New interface.
6695 (ada_decode_symbol): Declare.
6696 (ada_decode): Declare.
6697 (ada_lookup_symbol): New interface.
6698 (ada_update_initial_language): Declare.
6699 (ada_lookup_simple_minsym): Declare.
6700 (user_select_syms): New interface.
6701 (ada_sals_for_line): Declare.
6702 (ada_is_tagged_type): New interface.
6703 (ada_tag_name): Declare.
6704 (ada_lookup_struct_elt_type): Remove declaration.
6705 (ada_search_struct_field): Remove declaration.
6706 (ada_attribute_name): New interface.
6707 (ada_is_system_address_type): Declare.
6708 (ada_to_fixed_value): Remove declaration.
6709 (ada_template_to_fixed_record_type_1): Declare.
6710 (get_int_var_value): New interface.
6711 (ada_find_any_symbol): Declare.
6712 (ada_find_renaming_symbol): Declare.
6713 (ada_mangle): Rename to ada_encode.
6714 (ada_simple_renamed_entity): Remove const.
6715 (ada_main_name): Declare.
6716 (get_current_task): Rename to ada_get_current_task.
6717 (get_entry_number): Remove declaration.
6718 (ada_report_exception_break): Remove declaration.
6719 (ada_print_exception_breakpoint_nontask): Declare.
6720 (ada_print_exception_breakpoint_task): Declare.
6721 (ada_find_printable_frame): Declare.
6723 * ada-lex.l: Update copyright notices.
6724 Use xmalloc and xfree instead of malloc and free.
6725 Use new interface to name_lookup.
6726 Use new interface to
6727 ada_mangle=>ada_encode.
6728 Redo handling of '$...' variable to parallel current treatment
6730 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6731 digit_to_int, strtoulst, processInt, processReal, processId,
6732 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6735 (processInt): Use cast to remove harmless warning.
6736 (processReal): Modify to get rid of compiler warning on scan formats.
6738 (processId): Replace xmalloc with obstack_alloc for name and remove
6739 call to ada_name_string_cleanup.
6740 Remove obsolete disabled code.
6741 (name_lookup): Ditto.
6743 Use obsavestring on temp_parse_space instead of savestring
6744 on name, and remove call to ada_name_string_cleanup.
6745 Free string returned from ada_simple_renamed_entity.
6746 Use new interface to ada_lookup_symbol_list.
6747 Decomment disabled code.
6748 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6750 When a type name lookup succeeds as a result of
6751 lookup_primitive_typename, check for regular type entry that has not
6753 Limit length of chain of renamed symbols we are willing to follow.
6754 Do not break names beginning with "standard__" into segments.
6755 (block_lookup): Use new interface to ada_lookup_symbol_list.
6757 * ada-typeprint.c: Update copyright notice.
6758 (demangled_type_name): Rename to decoded_type_name.
6759 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6760 (print_range_bound): Correct handling of negative
6761 bounds that make the index type looked unsigned under STABS.
6762 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6763 (print_range_type_named): Use the builtin int type if no type
6764 corresponding to the given type name could be found.
6765 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6766 Add some bullet-proofing.
6767 (print_variant_clauses): Allow for variant branches with ___XVU
6768 encodings that are not dynamic fields.
6769 Use new interface to ada_is_tagged_type.
6770 (print_record_type): Allow for fields with ___XVE encodings that
6771 are not dynamic fields.
6772 Use new interface to ada_is_tagged_type.
6773 (ada_print_type): ada_is_array_descriptor =>
6774 ada_is_array_descriptor_type.
6776 * ada-valprint.c: Update copyright notice.
6777 Include gdb_string.h
6779 (ui_memcpy): New function.
6780 (ada_print_floating): New function.
6781 (ada_print_str): Order arguments correctly.
6782 Correct handling of empty arrays and arrays of 0-length items.
6783 ada_is_array_descriptor => ada_is_array_descriptor_type
6784 Print values of type System.Address in hexadecimal format.
6785 Use ada_print_floating to print floating-point numbers in Ada format.
6786 Print class tag values with type names.
6787 No longer print the address of reference values. Avoids
6788 a potential confusion.
6789 (ada_value_print): Stop printing the object type for reference
6790 values, but preserve that behavior for access types. Avoids
6791 a potential confusion.
6792 Simplify one conditional expression, as the first part is now
6794 ada_is_array_descriptor => ada_is_array_descriptor_type
6795 Add check for arrays for null records, and print them by hand.
6797 2004-06-01 Jim Blandy <jimb@redhat.com>
6799 * ppc-tdep.h: Delete unused 'regoff' member.
6800 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6802 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6805 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6806 (hpread_read_struct_type): Likewise.
6808 2004-06-01 Andrew Cagney <cagney@gnu.org>
6810 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6811 instead of xasprintf.
6812 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6813 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6814 (mi_cmd_data_list_register_names)
6815 (mi_cmd_data_list_changed_registers)
6816 (mi_cmd_data_list_register_values)
6817 (get_register, mi_cmd_data_write_register_values)
6818 (mi_cmd_data_write_register_values)
6819 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6820 (mi_cmd_target_download, mi_cmd_target_select)
6821 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6822 (mi_execute_cli_command, mi_execute_async_cli_command)
6823 (mi_execute_async_cli_command): Ditto.
6824 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6825 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6827 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6828 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6829 error_last_message instead of mi_error_last_message.
6830 * mi/mi-main.c (mi_error_last_message): Delete function.
6832 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6833 "invalid number of columns" error. Delete redundant "out of
6836 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6838 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6839 (gregset_t, fpregset_t): Remove typedefs.
6840 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6841 (REG_OFFSET): Rename argument.
6842 (i386bsd_r_reg_offset): Rename from reg_offset.
6843 (REG_ADDR): Remove macro.
6844 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6846 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6847 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6848 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6849 instead of supply_gregset.
6850 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6851 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6852 instead of fill_gregset.
6853 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6855 * i386bsd-nat.c: Don't include "gregset.h".
6856 (supply_gregset, fill_gregset): Make static.
6857 (supply_fpregset, fill_fpregset): Remove.
6858 * Makefile.in (i386bsd-nat.o): Update dependencies.
6860 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6862 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6863 "gdb_assert.h". Con't include "gregset.h".
6864 (fbsd_make_corefile_notes): Use regset-based core file support
6865 instead off fill_gregset and fill_fpregset.
6866 * Makefile.in (fbsd-proc.o): Update dependencies.
6868 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6870 (m88k_frame_prev_register): Simplify code a bit.
6872 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6873 (amd64_collect_fpregset): New function.
6874 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6876 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6878 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6879 (i386_collect_gregset): New function.
6880 (i386_supply_fpregset): Adjust comment.
6881 (i386_collect_fpregset): New function.
6882 (i386_regset_from_core_section): Use i386_collect_gregset and
6883 i386_collect_fpregset.
6885 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6886 handle VALUEP being null.
6888 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6890 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6892 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6894 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6895 assembler in OpenBSD 3.5-current.
6896 (amd64obsd_sigcontext_addr): Likewise.
6898 2004-05-28 Jim Blandy <jimb@redhat.com>
6900 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6901 register set, so our regcache isn't declared "legacy" and our E500
6902 pseudoregister read and write functions aren't ignored.
6903 (rs6000_register_byte, rs6000_register_raw_size,
6904 rs6000_register_virtual_type, rs6000_register_convertible,
6905 rs6000_register_convert_to_virtual,
6906 rs6000_register_convert_to_raw): Deleted.
6907 (rs6000_register_type, rs6000_convert_register_p,
6908 rs6000_register_to_value, rs6000_value_to_register): New
6910 (rs6000_gdbarch_init): Don't register
6911 gdbarch_deprecated_register_size,
6912 gdbarch_deprecated_register_bytes,
6913 gdbarch_deprecated_register_byte,
6914 gdbarch_deprecated_register_raw_size,
6915 gdbarch_deprecated_register_virtual_type,
6916 gdbarch_deprecated_register_convertible,
6917 gdbarch_deprecated_register_convert_to_virtual, or
6918 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6919 register gdbarch_register_type, gdbarch_convert_register_p,
6920 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6922 2004-05-26 Jim Blandy <jimb@redhat.com>
6924 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6925 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6926 functions, updated to match the register numberings used in GCC.
6927 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6928 rs6000_dwarf2_reg_to_regnum as register number conversions
6929 functions for STABS and Dwarf2.
6931 2004-05-26 Randolph Chung <tausq@debian.org>
6933 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6936 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6938 * NEWS: Document new "start" command.
6940 2004-05-25 Randolph Chung <tausq@debian.org>
6942 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6945 2004-05-25 Randolph Chung <tausq@debian.org>
6947 * hppa-hpux-tdep.c (offsetof): Define.
6948 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6949 (hppa32_hpux_frame_base_before_sigtramp)
6950 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6951 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6952 (hppa64_hpux_frame_base_before_sigtramp)
6953 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6955 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6956 (hppa_hpux_sigtramp_frame_unwind_cache)
6957 (hppa_hpux_sigtramp_frame_this_id)
6958 (hppa_hpux_sigtramp_frame_prev_register)
6959 (hppa_hpux_sigtramp_frame_unwind)
6960 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6961 (hppa_hpux_init_abi): Register sigtramp unwinder.
6962 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6964 2004-05-25 Randolph Chung <tausq@debian.org>
6966 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6967 and multiple stack unwinds.
6968 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6970 2004-05-25 Andrew Cagney <cagney@gnu.org>
6972 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6973 * symfile-mem.h: Delete file.
6974 * symfile-mem.c: Do not include "symfile-mem.h".
6975 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6976 "struct bfd_section". When an error do not bother returning NULL.
6977 (add_symbol_file_from_memory_command): Use "struct bfd" and
6978 "struct bfd_section".
6979 * Makefile.in (symfile_mem_h): Delete.
6980 (symfile-mem.o): Update dependencies.
6982 2004-05-25 Nick Roberts <nickrob@gnu.org>
6984 * gdb-mi.el: New file.
6986 2004-05-25 Andrew Cagney <cagney@gnu.org>
6988 * inftarg.c: Include "observer.h".
6989 (child_attach, child_create_inferior): Notify inferior_created.
6990 * corelow.c: Include "observer.h".
6991 (core_open): Notify inferior_created.
6992 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6994 2004-05-25 Andrew Cagney <cagney@gnu.org>
6996 * target.h (struct target_ops): Add from_tty to
6998 (target_create_inferior, find_default_create_inferior): Update.
6999 * infcmd.c (run_command): Update.
7000 * wince.c (child_create_inferior): Update.
7001 * win32-nat.c (child_create_inferior): Update.
7002 * uw-thread.c (uw_thread_create_inferior): Update.
7003 * thread-db.c (thread_db_create_inferior): Update.
7004 * target.c (debug_to_create_inferior)
7005 (find_default_create_inferior): Update.
7006 (maybe_kill_then_create_inferior): Update.
7007 * sol-thread.c (sol_thread_create_inferior): Update.
7008 * remote.c (extended_remote_async_create_inferior)
7009 (extended_remote_create_inferior): Update.
7010 * remote-vx.c (vx_create_inferior): Update.
7011 * remote-st.c (st2000_create_inferior): Update.
7012 * remote-sim.c (gdbsim_create_inferior): Update.
7013 * remote-sds.c (sds_create_inferior): Update.
7014 * remote-rdp.c (remote_rdp_create_inferior): Update.
7015 * remote-rdi.c (arm_rdi_create_inferior): Update.
7016 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7017 * remote-e7000.c (e7000_create_inferior): Update.
7018 * procfs.c (procfs_create_inferior): Update.
7019 * ocd.c (ocd_create_inferior): Update.
7020 * ocd.h (ocd_create_inferior): Update.
7021 * nto-procfs.c (procfs_create_inferior): Update.
7022 * monitor.c (monitor_create_inferior): Update.
7023 * lin-lwp.c (lin_lwp_create_inferior): Update.
7024 * inftarg.c (child_create_inferior): Update.
7025 * hpux-thread.c (hpux_thread_create_inferior): Update.
7026 * gnu-nat.c (gnu_create_inferior): Update.
7028 2004-05-25 Andrew Cagney <cagney@gnu.com>
7030 * MAINTAINERS: Update e-mail address.
7032 2004-05-24 Randolph Chung <tausq@debian.org>
7034 * thread.c (info_threads_command, thread_apply_all_command)
7035 (thread_apply_command, thread_command, do_captured_thread_select):
7036 Remove HPUXHPPA-specific code.
7038 2004-05-24 Randolph Chung <tausq@debian.org>
7040 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7042 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7045 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7047 * infcmd.c (kill_if_already_running): New function, extracted
7049 (run_command): Replace extracted code by call to
7050 kill_if_already_running().
7051 (start_command): New function.
7052 (_initialize_infcmd): Add "start" command.
7054 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7056 Add OpenBSD/m88k support.
7057 * NEWS (New native configurations): Mention OpenBSD/m88k.
7058 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7059 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7060 * Makefile.in (m88k_tdep_h): New variable.
7061 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7062 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7063 * configure.host: Add m88*-*-openbsd*.
7064 * configure.tgt: Add m88*-*-openbsd*.
7066 2004-05-24 Jim Blandy <jimb@redhat.com>
7068 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7071 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7073 * symtab.c (fixup_section): Search section table when lookup by
7076 2004-05-24 Randolph Chung <tausq@debian.org>
7078 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7081 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7083 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7084 register number in regcache_raw_collect call.
7085 (m68kbsd_collect_fpregset): Likewise.
7086 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7088 * regset.h (struct regset): Add back `regset' member.
7090 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7092 * configure.in: Check for td_pcb in `struct thread'.
7093 * configure, config.in: Regenerated.
7095 * dpx2-nat.c: Remove file.
7096 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7097 (dpx2-nat.o): Remove dependencies.
7099 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7100 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7101 (amd64obsd_supply_pcb): New function.
7102 (_initialize_amd64obsd_nat): Enable libkvm interface.
7103 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7104 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7105 (LOADLIBES): New variable.
7107 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7108 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7109 (sparc32nbsd_supply_pcb): New function.
7110 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7111 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7112 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7113 (LOADLIBES): New variable.
7115 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7117 * bsd-kvm.c, bsd-kvm.h: New files.
7118 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7120 (i386fbsd_supply_pcb): New function.
7121 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7122 (i386fbsd-nat.o): Update dependencies.
7123 (bsd_kvm_h): New variable.
7124 (bsd-kvm.o): New dependency.
7125 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7126 (LOADLIBES): New variable.
7128 * regset.c: Tweak comment.
7129 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7131 * regset.h: Update copyright year.
7132 (struct regset): Remove `descr' member, add `gdbarch' member.
7133 (regset_alloc): Adjust prototype and comment.
7134 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7135 (i386_supply_fpregset): Likewise.
7136 (i386_regset_from_core_section): Update call to regset_alloc.
7137 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7139 (i386obsd_aout_regset_from_core_section): Update call to
7141 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7143 (i386nbsd_aout_regset_from_core_section): Update call to
7145 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7147 (amd64_regset_from_core_section): Update call to regset_alloc.
7148 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7150 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7151 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7152 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7153 (sparc32nbsd_init_abi): Update call to regset_alloc.
7154 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7155 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7156 (sparc64obsd_init_abi): Update call to regset_alloc.
7157 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7158 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7159 (sparc64nbsd_init_abi): Update call to regset_alloc.
7160 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7161 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7162 (sparc64fbsd_init_abi): Update call to regset_alloc.
7164 2004-05-22 Jim Blandy <jimb@redhat.com>
7166 * ppc-tdep.h (spe_register_p): New declaration.
7167 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7169 * rs6000-tdep.c (spe_register_p): New function.
7170 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7172 (rs6000_gdbarch_init): Initialize the new members of the tdep
7175 2004-05-21 Jim Blandy <jimb@redhat.com>
7177 * ppc-linux-nat.c (fetch_register): Move code back to be next
7178 to the comment that describes it. (Moved code, instead of
7179 comment, for symmetry with store_register.)
7181 Allocate regset structures in the gdbarch's obstack, not using
7183 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7184 Add 'arch' argument. Allocate the regset on arch's obstack, not
7186 * regset.h (regset_alloc): Update declaration.
7187 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7189 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7190 * i386-tdep.c (i386_regset_from_core_section): Same.
7191 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7192 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7193 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7194 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7195 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7196 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7198 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7200 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7202 2004-05-21 Jim Blandy <jimb@redhat.com>
7204 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7205 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7207 2004-05-20 Jim Blandy <jimb@redhat.com>
7209 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7211 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7213 * regset.h: Make prototype const-correct.
7214 * regset.c (regset_xmalloc): Make const-correct.
7216 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7218 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7219 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7220 (symbol_search_name): Declare.
7222 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7223 (iter_name_next_hashed): Ditto.
7224 (iter_name_next_linear): Ditto.
7225 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7227 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7228 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7229 (symbol_search_name): New function.
7231 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7233 * minsyms.c (build_minimal_symbol_hash_tables): Change
7234 test for adding to demangled hash table to check for difference
7235 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7237 2004-05-19 Jim Blandy <jimb@redhat.com>
7239 Use a constructor function to create regset structures.
7240 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7241 (struct regset): Use supply_regset_ftype. Add new
7242 'collect_regset' member.
7243 (regset_xmalloc): New declaration.
7244 * regset.c: New file.
7245 * am64-tdep.c (amd64_regset_from_core_section): Use
7246 regset_xmalloc to construct regset structures.
7247 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7248 * i386-tdep.c (i386_regset_from_core_section): Same.
7249 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7250 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7251 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7252 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7253 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7254 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7255 * Makefile.in (COMMON_OBS): Add regset.o.
7256 (regset.o): New rule.
7258 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7260 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7261 and pthread_cond_wait.c.
7263 2004-05-18 Jim Blandy <jimb@redhat.com>
7265 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7266 before the mach-specific switch, and then let the individual cases
7267 override the defaults, rather than leaving them uninitialized
7268 until the switch and then setting them in each case.
7270 2004-05-18 Randolph Chung <tausq@debian.org>
7272 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7273 millicode functions.
7275 2004-05-18 Randolph Chung <tausq@debian.org>
7277 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7278 references to dld_flags_buffer consistent.
7280 2004-05-18 Randolph Chung <tausq@debian.org>
7282 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7283 it for unwinding the stack.
7285 2004-05-18 Randolph Chung <tausq@debian.org>
7287 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7288 Undefine these so we can overide them using gdbarch.
7290 2004-05-18 Randolph Chung <tausq@debian.org>
7292 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7293 handling for 64-bit HPUX (elf).
7295 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7297 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7299 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7300 * ia64-tdep.c (examine_prologue): Likewise.
7301 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7302 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7304 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7306 * vax-tdep.c (vax_return_value): Implement
7307 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7309 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7311 * vax-tdep.c (vax_return_value): Fix typo.
7313 2004-05-17 Andrew Cagney <cagney@redhat.com>
7315 * MAINTAINERS: Mark Salter was also responsible for
7318 * NEWS: Mention signal fixes.
7320 2004-05-17 Randolph Chung <tausq@debian.org>
7322 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7323 check to see if we are unwinding an export stub. Export stubs clobber
7324 the %rp in the call path and stores the original rp in a stack slot.
7326 2004-05-17 Jim Blandy <jimb@redhat.com>
7328 * MAINTAINERS: Update address for J.T. Conklin.
7330 2004-05-17 Randolph Chung <tausq@debian.org>
7332 * hppa-tdep.c: Remove superfluous #include's.
7333 * Makefile.in (hppa-tdep.o): Update dependencies.
7335 2004-05-17 Randolph Chung <tausq@debian.org>
7337 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7338 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7339 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7340 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7341 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7342 Remove static function declarations.
7344 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7346 * alphabsd-nat.c: Update copyright year.
7347 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7349 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7352 * m68k-tdep.c (m68k_svr4_return_value): Implement
7353 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7355 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7357 * sol-thread.c Update copyright year. Fix various coding
7358 standards violations. Tweak a few comments.
7359 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7362 2004-05-15 Randolph Chung <tausq@debian.org>
7364 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7365 as pointer instead of array reference since HPUX compiler does
7366 not accept unsized array arguments.
7367 * somsolib.c (dld_flags_buffer): Use constant array size.
7369 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7371 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7372 offset with decimal offset.
7373 (amd64obsd_sigcontext_addr): Return correct address for entire
7376 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7377 instead of get_frame_base.
7379 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7380 (fill_gregset): Use regcache_raw_collect.
7382 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7385 * config/sparc/tm-nbsd64.h: Remove file.
7386 * config/tm-sunos.h: Remove file.
7388 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7390 * rs6000-tdep.c (store_param_on_stack_p): New function,
7391 an improved version of some code extracted from skip_prologue().
7392 (skip_prologue): Use store_param_on_stack_p() to detect
7393 instructions saving a parameter on the stack. Detect when r0
7394 is used to save a parameter.
7395 Do not mark "li rx, SIMM" instructions as part of the prologue,
7396 unless the following instruction is also part of the prologue.
7398 2004-05-14 Andrew Cagney <cagney@redhat.com>
7400 * infrun.c (handle_inferior_event): Simplify
7401 STEP_OVER_UNDEBUGGABLE.
7403 * infrun.c (handle_step_into_function): Delete function.
7404 (handle_inferior_event): Inline calls to
7405 handle_step_into_function.
7407 2004-05-14 Jerome Guitton <guitton@gnat.com>
7409 * rs6000-nat.c: Fix a comment.
7411 2004-05-12 David Anderson <davea@sgi.com>
7413 Committed by Jim Blandy <jimb@redhat.com>:
7414 * regcache.c (struct regcache_descr): fix comment spelling.
7416 2004-05-13 J. Brobecker <brobecker@gnat.com>
7418 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7419 Fixes a link link failure.
7421 2004-05-13 J. Brobecker <brobecker@gnat.com>
7423 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7424 error that was causing the build to fail.
7426 2004-05-13 J. Brobecker <brobecker@gnat.com>
7428 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7429 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7431 2004-05-13 Andrew Cagney <cagney@redhat.com>
7433 * infrun.c (handle_inferior_event): Check for
7434 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7435 calls. Update comments.
7437 2004-05-13 Jim Blandy <jimb@redhat.com>
7439 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7440 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7441 (store_regs_user_thread, store_regs_kernel_thread): Use
7442 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7443 * ppc-linux-nat.c (fill_gregset): Same.
7444 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7445 (ppc_linux_sigtramp_cache): Same.
7446 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7447 (ppcnbsd_sigtramp_cache_init): Same.
7448 * rs6000-nat.c (fetch_core_registers): Same.
7449 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7450 (rs6000_frame_cache): Same.
7452 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7453 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7454 of assuming that the gprs are numbered starting with zero.
7455 * ppc-linux-nat.c (fill_gregset): Same.
7456 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7457 * ppcnbsd-nat.c (getregs_supplies): Same.
7458 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7459 * rs6000-nat.c (fetch_core_registers): Same.
7460 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7462 2004-05-07 Michael Snyder <msnyder@redhat.com>
7464 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7465 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7467 2004-05-13 Andrew Cagney <cagney@redhat.com>
7469 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7471 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7473 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7474 base_address for shared libraries.
7476 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7478 * MAINTAINERS (write after approval): Add myself.
7480 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7482 * breakpoint.c (bpstat_stop_status): Add new argument
7483 STOPPED_BY_WATCHPOINT. Use it instead of testing
7484 target_stopped_data_address agaist 0 to check whether
7485 or not we stopped due to a hardware watchpoint.
7486 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7487 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7490 2004-05-12 Jim Blandy <jimb@redhat.com>
7492 * configure.in: When checking whether we should use the -bbigtoc
7493 option, don't forget to restore the original value of LDFLAGS.
7494 * configure: Regenerated.
7496 2004-05-12 Andrew Cagney <cagney@redhat.com>
7498 * thread.c (load_infrun_state): Delete step_sp.
7499 * infrun.c (context_switch): Ditto.
7500 * inferior.h (step_sp): Ditto.
7501 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7502 * gdbthread.h (struct thread_info, save_infrun_state)
7503 (restore_infrun_state): Ditto.
7505 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7507 * MAINTAINERS (write after approval): Add myself.
7509 2004-05-12 Andrew Cagney <cagney@redhat.com>
7511 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7512 eliminate reference to step_sp.
7513 (struct execution_control_state, init_execution_control_state)
7514 (handle_inferior_event, keep_going): Delete update_step_sp and
7516 * infcmd.c (step_sp): Note that variable is unused.
7518 2004-05-11 Andrew Cagney <cagney@redhat.com>
7520 * infrun.c (step_over_function): Delete function.
7521 (handle_step_into_function): Use insert_step_resume_breakpoint.
7522 (insert_step_resume_breakpoint): Fix assertion.
7524 2004-05-11 Nick Roberts <nickrob@gnu.org>
7526 * utils.c (defaulted_query): Just use the normal query input type
7527 when printing the annotations.
7529 2004-05-11 Andrew Cagney <cagney@redhat.com>
7531 * infrun.c (handle_inferior_event): Simplify code handling
7532 step-into or return-from a signal trampoline.
7534 2004-05-11 Andrew Cagney <cagney@redhat.com>
7536 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7537 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7539 2004-05-10 Jim Blandy <jimb@redhat.com>
7541 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7542 with a call to internal_error.
7544 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7545 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7546 processor variant lacks those registers.
7547 (ppc_floating_point_unit_p): Change description to make it clear
7548 that this returns info about the ISA, not the ABI.
7549 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7550 return true or false by checking tdep->ppc_fp0_regnum and
7551 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7552 arch/mach switching done in rs6000_gdbarch_init; it's better to
7553 keep that logic there, and just check the results here.
7554 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7555 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7556 floating-point registers.
7557 (ppc_supply_fpregset, ppc_collect_fpregset)
7558 (rs6000_push_dummy_call, rs6000_extract_return_value)
7559 (rs6000_store_return_value): Assert that we have floating-point
7561 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7562 (rs6000_frame_cache): Don't note the locations at which
7563 floating-point registers were saved if we have no fprs.
7564 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7566 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7567 (store_regs_user_thread, store_regs_kernel_thread): Only call
7568 supply_fprs / fill_fprs if we actually have floating-point
7570 (special_register_p): Check ppc_fpscr_regnum before matching
7572 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7573 supply / collect fpscr if we don't have it.
7574 * ppc-bdm.c: #include "gdb_assert.h".
7575 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7576 have floating-point registers, since I can't test this code on
7577 FP-free systems to adapt it.
7578 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7579 fpscr and floating point register numbers if they don't exist.
7580 (fetch_register): Assert that we have floating-point registers
7581 before we reach the code that handles them.
7582 (store_register): Same. And use tdep instead of calling
7584 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7586 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7587 fprs and fpscr if we don't have them.
7588 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7590 * ppcnbsd-nat.c: #include "gdb_assert.h".
7591 (getfpregs_supplies): Assert that we have floating-point registers.
7592 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7593 * ppcobsd-tdep.c: #include "gdb_assert.h".
7594 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7595 have floating-point registers.
7596 * rs6000-nat.c (regmap): Don't match against the fpscr and
7597 floating point register numbers if they don't exist.
7598 (fetch_inferior_registers, store_inferior_registers,
7599 fetch_core_registers): Only fetch / store / supply the
7600 floating-point registers and the fpscr if we have them.
7601 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7602 (ppcobsd-tdep.o): Update dependencies.
7604 2004-05-10 Andrew Cagney <cagney@redhat.com>
7606 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7607 (context_switch): Do not switch through_sigtramp_breakpoint.
7608 * gdbthread.h (save_infrun_state, load_infrun_state)
7609 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7610 and structure member.
7611 * thread.c (load_infrun_state, save_infrun_state): Update.
7613 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7615 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7617 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7619 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7621 * aclocal.m4: Regenerate.
7623 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7625 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7627 2004-05-10 Andrew Cagney <cagney@redhat.com>
7629 * infrun.c (check_sigtramp2): Delete function.
7630 (handle_inferior_event): When single stepping, and taking a
7631 signal, set a breakpoint at the signal return address. Delete
7632 redundant calls to check_sigtramp2.
7633 (insert_step_resume_breakpoint): New function.
7634 (through_sigtramp_breakpoint, handle_inferior_event)
7635 (follow_exec, wait_for_inferior, fetch_inferior_event)
7636 (currently_stepping, keep_going): Delete most uses of
7637 through_sigtramp_breakpoint, not that it should be deleted.
7638 (delete_breakpoint_current_contents): Delete function.
7640 2004-05-10 Randolph Chung <tausq@debian.org>
7642 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7644 * config/pa/tm-linux.h: New file.
7646 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7648 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7649 of prefixes. Don't print the prefix twice in the CLI.
7651 2004-05-10 Jim Blandy <jimb@redhat.com>
7653 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7654 collect all the gprs.
7656 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7657 loop collecting gprs.
7659 2004-05-09 Andrew Cagney <cagney@redhat.com>
7661 * remote-vx.c (net_step): Delete step-range code.
7662 * remote.c (remote_resume, init_all_packet_configs)
7663 (set_remote_protocol_E_packet_cmd)
7664 (show_remote_protocol_E_packet_cmd)
7665 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7666 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7667 (show_remote_protocol_e_packet_cmd): Ditto.
7669 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7671 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7673 * hppa-tdep.h: Update copyright year.
7674 (struct trad_frame_saved_reg): Add opaque declaration.
7676 * amd64-tdep.c (amd64_return_value): Implement
7677 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7679 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7680 (m68k_value_to_register): New functions.
7681 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7684 * defs.h (enum return_value_convention): Add
7685 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7686 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7687 * infcmd.c (legacy_return_value): New function.
7688 (print_return_value): Rwerite to implement
7689 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7690 * values.c (using_struct_return): Check for inequality to
7691 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7692 RETURN_VALUE_STRUCT_CONVENTION.
7693 * i386-tdep.c (i386_return_value): Implement
7694 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7696 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7697 include "symtab.h", "opcode/vax.h" and "inferior.h".
7698 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7699 to read_memory_unsigned_integer.
7700 (vax_gdbarch_init): Reorder.
7701 (_initialize_vax_tdep): Spell out prototype.
7702 * Makefile.in (vax-tdep.o): Update dependencies.
7704 2004-05-08 Andrew Cagney <cagney@redhat.com>
7706 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7707 * target.c (target_detach, target_disconnect): Ditto.
7709 * infcall.c (call_function_by_hand): When no
7710 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7711 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7712 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7713 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7714 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7716 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7717 * gdbarch.h, gdbarch.c: Re-generate.
7718 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7719 deprecated_fix_call_dummy.
7720 * v850-tdep.c (v850_gdbarch_init): Ditto.
7721 * infcall.c (call_function_by_hand): Do not call
7722 DEPRECATED_FIX_CALL_DUMMY.
7724 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7725 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7726 * gdbarch.h, gdbarch.c: Re-generate.
7727 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7728 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7729 deprecated_sizeof_call_dummy_words.
7730 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7731 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7732 * v850-tdep.c (v850_gdbarch_init): Ditto.
7733 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7734 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7735 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7736 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7737 * arch-utils.h (legacy_call_dummy_words)
7738 (legacy_sizeof_call_dummy_words): Delete declarations.
7739 * arch-utils.c (legacy_call_dummy_words)
7740 (legacy_sizeof_call_dummy_words): Delete variables.
7742 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7743 * gdbarch.h, gdbarch.c: Re-generate.
7744 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7745 * infcall.c (call_function_by_hand): Eliminate call to
7746 DEPRECATED_PUSH_DUMMY_FRAME.
7747 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7749 (ns32k_push_dummy_frame): Delete function.
7751 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7752 deprecated_call_dummy_breakpoint_offset or
7753 deprecated_call_dummy_start_offset.
7754 * dummy-frame.c, arm-tdep.c: Update comments.
7755 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7756 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7757 * gdbarch.h, gdbarch.c: Re-generate.
7759 * infcall.c (legacy_push_dummy_code): Delete function.
7760 (push_dummy_code): Delete call.
7762 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7763 * gdbarch.h, gdbarch.c: Re-generate.
7764 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7765 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7766 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7767 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7769 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7770 (struct frame_info): Delete opaque declaration.
7771 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7772 * frame.c (get_frame_type): Delete call.
7774 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7776 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7777 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7779 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7781 * alphanbsd-tdep.c: Include "gdb_string.h".
7782 * armnbsd-tdep.c: Update copyright year.
7783 Include "gdb_string.h".
7784 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7787 * delta68-nat.c: Remove file.
7788 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7789 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7790 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7791 (delta68-nat.o): Remove dependency.
7793 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7795 (m68k_gdbarch_init): Don't set
7796 deprecated_frameless_function_invocation.
7798 2004-05-07 Randolph Chung <tausq@debian.org>
7800 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7801 read_memory_nobpt for code reading when doing frame unwinding.
7802 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7804 2004-05-07 Randolph Chung <tausq@debian.org>
7806 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7807 instead of sp, handle sigaltstack case.
7808 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7809 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7810 signal handler and not that of the caller.
7811 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7812 hppa_linux_sigtramp_find_sigcontext.
7814 2004-05-07 Randolph Chung <tausq@debian.org>
7816 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7818 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7819 * hppa-linux-nat.c (fetch_register, store_register): Define.
7820 (fetch_inferior_registers, store_inferior_registers): Define.
7821 (supply_gregset): Add comment and clean up some unneeded code.
7822 (fill_gregset): Add comment and fix so that it saves registers in
7823 the right place in the gregset.
7824 (fill_fpregset): Fix buffer overrun problem.
7825 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7827 2004-05-07 Randolph Chung <tausq@debian.org>
7829 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7830 do common handling of the pcoqt register.
7831 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7832 to use helper function.
7833 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7834 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7835 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7836 generic fallback unwinder when all else fails.
7837 (hppa_gdbarch_init): Add fallback sniffer.
7838 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7839 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7840 to use helper function.
7842 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7844 * config/djgpp/fnchange.lst: Add translation rules for
7845 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7847 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7849 * frame.c (get_prev_frame_1): Work around GCC bug.
7850 * frame.h: Add comment about GCC bug.
7852 2004-05-07 Andrew Cagney <cagney@redhat.com>
7854 * observer.c: Include "commands.h" and "gdbcmd.h".
7855 (observer_debug, _initialize_observer): Add the
7856 command "set/show debug observer".
7857 * observer.sh: When observer debugging, log notify calls.
7858 * Makefile.in (observer.o): Update dependencies.
7860 2004-05-07 Jason Molenda (jmolenda@apple.com)
7862 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7864 2004-05-07 Jim Blandy <jimb@redhat.com>
7866 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7867 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7868 to recognize gpr regnums, instead of assuming that
7869 tdep->ppc_fp0_regnum marks the end of the general-purpose
7872 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7873 the given architecture has floating-point registers.
7875 2004-05-07 Andrew Cagney <cagney@redhat.com>
7877 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7879 * gdbarch.h, gdbarch.c: Re-generate.
7880 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7881 deprecated_use_generic_dummy_frames.
7883 2004-05-07 Brian Ford <ford@vss.fsi.com>
7885 * NEWS: Mention Cygwin DWARF 2 support.
7887 2004-05-07 Andrew Cagney <cagney@redhat.com>
7889 * objfiles.h (struct entry_info): Delete unused fields
7890 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7891 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7892 * mipsread.c (mipscoff_symfile_read): Update.
7893 * mdebugread.c (parse_partial_symbols): Update.
7894 * dwarfread.c (read_file_scope): Update.
7895 * dwarf2read.c (read_file_scope): Update.
7896 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7897 * coffread.c (complete_symtab): Update.
7899 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7901 * infcall.c (_initialize_infcall): Fix typo.
7903 2004-05-07 Andrew Cagney <cagney@redhat.com>
7905 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7906 * command.h (add_setshow_zinteger_cmd): Declare.
7908 2004-05-06 Randolph Chung <tausq@debian.org>
7910 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7911 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7912 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7913 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7914 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7915 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7916 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7918 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7919 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7920 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7921 (hppa64_hpux_frame_find_saved_regs_in_sig)
7922 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7923 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7924 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7925 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7926 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7927 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7928 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7929 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7930 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7931 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7932 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7933 (hppa32_register_type, hppa_cannot_store_register)
7934 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7935 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7936 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7937 * pa64solib.c (pa64_solib_have_load_event)
7938 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7939 (pa64_solib_unloaded_library_pathname): Likewise.
7940 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7941 (som_solib_library_pathname): Likewise.
7943 2004-05-05 Jim Ingham <jingham@apple.com>
7945 * breakpoint.c (create_breakpoints): Copy the ignore count and
7946 thread id over from the pended breakpoint to the actual
7949 2004-05-05 Andrew Cagney <cagney@redhat.com>
7951 * gdbarch.sh (PARM_BOUNDARY): Delete.
7952 gdbarch.h, gdbarch.c: Re-generate.
7953 * valops.c (PARM_BOUNDARY): Delete macro.
7954 (value_push): Delete PARM_BOUNDARY code.
7955 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7957 2004-05-04 Jim Blandy <jimb@redhat.com>
7959 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7960 Don't assume that the gprs, fprs, and UISA sprs are
7961 contiguous, start at register number zero, and end with fpscr.
7962 Instead, use the numbers from the tdep structure.
7964 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7965 should no longer be used in code specific to the RS6000 and its
7967 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7968 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7969 tdep->ppc_fp0_regnum.
7970 (ppc_supply_fpregset, ppc_collect_fpregset)
7971 (rs6000_push_dummy_call, rs6000_extract_return_value)
7972 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7973 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7975 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7976 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7978 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7979 bdm_ppc_store_registers): Same.
7980 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7981 (store_register, fill_fpregset): Same.
7982 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7983 (ppc_linux_supply_fpregset): Same.
7984 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7985 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7987 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7988 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7989 ppc64_sysv_abi_return_value): Same.
7990 * rs6000-nat.c (regmap, fetch_inferior_registers)
7991 (store_inferior_registers, fetch_core_registers): Same.
7993 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7995 * m68knbsd-nat.c: Remove file.
7996 * m68knbsd-tdep.c: Remove file.
7997 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7999 * configure.host: Add m68k-*-netbsdelf*.
8000 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8001 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8002 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8004 * config/m68k/nbsdelf.mh: New file.
8005 * config/m68k/nbsd.mt: New file.
8006 * config/m68k/nbsdaout.mt: Remove file.
8007 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8008 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8009 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8010 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8011 (use_struct_convention): Remove prototype.
8012 (USE_STRUCT_CONVENTION): Remove define.
8013 * config/m68k/xm-nbsd.h: Remove file.
8015 2004-05-04 Michael Snyder <msnyder@redhat.com>
8017 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8018 reg_struct_return method (as gcc usually does for cross targets).
8020 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8022 Committed by Andrew Cagney.
8023 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8024 alignment padding when accessing ucontext struct members.
8026 2004-05-04 Jim Blandy <jimb@redhat.com>
8028 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8029 'ppc_gplast_regnum' member.
8030 (ppc_num_gprs): New enum constant.
8031 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8032 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8033 * rs6000-nat.c (regmap, fetch_inferior_registers,
8034 store_inferior_registers): Same.
8035 * rs6000-tdep.c (e500_pseudo_register_read)
8036 (e500_pseudo_register_write): Same.
8037 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8039 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8040 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8041 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8042 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8044 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8046 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8047 * rs6000-nat.c (regmap, fetch_inferior_registers)
8048 (store_inferior_registers): Same.
8050 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8053 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8055 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8056 failure detected by recent versions of GCC.
8057 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8058 to be consistent with the usage in dwarf2_create_include_psymtab.
8060 2004-05-03 Michael Snyder <msnyder@redhat.com>
8062 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8063 (heuristic_proc_start): Whitespace cleanup.
8065 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8067 * sun3-nat.c: Remove file.
8068 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8070 (ALLDEPFILES): Remove sun3-nat.c.
8071 (sun3-nat.o): Remove dependencies.
8073 * i386-interix-nat.c, i386-interix-tdep.c,
8074 config/i386/nm-interix.h, config/i386/interix.mh,
8075 config/i386/interix.mt: Remove files.
8076 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8079 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8081 * m68k-tdep.h (struct gdbarch_tdep): Add member
8082 struct_value_regnum.
8083 (m68k_svr4_init_abi): New prototype.
8084 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8085 different calling conventions.
8086 (m68k_extract_return_value): Remove code dealing with single-field
8088 (m68k_store_return_value): Remove code dealing with single-field
8089 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8090 (m68k_extract_struct_value_address): Remove function.
8091 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8092 (m68k_reg_struct_return_p, m68k_return_value)
8093 (m68k_svr4_return_value): New functions.
8094 (m68k_use_struct_convention): Remove function.
8095 (m68k_push_dummy_call): Use new struct_value_regnum member of
8096 `struct gdbarch_tdep' instead of hardcoded register number to
8098 (m68k_svr4_init_abi): New function.
8099 (m68k_gdbarch_init): Don't set extract_return_value,
8100 store_return_values, deprecated_extract_struct_value_address and
8101 use_struct_convention. Set return_value instead. Initialize new
8102 struct_value_regnum member of `struct gdbarch_tdep'.
8103 * m68klinux-tdep.c: Update copyright year.
8104 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8105 (m68k_linux_extract_struct_value_address): Remove function.
8106 (m68k_linux_init_abi): Don't set extract_return_value,
8107 store_return_values, deprecated_extract_struct_value_address and
8108 use_struct_convention. Call m68k_svr4_init_abi but override the
8109 new struct_value_regnum member of `struct gdbarch_tdep'.
8110 * Makefile.in (m68k-tdep.o): Update dependencies.
8112 2004-05-03 J. Brobecker <brobecker@gnat.com>
8114 * dwarf2read.c (line_header): Add new included_p field in
8116 (partial_die_info): New field has_stmt_list. New field line_offset.
8117 (dwarf2_create_include_psymtab): New function.
8118 (dwarf2_build_include_psymtabs): New function.
8119 (add_file_name): Add forward declaration. Initialize new field.
8120 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8121 to be able to determine the list of files included by the
8122 given unit, and build their associated psymtabs.
8123 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8125 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8126 (read_file_scope): Update call to dwarf_decode_lines.
8127 (read_partial_die): Handle DW_AT_stmt_list attributes.
8129 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8132 * configure.in: Revert special case for osf5.*.
8133 * configure: Regenerate.
8135 2004-05-02 Jim Blandy <jimb@redhat.com>
8137 Move the symbol-file-from-memory functions into their own file.
8138 * symfile-mem.c, symfile-mem.h: New files.
8139 * symfile.c (symbol_file_add_from_bfd): New function.
8140 (symbol_file_add): Call symbol_file_add_from_bfd.
8141 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8142 Moved to symfile-mem.c.
8143 (_initialize_symfile): Move definition of
8144 add-symbol-file-from-memory command to symfile-mem.c.
8145 * symfile.h (symbol_file_add_from_bfd): New declaration.
8146 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8147 * config/powerpc/linux.mt (TDEPFILES): Same.
8148 * Makefile.in (SFILES): Add symfile-mem.c.
8149 (symfile_mem_h): New variable.
8150 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8151 (symfile-mem.o): New rule.
8153 2004-05-01 Andrew Cagney <cagney@redhat.com>
8155 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8156 frame_find_by_id instead of frame_relative_level.
8157 (do_enable_breakpoint): Ditto.
8158 * thread.c: Update copyright.
8159 (info_threads_command): Ditto, simplify.
8161 * frame.c (deprecated_generic_get_saved_register): Delete
8162 function, moved to "xstormy16-tdep.c".
8163 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8164 deprecated_generic_get_saved_register from "frame.c".
8165 (xstormy16_frame_saved_register): Call
8166 xstormy16_get_saved_register.
8167 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8169 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8170 * frame.h (deprecated_generic_get_saved_register): Delete.
8172 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8174 * dwarfread.c: Update documentation on the state of dwarf-1.
8176 2004-05-01 Andrew Cagney <cagney@redhat.com>
8178 * stack.c (select_frame_command): Delete call to
8179 frame_relative_level.
8180 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8182 (frame_info): Do not print FRAMELESS.
8183 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8184 (catch_info): Delete #if0 code.
8186 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8187 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8188 of frame_relative_level.
8189 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8191 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8192 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8193 frame_relative_level.
8195 * frame.h (deprecated_set_frame_type): Delete declaration.
8196 * frame.c (deprecated_set_frame_type): Delete function, update
8199 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8200 * gdbarch.h, gdbarch.c: Re-generate.
8201 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8202 (shnbsd_pc_in_sigtramp): Delete.
8203 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8205 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8207 * frame.h: Update comments.
8208 * ppc-linux-tdep.c: Update comments.
8209 * breakpoint.c (bpstat_what): Update comments.
8211 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8212 m68klinux-tdep.o's dependencies, were previously added to
8215 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8216 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8217 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8218 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8219 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8221 * Makefile.in (m68klinux-nat.o): Update dependencies.
8222 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8223 (m68k_linux_sigtramp_frame_cache)
8224 (m68k_linux_sigtramp_frame_this_id)
8225 (m68k_linux_sigtramp_frame_prev_register)
8226 (m68k_linux_sigtramp_frame_unwind)
8227 (m68k_linux_sigtramp_frame_sniffer)
8228 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8229 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8230 names, use trad-frame.h.
8231 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8232 (struct m68k_sigtramp_info): Delete.
8233 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8234 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8235 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8236 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8239 * infrun.c (check_sigtramp2): Delete check for
8240 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8242 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8244 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8246 2004-05-01 Andrew Cagney <cagney@redhat.com>
8248 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8249 (frv_linux_sigtramp_frame_cache)
8250 (frv_linux_sigtramp_frame_this_id)
8251 (frv_linux_sigtramp_frame_prev_register)
8252 (frv_linux_sigtramp_frame_unwind)
8253 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8254 include "linux" in function and variable names, directly call
8255 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8256 the latest trad-frame code.
8257 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8258 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8259 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8260 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8261 * frv-tdep.c (frv_sigtramp_frame_cache)
8262 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8263 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8265 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8266 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8267 (frv_set_sigcontext_reg_addr): Delete function.
8269 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8270 (DEPRECATED_SIGTRAMP_END): Delete.
8271 * gdbarch.h, gdbarch.c: Re-generate.
8272 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8273 * config/vax/tm-vaxbsd.h: Update copyright.
8274 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8275 (DEPRECATED_IN_SIGTRAMP): Define.
8276 * config/m68k/tm-nbsd.h: Update copyright.
8277 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8278 (DEPRECATED_IN_SIGTRAMP): Define.
8280 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8282 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8283 encondings. Fixes PR gdb/1628.
8285 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8286 DW_CFA_restore state without a matching DW_CFA_remember_state
8287 instead of aborting. Fixes PR backtrace/1589.
8289 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8291 * MAINTAINERS: Add self as AIX maintainer.
8292 Update my e-mail address in write-after-approval section.
8294 2004-04-30 Andrew Cagney <cagney@redhat.com>
8296 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8297 (legacy_get_prev_frame): Ditto.
8299 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8300 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8301 * mipsread.c (sigtramp_address): Delete extern variable.
8302 (mipscoff_new_init): Delete reference.
8303 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8304 (fixup_sigtramp): Delete function.
8305 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8306 (fixup_sigtramp): Delete declarations.
8308 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8309 deprecated_pc_in_sigtramp.
8310 (ppcnbsd_pc_in_sigtramp): Delete function.
8312 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8314 * config/m68k/nm-nbsd.h: Tweak comments.
8315 * config/m68k/nm-nbsdaout.h: Likewise.
8317 2004-04-30 Andrew Cagney <cagney@redhat.com>
8319 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8320 legacy_pc_in_sigtramp.
8321 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8323 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8325 Add OpenBSD/m68k support.
8326 * NEWS (New native configurations): Mention OpenBSD/m68k.
8327 * m68kbsd-tdep.c: New file.
8328 * m68kbsd-nat.c: New file.
8329 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8330 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8331 * configure.host: Add m68k-*-openbsd.
8332 * configure.tgt: Add m68k-*-openbsd.
8333 * config/m68k/tm-obsd.h: New file.
8334 * config/m68k/obsd.mt: New file.
8335 * config/m68k/obsd.mh: New file.
8336 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8339 2004-04-30 Andrew Cagney <cagney@redhat.com>
8341 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8342 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8344 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8346 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8347 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8349 2004-04-30 Brian Ford <ford@vss.fsi.com>
8351 Revert 2004-04-16 change.
8352 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8353 (i386_coff_init_abi): Remove.
8354 * i386-tdep.h (i386_coff_init_abi): Remove.
8355 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8357 2004-04-30 Andrew Cagney <cagney@redhat.com>
8359 * blockframe.c (find_pc_partial_function): Delete use of
8360 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8361 DEPRECATED_SIGTRAMP_END.
8363 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8364 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8365 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8366 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8367 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8369 * defs.h (deprecated_inside_entry_file): Delete declaration.
8370 * blockframe.c (deprecated_inside_entry_file): Delete function.
8371 (legacy_frame_chain_valid): Delete call.
8372 * sh64-tdep.c (sh64_frame_chain): Delete call.
8373 * objfiles.h: Update comments.
8374 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8376 * frame.c (get_prev_frame): Delete call, update comments.
8378 2004-04-30 Brian Ford <ford@vss.fsi.com>
8380 * MAINTAINERS (Write After Approval): Add myself.
8382 2004-04-30 Andrew Cagney <cagney@redhat.com>
8384 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8385 * gdbarch.h, gdbarch.c: Re-generate.
8386 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8389 2004-04-30 Andrew Cagney <cagney@redhat.com>
8391 * gdb-events.sh (selected_thread_changed)
8392 (selected_frame_level_changed, target_changed): Delete.
8393 * gdb-events.h, gdb-events.c: Re-generate.
8394 * valops.c (value_assign): Update.
8395 * stack.c (select_frame_command, up_silently_base)
8396 (down_silently_base): Update.
8398 2004-04-29 Andrew Cagney <cagney@redhat.com>
8400 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8401 registers correctly.
8402 (print_gp_register_row, mips32_heuristic_proc_desc)
8403 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8404 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8405 references to mips_isa_regsize.
8407 2004-04-29 Andrew Cagney <cagney@redhat.com>
8409 * mips-tdep.c (struct gdbarch_tdep): Delete
8410 mips_fp_register_double.
8411 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8413 (mips_gdbarch_init): Do not set mips_fp_register_double.
8414 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8416 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8418 Committed by Andrew Cagney.
8419 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8422 2004-04-29 Andrew Cagney <cagney@redhat.com>
8424 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8425 gdbarch, use mips_abi, update callers.
8426 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8427 mips_abi_regsize, update callers.
8428 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8429 mips_default_abi_regsize.
8430 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8431 mips_default_abi_regsize.
8433 2004-04-29 Andrew Cagney <cagney@redhat.com>
8435 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8436 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8437 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8438 mips_default_abi_regsize.
8439 (mips_isa_regsize): Rename mips_regisze.
8440 * mipsnbsd-tdep.c: Update.
8441 * mips-linux-tdep.c: Update.
8442 * irix5-nat.c: Update.
8443 * mips-tdep.h (mips_isa_regsize): Update.
8445 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8446 Delete all disabled code.
8447 * gdb-events.h, gdb-events.c: Re-generate.
8449 2004-04-19 Jerome Guitton <guitton@gnat.com>
8450 Mark Kettenis <kettenis@gnu.org>
8452 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8453 the function begins with a branch instruction.
8455 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8457 * i386-tdep.c: Fix spelling mistakes.
8459 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8460 Andrew Cagney <cagney@redhat.com>
8462 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8464 * acconfig.h: Provide default _KMEMUSER value.
8465 * config.in, configure: Re-generate.
8466 * NEWS: Mention fix.
8468 2004-04-24 Randolph Chung <tausq@debian.org>
8470 * configure.host (hppa*-*-linux*): New target.
8471 * configure.tgt (hppa*-*-linux*): Likewise.
8472 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8473 gdbarch_init_osabi() call earlier so that osabi-specific frame
8474 unwinders can be registered first.
8475 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8477 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8478 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8479 * config/pa/linux.mh: New file.
8480 * config/pa/linux.mt: New file.
8481 * config/pa/nm-linux.h: New file.
8482 * config/pa/xm-linux.h: New file.
8483 * hppa-linux-nat.c: New file.
8484 * hppa-linux-tdep.c: New file.
8486 2004-04-28 Randolph Chung <tausq@debian.org>
8488 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8490 (hppa32_push_dummy_call): Fix small struct and floating point argument
8491 passing, and make sure the stack frame is properly aligned.
8493 2004-04-28 Andrew Cagney <cagney@redhat.com>
8495 * stack.c (print_stack_frame): Fix description.
8497 * NEWS: Mention gdb/gdbserver/configure execute permission
8498 changed. PR server/519.
8500 2004-04-28 Andrew Cagney <cagney@redhat.com>
8502 * stack.c (print_stack_frame_stub): Delete declaration.
8503 (struct print_stack_frame_args, print_stack_frame)
8504 (print_frame_info, print_frame): Replace "source" with print what.
8505 Replace "print" with "print_level". Replace "args" with
8507 * frame.h (show_and_print_stack_frame, print_stack_frame)
8508 (print_frame_info): Update declarations.
8509 * stack.c (select_and_print_frame, frame_command)
8510 (current_frame_command, up_command, down_command): Update calls -
8511 use get_selected_frame, pass "enum print_what" for source, do not
8512 call frame_relative_level.
8513 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8514 * remote-rdp.c (remote_rdp_open): Ditto.
8515 * remote-mips.c (common_open): Ditto.
8516 * remote-e7000.c (e7000_start_remote): Ditto.
8517 * ocd.c (ocd_start_remote): Ditto.
8518 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8519 * infrun.c (normal_stop): Ditto.
8520 * inflow.c (kill_command): Ditto.
8521 * infcmd.c (finish_command): Ditto.
8522 * corelow.c (core_open): Ditto.
8523 * tracepoint.c (finish_tfind_command): Ditto.
8524 * thread.c (info_threads_command, info_threads_command)
8525 (restore_current_thread, do_captured_thread_select): Ditto.
8526 * ada-tasks.c (task_command): Ditto.
8528 2004-04-26 Orjan Friberg <orjanf@axis.com>
8530 * frame.c: Include "observer.h".
8531 (frame_observer_target_changed): New function.
8532 (_initialize_frame): Attach target_changed observer.
8533 * regcache.c: Include "observer.h".
8534 (regcache_observer_target_changed): New function.
8535 (_initialize_regcache): Attach target_changed observer.
8536 * valops.c: Include "observer.h".
8537 (value_assign): Notify target_changed event when modifying register.
8538 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8540 2004-04-26 Orjan Friberg <orjanf@axis.com>
8542 From Paul Koning <pkoning@equallogic.com>:
8543 * breakpoint.c (free_valchain): New function.
8544 (insert_bp_location, delete_breakpoint): Use free_valchain.
8545 (remove_breakpoint): Do not remove the valchain.
8546 (bpstat_stop_status): If not stopped by watchpoint, skip
8547 watchpoints when generating stop status list.
8548 * infrun.c (handle_inferior_event): Make
8549 stepped_after_stopped_by_watchpoint a global variable.
8550 * remote.c (remote_stopped_data_address): Return watch data
8551 address rather than zero if stepped_after_stopped_by_watchpoint is
8554 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8557 * configure.in: Check for curses after termcap.
8558 On osf5.*, do not check for ncurses.
8559 * configure: Regenerate.
8561 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8563 * ppcobsd-nat.c: Include "ppc-tdep.h".
8564 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8566 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8567 Fixes PR tdep/1623 and PR tdep/1624.
8569 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8571 * xmodem.h, xmodem.c: Remove files.
8572 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8574 2004-04-23 Randolph Chung <tausq@debian.org>
8576 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8577 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8578 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8579 for handling stackless frames.
8580 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8582 2004-04-23 Randolph Chung <tausq@debian.org>
8584 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8585 starts at a pc before the frame is created.
8587 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8589 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8591 2004-04-23 Jerome Guitton <guitton@gnat.com>
8593 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8594 use convert_typed_floating to get the appropriate format.
8596 2004-04-22 Randolph Chung <tausq@debian.org>
8598 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8599 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8600 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8601 (hppa_sign_extend): Add prototype.
8602 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8603 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8604 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8605 hppa targets will also use these functions.
8606 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8607 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8608 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8609 (hppa_gdbarch_init): Remove gdbarch setting of
8610 skip_trampoline_code, in_solib_call_trampoline and
8611 in_solib_return_trampoline.
8612 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8613 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8614 hppa_in_solib_call_trampoline.
8615 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8616 Moved from hppa-tdep.c.
8617 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8618 in_solib_call_trampoline and in_solib_return_trampoline.
8620 2004-04-22 Randolph Chung <tausq@debian.org>
8622 * hppa-tdep.c (hppa_debug): New variable.
8623 (find_unwind_entry, hppa_frame_cache): Add debug output.
8624 (_initialize_hppa_tdep): Add command to set debug flag.
8626 2004-04-22 Andrew Cagney <cagney@redhat.com>
8628 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8630 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8631 signal trampoline unwinder.
8632 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8634 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8636 Add OpenBSD/powerpc support.
8637 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8638 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8639 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8640 (ppc_collect_fpregset): New prototypes.
8641 * ppcobsd-nat.c: New file.
8642 * ppcobsd-tdep.c: New file.
8643 * ppcobsd-tdep.h: New file.
8644 * rs6000-tdep.c: Include "regset.h".
8645 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8646 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8648 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8649 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8650 (rs6000-tdep.o): Update dependencies.
8651 * configure.host: Add powerpc-*-openbsd.
8652 * configure.tgt: Add powerpc-*-openbsd.
8653 * config/powerpc/obsd.mh: New file.
8654 * config/powerpc/nm-obsd.h: New file.
8655 * config/powerpc/obsd.mt: New file.
8657 2004-04-22 Andrew Cagney <cagney@redhat.com>
8659 * frame.h (show_frame_info): Delete declaration.
8661 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8662 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8663 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8664 * frv-tdep.c (frv_frame_this_id): Ditto.
8665 * avr-tdep.c (avr_frame_this_id): Ditto.
8667 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8669 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8671 2004-04-22 Jim Blandy <jimb@redhat.com>
8673 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8674 register number zero.
8676 2004-04-21 Michael Snyder <msnyder@redhat.com>
8678 * mips-tdep.c (heuristic_proc_start):
8679 Warning() already prefixes "Warning: ".
8681 2004-04-21 Andrew Cagney <cagney@redhat.com>
8683 * annotate.h (deprecated_annotate_starting_hook)
8684 (deprecated_annotate_stopped_hook)
8685 (deprecated_annotate_exited_hook)
8686 (deprecated_annotate_signal_hook)
8687 (deprecated_annotate_signalled_hook): Deprecate.
8688 * tracepoint.h (deprecated_create_tracepoint_hook)
8689 (deprecated_delete_tracepoint_hook)
8690 (deprecated_modify_tracepoint_hook)
8691 (deprecated_trace_find_hook)
8692 (deprecated_trace_start_stop_hook): Deprecate.
8693 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8694 * remote.h (deprecated_target_resume_hook)
8695 (deprecated_target_wait_loop_hook): Deprecate.
8696 * gdbcore.h (deprecated_exec_file_display_hook)
8697 (deprecated_file_changed_hook): Deprecate.
8698 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8699 * defs.h (deprecated_modify_breakpoint_hook)
8700 (deprecated_command_loop_hook, deprecated_show_load_progress)
8701 (deprecated_print_frame_info_listing_hook)
8702 (deprecated_query_hook, deprecated_warning_hook)
8703 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8704 (deprecated_delete_breakpoint_hook)
8705 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8706 (deprecated_readline_begin_hook, deprecated_readline_hook)
8707 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8708 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8709 (deprecated_context_hook, deprecated_target_wait_hook)
8710 (deprecated_attach_hook, deprecated_detach_hook)
8711 (deprecated_call_command_hook, deprecated_set_hook)
8712 (deprecated_error_hook, deprecated_error_begin_hook)
8713 (deprecated_ui_load_progress_hook): Deprecate.
8714 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8715 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8716 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8717 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8718 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8719 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8720 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8721 * annotate.c, aix-thread.c: Update.
8723 2004-04-21 Andrew Cagney <cagney@redhat.com>
8725 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8726 * vaxnbsd-tdep.c: Include "gdb_string.h".
8728 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8729 (add_symbol_file_from_memory_command): #if 0 function body, call
8732 2004-04-21 Andrew Cagney <cagney@redhat.com>
8734 * gdbcore.h: Update copyright.
8735 (deprecated_add_core_fns): Rename add_core_fns.
8736 * win32-nat.c (_initialize_core_win32): Update.
8737 * sun3-nat.c (_initialize_core_sun3): Update.
8738 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8739 * rs6000-nat.c (_initialize_core_rs6000): Update.
8740 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8741 * nto-tdep.c (_initialize_nto_tdep): Update.
8742 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8743 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8744 * mips-nat.c (_initialize_core_mips): Update.
8745 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8746 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8747 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8748 * lynx-nat.c (_initialize_core_lynx): Update.
8749 * irix5-nat.c (_initialize_core_irix5): Update.
8750 * i386-interix-nat.c (_initialize_core_interix): Update.
8751 * cris-tdep.c (_initialize_cris_tdep): Update.
8752 * corelow.c (deprecated_add_core_fns): Update.
8753 * core-regset.c (_initialize_core_regset): Update.
8754 * core-aout.c (_initialize_core_aout): Update.
8755 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8756 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8757 * alpha-nat.c (_initialize_core_alpha): Update.
8759 2004-04-21 Jim Blandy <jimb@redhat.com>
8761 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8763 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8765 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8767 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8768 (read_attribute_value): Update calls to dwarf_alloc_block.
8769 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8771 (psymtab_to_symtab_1): Likewise. Clean up using
8772 free_stack_comp_unit.
8773 (add_to_cu_func_list): Use the comp_unit_obstack.
8775 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8777 * dwarf2read.c (dwarf2_flag_true_p): New function.
8778 (die_is_declaration): Use the function above. Add some comments.
8780 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8782 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8783 architecture when registering sparcnbsd_core_osabi_sniffer.
8786 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8788 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8791 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8792 * i386-tdep.c: Correct register numbering scheme comments
8794 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8795 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8796 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8797 (i386_gdb_arch_init): Likewise.
8799 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8800 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8803 * m68k-tdep.h: Tweak comments.
8804 * m68k-tdep.c: Tweak comment.
8806 2004-04-17 Randolph Chung <tausq@debian.org>
8808 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8809 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8810 (hppa_hpux_som_init_abi): Set is_elf to 0.
8811 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8812 * hppa-tdep.c (low_text_segment_address): Remove global.
8813 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8814 section offset to calculate segment address.
8815 (internalize_unwinds): Define low_text_segment_address as local and
8816 pass to record_text_segment_lowaddr for ELF targets.
8817 (hppa_gdbarch_init): Zero fill tdep structure.
8818 (hppa_dump_tdep): Print tdep structure.
8819 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8821 2004-04-17 Randolph Chung <tausq@debian.org>
8823 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8824 (hppa_gdbarch_init): Set pseudo_register_read.
8825 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8826 * regcache.c (supply_register): Remove check for
8827 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8829 2004-04-17 Randolph Chung <tausq@debian.org>
8831 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8832 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8833 (hpread_adjust_stack_address): Move to hpread.c.
8834 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8835 obj_private_struct): Move from tm-hppa.h.
8836 * hpread.c (hppa-tdep.h): Include.
8837 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8838 (hpread_read_function_type, hpread_read_doc_function_type)
8839 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8841 * pa64solib.c (hppa-tdep.h): Include.
8842 * somsolib.c (hppa-tdep.h): Include.
8843 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8844 inferior_status): Remove unused forward declarations.
8845 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8846 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8847 obj_private_struct): Move to hppa-tdep.h.
8848 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8850 2004-04-17 Randolph Chung <tausq@debian.org>
8852 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8853 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8854 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8855 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8856 Remove forward declaration and make static.
8857 (hppa_reg_struct_has_addr): Remove.
8859 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8861 * observer.sh: Move comments in sed command to first column.
8863 2004-04-16 Jason Molenda (jmolenda@apple.com)
8865 * frame.c: Minor typeo corrections in comments.
8867 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8869 * observer.c (observer_test_first_notification_function): Update
8871 (observer_test_second_notification_function): Likewise.
8872 (observer_test_third_notification_function): Likewise.
8874 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8876 From Brian Ford <ford@vss.fsi.com>:
8877 * i386-tdep.c (i386_coff_init_abi): New function.
8878 * i386-tdep.h (i386_coff_init_abi): New prototype.
8879 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8880 register number translation functions for DWARF and DWARF 2.
8882 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8884 * dwarf2read.c: Back out my previous change, it was incorrect.
8886 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8888 * dwarf2read.c: Include "hashtab.h".
8889 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8891 (struct partial_die_info): Add comments. Use bitfields to reduce
8892 memory footprint. Add scope, scope_set, has_specification,
8893 spec_offset, die_parent, die_child, and die_sibling.
8894 (peek_die_abbrev): Add prototype.
8895 (partial_read_comp_unit_head): New function, broken out from
8896 dwarf2_build_psymtabs_hard.
8897 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8898 Use partial_read_comp_unit_head. Initialize the CU and
8899 comp_unit_obstack. Update calls to read_partial_die and
8900 scan_partial_symbols. Use free_stack_comp_unit and
8902 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8903 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8904 Update calls to helper functions. Remove NAMESPACE argument.
8906 (partial_die_parent_scope, partial_die_full_name): New functions.
8907 (add_partial_symbol): Remove namespace argument. Update call to
8908 pdi_needs_namespace. Use partial_die_full_name. Handle
8909 DW_TAG_namespace. Check has_namespace_info flag.
8910 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8911 tag. Handle namespaces.
8912 (add_partial_namespace, add_partial_enumeration): Simplify.
8913 (guess_structure_name): New function, derived from
8914 add_partial_structure.
8915 (add_partial_structure): Remove.
8916 (determine_class_name): Update comment.
8917 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8918 (is_type_tag_for_partial, load_partial_dies): New functions.
8919 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8920 Record specifications instead of following them immediately.
8921 (find_partial_die_in_comp_unit, find_partial_die)
8922 (fixup_partial_die, free_stack_comp_unit)
8923 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8924 (partial_die_hash, partial_die_eq): New functions.
8925 * Makefile.in (hashtab_h): Define.
8926 (dwarf2read.o): Update dependencies.
8927 (observer_inc, observer_h): Move to the correct section.
8929 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8931 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8932 (die_is_declaration): Use the function above. Add comment.
8934 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8936 * dwarf2read.c (read_structure_scope): Identify stub types
8937 using die_is_declaration() only.
8939 2004-04-15 Roland McGrath <roland@redhat.com>
8941 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8942 argument instead of NAME.
8943 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8944 in call to symbol_file_add_with_addrs_or_offsets.
8945 (build_addr_info): New function, helper for ...
8946 (symbol_file_add_from_memory): New function.
8947 (add_symbol_file_from_memory_command): New function using that.
8948 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8949 (pre_add_symbol_hook): Add const to argument type.
8950 * symfile.h (symbol_file_add_from_memory): Declare it.
8952 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8954 * NEWS (New native configurations): Mention OpenBSD/vax.
8955 * configure.host: Add vax-*-openbsd*.
8956 * config/vax/obsd.mh: New file.
8957 * config/vax/nm-obsd.h: New file.
8959 * vax-tdep.c: Include "regset.h".
8960 (vax_supply_gregset): New function.
8961 (vax_gregset): New variable.
8962 (vax_regset_from_core_section): New function.
8963 (vax_gdbarch_init): Set regset_from_core_section.
8964 * Makefile.in (vax-tdep.o): Update dependencies.
8966 2004-04-15 Andrew Cagney <cagney@redhat.com>
8968 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8969 (observer_normal_stop_notification_stub)
8970 (observer_attach_normal_stop, observer_detach_normal_stop):
8971 Delete, replaced by #include "observer.inc".
8972 * infrun.c (normal_stop): Pass "stop_bpstat" to
8973 observer_notify_normal_stop.
8974 * Makefile.in (observer_inc): Define.
8975 (observer.o): Update dependencies.
8976 (observer.h, observer.inc): New rules.
8977 * observer.h: Delete file.
8978 * observer.sh: New file.
8980 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8982 * vax-tdep.c (vax_frame_cache): Fix typo.
8984 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8986 * NEWS (New native configurations): Mention NetBSD/vax.
8987 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8988 * config/vax/nbsdelf.mh: New file.
8989 * config/vax/nbsdaout.mh: New file.
8990 * config/vax/nm-nbsd.h: New file.
8991 * config/vax/nm-nbsdaout.h: New file.
8993 * vaxnbsd-tdep.c: New file.
8994 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8995 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8996 * config/vax/nbsd.mt: New file.
8997 * config/vax/tm-nbsd.h: New file.
8999 * Makefile.in (vaxbsd-nat.o): New dependency.
9001 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9002 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9003 struct_addr arguments. Don't push return value address.
9004 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9005 arguments to vax_store_arguments. Store return value address in
9007 (vax_store_struct_return, vax_extract_return_value)
9008 (vax_store_return_value): Remove functions.
9009 (vax_return_value): New function.
9010 (vax_gdbarch_init): Set return value. Don't set
9011 deprecated_store_struct_return, deprecated_extract_struct_return
9012 and deprecated_store_return_value.
9014 2004-04-14 Andreas Schwab <schwab@suse.de>
9016 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9018 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9020 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9022 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9023 (vax_unwind_dummy_id): New functions.
9024 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9025 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9027 (vax_fix_call_dummy): Remove function.
9028 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9029 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9030 call_dummy_location, deprecated_call_dummy_words,
9031 deprecated_sizeof_call_dummy_words,
9032 deprecated_call_dummy_breakpoint_offset,
9033 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9034 and deprecated_dummy_write_sp.
9036 2004-04-13 David Carlton <carlton@kealia.com>
9038 * MAINTAINERS: Move myself to "paper trail" section.
9040 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9042 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9044 (vax_frame_init_saved_regs): Remove function.
9045 (vax_sigtramp_saved_pc): Remove function.
9046 (vax_frame_saved_pc): Remove function.
9047 (vax_frame_args_address): Remove function.
9048 (vax_frame_num_args): Rewrite.
9049 (vax_frame_chain): Remove function.
9050 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9052 (vax_pop_frame): Likewise.
9053 (vax_saved_pc_after_call): Remove function.
9054 (struct vax_frame_cache): New structure.
9055 (vax_frame_cache): New function.
9056 (vax_frame_this_id): New function.
9057 (vax_frame_prev_register): New function.
9058 (vax_frame_unwind): New variable.
9059 (vax_frame_sniffer): New function.
9060 (vax_frame_base_address): New function.
9061 (vax_frame_args_address): New function.
9062 (vax_frame_base): New variable.
9063 (vax_unwind_pc): New function.
9064 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9065 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9066 deprecated_frame_chain, deprecated_frame_saved_pc,
9067 deprecated_frame_args_address and
9068 deprecated_frame_init_saved_regs.
9069 * Makefile.in (vax-tdep.o): Update dependencies.
9071 * vaxbsd-nat.c: New file.
9073 * vax-tdep.h: Update copyright year. Adjust comments.
9074 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9075 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9076 (vax_regnum): New enum. Replacing...
9077 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9078 (VAX_PS_REGNUM): ... these removed macros.
9079 * vax-tdep.c (vax_register_name): Remove prototype.
9080 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9081 (vax_register_byte, vax_register_raw_size,
9082 vax_register_virtual_size, vax_register_virtual_type): Remove
9084 (vax_register_type): New function.
9085 (vax_breakpoint_from_pc): Reorganize.
9086 (vax_gdbarch_init): Set register_type. Don't set
9087 deprecated_register_size, deprecated_register_bytes,
9088 deprecated_register_byte, deprecated_register_raw_size,
9089 deprecated_max_register_raw_size,
9090 deprecated_register_virtual_size,
9091 deprecated_max_register_virtual_size and
9092 deprecated_register_virtual_type. Add comment on stack direction.
9094 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9096 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9097 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9098 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9100 2004-04-10 Randolph Chung <tausq@debian.org>
9102 * MAINTAINERS (write after approval): Add myself.
9104 2004-04-07 Randolph Chung <tausq@debian.org>
9106 * hppa-tdep.c (hppa_inner_than): Remove.
9107 (is_pa_2): Remove unused static variable.
9108 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9110 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9112 * language.h (language_defn): Add new la_post_parser field.
9113 * parser-defs.h (null_post_parser): New declaration (default for
9116 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9117 insert call to that function.
9118 (parse_exp_in_context): New function, including code formerly in
9119 parse_exp_1. Calls language-dependent post-parser after
9121 (parse_expression_in_context): New exported function.
9122 (null_post_parser): New definition.
9123 * expression.h (parse_expression_in_context): Add declaration.
9125 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9126 * c-lang.c (c_language_defn): Ditto.
9127 (cplus_language_defn): Ditto.
9128 (asm_language_defn): Ditto.
9129 (minimal_language_defn): Ditto.
9130 * f-lang.c (f_language_defn): Ditto.
9131 * jv-lang.c (java_language_defn): Ditto.
9132 * language.c (unknown_language_defn): Ditto.
9133 (auto_language_defn): Ditto.
9134 (local_language_defn): Ditto.
9135 * m2-lang.c (m2_language_defn): Ditto.
9136 * scm-lang.c (scm_language_defn): Ditto.
9137 * obj-lang.c (objc_language_defn): Ditto.
9139 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9141 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9142 (amd64nbsd_mcontext_addr): New function.
9143 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9144 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9145 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9147 * corelow.c (core_xfer_partial): Fix coding standards violation.
9148 Add support for TARGET_OBJECT_WCOOKIE.
9150 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9151 deprecated_pc_in_sigtramp.
9152 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9153 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9154 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9155 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9156 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9157 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9158 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9160 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9161 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9164 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9165 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9166 (amd64_collect_fxsave): Likewise.
9168 * i386-sol2-tdep.c: Include "gdb_string.h".
9169 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9171 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9173 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9175 * i386-sol2-tdep.c: Include "solib-svr4.h".
9176 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9177 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9178 * config/i386/tm-i386sol2.h: Include :solib.h".
9179 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9180 solib-svr4.o and solib-legacy.o.
9181 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9184 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9186 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9187 whether a register is supplied by PTRACE_GETFPREGS.
9188 (store_inferior_registers): Likewise.
9189 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9190 whether a register is supplied by PT_GETFPREGS.
9191 (store_inferior_registers): Likewise.
9193 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9194 * config/i386/linux64.mt (TDEPFILES): Likewise.
9196 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9198 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9199 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9200 the program counter is in the range specified by `struct
9202 * amd64-linux-tdep.c: Include "symtab.h".
9203 (amd64_linux_pc_in_sigtramp): Remove function.
9204 (amd64_linux_sigtramp_p): New function.
9205 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9206 deprecated_pc_in_sigtramp.
9207 * amd64nbsd-tdep.c: Include "symtab.h".
9208 (amd64nbsd_sigtramp_p): New function.
9209 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9210 deprecated_pc_in_sigtramp.
9211 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9213 (amd64obsd_pc_in_sigtramp): Remove function.
9214 (amd64obsd_sigtramp_p): New function.
9215 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9216 deprecated_pc_in_sigtramp.
9217 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9218 (i386bsd_pc_ins_sigtramp): Remove prototype.
9219 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9220 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9221 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9222 the program counter is in the range specified by `struct
9224 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9225 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9226 (i386_go32_pc_in_sigtramp): Remove function.
9227 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9228 Initialize TDEP->sigtramp_p.
9229 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9230 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9231 deprecated_pc_in_sigtramp.
9232 * i386-linux-tdep.c: Adjust comments.
9233 (i386_linux_pc_in_sigtramp): Remove function.
9234 (i386_linux_sigtramp_p): New function.
9235 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9236 deprecated_pc_in_sigtramp.
9237 * i386-nto-tdep.c: Update copyright year.
9238 (i386nto_pc_in_sigtramp): Remove function.
9239 (i386nto_sigtramp_p): New function.
9240 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9242 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9243 deprecated_pc_in_sigtramp.
9244 * i386-sol2-tdep.c: Update copyright year.
9245 (i386_sol2_pc_in_sigtramp): Remove function.
9246 (i386_sol2_sigtramp_p): New function.
9247 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9248 deprecated_pc_in_sigtramp.
9249 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9250 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9251 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9252 deprecated_sigtramp_start and deprecated_sigtramp_end.
9253 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9254 (i386nbsd_pc_in_sigtramp): Remove function.
9255 (i386nbsd_sigtramp_p): New function.
9256 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9257 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9258 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9259 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9260 (i386obsd_pc_in_sigtramp): Remove function.
9261 (i386obsd_sigtramp_p): New function.
9262 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9264 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9265 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9267 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9268 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9271 * config/i386/i386aout.mt: Remove file.
9273 * configure.tgt: Remove i[34567]86-*-go32*,
9274 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9275 and i[34567]86-*-isc*. Set gdb_target to i386 for
9276 i[34567]86-*-netware* and i[34567]86-*-*.
9277 * config/i386/i386.mt: New file.
9278 * config/i386/embed.mt: Remove file.
9279 * config/i386/go32.mt: Remove file.
9280 * config/i386/i386nw.mt: Remove file.
9281 * config/i386/i386v.mt: Remove file.
9282 * config/i386/tm-go32.h: Remove file.
9284 * tui/tui-hooks.c: Include "readline/readline.h" after
9285 "gdb_curses.h" instead of before.
9286 * tui/tui-io.c: Likewise.
9288 * tui/tui.c: Fix typo in comment.
9290 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9292 2004-04-08 Andrew Cagney <cagney@redhat.com>
9294 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9295 (deprecated_exception_support_initialized): Declare.
9296 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9297 (initialize_hp_cxx_exception_support)
9298 (child_enable_exception_callback): Update.
9299 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9300 (deprecated_exception_support_initialized): Rename
9301 deprecated_exception_catchpoints_are_fragile and
9302 deprecated_exception_support_initialized.
9303 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9305 * symtab.c (deprecated_hp_som_som_object_present): Rename
9306 hp_som_som_object_present.
9307 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9308 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9309 Update. Delete extern declaration.
9310 * valops.c (hp_som_som_object_present): Ditto.
9311 * parse.c (deprecated_hp_som_som_object_present)
9312 (parse_nested_classes_for_hpacc): Ditto.
9313 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9314 * hppa-hpux-tdep.c (hp_som_som_object_present)
9315 (initialize_hp_cxx_exception_support): Ditto.
9316 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9317 * cp-valprint.c (hp_som_som_object_present)
9318 (cp_print_class_method): Ditto.
9319 * c-typeprint.c (hp_som_som_object_present):
9320 (c_type_print_base): Ditto.
9321 * c-exp.y (hp_som_som_object_present): Ditto.
9323 2004-04-08 Andrew Cagney <cagney@redhat.com>
9325 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9326 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9327 (frame_unwind_find_by_frame): Re-implement the unwind code so
9328 that it can both prepend and append sniffers. Replace
9329 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9330 * tramp-frame.c (tramp_frame_append): Use
9331 frame_unwind_prepend_unwinder.
9332 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9333 frame_unwind_register_unwinder.
9334 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9336 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9337 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9338 (mips_linux_init_abi): Update.
9340 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9342 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9343 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9346 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9348 * ia64-tdep.c (elf.h): Don't include.
9349 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9351 2004-04-07 Jason Molenda (jmolenda@apple.com)
9353 * frame.h: Typeo corrections in comments.
9355 2004-04-07 Jim Blandy <jimb@redhat.com>
9357 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9360 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9362 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9363 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9364 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9365 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9367 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9369 * config/sparc/tm-sol2.h: Update copyright year. Include
9372 * sparc-sol2-tdep.c: Update copyright year. Include
9374 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9375 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9376 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9377 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9380 2004-04-06 Andrew Cagney <cagney@redhat.com>
9382 * infttrace.c: Include "infttrace.h".
9383 * infttrace.h: Include "target.h".
9384 * Makefile.in (infttrace_h): Update.
9385 (infttrace.o): Update.
9387 2004-04-06 Andrew Cagney <cagney@redhat.com>
9389 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9390 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9391 move extern declarations from here ...
9392 * infttrace.h: ... to here.
9393 * Makefile.in (hppah-nat.o): Update dependencies.
9395 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9396 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9397 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9398 (hppa_breakpoint_from_pc): Delete.
9400 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9402 2004-04-05 Andrew Cagney <cagney@redhat.com>
9404 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9405 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9408 2004-04-06 Randolph Chung <tausq@debian.org>
9410 Committed by Andrew Cagney (mechanical change).
9411 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9412 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9413 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9414 child_enable_exception_callback, current_ex_event,
9415 null_symtab_and_line, child_get_current_exception_event,
9416 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9417 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9418 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9419 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9420 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9421 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9422 Move hpux-specific definitions ...
9423 * hppa-hpux-tdep.c: ... to here.
9425 2004-04-05 Andrew Cagney <cagney@redhat.com>
9427 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9428 skip_prologue_using_sal.
9430 2004-04-05 Andrew Cagney <cagney@redhat.com>
9432 * config/i386/tm-i386.h: Delete file.
9433 * config/i386/tm-vxworks.h: Update copyright, do not include
9435 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9436 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9437 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9438 * config/i386/ncr3000.mt (TM_FILE): Delete.
9439 * config/i386/interix.mt (TM_FILE): Delete.
9440 * config/i386/i386v.mt (TM_FILE): Delete.
9441 * config/i386/i386nw.mt (TM_FILE): Delete.
9442 * config/i386/i386gnu.mt (TM_FILE): Delete.
9443 * config/i386/i386aout.mt (TM_FILE): Delete.
9444 * config/i386/embed.mt (TM_FILE): Delete.
9446 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9448 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9449 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9450 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9451 (accg7_regnum): New constants.
9452 (last_spr_regnum, last_pseudo_regnum): Update.
9453 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9454 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9455 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9457 (frv_register_sim_regno): Update spr_map[].
9459 2004-04-04 Andrew Cagney <cagney@redhat.com>
9461 * config/mips/xm-riscos.h: Delete.
9462 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9463 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9464 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9465 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9466 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9467 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9468 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9469 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9470 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9471 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9472 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9473 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9474 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9475 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9476 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9477 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9478 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9479 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9480 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9481 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9482 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9483 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9484 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9485 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9486 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9487 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9489 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9490 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9491 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9492 * configure.host: Remove m680[01]0-sun-sunos3*,
9493 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9494 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9495 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9496 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9498 * NEWS: Mention removed systems.
9500 2004-04-04 Andrew Cagney <cagney@redhat.com>
9502 GDB 6.1 release created from 6.1 branch.
9504 2004-04-04 Andrew Cagney <cagney@redhat.com>
9506 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9507 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9508 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9510 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9511 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9512 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9514 2004-04-03 Jim Blandy <jimb@redhat.com>
9516 * MAINTAINERS: Chris Faylor has changed employers; add him to
9517 "paper trail" section, and update his E-mail address.
9519 2004-04-03 Andrew Cagney <cagney@redhat.com>
9521 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9522 generic dummy frames.
9523 * dummy-frame.c: Update copyright.
9524 (dummy_frame_sniffer): Delete check for generic dummy frames.
9526 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9527 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9528 (REG_PARM_STACK_SPACE): Delete.
9529 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9530 Inline reference to REG_PARM_STACK_SPACE.
9532 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9533 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9534 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9535 (FRAME_BASE_BEFORE_SIGTRAMP)
9536 (hppa32_hpux_frame_base_before_sigtramp)
9537 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9538 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9539 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9540 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9541 (FRAME_BASE_BEFORE_SIGTRAMP)
9542 (hppa64_hpux_frame_base_before_sigtramp)
9543 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9545 2004-04-03 Andrew Cagney <cagney@redhat.com>
9547 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9549 2004-04-02 Andrew Cagney <cagney@redhat.com>
9551 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9552 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9553 * dummy-frame.h: Delete out-of-date comments.
9554 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9555 * gdbarch.h, gdbarch.c: Re-generate.
9557 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9559 Committed by Andrew Cagney <cagney@redhat.com>.
9560 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9561 into account an instruction saving a register if we have already
9562 seen an earlier instruction saving that same register.
9564 2004-04-02 Andrew Cagney <cagney@redhat.com>
9566 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9567 * gdbarch.h, gdbarch.c: Re-generate.
9568 * frame.c (legacy_get_prev_frame): Delete references to
9569 DEPRECATED_INIT_FRAME_PC_FIRST.
9571 * infrun.c (pc_in_sigtramp): Delete function.
9572 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9575 2004-04-02 Andrew Cagney <cagney@redhat.com>
9577 * infrun.c (handle_step_into_function): Delete code conditional on
9579 (handle_inferior_event, step_over_function): Ditto.
9581 2004-04-02 Andrew Cagney <cagney@redhat.com>
9583 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9584 "previous frame inner to this frame" test.
9586 2004-04-02 Andrew Cagney <cagney@redhat.com>
9588 * frame.c (safe_frame_unwind_memory): New function.
9589 * frame.h (safe_frame_unwind_memory): Declare. Update description
9591 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9592 "next_frame". Use safe_frame_unwind_memory.
9593 (tramp_frame_sniffer): Update call to tramp_frame_start.
9595 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9597 * dwarf2read.c (dwarf2_objfile_data_key): New.
9598 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9599 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9600 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9601 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9602 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9603 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9604 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9606 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9607 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9608 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9609 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9610 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9611 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9613 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9615 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9616 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9617 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9618 (read_partial_die, read_full_die, read_indirect_string)
9619 (dwarf_decode_line_header, dwarf_decode_macros)
9620 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9621 Update uses of removed variables.
9622 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9624 (_initialize_dwarf2_read): New function.
9625 * symfile.h (dwarf2_has_info): Update prototype.
9626 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9627 * elfread.c (elf_symfile_read): Likewise.
9629 2004-04-01 Jim Blandy <jimb@redhat.com>
9631 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9632 function for register numbers on all the rs6000-derived targets.
9633 (rs6000_gdbarch_init): Don't register a separate
9634 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9635 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9638 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9641 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9643 * valarith.c: Update copyright notice.
9644 (value_add): Handle range types.
9646 (value_equal): Ditto.
9647 (value_less): Ditto.
9649 (value_complement): Ditto.
9650 (value_binop): Simplify slightly by using is_integral_type and
9651 eliminiating unnecessary COERCE_ENUMs.
9653 2004-03-31 Andrew Cagney <cagney@redhat.com>
9655 * frame.h (frame_unwind_id): Declare.
9656 * frame.c (frame_unwind_id): New function.
9657 (get_prev_frame_1): New function.
9658 (frame_debug_got_null_frame): New function.
9659 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9660 code proper to prev_frame, update description.
9661 * infrun.c (step_over_function): Use frame_unwind_id.
9663 2004-04-31 J. Brobecker <brobecker@gnat.com>
9665 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9666 (hppa64_push_dummy_call): Likewise.
9668 2004-03-30 Jim Blandy <jimb@redhat.com>
9670 From Ulrich Weigand:
9671 * utils.c (query): Do not use a va_list variable multiple times.
9673 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9675 * Makefile.in (linux_nat_h): Update dependencies.
9676 * configure.in: Check for <gnu/libc-version.h>.
9677 * configure: Regenerate.
9678 * config.in: Regenerate.
9679 * linux-nat.h: Include "target.h". Add waitstatus field to
9681 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9682 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9684 (lin_lwp_handle_extended): New function. Handle clone events.
9685 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9687 (child_wait): Handle clone events.
9688 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9689 * linux-nat.c (linux_enable_event_reporting): Turn on
9690 PTRACE_O_TRACECLONE.
9691 (linux_handle_extended_wait): Handle clone events.
9692 * thread-db.c: Include <gnu/libc-version.h>.
9693 (struct private_thread_info): Add dying flag.
9694 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9696 (attach_thread): Update comments. Handle dying threads.
9697 (detach_thread): Set the dying flag.
9698 (check_event): Always call attach_thread.
9700 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9702 * mips-tdep.c (mips_pdr_data): New.
9703 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9704 (_initialize_mips_tdep): Initialize mips_pdr_data.
9706 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9708 * minsyms.c (install_minimal_symbols): Move dropping leading
9709 char from linkage name from here...
9710 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9711 test for "__gnu_compiled*" symbols.
9713 2004-03-28 Jim Blandy <jimb@redhat.com>
9715 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9716 registers to temp register r0 and byte stores as prologue
9719 2004-03-28 Andrew Cagney <cagney@redhat.com>
9721 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9724 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9726 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9727 and switch the layout to force a display of register window.
9729 2004-02-26 J. Brobecker <brobecker@gnat.com>
9731 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9732 of the INTEGER class.
9734 2004-03-26 Jim Blandy <jimb@redhat.com>
9736 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9737 bytes long on PPC GNU/Linux.
9739 2004-03-26 David Carlton <carlton@kealia.com>
9741 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9743 2004-03-25 Andrew Cagney <cagney@redhat.com>
9745 * PROBLEMS: Add general section titles, remove references to
9748 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9750 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9752 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9753 FP_REGISTER_VIRTUAL_SIZE.
9754 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9755 of DEPRECATED_REGISTER_RAW_SIZE.
9756 (arm_register_type): Add gdbarch argument.
9757 (arm_register_raw_size, arm_register_virtual_size): Delete.
9758 (arm_register_byte, arm_extract_return_value)
9759 (arm_store_return_value, arm_get_longjmp_target): Update references
9760 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9761 (arm_gdbarch_init): Likewise. Don't set
9762 deprecated_register_raw_size, deprecated_register_virtual_size,
9763 deprecated_max_register_raw_size,
9764 deprecated_max_register_virtual_size, or
9765 deprecated_max_register_virtual_type. Do set register_type.
9766 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9767 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9768 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9769 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9770 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9771 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9773 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9774 (remote_rdp_store_register): Likewise.
9776 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9778 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9779 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9780 to after osabi initialization.
9781 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9782 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9784 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9785 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9787 (mips_linux_init_abi): Append signal trampoline unwinders.
9789 2004-03-24 Andrew Cagney <cagney@redhat.com>
9791 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9792 * tramp-frame.c: Include "gdb_assert.h".
9793 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9795 (tramp_frame_append): Validate the tramp frame's instructions.
9796 * Makefile.in (tramp-frame.o): Update dependencies.
9798 2004-03-23 Andrew Cagney <cagney@redhat.com>
9800 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9802 2004-03-23 Andrew Cagney <cagney@redhat.com>
9804 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9805 Nasser as past testsuite/lib/ (and other) maintainers.
9807 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9809 * infcmd.c (attach_command): Reread symbols if we already have
9812 2004-03-23 Andrew Cagney <cagney@redhat.com>
9814 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9816 2004-03-23 Andrew Cagney <cagney@redhat.com>
9818 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9819 * gdbarch.h, gdbarch.c: Re-generate.
9820 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9821 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9822 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9823 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9824 (DEPRECATED_SIGTRAMP_START): Update.
9825 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9826 (DEPRECATED_SIGTRAMP_START): Update.
9827 * blockframe.c (find_pc_sect_partial_function): Update.
9828 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9830 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9832 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9835 2004-03-23 Andrew Cagney <cagney@redhat.com>
9837 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9838 predicate, deprecate.
9839 * gdbarch.h, gdbarch.c: Re-generate.
9840 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9841 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9842 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9843 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9844 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9845 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9846 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9847 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9848 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9849 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9850 * blockframe.c (find_pc_partial_function): Update.
9851 * breakpoint.c (bpstat_what): Update.
9852 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9853 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9854 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9855 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9856 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9857 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9858 * i386-nto-tdep.c (i386nto_init_abi): Update.
9859 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9860 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9861 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9862 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9863 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9864 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9865 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9866 * infrun.c (pc_in_sigtramp): Update.
9867 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9868 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9869 * mips-tdep.c (mips_gdbarch_init): Update.
9870 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9871 * ppc-linux-tdep.c: Update comment.
9872 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9873 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9874 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9875 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9876 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9877 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9878 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9879 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9880 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9881 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9883 2004-03-23 Andrew Cagney <cagney@redhat.com>
9885 * tramp-frame.h, tramp-frame.h: New files.
9886 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9887 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9889 * Makefile.in: Update all dependencies.
9891 2004-03-23 Andrew Cagney <cagney@redhat.com>
9893 * Makefile.in (trad_frame_h): Add $(frame_h).
9894 * trad-frame.h: Update copyright. Include "frame.h".
9895 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9896 (trad_frame_set_id, trad_frame_get_id): Declare.
9897 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9898 * trad-frame.c: Update copyright.
9899 (struct trad_frame_cache): Define.
9900 (trad_frame_cache_zalloc): New function.
9901 (trad_frame_set_id, trad_frame_get_id): New functions.
9902 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9904 2004-03-22 Andrew Cagney <cagney@redhat.com>
9906 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9907 s390_pltstub_unwind_cache.
9908 (s390_stub_frame_unwind_cache): Rename
9909 s390_pltstub_frame_unwind_cache.
9910 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9911 (s390_stub_frame_prev_register): Rename
9912 s390_pltstub_frame_prev_register.
9913 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9914 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9916 From Ulrich Weigand:
9917 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9918 pointer calls like PLT calls.
9920 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9922 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9923 PC rather than the partial function start address. Use the start
9924 address to sanity check the found PDR.
9926 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9928 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9929 linux_handle_extended_wait.
9931 2004-03-22 Andrew Cagney <cagney@redhat.com>
9933 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9936 * frame.h (generic_pop_current_frame): Delete declaration.
9937 (deprecate_pop_dummy_frame): Deprecate
9938 generic_pop_dummy_frame.
9939 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9940 (generic_pop_current_frame): Delete function.
9941 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9942 generic_pop_current_frame.
9943 * v850-tdep.c (v850_pop_frame): Update.
9944 * mcore-tdep.c (mcore_pop_frame): Update.
9945 * sh64-tdep.c (sh64_pop_frame): Update.
9946 * h8300-tdep.c (h8300_pop_frame): Update.
9948 2004-03-22 Andrew Cagney <cagney@redhat.com>
9950 * frame.h (deprecated_pc_in_call_dummy): Rename
9951 generic_pc_in_call_dummy.
9952 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9953 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9954 generic_pc_in_call_dummy.
9955 (pc_in_dummy_frame): Make static.
9956 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9957 * gdbarch.h, gdbarch.c: Re-generate.
9958 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9959 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9960 (legacy_get_prev_frame): Ditto.
9961 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9964 2004-03-21 Andrew Cagney <cagney@redhat.com>
9966 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9967 declaration and out-of-date comment.
9968 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9970 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9971 deprecated_pc_in_call_dummy.
9973 * infrun.c (handle_inferior_event): For non legacy frames, use the
9974 frame ID and frame type to identify a signal trampoline. Update
9977 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9979 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9980 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9982 2004-03-21 Andrew Cagney <cagney@redhat.com>
9984 * frame-unwind.h: Update copyright.
9985 (struct frame_data): Add opaque declaration.
9986 (frame_sniffer_ftype): Declare.
9987 (struct frame_unwind): Add "unwind_data" and "sniffer".
9988 (frame_unwind_register_unwinder): Declare.
9989 (frame_unwind_find_by_frame): Add parameter "this_cache".
9990 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9991 (legacy_get_prev_frame, legacy_get_prev_frame)
9992 (get_frame_type): Pass the prologue_cache to
9993 frame_unwind_find_by_frame.
9994 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9996 (frame_unwind_register_unwinder): New function.
9997 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9999 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10001 * bcache.c (print_percentage): Use floating point to avoid
10002 incorrect results when portion*100 overflows.
10004 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10006 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10007 (ppc_linux_init_extra_frame_info)
10008 (ppc_linux_frameless_function_invocation)
10009 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10010 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10011 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10012 (rs6000_frame_chain): Delete declarations.
10013 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10014 (ppc_linux_init_extra_frame_info)
10015 (ppc_linux_frameless_function_invocation)
10016 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10017 (ppc_linux_init_abi): Remove registration of above deleted functions.
10018 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10019 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10020 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10021 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10022 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10023 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10024 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10025 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10026 frame management for all OSABIs.
10028 2004-03-19 Andrew Cagney <cagney@redhat.com>
10030 Committed by Kevin Buettner <kevinb@redhat.com>.
10032 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10034 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10035 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10036 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10037 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10038 unwinders. #ifdef legacy frame code.
10039 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10041 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10042 (struct rs6000_frame_cache, rs6000_frame_cache)
10043 (rs6000_frame_this_id, rs6000_frame_prev_register)
10044 (rs6000_frame_sniffer, rs6000_frame_unwind)
10045 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10046 (rs6000_frame_base): Implement a traditional frame unwinder.
10047 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10050 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10052 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10053 breakpoint address for watchpoints or the catch eventpoints.
10054 Add new paramter ``bptype''. Adjust all callers.
10056 2004-03-19 Andrew Cagney <cagney@redhat.com>
10058 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10060 * PROBLEMS: Delete note that ARM does not use frame code, problem
10063 2004-03-18 Andrew Cagney <cagney@redhat.com>
10065 * stack.c (return_command): Delete code wrapped in #ifdef
10066 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10068 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10070 2004-03-18 Andrew Cagney <cagney@redhat.com>
10072 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10073 DEPRECATED_IN_SIGTRAMP.
10074 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10075 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10076 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10077 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10078 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10079 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10080 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10081 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10082 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10083 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10085 2004-03-18 Andrew Cagney <cagney@redhat.com>
10087 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10088 (struct frame_base_table_entry): Define.
10089 (struct frame_base_table): Re-implement as a linked list.
10090 (frame_base_init): Re-implement.
10091 (frame_base_table): Delete function.
10092 (append_predicate): Delete function.
10093 (frame_base_append_sniffer): Update.
10094 (frame_base_set_default): Update.
10095 (frame_base_find_by_frame): Update.
10096 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10097 * Makefile.in (frame-base.o): Update dependencies.
10099 2004-03-17 Andrew Cagney <cagney@redhat.com>
10101 * frame.c (legacy_get_prev_frame): Pass correct frame to
10102 frame_unwind_find_by_frame.
10104 2004-03-17 David Carlton <carlton@kealia.com>
10106 * NEWS: Mention C++ nested types and namespaces
10108 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10110 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10111 and "Regressions since gdb 5.3.". Add known regressions since
10114 2004-03-16 David Carlton <carlton@kealia.com>
10116 * dwarf2read.c (process_structure_scope): Process children even
10117 when we're a declaration.
10119 2004-03-16 Andrew Cagney <cagney@redhat.com>
10121 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10122 * blockframe.c (find_pc_partial_function)
10123 (find_pc_sect_partial_function): Merge into a single
10124 find_pc_partial_function.
10126 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10128 * i386bsd-nat.c: s/regno/regnum/g.
10129 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10131 (store_inferior_registers): Likewise.
10133 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10135 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10136 of i387_fill_fsave.
10137 (store_inferior_registers): Call i387_collect_fsave and
10138 i387_collect_fxsave instead of i387_fill_fsave and
10141 2004-03-15 Andrew Cagney <cagney@redhat.com>
10143 * Makefile.in (frame-unwind.o): Update dependencies.
10144 * frame-unwind.c: Include "gdb_obstack.h".
10145 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10147 (append_predicate): Delete function.
10148 (struct frame_unwind_table_entry): New structure.
10149 (struct frame_unwind_table): Replace "sniffer" with "head" and
10151 (frame_unwind_append_sniffer): Update.
10152 (frame_unwind_find_by_frame): Update.
10153 (_initialize_frame_unwind): Registe frame_unwind_init using
10154 gdbarch_data_register_pre_init.
10156 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10158 * i386bsd-nat.c: Update copyright year.
10159 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10160 define unconditionally.
10162 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10164 * i387-tdep.h (i387_collect_fsave): New prototype.
10165 * i387-tdep.c (i387_collect_fsave): New function containing most
10166 of the code from i387_fill_fsave.
10167 (i387_fill_fsave): Call i387_collect_fsave.
10169 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10171 * i386-linux-tdep.c: Update copyright year.
10172 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10173 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10174 svr4_ilp32_link_map_offsets instead of
10175 i386_linux_svr4_fetch_link_map_offsets.
10177 2004-03-15 David Carlton <carlton@kealia.com>
10179 Fix for PR c++/1553:
10180 * dwarf2read.c (read_structure_type): Determine type name by
10181 calling determine_class_name.
10182 (determine_class_name): New.
10183 (determine_prefix): Look at TYPE_TAG_NAME and call
10184 determine_class_name when appropriate.
10185 (determine_prefix_aux, class_name): Delete.
10186 (read_namespace): Set die->type.
10188 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10190 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10191 unused macro definition. The definition in target.h (or perhaps
10192 elsewhere) takes precedence.
10194 2004-03-15 Andrew Cagney <cagney@redhat.com>
10196 * ppc-tdep.h: Update copyright.
10197 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10198 function signatures to match "regsets.h".
10199 * ppc-linux-tdep.c: Include "regset.h".
10200 (ELF_GREGSET_SIZE): Delete.
10201 (right_supply_register): New function.
10202 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10203 using right_supply_register.
10204 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10206 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10207 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10208 (_initialize_ppc_linux_tdep): Do not register
10209 ppc_linux_regset_core_fns.
10210 (ppc_linux_regset_from_core_section): Replace
10211 fetch_core_registers.
10212 (ppc_linux_regset_core_fns): Delete.
10213 * ppc-linux-nat.c: (right_fill_reg): New function.
10214 (supply_gregset): Update call to ppc_linux_supply_gregset.
10215 (fill_gregset): Clear the register set, use right_fill_reg.
10216 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10217 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10219 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10222 2004-03-15 Andrew Cagney <cagney@redhat.com>
10224 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10225 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10226 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10227 and register_gdbarch_data.
10228 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10229 (struct gdbarch_data): Replace "init" by "pre_init" and
10231 * gdbarch.h, gdbarch.c: Re-generate.
10232 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10233 with"obstack", use OBSTACK_ZALLOC.
10234 (dwarf2_frame_ops): Delete.
10235 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10236 (dwarf2_frame_init_reg): Use gdbarch_data.
10237 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10238 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10239 (_initialize_svr4_solib): Update.
10240 * user-regs.c (_initialize_user_regs): Update.
10241 * reggroups.c (_initialize_reggroup): Update.
10242 * regcache.c (_initialize_regcache): Update.
10243 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10244 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10245 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10246 * frame-unwind.c (_initialize_frame_unwind): Update.
10247 * frame-base.c (_initialize_frame_base): Update.
10248 * user-regs.c (user_reg_add): Update.
10249 * reggroups.c (reggroup_add): Update.
10250 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10251 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10252 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10253 * frame-base.c (frame_base_table): Update.
10254 * remote.c (_initialize_remote): Update.
10255 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10257 2004-03-15 Andrew Cagney <cagney@redhat.com>
10259 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10261 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10263 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10264 * frv-linux-tdep.c: New file.
10265 * frv-tdep.c (struct gdbarch_tdep): Add new field
10266 ``sigcontext_reg_addr''.
10267 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10268 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10269 (frv_sigramp_frame_sniffer): New functions.
10270 (frv_sigtramp_frame_unwind): New static global.
10271 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10273 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10274 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10276 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10278 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10279 but not via a call to error(), when unable to read memory.
10281 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10283 * frv-tdep.c (frv_call_dummy_words): Delete.
10284 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10286 2004-03-15 Andrew Cagney <cagney@redhat.com>
10288 * infrun.c (handle_step_into_function, step_over_function): Only
10289 update and use STEP_FRAME_ID when the system is using legacy
10290 frames. Update comments.
10292 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10294 * amd64-linux-tdep.h: Remove file.
10295 * amd64-linux-tdep.c: Don't include "inferior.h" and
10296 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10297 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10298 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10299 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10300 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10302 (user_to_gdb_regmap): Remove variable.
10303 (amd64_linux_gregset_reg_offset): New variable.
10304 (amd64_core_fns): Remove variable.
10305 (fetch_core_registers): Remove function.
10306 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10308 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10309 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10310 * Makefile.in (amd64_linux_tdep_h): Remove.
10311 (amd64-linux-nat.o): Update dependencies.
10312 (amd64-linux-tdep.o): Update dependencies.
10314 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10315 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10317 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10319 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10320 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10322 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10324 * dwarf2read.c (read_structure_type): Rename from
10325 read_structure_scope. Don't create a symbol or call process_die.
10326 Return immediately if die->type is set. Call read_type_die before
10327 dwarf2_add_member_fn.
10328 (process_structure_scope): New function.
10329 (read_enumeration_type, process_enumeration_scope): New functions,
10330 broken out from read_enumeration. Don't create the enumeration
10331 type if it has already been created.
10332 (read_enumeration): Removed.
10333 (process_die): Call read_structure_type, process_structure_scope,
10334 read_enumeration_type, and process_enumeration_scope. Just call
10335 new_symbol for base and subrange types. Add a comment about other
10337 (read_type_die): Call read_enumeration_type.
10338 (add_partial_structure, new_symbol): Update comments.
10340 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10342 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10344 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10346 * tui/tui-win.h (tui_get_cmd_list): Declare.
10347 * tui/tui-win.c (tui_command): New function.
10348 (tui_get_cmd_list): New function.
10349 (_initialize_tui_win): Moved initialization of tui command in
10352 * tui/tui-data.c (init_content_element): Setup new data members.
10353 (init_win_info): Likewise.
10354 (free_content_elements): Free it.
10355 * tui/tui-data.h (struct tui_data_element): Store the register
10357 (struct tui_data_info): Keep the current register group.
10359 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10361 * tui/tui-regs.h (tui_show_registers): Update prototype.
10362 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10363 (tui_resize_all): No need to calculate anything for register window.
10364 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10365 (tui_set_register_element, tui_set_general_regs_content): Remove.
10366 (tui_set_special_regs_content): Remove.
10367 (tui_set_general_and_special_regs_content): Remove.
10368 (tui_set_float_regs_content): Remove.
10369 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10370 (tui_set_regs_content): Remove.
10371 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10372 (tui_v_show_registers_command_support): Remove.
10373 (tui_show_registers): Use a reggroup to specify the registers to show.
10374 (tui_show_register_group): New function.
10375 (tui_display_registers_from): Compute the layout of register window
10376 and refresh with new API; be sure to delete old register windows.
10377 (tui_check_register_values): Update to use tui_get_register and
10379 (tui_display_register): Just refresh the register window part.
10380 (tui_register_format): Format registers and save in tui_data_element.
10381 (tui_get_register): New to combine tui_reg_value_has_changed and
10382 tui_get_register_raw_value; fix to use the new gdb API.
10383 (tui_show_float_command): Renamed tui_reg_float_command.
10384 (tui_show_general_command): Renamed tui_reg_general_command.
10385 (tui_show_special_command): Renamed tui_reg_system_command.
10386 (_initialize_tui_regs): Remove unused commands.
10388 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10390 * NEWS (New native configurations): Mention OpenBSD/amd64.
10392 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10393 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10395 * config/i386/nm-fbsd64.h: Likewise.
10396 * config/i386/nm-obsd.h: Likewise.
10397 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10398 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10400 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10402 * frv-tdep.c (set_variant_scratch_registers): New function.
10403 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10406 From Richard Sandiford <rsandifo@redhat.com>:
10407 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10409 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10411 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10412 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10413 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10414 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10415 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10416 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10417 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10418 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10419 definitions from frv-tdep.c to frv-tdep.h.
10421 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10423 Add shared library support for FR-V FDPIC ABI:
10424 * Makefile.in (solib-frv.o): Add dependencies.
10425 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10427 (frv_push_dummy_call): Add support for FDPIC ABI.
10428 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10430 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10431 (frv_fdpic_find_canonical_descriptor): Declare.
10432 * solib-frv.c: New file.
10433 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10434 * config/frv/tm-frv.h (solib.h): Include.
10436 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10438 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10439 (frv-tdep.o): Update dependencies.
10440 * frv-tdep.h: New file.
10441 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10442 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10444 (struct gdbarch_tdep): Add new member ``frv_abi''.
10445 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10447 (new_variant): Set ``frv_abi'' field.
10448 (gdb_arch_init): Detect FDPIC executables.
10450 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10452 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10455 2004-03-11 Andrew Cagney <cagney@redhat.com>
10457 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10459 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10461 * solist.h (master_so_list): New function.
10462 * solib.c (master_so_list): Likewise.
10463 * solib-svr4.c (enable_break): Iterate over so_list entries
10464 obtained from master list instead of entries obtained directly
10465 via svr4_current_sos().
10467 2004-03-10 Ben Elliston <bje@gnu.org>
10469 * MAINTAINERS: Update my mail address.
10471 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10473 * remote-m32r-sdi.c: Support hardware watchpoint.
10475 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10477 * user-regs.c: Update copyright years.
10478 (struct user_regs): Rename to gdb_user_regs.
10479 (append_user_reg, builtin_user_regs, user_regs_init)
10480 (user_reg_add, user_reg_map_name_to_regnum)
10481 (usernum_to_user_reg): Update.
10483 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10485 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10486 (skip_children): New functions.
10487 (locate_pdi_sibling): Call skip_children.
10489 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10491 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10492 * gdbtypes.c (check_typedef): Update comments.
10494 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10496 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10497 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10498 pointer. Update comment about comp_unit_head.
10499 (struct abbrev_info): Shorten two int flags.
10500 (dwarf_alloc_abbrev): Take a CU argument.
10501 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10502 each time through the loop. Update cleanup argument.
10503 (psymtab_to_symtab_1): Update cleanup call.
10504 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10506 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10507 Just call obstack_free and clear the pointer.
10509 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10511 * infrun.c (handle_inferior_event): Remove short-circuit code for
10512 events in a different thread.
10514 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10516 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10517 print the whole transfer.
10518 (initialize_targets): Update description of "set debug target".
10520 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10522 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10524 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10526 * MAINTAINERS (write after approval): Add myself.
10528 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10530 * sh-tdep.c (sh_print_registers_info): Use for loop.
10531 Don't skip multiple registers when a float register is encountered.
10533 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10536 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10537 to official SH documentation.
10539 2004-03-07 Andrew Cagney <cagney@redhat.com>
10541 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10544 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10546 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10547 (arm_get_next_pc): Handle BX and BLX.
10549 2004-03-07 Andrew Cagney <cagney@redhat.com>
10551 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10552 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10554 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10555 (hppa_target_read_fp): Delete.
10556 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10557 register_virtual_size, max_register_raw_size,
10558 max_register_virtual_size, register_byte, register_size,
10559 target_read_fp, fp_regnum, and register_bytes. Set register_type
10560 instead of register_virtual_type.
10561 (hppa32_register_type, hppa64_register_type): Replace
10562 hppa32_register_virtual_type and hppa64_register_virtual_type.
10563 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10564 (HPPA_FP_REGNUM): Define.
10566 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10568 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10569 (pa_do_registers_info): Delete.
10570 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10571 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10572 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10574 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10575 GDB_TARGET_IS_HPPA code.
10576 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10577 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10578 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10579 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10580 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10581 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10582 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10583 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10584 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10585 (hppa_frameless_function_invocation, hppa64_store_return_value)
10586 (hppa_store_struct_return, hppa64_extract_return_value)
10587 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10588 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10589 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10590 (find_proc_framesize, deposit_21, restore_pc_queue)
10591 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10592 (rp_saved, pc_in_linker_stub): Delete.
10594 Unconditionally enable 64-bit frame and ABI code.
10595 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10596 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10597 push_dummy_frame, fix_call_dummy, push_arguments,
10598 call_dummy_location, extract_return_value, use_struct_convention,
10599 store_return_value, store_struct_return, saved_pc_after_call,
10600 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10601 frame_chain, frame_chain_valid, frameless_function_invocation,
10602 frame_saved_pc, and pop_frame.
10604 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10605 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10606 (hppa_gdbarch_init): Do not set PC_REGNUM.
10608 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10610 * config/alpha/tm-fbsd.h: Remove file.
10611 * config/alpha/fbsd.mt: Tweak comment.
10612 (TM_FILE): Set to tm-alpha.h.
10614 2004-03-05 Andrew Cagney <cagney@redhat.com>
10616 * infrun.c (step_over_function): When non-legacy code, and no
10617 step_frame_id, use the unwinder to get the caller's frame ID.
10619 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10621 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10622 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10623 bfd_arch_unknown. Adjust comment.
10625 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10626 * i386obsd-tdep.c: Correct spelling in comment.
10627 * i386nbsd-tdep.c: Correct spelling in comment.
10628 * sparc-tdep.c: Correct spelling in comments.
10630 2004-03-05 David Carlton <carlton@kealia.com>
10632 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10635 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10637 * sparc-tdep.c: Fix typo in comment.
10639 2004-03-04 J. Brobecker <brobecker@gnat.com>
10641 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10643 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10645 * dwarf2read.c: Add comment describing memory lifetimes.
10646 (struct dwarf2_pinfo): Update comment.
10647 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10648 (read_enumeration, new_symbol): Don't use obsavestring.
10650 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10652 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10653 instead of amd64_fill_fxsave.
10654 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10655 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10657 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10658 Reorganize code a bit.
10660 2004-03-04 Orjan Friberg <orjanf@axis.com>
10662 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10663 when the frame pointer is pushed. Don't set the frame pointer's
10664 address on the stack unless it's actually located there.
10665 Set the SRP's address on the stack correctly when the PC is still in
10667 (cris_return_value): New function.
10668 (cris_gdbarch_init): Clear deprecated store_return_value,
10669 extract_return_value.
10671 2004-03-02 Jim Blandy <jimb@redhat.com>
10673 * stabsread.c (reg_value_complaint): The maximum register number
10674 is one less than the number of registers.
10676 2004-03-02 Andrew Cagney <cagney@redhat.com>
10678 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10679 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10680 trailing comma and redundant assignment of I386_ST0_REGNUM.
10681 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10682 32-bit segment registers.
10684 2004-03-01 Andrew Cagney <cagney@redhat.com>
10686 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10687 use frame_relative_level and get_next_frame.
10689 2004-02-29 Andrew Cagney <cagney@redhat.com>
10691 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10692 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10693 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10696 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10698 * inflow.c (terminal_inferior): Don't give up the terminal if we
10699 previously couldn't get the inferior's terminal state.
10701 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10703 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10706 2004-02-28 Andrew Cagney <cagney@redhat.com>
10708 * NEWS: Refer to GDB 6.1.
10709 * README: Refer to GDB 6.1.
10710 * PROBLEMS: Refer to GDB 6.1.
10712 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10714 * thread-db.c (disable_thread_signals): Remove unused function.
10716 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10718 * amd64-nat.c: Include "gdb_string.h".
10719 (amd64_collect_native_gregset): Zero-extend the 32-bit
10720 general-purpose registers and %eip.
10722 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10723 * amd64-tdep.c (amd64_collect_fxsave): New function.
10724 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10726 * i387-tdep.h: Update copyright year.
10727 (i387_collect_fxsave): New prototype.
10728 * i387-tdep.c: Update copyright year.
10729 (i387_collect_fxsave): New function containing most of the code
10730 from i387_fill_fxsave.
10731 (i387_fill_fxsave): Call i387_collect_fxsave.
10733 2004-02-28 Andrew Cagney <cagney@redhat.com>
10735 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10736 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10738 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10740 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10742 2004-02-28 Andrew Cagney <cagney@redhat.com>
10744 * utils.c: Use "", instead of <>, to include readline.
10745 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10746 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10747 * source.c, solib.c, exec.c, event-top.c: Ditto.
10748 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10749 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10750 * Makefile.in: Update all dependencies.
10751 (readline_tilde_h, readline_history_h): Define.
10752 (readline_headers): Delete.
10754 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10756 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10757 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10758 "config/i386/tm-lx64.h".
10760 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10761 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10762 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10764 2004-02-28 Andrew Cagney <cagney@redhat.com>
10766 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10768 * breakpoint.c (_initialize_breakpoint): Use
10769 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10770 Add help to show command.
10772 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10774 * i386-nat.c: Reformat to be closer to coding standards.
10775 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10776 `retval'. Make variables `align' and `size' local to while-loop.
10777 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10778 (_initialize_i386_nat): New prototype.
10780 * tui/tui.c: Include <readline/readline.h> instead of
10781 "readline/readline.h". Include it after <term.h> and
10784 2004-02-27 Andrew Cagney <cagney@redhat.com>
10786 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10787 the new frame unwind code.
10788 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10789 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10792 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10793 "return_value" and "push_dummy_call".
10794 (hppa32_use_struct_convention): Delete unused function.
10795 (hppa32_store_return_value): Delete unused function.
10796 (hppa32_extract_return_value): Delete unused function.
10797 (hppa32_stack_align): Delete function.
10799 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10801 * coffread.c (enter_linenos): Don't let rawptr reference memory
10802 outside linetab[]'s limits.
10804 2004-02-27 Andrew Cagney <cagney@redhat.com>
10806 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10807 inferior stack space - the stack needs to grow upwards.
10808 (hppa32_frame_align): New function.
10809 (hppa64_frame_align): Replace hppa_frame_align.
10810 (hppa_gdbarch_init): Update.
10812 2004-02-26 Orjan Friberg <orjanf@axis.com>
10814 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10815 (dwarf2-frame.h): Include.
10816 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10817 Remove static variables related to ABI setting.
10818 (struct gdbarch_tdep): Remove cris_abi member.
10819 (struct frame_extra_info): Remove.
10820 (cris_unwind_cache, stack_item): New structs.
10821 (cris_frame_unwind, cris_frame_base): New variables.
10822 (push_stack_item, pop_stack_item)
10823 (cris_frame_unwind_cache, cris_frame_this_id)
10824 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10825 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10826 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10827 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10828 (cris_reg_struct_has_addr): New functions.
10829 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10830 (cris_frame_saved_pc, cris_saved_pc_after_call,
10831 (cris_store_struct_return, cris_frameless_function_invocation)
10832 (cris_pop_frame, cris_skip_prologue_main)
10833 (cris_abi_original_store_return_value)
10834 (cris_abi_v2_store_return_value)
10835 (cris_abi_original_extract_return_value)
10836 (cris_abi_v2_extract_return_value)
10837 (cris_abi_original_reg_struct_has_addr)
10838 (cris_abi_v2_reg_struct_has_addr)
10839 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10840 (cris_push_return_address, cris_abi_update): Remove.
10841 (_initialize_cris_tdep): Remove ABI command.
10842 (cris_dump_tdep): Ditto.
10843 (cris_gdbarch_init): Remove ABI command.
10844 Set store_return_value, extract_return_value, push_dummy_code,
10845 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10846 frame_unwind_append_sniffer, frame_base_set_default.
10847 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10848 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10849 sizeof_call_dummy_words, get_saved_register, push_return_address,
10850 pop_frame, store_struct_return, frame_init_saved_regs,
10851 init_extra_frame_info, frameless_function_invocation, frame_chain,
10852 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10855 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10857 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10858 * valprint.c (print_hex_chars): Change from static to external.
10859 (print_char_chars): New function.
10860 * printcmd.c (print_scalar_formatted): For integer and enum types
10861 that are longer than LONGEST, perform processing via appropriate
10862 print_*_chars routines.
10864 2004-02-26 Andrew Cagney <cagney@redhat.com>
10866 * Makefile.in: Update dependencies.
10867 Changes from Ulrich Weigand,
10868 * s390-tdep.c: Include "dwarf2-frame.h".
10869 (s390_dwarf2_frame_init_reg): New function.
10870 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10871 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10873 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10875 * breakpoint.c (pending_break_support): New setting variable.
10876 (break_command_1): Account for pending_break_support setting
10877 when creating pending breakpoints.
10878 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10879 (_initialize_breakpoint): Add "set breakpoint pending" and
10880 "show breakpoint pending" commands.
10882 2004-02-26 Andrew Cagney <cagney@redhat.com>
10885 * charset.c (backslashable, backslashed, represented): Remove 'e'
10886 from list of escaped characters, not part of ISO-C.
10888 2004-02-25 J. Brobecker <brobecker@gnat.com>
10890 From Peter Schauer <schauer@pdf.de>:
10891 * tui/tui.c: Move system header includes after local includes.
10892 Fixes a build failure on solaris systems.
10894 2004-02-25 J. Brobecker <brobecker@gnat.com>
10896 * configure.in: Refine the previous change.
10897 * configure: Regenerate.
10899 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10901 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10902 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10903 "amd64-tdep.h" instead of "x86-64-tdep.h".
10904 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10905 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10906 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10907 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10908 and "x86-64-tdep.c".
10909 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10910 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10911 and "x86-64-tdep.c".
10912 * amd64bsd-nat.c: Update copyright year.
10913 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10914 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10916 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10918 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10920 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10922 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10924 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10926 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10927 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10928 * Makefile.in (amd64_linux_tdep_h): Renamed from
10929 x86_64_linux_tdep_h.
10930 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10931 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10932 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10933 (amd64obsd-tdep.o): Update dependencies.
10934 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10936 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10938 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10939 amd64-linux-nat.c amd64-linux-tdep.c.
10940 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10941 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10942 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10943 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10944 amd64-tdep.o and amd64-linux-tdep.o.
10945 (TM_FILE): Set to tm-linux64.h.
10946 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10947 (NAT_FILE): Set to nm-linux64.h.
10948 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10949 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10951 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10953 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10956 2004-02-25 Roland McGrath <roland@redhat.com>
10958 * remote.c (remote_protocol_qPart_auxv): New variable.
10959 (init_all_packet_configs): Initialize it.
10960 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10961 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10962 (show_remote_cmd): Call it.
10963 (_initialize_remote): Initialize commands.
10964 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10965 service TARGET_OBJECT_AUXV requests.
10967 2004-02-25 J. Brobecker <brobecker@gnat.com>
10969 * configure.in: Make sure that the wborder function is available.
10970 Otherwise, search for it in the cur_colr library.
10971 * configure: Regenerate.
10973 2004-02-25 Andrew Cagney <cagney@redhat.com>
10975 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10977 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10979 * config/i386/tm-x86-64linux.h: Tweak comments.
10981 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10983 * MAINTAINERS: Add self to write-after-approval list.
10985 2004-02-25 Andrew Cagney <cagney@redhat.com>
10987 PR cli/1566. Problem found, and fix suggested by David Allan.
10988 * cli/cli-script.c (execute_control_command): Unconditionally
10989 install a cleanup. Default "ret" to "invalid_control". Use
10990 "break" instead of "return" to escape from the switch.
10992 2004-02-24 J. Brobecker <brobecker@gnat.com>
10994 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10995 with the lines macro defined in term.h on AiX.
10996 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10997 a collision with the label_width macro defined in term.h on AiX.
10999 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11001 Committed by Kevin Buettner <kevinb@redhat.com>.
11003 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11004 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11005 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11006 instead of ia64_write_pc().
11007 * ia64-linux-tdep.c (regcache.h): Include.
11008 (ia64_linux_write_pc): New function.
11010 2004-02-23 Roland McGrath <roland@redhat.com>
11012 * auxv.c (info_auxv_command): Fix typos in error messages.
11014 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11016 * x86-64-tdep.h: Tweak comment.
11017 (enum amd64_regnum): New.
11018 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11019 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11020 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11021 (X86_64_XMM1_REGNUM): Removed.
11022 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11023 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11024 prototypes for renamed functions.
11025 * x86-64-tdep.c: Fix typo.
11026 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11028 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11029 Use constants from `enum amd64_regnum' for register numbers.
11030 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11031 (amd64_analyze_prologue, amd64_frame_cache,
11032 amd64_sigtramp_frame_cache): Use constants from `enum
11033 amd64_regnum' for register numbers.
11034 (amd64_supply_fpregset): Adjust for renamed functions.
11035 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11036 `enum amd64_regnum' for register numbers.
11037 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11038 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11039 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11040 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11041 (amd64_linux_fill_gregset): Adjust for renamed macros.
11042 (fetch_core_registers): Adjust for renamed functions.
11043 (amd64_linux_init_abi): Adjust for renamed functions.
11044 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11046 * amd64-nat.c: Adjust for renamed macros.
11047 * amd64bsd-nat.c (fetch_inferior_registers)
11048 (store_inferior_registers): Use constants from `enum amd64_regnum'
11049 for register numbers. Adjust for renamed variables.
11050 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11052 (_initialize_amd64fbsd_nat): Use constants from `enum
11053 amd64_regnum' for register numbers.
11054 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11055 `enum amd64_regnum' for register numbers.
11056 (amd64fbsd_init_abi): Adjust for renamed functions.
11057 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11058 `enum amd64_regnum' for register numbers.
11059 (amd64nbsd_init_abi): Adjust for renamed functions.
11060 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11061 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11062 `enum amd64_regnum' for register numbers.
11063 (amd64obsd_init_abi): Adjust for renamed functions.
11064 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11066 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11068 * breakpoint.c (print_one_breakpoint): Do not output spaces
11069 after printing <PENDING> for a pending breakpoint.
11071 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11073 * printcmd.c (print_scalar_formatted): Initialize val_long
11074 to remove compiler warning message.
11076 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11078 * defs.h (nquery, yquery): New prototypes.
11079 * breakpoint.c (break_command_1): Use new nquery interface.
11080 * utils.c (defaulted_query, nquery, yquery): New functions.
11082 2004-02-23 Andrew Cagney <cagney@redhat.com>
11084 * hppa-tdep.c (hppa_frame_align): New function.
11085 (hppa32_push_dummy_call): New function.
11086 (hppa64_push_dummy_call): New function.
11087 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11090 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11091 FIX_CALL_DUMMY when push_dummy_call is available.
11092 (call_function_by_hand, push_dummy_code): Ditto.
11094 2004-02-22 Andrew Cagney <cagney@redhat.com>
11096 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11097 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11098 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11099 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11100 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11101 call_dummy_location to ON_STACK.
11103 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11105 * x86-64-linux-tdep.c: Tweak comment.
11106 (amd64_linux_supply_gregset): Renamed from
11107 x86_64_linux_supply_gresget.
11108 (amd64_linux_fill_gregset): Renamed from
11109 x86_64_linux_fill_gregset.
11110 (fetch_core_registers): Adjust for renamed functions.
11111 (amd64_core_fns): Renamed from x86_64_core_fns.
11112 (amd64_linux_sigtramp_start): Renamed from
11113 x86_64_linux_sigtramp_start.
11114 (amd64_linux_pc_in_sigtramp): Renamed from
11115 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11116 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11117 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11118 (amd64_linux_sigcontext_addr): Renamed from
11119 x86_64_linux_sigcontext_addr.
11120 (amd64_linux_sc_reg_offset): Renamed from
11121 x86_64_linux_sc_reg_offset.
11122 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11123 Adjust for renamed functions and variables.
11124 (_initialize_amd64_linux_tdep): Renamed from
11125 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11127 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11128 Adjust for renamed functions.
11130 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11131 from x86_64_linux_gregset64_reg_offset.
11132 (amd64_linux_gregset32_reg_offset): Rename from
11133 x86_64_linux_gregset64_reg_offset.
11134 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11135 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11136 (amd64_linux_dr_set_control): Renamed from
11137 x86_64_linux_dr_set_control. Adjust for renamed functions.
11138 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11139 Adjust for renamed functions.
11140 (amd64_linux_dr_reset_addr): Renamed from
11141 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11142 (amd64_linux_dr_get_status): Renamed from
11143 x86_64_linux_dr_get_status. Adjust for renamed functions.
11144 (_initialize_amd64_linux_nat): Renamed from
11145 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11147 * config/i386/nm-x86-64linux.h: Update copyright year.
11148 Adjust for renamed functions.
11150 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11151 amd64fbsd_sigtramp_start.
11152 (amd64fbsd_sigtramp_end_addr): Renamed from
11153 amd64fbsd_sigtramp_end.
11154 (amd64fbsd_init_abi): Adjust for renamed variables.
11155 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11157 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11158 amd64fbsd_sigtramp_start.
11159 (amd64fbsd_sigtramp_end_addr): Renamed from
11160 amd64fbsd_sigtramp_end.
11162 2004-02-22 Andrew Cagney <cagney@redhat.com>
11164 * hppa-tdep.c (hppa32_return_value): New function.
11165 (hppa64_return_value): New function.
11166 (hppa_gdbarch_init): Set return_value; keep disabled.
11168 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11169 struct-return and inferior function call methods.
11171 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11173 (struct hppa_frame_cache): Define.
11174 (hppa_frame_cache, hppa_frame_this_id): New functions.
11175 (hppa_frame_prev_register): New function.
11176 (hppa_frame_unwind, hppa_frame_base): New variables.
11177 (hppa_frame_unwind_sniffer): New function.
11178 (hppa_frame_base_address, hppa_unwind_pc): New function.
11179 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11180 sniffer, and frame base sniffer; keep disabled.
11181 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11182 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11184 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11185 to predicates for "seriously old code".
11187 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11190 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11192 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11194 * config/pa/tm-hppa.h: Update copyright.
11195 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11196 (deprecated_init_frame_pc_default): Delete declaration.
11197 (hppa_frame_init_saved_regs): Delete declaration.
11198 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11199 * hppa-tdep.c: Include "arch-utils.h".
11200 (hppa_gdbarch_init): Set deprecated init_frame_pc
11201 and deprecated frame_init_saved_regs.
11202 (hppa_frame_init_saved_regs): Make static.
11204 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11206 Remove old 386BSD support.
11207 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11208 * configure.host: Remove i[34567]86-*-bsd*.
11209 * configure.tgt: Remove i[34567]86-*-bsd*.
11210 * i386b-nat.c: Removed.
11211 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11212 (i386b-nat.o): Remove dependencies.
11214 * config/i386/i386bsd.mh: Removed.
11215 * config/i386/i386bsd.mt: Removed.
11216 * config/i386/nm-i386bsd.h: Removed.
11217 * config/i386/tm-i386bsd.h: Removed.
11218 * config/i386/xm-i386bsd.h: Removed.
11220 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11222 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11223 (amd64fbsd_init_abi): Set link map offsets.
11224 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11225 (amd64nbsd_init_abi): Set link map offsets.
11226 * amd64obsd-tdep.c: Include "solib-svr4.h".
11227 (amd64obsd_init_abi): Set link map offsets.
11228 * i386fbsd-tdep.c: Include "solib-svr4.h".
11229 (i386fbsd_init_abi): Set link map offsets.
11230 * i386nbsd-tdep.c: Include "solib-svr4.h".
11231 (i386nbsdelf_init_abi): Set link map offsets.
11232 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11233 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11234 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11235 solib-legacy.o and core-aout.o. Reformat.
11236 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11237 solib-svr4.o, solib-legacy.o. Reformat.
11238 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11239 * config/i386/nbsdelf.mh: Reformat.
11240 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11241 solib-svr4.o, solib-legacy.o and corelow.o.
11242 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11243 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11244 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11245 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11246 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11247 (TM_FILE): Set to tm-fbsd.h.
11248 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11249 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11251 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11253 (TM_FILE): Set to nm-nbsd.h.
11254 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11255 Simplify shared library support. Don't include "elf/common.h".
11256 (SVR4_SHARED_LIBS): Don't define.
11257 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11259 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11260 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11261 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11262 Don't include "i386/tm-i386.h". Include "solib.h".
11263 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11264 Don't include "i386/tm-i386.h".
11265 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11266 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11267 Include "i386/xm-i386.h".
11268 (HOST_LONG_DOUBLE_FORMAT): Remove.
11270 Fix OpenBSD/i386 sigtramp recognition.
11271 * i386-tdep.h: Update copyright year.
11272 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11273 (i386bsd_sigtramp_end): New prototypes.
11274 (i386fbsd_sigtramp_start_addr): Renamed from
11275 i386fbsd_sigtramp_start.
11276 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11277 (i386obsd_sigtramp_start_addr): Renamed from
11278 i386obsd_sigtramp_start.
11279 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11280 * i386bsd-tdep.c: Update copyright year.
11281 (i386bsd_pc_in_sigtramp): Make public.
11282 * i386fbsd-nat.c: Update copyright year.
11283 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11284 * i386fbsd-tdep.c: Update copyright year.
11285 (i386fbsd_sigtramp_start_addr): Renamed from
11286 i386fbsd_sigtramp_start.
11287 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11288 (i386fbsdaout_init_abi): Adjust for renamed variables.
11289 * i386obsd-nat.c: Update copyright year.
11290 (_initialize_i386obsd_nat): Adjust for renamed variables.
11291 * i386obsd-tdep.c: Include "target.h".
11292 (i386obsd_page_size): New variable.
11293 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11294 (i386obsd_sigtramp_end): New functions.
11295 (i386obsd_sigtramp_start_addr): Renamed from
11296 i386obsd_sigtramp_start.
11297 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11298 (i386obsd_init_abi): Adjust for renamed variables. Set
11299 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11300 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11302 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11303 trampoline change in OpenBSD kernel.
11305 * amd64-nat.c: Update copyright year.
11306 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11307 architecture from REGCACHE.
11309 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11310 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11312 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11314 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11315 i[34567]86-*-openbsd3.[0-3].
11316 * config/i386/obsdaout.mh: New file.
11318 * config/i386/obsd.mh (MH_FLAGS): Remove.
11321 * i386obsd-tdep.c: Update copyright years. Include
11323 (i386obsd_init_abi): Don't set regset_from_core_section here.
11324 (i386obsd_aout_init_abi): New function. Set
11325 regset_from_core_section here.
11326 (i386obsd_elf_init_abi): New function.
11327 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11328 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11329 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11330 (TM_FILE): Set to tm-nbsd.h.
11332 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11335 * solib-svr4.h: Update copyright year.
11336 (svr4_ilp32_fetch_link_map_offsets)
11337 (svr4_lp64_fetch_link_map_offsets): New prototype.
11338 * solib-svr4.c: Update copyright year.
11339 (svr4_ilp32_fetch_link_map_offsets)
11340 (svr4_lp64_fetch_link_map_offsets): New function.
11342 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11344 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11345 to the partial symbol table.
11347 2004-02-20 J. brobecker <brobecker@gnat.com>
11349 * PROBLEMS: Add description of problem documented under gdb/1560.
11351 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11353 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11355 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11357 (amd64obsd_init_abi): Reorder initializations. Use
11358 amd64obsd_r_reg_offset to initialize the general-purpose register
11359 set details. Set regset_from_core_section.
11360 (_initialize_amd64obsd_tdep): Rename from
11361 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11362 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11363 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11365 * NEWS (New native configurations): Mention OpenBSD/alpha.
11366 * configure.tgt: Add alpha*-*-openbsd*.
11367 * configure.host: Add alpha*-*-openbsd*.
11368 * alphanbsd-tdep.c: Update copyright year.
11369 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11371 2004-02-20 Andrew Cagney <cagney@redhat.com>
11374 * configure.tgt: Delete target "none-*-*".
11375 * configure.host: Delete host "none-*-*".
11376 * config/none/none.mh: Delete file.
11377 * config/none/none.mt: Delete file.
11378 * config/none/xm-none.h: Delete file.
11379 * config/none/tm-none.h: Delete file.
11380 * config/none/nm-none.h: Delete file.
11382 2004-02-19 Fred Fish <fnf@redhat.com>
11384 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11385 cache->uses_fp prior to setting it.
11387 2004-02-19 Fred Fish <fnf@redhat.com>
11389 Fix for PR breakpoint/1558.
11390 * sh-tdep.c (IS_JSR): New macro.
11391 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11393 2004-02-19 Jim Blandy <jimb@redhat.com>
11395 * findvar.c (value_from_register): Doc fix.
11397 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11399 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11400 type being greater than sizeof of host's LONGEST. Always use
11401 unpack_long() unless format 'f' chosen.
11403 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11405 Committed by Elena Zannoni <ezannoni@redhat.com>
11407 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11408 contains a symbol wich is the best, non-exact match for the given
11409 pc. Update comments.
11411 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11413 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11414 macro, which was part of the now removed Mach 3 port.
11415 * utils.c (request_quit): Ditto.
11417 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11419 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11420 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11422 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11424 Committed by Mark Kettenis <kettenis@gnu.org>.
11426 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11429 2004-02-18 Andrew Cagney <cagney@redhat.com>
11431 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11432 CONFIG_INSTALL and CONFIG_UNINSTALL.
11433 * configure: Re-generate.
11434 * interps.h (INTERP_TUI): Define.
11435 * Makefile.in: Update dependencies.
11437 (tui-main.o): Specify dependencies.
11438 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11439 * tui/tui-main.c: New file.
11441 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11443 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11444 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11446 * configure.host: Add x86_64-*-openbsd*.
11447 * configure.tgt: Add x86_64-*-openbsd*.
11448 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11450 * tui/tui.c: Don't include <malloc.h>.
11452 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11453 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11456 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11457 static. Remove extraneous whitespace.
11458 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11461 2004-02-17 Jim Blandy <jimb@redhat.com>
11463 * findvar.c (value_from_register): Doc fix.
11465 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11467 Committed by Jim Blandy <jimb@redhat.com>.
11469 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11470 CORE_ADDR as type for selectors. Correct types for GNU run time
11471 message lookup function to use double indirection.
11472 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11473 * objc-lang.h (lookup_child_selector): Adapt prototype.
11475 * s390-nat.c (SUBOFF): New macro.
11476 (supply_gregset, fill_gregset): Use it to handle debugging
11477 of 32-bit exectuables running under a 64-bit kernel.
11478 * s390-tdep.c: Include "solib-svr4.h".
11479 (s390_svr4_fetch_link_map_offset): New function.
11480 (s390x_svr_fetch_link_map_offset): Likewise.
11481 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11482 * Makefile.in (s390-tdep.o): Update dependencies.
11484 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11486 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11487 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11488 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11489 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11490 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11491 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11492 S390_SIGNAL_FRAMESIZE,
11493 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11494 (struct frame_extra_info): Remove.
11495 (s390_memset_extra_info): Remove.
11496 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11497 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11498 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11499 (is_rse): Renamed to ...
11500 (is_rsy): ... this. Support long displacements.
11501 (is_rxe): Renamed to ...
11502 (is_rxy): ... this. Support long displacements.
11503 (compute_x_addr): Support long displacements.
11504 (struct s390_prologue_data): New data type.
11505 (s390_on_stack): Change API to use struct s390_prologue_data.
11506 (s390_store): Reimplement.
11507 (s390_load): New function.
11508 (s390_get_signal_frame_info): Remove.
11509 (s390_get_frame_info): Remove, replace by ...
11510 (s390_analyze_prolog): ... this new function.
11511 (s390_check_function_end): Remove.
11512 (s390_function_start): Remove.
11513 (s390_frameless_function_invokation): Remove.
11514 (s390_is_sigreturn): Remove.
11515 (s390_init_frame_pc_first): Remove.
11516 (s390_init_frame_extra_info): Remove.
11517 (s390_frame_init_saved_regs): Remove.
11518 (s390_frame_saved_pc_nofix): Remove.
11519 (s390_frame_saved_pc): Remove.
11520 (s390_frame_chain): Remove.
11521 (s390_fp_regnum, s390_read_fp): Remove.
11522 (s390_pop_frame_regular, s390_pop_frame): Remove.
11523 (s390_saved_pc_after_call): Remove.
11524 (s390_skip_prologue): Reimplement.
11525 (s390_in_function_epilogue_p): Support long displacements.
11526 (struct s390_unwind_cache): New data structure.
11527 (s390_frame_unwind_cache): New function.
11528 (s390_prologue_frame_unwind_cache): Likewise.
11529 (s390_backchain_frame_unwind_cache): Likewise.
11530 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11531 (s390_frame_unwind): Define.
11532 (s390_frame_sniffer): New function.
11533 (struct s390_pltstub_unwind_cache): New data structure.
11534 (s390_pltstub_frame_unwind_cache): New function.
11535 (s390_pltstub_frame_this_id): Likewise.
11536 (s390_pltstub_frame_prev_register): Likewise.
11537 (s390_pltstub_frame_unwind): Define.
11538 (s390_pltstub_frame_sniffer): New function.
11539 (struct s390_sigtramp_unwind_cache): New data structure.
11540 (s390_sigtramp_frame_unwind_cache): New function.
11541 (s390_sigtramp_frame_this_id): Likewise.
11542 (s390_sigtramp_frame_prev_register): Likewise.
11543 (s390_sigtramp_frame_unwind): Define.
11544 (s390_sigtramp_frame_sniffer): New function.
11545 (s390_frame_base_address, s390_local_base_address): New functions.
11546 (s390_frame_base): Define.
11547 (s390_unwind_pc, s390_unwind_sp): New function.
11548 (s390_push_dummy_call): Use new frame base location.
11549 (s390_unwind_dummy_id): Likewise.
11550 (s390_gdbarch_init): Remove calls to:
11551 set_gdbarch_frameless_function_invocation,
11552 set_gdbarch_deprecated_init_frame_pc,
11553 set_gdbarch_deprecated_frame_chain,
11554 set_gdbarch_deprecated_frame_init_saved_regs,
11555 set_gdbarch_deprecated_pop_frame,
11556 set_gdbarch_deprecated_init_extra_frame_info,
11557 set_gdbarch_deprecated_init_frame_pc_first,
11558 set_gdbarch_deprecated_target_read_fp,
11559 set_gdbarch_deprecated_frame_saved_pc,
11560 set_gdbarch_deprecated_saved_pc_after_call,
11561 set_gdbarch_deprecated_fp_regnum.
11563 set_gdbarch_in_solib_call_trampoline,
11564 frame_unwind_append_sniffer,
11565 frame_base_set_default,
11566 set_gdbarch_unwind_pc,
11567 set_gdbarch_unwind_sp.
11568 * Makefile.in (s390-tdep.o): Update dependencies.
11570 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11571 (S390_STACK_FRAME_OVERHEAD): Remove.
11572 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11573 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11574 (s390_promote_integer_argument): Remove.
11575 (s390_cannot_extract_struct_value_address): Remove.
11576 (s390_use_struct_convention, s390_store_struct_return): Remove.
11577 (s390_extract_return_value, s390_store_return_value): Remove.
11578 (s390_return_value_convention, s390_return_value): New functions.
11579 (is_float_singleton): Handle typedefs.
11580 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11581 Remove, replace by ...
11582 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11583 s390_function_arg_integer): ... these new functions.
11584 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11585 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11586 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11589 set_gdbarch_deprecated_store_struct_return,
11590 set_gdbarch_deprecated_extract_return_value,
11591 set_gdbarch_deprecated_store_return_value,
11592 set_gdbarch_use_struct_convention,
11593 set_gdbarch_extract_struct_value_address,
11594 set_gdbarch_deprecated_pc_in_call_dummy,
11595 set_gdbarch_deprecated_push_arguments,
11596 set_gdbarch_deprecated_save_dummy_frame_tos,
11597 set_gdbarch_deprecated_push_return_address,
11598 set_gdbarch_deprecated_sizeof_call_dummy_words,
11599 set_gdbarch_deprecated_call_dummy_words,
11600 set_gdbarch_deprecated_dummy_write_sp.
11602 set_gdbarch_push_dummy_call,
11603 set_gdbarch_unwind_dummy_id,
11604 set_gdbarch_return_value.
11606 * config/s390/nm-linux.h: Update comments.
11607 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11608 (STOPPED_BY_WATCHPOINT): Redefine.
11609 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11610 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11611 (s390_stopped_by_watchpoint): Likewise.
11612 (watch_area_cnt): Remove.
11613 * s390-nat.c: Update comments.
11614 (watch_area): Remove typedef.
11615 Global replace watch_area by struct watch_area.
11616 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11617 (s390_stopped_by_watchpoint): Remove pid argument,
11618 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11619 (s390_fix_watch_points): Remove pid argument,
11620 use s390_inferior_tid. Recompute area spanned by watchpoints.
11621 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11622 argument. Reimplement.
11624 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11625 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11626 (FETCH_INFERIOR_REGISTERS): Define.
11627 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11629 * config/s390/s390x.mt: Remove.
11630 * config/s390/tm-s390.h: Remove.
11631 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11632 (TARGET_ELF64): Remove.
11633 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11634 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11635 s390*-*-* case; always set gdb_target to s390.
11636 * regformats/reg-s390.dat: Remove control registers.
11637 * regformats/reg-s390x.dat: Likewise.
11638 * s390-tdep.h: New file.
11639 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11640 Include "inferior.h" and "s390-tdep.h".
11641 Remove private definition of offsetof.
11642 (s390_register_u_addr): Remove.
11643 (regmap_gregset, regmap_fpregset): Define.
11644 (supply_gregset, fill_gregset): Reimplement.
11645 (supply_fpregset, fill_fpregset): Likewise.
11646 (s390_inferior_tid): New function.
11647 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11648 (fetch_inferior_registers, store_inferior_registers): Likewise.
11649 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11650 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11651 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11652 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11653 (struct gdbarch_tdep): Define.
11654 (struct s390_register_info): Define.
11655 (s390_register_info): New variable.
11656 (s390_register_name): Reimplement.
11657 (s390_register_type): New function.
11658 (s390_register_raw_size, s390x_register_raw_size): Remove.
11659 (s390_cannot_fetch_register): Remove.
11660 (s390_register_byte): Remove.
11661 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11662 (s390_dwarf_regmap): New variable.
11663 (s390_dwarf_reg_to_regnum): New function.
11664 (s390_stab_reg_to_regnum): Remove.
11665 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11666 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11667 (s390_convert_register_p): Likewise.
11668 (s390_register_to_value, s390_value_to_register): Likewise.
11669 (s390_register_reggroup_p): Likewise.
11670 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11671 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11672 (s390_supply_regset, s390_regset_from_core_section): New functions.
11673 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11674 (S390_FPR_SIZE): Likewise.
11675 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11676 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11677 (S390_NUM_GPRS): Move here from tm-s390.h.
11678 (S390_NUM_FPRS): Likewise.
11679 (s390_in_function_epilogue_p): New function.
11680 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11681 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11682 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11683 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11684 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11686 set_gdbarch_deprecated_max_register_raw_size,
11687 set_gdbarch_deprecated_max_register_virtual_size,
11688 set_gdbarch_deprecated_register_byte,
11689 set_gdbarch_cannot_fetch_register,
11690 set_gdbarch_cannot_store_register,
11691 set_gdbarch_deprecated_register_size,
11692 set_gdbarch_deprecated_register_raw_size,
11693 set_gdbarch_deprecated_register_virtual_size,
11694 set_gdbarch_deprecated_register_virtual_type,
11695 set_gdbarch_deprecated_register_bytes.
11697 set_gdbarch_num_pseudo_regs,
11698 set_gdbarch_register_type,
11699 set_gdbarch_convert_register_p,
11700 set_gdbarch_register_to_value,
11701 set_gdbarch_value_to_register,
11702 set_gdbarch_register_reggroup_p,
11703 set_gdbarch_regset_from_core_section,
11704 set_gdbarch_pseudo_register_read,
11705 set_gdbarch_pseudo_register_write,
11706 set_gdbarch_in_function_epilogue_p.
11707 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11708 (s390_tdep_h): New variable.
11710 2004-02-17 Jim Blandy <jimb@redhat.com>
11712 * findvar.c (value_from_register): If the type has no length, just
11713 return an acceptable value --- don't report an internal error.
11715 * stabsread.c (read_type): If we find any type numbers that are
11716 forward references, complain if the references aren't resolved by
11717 the time we're finished reading.
11718 (cleanup_undefined_types): Make error message more appropriate for
11721 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11723 * Makefile.in (defs_h): Remove dependency on progress_h.
11724 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11726 * main.c (captured_main): Delete use of START_PROGRESS and
11729 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11731 * objfiles.c (terminate_minimal_symbol_table): Add back
11732 initialization of MSYMBOL_TYPE.
11734 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11736 Committed by Andrew Cagney.
11737 * Makefile.in (ia64_tdep_h): New macro.
11738 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11739 (ia64-tdep.o): Likewise.
11740 * ia64-tdep.h: New file.
11741 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11742 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11743 (ia64_aix_sigcontext_register_address): Likewise.
11744 (ia64_linux_getunwind_table): Delete declaration.
11745 * ia64-linux-tdep.c: Likewise.
11747 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11749 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11750 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11751 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11753 2004-02-17 Andrew Cagney <cagney@redhat.com>
11755 * symtab.c (skip_prologue_using_sal): New function.
11756 * symtab.h (skip_prologue_using_sal): Declare.
11757 * frv-tdep.c: Include "symtab.h".
11758 (skip_prologue_using_sal): Delete function.
11759 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11760 * rs6000-tdep.c (refine_prologue_limit): Mention
11761 skip_prologue_using_sal.
11762 * ia64-tdep.c (refine_prologue_limit): Ditto.
11763 * Makefile.in: Update dependencies.
11765 2004-02-16 Andrew Cagney <cagney@redhat.com>
11767 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11768 START_INFERIOR_TRAPS_EXPECTED.
11769 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11770 START_INFERIOR_TRAPS_EXPECTED.
11771 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11773 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11774 macro, moved to "nm-osf.h". Update copyright.
11775 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11778 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11779 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11780 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11781 frameless_look_for_prologue.
11782 * frame.h (legacy_frameless_look_for_prologue): Rename
11783 frameless_look_for_prologue.
11784 * gdbarch.h, gdbarch.c: Re-generate.
11785 * sh64-tdep.c (sh64_gdbarch_init): Update.
11786 * sh-tdep.c (sh_gdbarch_init): Update.
11787 * s390-tdep.c (s390_gdbarch_init): Update.
11788 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11789 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11790 * m68k-tdep.c (m68k_gdbarch_init): Update.
11791 (delta68_frame_args_address): Update.
11792 * m32r-tdep.c (m32r_gdbarch_init): Update.
11793 * hppa-tdep.c (hppa_gdbarch_init): Update.
11794 * h8300-tdep.c (h8300_gdbarch_init): Update.
11795 * frv-tdep.c (frv_gdbarch_init): Update.
11796 (frv_frameless_function_invocation): Update.
11797 * cris-tdep.c (cris_gdbarch_init): Update.
11798 (cris_frameless_function_invocation): Update.
11799 * avr-tdep.c (avr_gdbarch_init): Update.
11800 * arm-tdep.c (arm_gdbarch_init): Update.
11801 * stack.c (frame_info): Update, call predicate.
11802 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11803 * frame.c (legacy_get_prev_frame): Update, call predicate..
11804 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11805 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11806 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11808 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11809 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11810 * vax-tdep.c (vax_gdbarch_init): Ditto.
11812 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11815 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11817 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11820 2004-02-16 Andrew Cagney <cagney@redhat.com>
11822 * tui/tui-windata.c: Include "gdb_string.h".
11823 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11824 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11825 * Makefile.in: Update dependencies.
11827 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11829 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11830 * infrun.c: Include "gdb_assert.h".
11831 (singlestep_ptid, saved_singlestep_ptid)
11832 (stepping_past_singlestep_breakpoint): New variables.
11833 (resume): Set singlestep_ptid. Check for singlestep thread
11835 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11836 (handle_inferior_event): Handle singlestep thread hop.
11838 2004-02-16 Andrew Cagney <cagney@redhat.com>
11840 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11841 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11842 (dwarf2_frame_init_reg): Ditto.
11844 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11845 suggested by Joshua Neuheisel
11847 * configure.in: Always check for curses, including pdcurses.
11848 Warn, instead of error, when no curses are found. Enable TUI when
11849 curses is available.
11850 * configure: Re-generate.
11852 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11854 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11855 sh_sh4_register_convert_to_virtual.
11856 (sh_register_convert_to_raw): Rename from
11857 sh_sh4_register_convert_to_raw.
11858 (sh_pseudo_register_read): Accomodate above name change.
11859 (sh_pseudo_register_write): Ditto.
11861 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11863 * sh-tdep.c (sh_generic_register_name): Remove.
11864 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11866 2004-02-15 Andrew Cagney <cagney@redhat.com>
11868 * configure.in (build_warnings): Add -Wunused-function.
11869 * configure: Re-generate.
11871 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11872 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11874 * procfs.c (procfs_init_inferior): Assume that
11875 START_INFERIOR_TRAPS_EXPECTED is defined.
11876 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11877 * config/ns32k/tm-nbsd.h: Delete file,
11878 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11880 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11881 * config/vax/tm-vax.h: Delete file.
11883 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11884 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11885 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11886 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11887 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11888 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11889 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11891 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11893 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11894 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11895 (struct dwarf2_frame_ops): New.
11896 (dwarf2_frame_default_init_reg): New function, based on
11897 dwarf2_frame_init_reg.
11898 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11899 (dwarf2_frame_init_reg): Call architecture-specific function.
11900 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11901 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11902 instead of dwarf2_frame_data.
11903 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11904 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11906 2004-02-15 Andrew Cagney <cagney@redhat.com>
11908 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11909 register_gdbarch_swap.
11910 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11911 * f-lang.c (_initialize_f_language): Update, use
11912 DEPRECATED_REGISTER_GDBARCH_SWAP.
11913 * remote.c (_initialize_remote): Ditto.
11914 * regcache.c (_initialize_regcache): Ditto.
11915 * parse.c (_initialize_parse): Ditto.
11916 * infrun.c (_initialize_infrun): Ditto.
11917 * mi/mi-main.c (_initialize_mi_main): Ditto.
11918 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11920 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11921 poking .cacheable directly.
11922 * symfile.c (symfile_bfd_open): Ditto.
11924 * Makefile.in: Update all dependencies.
11926 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11927 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11928 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11929 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11930 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11932 2004-02-14 Andrew Cagney <cagney@redhat.com>
11934 * arch-utils.c (legacy_convert_register_p): Check
11935 DEPRECATED_REGISTER_CONVERTIBLE_P.
11936 * findvar.c (value_of_register): Ditto.
11938 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11939 * gdbarch.h, gdbarch.c: Re-generate.
11940 * arch-utils.c (deprecated_register_convertible_not): Delete.
11941 * arch-utils.h (deprecated_register_convertible_not): Delete.
11942 * mi/mi-main.c (get_register): Update. Update copyright.
11943 * infcmd.c (default_print_registers_info): Update.
11945 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11946 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11947 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11948 * gdbarch.h, gdbarch.c: Re-generate.
11949 * frame.c (deprecated_get_next_frame_hack): Delete function.
11950 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11951 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11953 * infcall.c (call_function_by_hand): Update.
11955 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11957 * symfile.c (init_entry_point_info, entry_point_address): Move
11959 * objfiles.c (init_entry_point_info, entry_point_address):..to
11961 * symfile.h (init_entry_point_info, entry_point_address): Remove
11963 * objfiles.h (init_entry_point_info, entry_point_address):Add
11965 * cris-tdep.c: Remove include of symfile.h. Add include of
11967 * infcall.c: Ditto.
11968 * mcore-tdep.c: Ditto.
11969 * mn10300-tdep.c: Ditto.
11970 * sh64-tdep.c: Ditto.
11971 * v850-tdep.c: Ditto.
11972 * arm-tdep.c: Remove include of symfile.h.
11973 * blockframe.c: Ditto.
11974 * coffread.c: Ditto.
11975 * dbxread.c: Ditto.
11976 * dwarf2read.c: Ditto.
11977 * dwarfread.c: Ditto.
11978 * frv-tdep.c: Ditto.
11979 * ia64-tdep.c: Ditto.
11980 * mdebugread.c: Ditto.
11981 * mipsread.c: Ditto.
11982 * rs6000-tdep.c: Ditto.
11983 * s390-tdep.c: Ditto.
11984 * sh-tdep.c: Ditto.
11985 * xstormy16-tdep.c: Ditto.
11986 * gdbarch.sh: Remove include of symfile.h.
11987 * gdbarch.c: Regenerate.
11988 * solib-irix.c (enable_break): Use entry_point_address().
11989 Add comment about include file.
11990 * xcoffread.c: Add comment about include file.
11991 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11992 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11993 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11994 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11995 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11997 2004-02-13 Andrew Cagney <cagney@redhat.com>
11999 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12000 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12002 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12004 2004-02-12 Fred Fish <fnf@redhat.com>
12006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12007 set_gdbarch_store_return_value.
12009 2004-02-12 Andrew Cagney <cagney@redhat.com>
12011 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12012 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12013 (interrupt_query): Ditto.
12014 (ofunc): Delete unused variable.
12015 * cris-tdep.c (cris_abi): Delete unused function.
12016 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12017 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12018 (cris_get_asr_quick_shift_steps): Ditto.
12019 (cris_skip_prologue_frameless_p): Ditto.
12020 * arm-tdep.c (arm_push_return_address): Delete unused function.
12021 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12022 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12023 * s390-tdep.c (s390_function_start): Delete unused function.
12025 2004-02-12 Andrew Cagney <cagney@redhat.com>
12027 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12028 gdbarch.h, gdbarch.c: Re-generate.
12029 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12030 to generic_prologue_frameless_p.
12031 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12032 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12034 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12036 * mips-linux-tdep.c: Include "frame.h".
12037 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12038 (mips_linux_skip_resolver): New functions.
12039 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12040 and set_gdbarch_in_solib_call_trampoline.
12041 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12042 to after set_gdbarch_in_solib_return_trampoline. Only set the
12043 solib hooks to mips16 functions if the OS ABI is unknown.
12044 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12045 including "config/tm-linux.h".
12046 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12047 * Makefile.in (mips-linux-tdep.o): Update.
12049 2004-02-11 David Carlton <carlton@kealia.com>
12051 * linespec.c (decode_compound): Only look for a class symbol when
12052 considering all but the rightmost component.
12054 2004-02-11 Andrew Cagney <cagney@redhat.com>
12056 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12057 abi code are are separatly grouped.
12059 2004-02-11 Andrew Cagney <cagney@redhat.com>
12061 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12062 * gdbarch.h, gdbarch.c: Re-generate.
12063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12064 * v850-tdep.c (v850_gdbarch_init): Update.
12065 * sh64-tdep.c (sh64_gdbarch_init): Update.
12066 * sh-tdep.c (sh_gdbarch_init): Update.
12067 * s390-tdep.c (s390_gdbarch_init): Update.
12068 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12069 * mips-tdep.c (mips_gdbarch_init): Update.
12070 * mcore-tdep.c (mcore_gdbarch_init): Update.
12071 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12072 * m32r-tdep.c (m32r_gdbarch_init): Update.
12073 * ia64-tdep.c (ia64_gdbarch_init): Update.
12074 * hppa-tdep.c (hppa_gdbarch_init): Update.
12075 * h8300-tdep.c (h8300_gdbarch_init): Update.
12076 * frv-tdep.c (frv_gdbarch_init): Update.
12077 * d10v-tdep.c (d10v_gdbarch_init): Update.
12078 * cris-tdep.c (cris_gdbarch_init): Update.
12079 * avr-tdep.c (avr_gdbarch_init): Update.
12080 * arm-tdep.c (arm_gdbarch_init): Update.
12081 * alpha-tdep.c (alpha_gdbarch_init): Update.
12083 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12085 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12087 (sh_sh4al_dsp_register_name): Ditto.
12089 2004-02-10 Andrew Cagney <cagney@redhat.com>
12091 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12092 (mips_init_frame_pc_first): Delete function.
12093 (mips_frame_saved_pc): Delete function.
12094 (mips_frame_chain): Delete function.
12095 (mips_init_extra_frame_info): Delete function.
12096 (mips_xfer_register): Delete unused variable "reg".
12097 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12098 (mips_n32n64_return_value): Delete unused variable "reg".
12099 (mips_n32n64_return_value): Delete unused variable "pos".
12100 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12101 (mips_o32_return_value): Delete unused variable "pos".
12102 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12103 (mips_print_fp_register): Delete unused variable "namelen"
12104 (mips_print_fp_register): Delete unused variable "flt2"
12105 (get_frame_pointer): Delete function.
12106 (cached_proc_desc): Delete static variable.
12107 (mips_pop_frame): Delete function.
12108 (mips_find_saved_regs): Delete function.
12109 (mips_get_saved_register): Delete function.
12110 (mips_saved_pc_after_call): Delete function.
12111 (SIGFRAME_BASE): Delete macro.
12112 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12113 (SIGFRAME_PC_OFF): Delete macro.
12114 (SIGFRAME_REGSAVE_OFF): Delete macro.
12115 (mips_dump_tdep): Do not print deleted macro definitions.
12117 2004-02-10 Andrew Cagney <cagney@redhat.com>
12119 * Makefile.in (SFILES): Remove explictly listed tui files.
12120 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12122 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12124 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12125 to use paddr functions to format ia64 addresses and long values.
12126 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12127 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12128 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12129 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12130 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12132 2004-02-10 Andrew Cagney <cagney@redhat.com>
12134 * defs.h: Do not include "tui.h".
12135 * gdb_curses.h: New file.
12136 * tui/tui-hooks.h: New file.
12137 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12138 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12139 (tui_initialize_io): Delete declaration.
12140 (tui_initialize_readline: Delete redundant declaration.
12141 (struct tui_point): Delete definition.
12142 * tui/tui-data.h (struct tui_point): Define.
12143 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12144 * utils.c: Include "tui/tui.h".
12145 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12146 * printcmd.c [TUI]: Include "tui/tui.h".
12147 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12148 * tui/tui-command.c: Include "gdb_curses.h".
12149 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12150 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12151 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12152 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12153 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12154 * Makefile.in: Update all dependencies.
12155 (tui_hooks_h, gdb_curses_h): Define.
12156 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12158 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12160 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12161 auxf2. Add comments about some other rarely used fields.
12163 2004-02-10 Andrew Cagney <cagney@redhat.com>
12165 * Makefile.in (init.c): Fix script removing duplicates. Problem
12166 reported by Peter Schauer.
12168 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12170 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12171 obstack_specify_allocation.
12172 * objfiles.c (allocate_objfile): Ditto.
12173 * solib-sunos.c (solib_add_common_symbols)
12174 (allocate_rt_common_objfile): Ditto.
12175 * symfile.c (reread_symbols): Ditto.
12176 * gdb_obstack.h: Add comment.
12178 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12180 * linespec.c (decode_line_1, locate_first_half)
12181 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12182 commented out code.
12184 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12186 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12189 2004-02-09 Andrew Cagney <cagney@redhat.com>
12191 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12192 fails, try find_pc_section. Fix PR c++/1267.
12193 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12194 instead of find_pc_mapped_section.
12195 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12196 not default to the section containing PC. Fix PR symtab/1519.
12198 2004-02-09 Andrew Cagney <cagney@redhat.com>
12200 * Makefile.in (mips-tdep.o): Update dependencies.
12201 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12203 (mips_unwind_pc): Return the pseudo PC register.
12204 (mips_unwind_dummy_id): New function.
12205 (mips16_fetch_instruction): New function.
12206 (mips32_fetch_instruction): New function.
12207 (struct mips_frame_cache): Define.
12208 (mips_mdebug_frame_cache): New function.
12209 (mips_mdebug_frame_this_id): New function.
12210 (mips_mdebug_frame_prev_register): New function.
12211 (mips_mdebug_frame_unwind): Define.
12212 (mips_mdebug_frame_sniffer): New function.
12213 (mips_mdebug_frame_base_address): New function.
12214 (mips_mdebug_frame_base): Define.
12215 (mips_mdebug_frame_base_sniffer): New function.
12216 (mips_gdbarch_init): Append unwind and base sniffers. Set
12219 2004-02-08 Andrew Cagney <cagney@redhat.com>
12221 * frame.c: Print both the register number and name.
12223 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12224 and a sed into a single sed. Make .c and .o patterns more robust.
12226 (INIT_FILES): Replace OBS with COMMON_OBS.
12227 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12229 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12231 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12232 the PT_WCOOKIE request.
12234 2004-02-08 Andrew Cagney <cagney@redhat.com>
12236 * mips-tdep.c (mips_unwind_pc): New function.
12237 (mips_gdbarch_init): Set mips_unwind_pc.
12239 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12240 (get_frame_id): Allow the UNKNOWN_FRAME.
12241 (frame_register_unwind, get_frame_type): Ditto.
12243 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12244 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12245 unwind_dummy_id indicates a legacy frame.
12247 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12248 * configure: Re-generate.
12250 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12253 2004-02-08 Andrew Cagney <cagney@redhat.com>
12255 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12257 * configure: Re-generate.
12258 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12259 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12260 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12261 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12262 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12263 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12264 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12265 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12266 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12267 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12269 2004-02-07 Andrew Cagney <cagney@redhat.com>
12271 * Makefile.in: Update all dependencies.
12273 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12274 * configure: Re-generate.
12275 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12276 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12277 (COMMON_OBS): Add "main.o" and "annotate.o".
12278 (ANNOTATE_OBS): Delete.
12279 (OBS): Remove ANNOTATE_OBS.
12280 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12282 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12283 against CONFIG_OBS and "main.o".
12284 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12285 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12287 * tui/tui-command.c: Include "gdb_string.h", delete register
12288 attribute, use ISO-C function signatures.
12289 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12290 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12291 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12292 * tui/tui.c: Ditto.
12294 * tui/tui-command.c: Change variable and function names to lower
12296 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12297 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12298 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12299 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12300 * tui/tui-winsource.c, tui/tui.c: Ditto.
12302 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12304 * buildsym.c (free_pending_blocks, finish_block)
12305 (record_pending_block, make_blockvector, end_symtab): Replace
12306 symbol_obstack with objfile_obstack.
12307 * coffread.c (process_coff_symbol, coff_read_struct_type)
12308 (coff_read_enum_type): Ditto.
12309 * cp-namespace.c (initialize_namespace_symtab)
12310 (check_one_possible_namespace_symbol): Ditto.
12311 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12312 (dwarf2_symbol_mark_computed): Ditto.
12313 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12314 * elfread.c (elf_symtab_read): Ditto.
12315 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12316 (hpread_read_enum_type, hpread_read_function_type)
12317 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12319 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12320 (java_link_class_type): Ditto.
12321 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12322 (new_symbol): Ditto.
12323 * minsyms.c (install_minimal_symbols): Ditto.
12324 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12325 (terminate_minimal_symbol_table): Replace symbol_obstack with
12327 (free_objfile): Remove freeing of symbol_obstack.
12328 * objfiles.h: Remove symbol_obstack field.
12329 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12331 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12333 (solib_add_common_symbols): Replace symbol_obstack with
12335 * somsolib.c (som_solib_add): Ditto.
12336 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12337 (common_block_start, common_block_end): Ditto.
12338 * symfile.c (reread_symbols): Remove freeing and init of
12340 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12341 * symfile.h: Update comment.
12342 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12344 * symtab.c (symbol_set_names): Replace symbol_obstack with
12346 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12348 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12349 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12352 2004-02-07 Andrew Cagney <cagney@redhat.com>
12354 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12355 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12356 fields and variables.
12357 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12358 (m_beInvisible): Delete macro.
12359 * tui/tui-data.h: Fix case case fields and variables.
12360 (m_genWinPtrIsNull): Delete macro.
12361 (tui_win_list): Rename winList.
12362 (TUI_SRC_WIN): Rename srcWin.
12363 (TUI_DISASM_WIN): Rename disassemWin.
12364 (TUI_DATA_WIN): Rename dataWin.
12365 (TUI_CMD_WIN): Rename cmdWin.
12366 (m_genWinPtrNotNull): Delete macro.
12367 (m_winPtrIsNull): Delete macro.
12368 (m_winPtrNotNull): Delete macro.
12369 (tui_win_is_source_type): Replace m_winIsSourceType
12370 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12371 (tui_win_has_locator): Replace m_hasLocator.
12372 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12373 m_setWinHighlightOff.
12374 * tui/tui-data.c: Update references.
12375 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12376 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12377 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12378 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12379 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12380 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12381 * tui/tui-winsource.c, tui/tui.c: Ditto.
12383 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12385 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12386 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12389 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12390 variable `i6' to `i7'.
12391 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12393 2004-02-07 Andrew Cagney <cagney@redhat.com>
12395 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12396 (TuiPoint, TuiPointPtr): Ditto.
12397 (TuiStatus, TuiStatusPtr): Ditto.
12398 (TuiWinType, TuiWinTypePtr): Ditto.
12399 (struct tui_point): Rename _TuiPoint.
12400 (tui_get_low_disassembly_address): Rename
12401 tuiGetLowDisassemblyAddress.
12402 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12403 (tuiFree): Delete declaration.
12404 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12405 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12406 * tui/tui.c (tuiFree): Delete function.
12407 * cli/cli-cmds.c (disassemble_command): Update references.
12408 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12409 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12410 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12411 * tui/tui-winsource.c: Ditto.
12413 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12415 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12416 coffstab_build_psymtabs, elfstab_build_psymtabs)
12417 (stabsect_build_psymtabs): Replace psymbol_obstack with
12419 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12420 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12422 * dwarfread.c (scan_compilation_units): Ditto.
12423 * elfread.c (elfstab_offset_sections): Ditto.
12424 * hppa-tdep.c (read_unwind_info): Ditto.
12425 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12426 (hpread_end_psymtab): Ditto.
12427 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12428 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12430 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12431 * objfiles.c (add_to_objfile_sections)
12432 (build_objfile_section_table): Ditto.
12433 (allocate_objfile): Remove init of psymbol_obstack.
12434 (free_objfile): Remove freeing of psymbol_obstack.
12435 * objfiles.h (struct objfile): Remove field
12436 psymbol_obstack. Update comments.
12437 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12438 psymbol_obstack with objfile_obstack.
12439 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12441 * somread.c (som_symfile_offsets, init_import_symbols)
12442 (init_export_symbols): Replace psymbol_obstack with
12444 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12445 * symfile.c (default_symfile_offsets, syms_from_objfile)
12446 (reread_symbols): Remove freeing and init of psymbol_obstack.
12447 (cashier_psymtab): Update comment.
12448 * symmisc.c (print_objfile_statistics): Don't report stats for
12450 * symtab.h (struct general_symbol_info, struct partial_symtab):
12452 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12453 (xcoff_symfile_offsets): Replace psymbol_obstack with
12456 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12458 * objfiles.h (struct objfile): Add objfile_obstack field.
12459 Remove type_obstack field.
12461 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12462 read_structure_scope read_enumeration, new_symbol): Replace
12463 type_obstack with objfile_obstack.
12464 * dwarfread.c (struct_type, enum_type): Ditto.
12465 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12466 (lookup_fundamental_type): Ditto.
12467 * gdbtypes.h (TYPE_ALLOC): Ditto.
12468 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12469 (hpread_read_doc_function_type, hpread_read_struct_type)
12470 (fix_static_member_physnames, hpread_read_array_type)
12471 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12472 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12473 (java_link_class_type): Ditto.
12474 * mdebugread.c (parse_type): Ditto.
12475 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12476 * solib-sunos.c (solib_add_common_symbols): Ditto.
12477 * stabsread.c (define_symbol, read_type, read_member_functions,
12478 read_cpp_abbrev, read_one_struct_field): Ditto.
12479 * symfile.c (reread_symbols): Ditto.
12480 * symmisc.c (print_objfile_statistics): Ditto.
12482 2004-02-07 Andrew Cagney <cagney@redhat.com>
12484 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12485 (tui_exec_info_content): Rename TuiExecInfoContent.
12486 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12487 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12488 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12489 (TuiList, TuiListPtr): Ditto.
12490 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12491 (TuiDataType, TuiDataTypePtr): Ditto.
12492 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12493 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12494 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12495 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12496 (TuiDataElement, TuiDataElementPtr): Ditto.
12497 (TuiWinElement, TuiWinElementPtr): Ditto.
12498 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12499 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12500 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12501 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12502 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12503 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12504 * tui/tui-command.c, tui/tui-data.c: Update references.
12505 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12506 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12507 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12508 * tui/tui-winsource.c, tui/tui.c: Ditto.
12510 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12512 * dwarf2-frame.h: Update copyright.
12513 (enum dwarf2_frame_reg_rule): New.
12514 (struct dwarf2_frame_state_reg): New.
12515 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12516 * dwarf2-frame.c: Update copyright.
12517 (enum dwarf2_reg_rule): Remove.
12518 (struct dwarf2_frame_state): Remove defenition of `struct
12519 dwarf2_frame_state_reg'.
12520 (read_reg): Call get_frame_arch to get the architecture instead of
12521 using CURRENT_GDBARCH.
12522 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12524 (dwarf2_frame_init_reg): New function.
12525 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12526 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12527 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12528 tags with DWARF2_FRAME_.
12529 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12530 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12531 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12533 2004-02-06 Andrew Cagney <cagney@redhat.com>
12535 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12536 (enum tui_data_type): Rename _TuiDataType.
12537 (struct tui_layout_def): Rename _TuiLayoutDef.
12538 (struct tui_source_element): Rename _TuiSourceElement.
12539 (struct tui_data_element): Rename _TuiDataElement.
12540 (struct tui_command_element): Rename _TuiCommandElement.
12541 (struct tui_locator_element): Rename _TuiLocatorElement.
12542 (union tui_which_element): Define.
12543 (struct tui_win_element): Rename _TuiWinElement.
12544 (struct tui_data_info): Rename _TuiDataInfo.
12545 (struct tui_source_info): Rename _TuiSourceInfo.
12546 (struct tui_command_info): Rename _TuiCommandInfo.
12547 (tui_initialize_static_data): Rename initializeStaticData.
12548 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12549 (tui_alloc_win_info): Rename allocWinInfo.
12550 (tui_init_generic_part): Rename initGenericPart.
12551 (tui_init_win_info): Rename initWinInfo.
12552 (tui_alloc_content): Rename allocContent.
12553 (tui_add_content_elements): Rename addContentElements.
12554 (tui_init_content_element): Rename initContentElement.
12555 (tui_free_window): Rename freeWindow.
12556 (tui_free_win_content): Rename freeWinContent.
12557 (tui_free_data_content): Rename freeDataContent.
12558 (tui_free_all_source_wins_content): Rename
12559 freeAllSourceWinsContent.
12560 (tui_del_window): Rename tuiDelWindow.
12561 (tui_del_data_windows): Rename tuiDelDataWindows.
12562 (tui_partial_win_by_name): Rename partialWinByName.
12563 (tui_win_name): Rename winName.
12564 (tui_current_layout): Rename currentLayout.
12565 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12566 (tui_term_height): Rename termHeight.
12567 (tui_set_term_height_to): Rename setTermHeightTo.
12568 (tui_term_width): Rename termWidth.
12569 (tui_set_term_width_to): Rename setTermWidthTo.
12570 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12571 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12572 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12573 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12574 (tui_source_windows): Rename sourceWindows.
12575 (tui_clear_source_windows): Rename clearSourceWindows.
12576 (tui_clear_source_windows_detail): Rename
12577 clearSourceWindowsDetail.
12578 (tui_clear_win_detail): Rename clearWinDetail.
12579 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12580 (tui_default_tab_len): Rename tuiDefaultTabLen.
12581 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12582 (tui_win_with_focus): Rename tuiWinWithFocus.
12583 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12584 (tui_layout_def): Rename tuiLayoutDef.
12585 (tui_win_resized): Rename tuiWinResized.
12586 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12587 (tui_next_win): Rename tuiNextWin.
12588 (tui_prev_win): Rename tuiPrevWin.
12589 (tui_add_to_source_windows): Rename addToSourceWindows.
12590 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12591 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12592 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12593 * tui/tui.c, tui/tui-data.c: Ditto.
12594 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12595 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12597 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12598 (struct symtab): Declare.
12599 (tui_set_source_content): Rename tuiSetSourceContent.
12600 (tui_show_symtab_source): Rename tuiShowSource.
12601 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12602 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12603 * tui/tui-source.c: Update copyright. Update references.
12604 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12605 * tui/tui-stack.c: Update references.
12607 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12608 (struct tui_win_info): Declare.
12609 (tui_scroll_forward): Rename tuiScrollForward.
12610 (tui_scroll_backward): Rename tuiScrollBackward.
12611 (tui_scroll_left): Rename tuiScrollLeft.
12612 (tui_scroll_right): Rename tuiScrollRight.
12613 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12614 (tui_resize_all): Rename tuiResizeAll.
12615 (tui_refresh_all_win): Rename tuiRefreshAll.
12616 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12617 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12618 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12619 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12621 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12622 (tui_erase_data_content): Rename tuiEraseDataContent.
12623 (tui_display_all_data): Rename tuiDisplayAllData.
12624 (tui_check_data_values): Rename tuiCheckDataValues.
12625 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12626 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12627 (tui_first_data_element_no_in_line): Rename
12628 tuiFirstDataElementNoInLine.
12629 (tui_delete_data_content_windows): Rename
12630 tuiDeleteDataContentWindows.
12631 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12632 (tui_display_data_from): Rename tuiDisplayDataFrom.
12633 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12634 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12635 * tui/tui-win.c, tui/tui-regs.c: Update references.
12636 * tui/tui-layout.c, tui/tui.c: Update references.
12638 * tui/tui-wingeneral.h: Update copyright.
12639 (m_allBeVisible): Delete macro.
12640 (m_allBeInvisible): Delete macro.
12641 (struct tui_gen_win_info): Declare.
12642 (struct tui_win_info): Declare.
12643 (tui_unhighlight_win): Rename unhighlightWin.
12644 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12645 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12646 (tui_make_window): Rename makeWindow.
12647 (tui_copy_win): Rename copyWin.
12648 (tui_box_win): Rename boxWin.
12649 (tui_highlight_win): Rename highlightWin.
12650 (tui_check_and_display_highlight_if_needed): Rename
12651 checkAndDisplayHighlightIfNeeded.
12652 (tui_refresh_all): Rename refreshAll.
12653 (tui_delete_win): Rename tuiDelwin.
12654 (tui_refresh_win): Rename tuiRefreshWin.
12655 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12656 (tui_make_visible, tui_make_invisible): New functions.
12657 (tui_make_all_visible, tui_make_all_invisible): New functions.
12658 (make_all_visible): Rename makeAllVisible.
12659 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12660 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12661 * tui/tui-windata.c, tui/tui-win.c: Update references.
12662 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12663 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12665 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12667 * proc-api.c (write_with_trace): Initialize local variable to
12668 silence compiler warning.
12670 2004-02-06 Andrew Cagney <cagney@redhat.com>
12672 * tui/tui-source.h: Do not include "defs.h".
12673 (struct tui_win_info): Declare.
12674 (tui_set_source_content_nil): Declare.
12675 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12676 (union tui_line_or_address): Rename _TuiLineOrAddress.
12677 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12678 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12679 (tui_update_source_window_as_is): Rename
12680 tuiUpdateSourceWindowAsIs.
12681 (tui_update_source_windows_with_addr): Rename
12682 tuiUpdateSourceWindowsWithAddr.
12683 (tui_update_source_windows_with_line): Rename
12684 tuiUpdateSourceWindowsWithLine.
12685 (tui_clear_source_content): Rename tuiClearSourceContent.
12686 (tui_erase_source_content): Rename tuiEraseSourceContent.
12687 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12688 (tui_show_source_content): Rename tuiShowSourceContent.
12689 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12690 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12691 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12692 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12693 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12694 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12695 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12696 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12697 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12698 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12699 (struct tui_win_info): Declare.
12700 * tui/tui-stack.c: Update references.
12701 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12702 * tui/tui-win.c, tui/tui-source.c: Ditto.
12703 * tui/tui.c, tui/tui-disasm.c: Ditto.
12705 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12707 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12708 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12710 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12712 * infrun.c (handle_inferior_event): Allow for breakpoint
12713 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12714 and SIGEMT. Update comments.
12715 * NEWS (Revised SPARC target): Mention support for non-executable
12718 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12720 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12721 * inftarg.c: Update copyright year.
12722 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12723 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12724 (sparc_xfer_wcookie): New function.
12725 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12726 * Makefile.in (sparc-nat.o): Update dependencies.
12727 * config/sparc/nm-nbsd.h: Include "target.h".
12728 (NATIVE_XFER_WCOOKIE): New define.
12729 (sparc_xfer_wcookie): New prototype.
12731 2004-02-04 Andrew Cagney <cagney@redhat.com>
12733 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12734 SYSCALL_TRAP function.
12735 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12737 2004-02-04 Andrew Cagney <cagney@redhat.com>
12738 Daniel Jacobowitz <drow@mvista.com>
12740 * objfiles.h: Delete comments refering to inside_entry_func and
12741 DEPRECATED_FRAME_CHAIN_VALID.
12742 * defs.h (inside_entry_func): Update prototype..
12743 * blockframe.c (inside_entry_func): Rename to
12744 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12745 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12747 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12749 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12750 outside of #ifdef SOLIB_ADD region.
12751 (do_restore_lang_radix_cleanup): Ditto.
12752 (resolve_pending_breakpoint): Ditto.
12754 2004-02-03 Andrew Cagney <cagney@redhat.com>
12756 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12757 (process_note_abi_tag_sections): Delete unused function.
12758 (ia64_read_fp): Delete unused function.
12759 (gdbarch_extract_struct_value_address): Delete declaration.
12761 2004-02-02 Andrew Cagney <cagney@redhat.com>
12763 * vax-tdep.c (vax_frame_chain): Delete call to
12764 deprecated_inside_entry_file.
12765 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12767 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12769 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12770 column that's "empty" or "same value" when eliminating REG_RA
12773 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12775 * NEWS: Add information about new pending breakpoint support.
12777 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12779 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12780 and pending fields for pending breakpoint support.
12781 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12782 (condition_command): Only parse condition if not a pending
12784 (print_one_breakpoint): Add support for pending breakpoints.
12785 (describe_other_breakpoints): Add checks to verify we are not
12786 dealing with pending breakpoints.
12787 (check_duplicates): Don't check pending breakpoints.
12788 (set_raw_breakpoint): Initialize pending flag.
12789 (do_restore_lang_radix_cleanup): New cleanup routine.
12790 (resolve_pending_breakpoint): New function.
12791 (re_enable_breakpoints_in_shlibs): Try and resolve any
12792 pending breakpoints via resolve_pending_breakpoint.
12793 (mention): Add pending breakpoint support.
12794 (parse_breakpoint_sals): Add new parameter to pass to
12795 decode_line_1 to indicate silent errors when files or functions
12796 are not found. Change all callers.
12797 (do_captured_parse_breakpoint): New function.
12798 (break_command_1): Change prototype to return an rc value and to
12799 take an optional pending breakpoint pointer. Support creating
12800 a pending breakpoint if a "not found" form of error occurs when
12801 parsing the breakpoint. Also support resolving an existing pending
12802 breakpoint and be silent if the resolution fails.
12803 (create_breakpoints): Change prototype to take pending breakpoint
12804 pointer. When resolving a pending breakpoint, use the new pointer
12805 to provide a conditional or commands added by the end-user.
12806 (delete_breakpoint): Add appropriate check for pending.
12807 (breakpoint_re_set_one): Ditto.
12808 (do_enable_breakpoint): Ditto.
12810 2004-02-02 David Carlton <carlton@kealia.com>
12812 * valops.c (enum oload_classification): New.
12813 (find_overload_match): Break implementation into separate
12814 functions; delete #if 0'd code; look for symbols within
12816 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12817 (find_oload_champ,oload_method_static,classify_oload_match): New.
12818 * cp-support.h: Add declaration for cp_func_name; update
12819 declaration for make_symbol_overload_list.
12820 * cp-support.c (cp_func_name): New.
12821 (overload_list_add_symbol): Fix comment, use
12822 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12823 (make_symbol_overload_list): Take a function name and a namespace
12824 instead of a symbol; change implementation.
12825 (make_symbol_overload_list_using): New.
12826 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12828 2004-02-02 Fred Fish <fnf@redhat.com>
12830 * main.c (gdb_stdtarg): Move definition to group with other
12831 gdb_stdtarg definitions and update copyright years.
12832 * remote-sim.c (gdb_os_write_stderr): Write output to
12833 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12834 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12835 gdb_stderr stream and update copyright years.
12837 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12839 * Makefile.in (mips-linux-nat.o): Update dependencies.
12840 * mips-linux-nat.c: Include mips-tdep.h.
12842 2004-02-01 Roland McGrath <roland@redhat.com>
12844 * sol-thread.c (sol_thread_xfer_partial): New function.
12845 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12846 (init_sol_core_ops): Likewise.
12848 * procfs.c (procfs_xfer_partial): New function.
12849 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12850 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12852 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12853 procfs_xfer_auxv function.
12855 * procfs.c (procfs_make_note_section): If we can read
12856 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12857 * linux-proc.c (linux_make_note_section): Likewise.
12859 * auxv.h: New file.
12860 * auxv.c: New file.
12861 * Makefile.in (auxv_h): New variable.
12862 (COMMON_OBS): Add auxv.o here.
12863 (auxv.o): New target.
12865 * corelow.c (core_xfer_partial): New function.
12866 (init_core_ops): Use it for core_ops.to_xfer_partial.
12868 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12869 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12870 macro if that is defined.
12872 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12874 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12875 and check the specified thread for each breakpoint.
12876 * breakpoint.h (bpstat_stop_status): Update prototype.
12877 * infrun.c (handle_inferior_event): Update calls to
12878 bpstat_stop_status.
12880 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12882 * Makefile.in (cli-cmds.o): Add $(readline_h).
12884 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12886 * cli/cli-cmds.c: Include readline.h.
12887 (complete_command): Pass the start of the last word to
12890 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12892 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12893 argument, and change first argument to a CORE_ADDR.
12894 * breakpoint.h (bpstat_stop_status): Update prototype.
12895 * infrun.c (adjust_pc_after_break): Add a new comment.
12896 (handle_inferior_event): Update calls to bpstat_stop_status.
12898 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12900 * breakpoint.h: Update copyright years.
12902 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12904 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12905 (bpstat_stop_status): Don't decrement PC.
12906 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12908 * infrun.c (adjust_pc_after_break): New function.
12909 (handle_inferior_event): Call it, early. Remove later references
12910 to DECR_PC_AFTER_BREAK.
12911 (normal_stop): Add commentary.
12913 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12915 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12916 2004-01-27 double-free fix.
12918 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12920 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12921 (sparc32_frame_prev_register): Handle StackGhost.
12922 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12924 2004-01-29 Roland McGrath <roland@redhat.com>
12926 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12927 * configure: Regenerated.
12929 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12930 * Makefile.in (procfs.o): Add dep.
12932 2004-01-28 Andrew Cagney <cagney@redhat.com>
12934 * tui/tui-stack.h: Update copyright.
12935 (struct frame_info): Add opaque declaration.
12936 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12937 (tui_show_locator_content): Rename tuiShowLocatorContent.
12938 (tui_show_frame_info): Rename tuiShowFrameInfo.
12939 * tui/tui-stack.c: Update copyright. Update references.
12940 * tui/tui-winsource.c: Update references.
12941 * tui/tui-win.c: Update references.
12942 * tui/tui-layout.c: Update references.
12943 * tui/tui-hooks.c: Update copyright, update references.
12944 * tui/tui.c: Update copyright, update references.
12945 * tui/tui-disasm.c: Update references.
12947 2004-01-28 David Carlton <carlton@kealia.com>
12949 * dwarf2read.c (add_partial_structure): Use demangled name if
12950 namespace equals "".
12952 2004-01-27 Jim Blandy <jimb@redhat.com>
12954 Clean up misapplied patch:
12955 * dwarf2read.c (determine_prefix): Change one of the two forward
12956 declarations for 'determine_prefix_aux' to a declaration for this.
12957 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12958 argument to 'die_specification'.
12960 * dwarf2read.c (read_func_scope): Re-indent comment.
12962 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12964 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12965 b->exp to NULL after freeing so that error during re-parsing or
12966 evaluation of expressions associated with breakpoint don't
12967 eventually lead to re-freeing of storage.
12968 Committed by Andrew Cagney.
12970 2004-01-27 Andrew Cagney <cagney@redhat.com>
12972 * source.c (ambiguous_line_spec): Delete undefined declaration.
12973 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12974 (m32r_set_server_address, m32r_set_download_path): Ditto.
12975 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12977 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12979 * dwarf2read.c: Update calls to changed and renamed functions, and
12980 references to moved variables.
12982 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12983 language, language_defn, list_in_scope, and ftypes members.
12984 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12985 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12986 (baseaddr): Remove globals.
12988 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12989 (set_cu_language, die_is_declaration, die_specification)
12990 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12991 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12992 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12993 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12995 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12996 cu.list_in_scope. Don't initialize cu_header_offset.
12997 (add_partial_symbol): Add local baseaddr.
12998 (psymtab_to_symtab_1): Add local baseaddr. Use
12999 objfile->section_offsets for consistency. Don't initialize
13000 cu_header_offset; do initialize cu.header.offset and
13002 (read_file_scope, read_func_scope, read_lexical_block_scope)
13003 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13005 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13007 * PROBLEMS: Add gdb/1516.
13009 2003-12-29 Robert Millan <robertmh@gnu.org>
13011 Patch committed by Andrw Cagney.
13012 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13013 * configure.tgt: Match knetbsd*-gnu.
13015 2004-01-26 Andrew Cagney <cagney@redhat.com>
13017 * breakpoint.c (catch_command_1): Delete #ifdef code.
13018 (catch_fork_command_1): Delete #ifdef wrapper.
13019 (catch_exec_command_1): Ditto.
13020 (catch_load_command_1): Ditto.
13021 (catch_unload_command_1): Ditto.
13023 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13024 (catch_breakpoint): Delete #if0ed function.
13025 (disable_catch_breakpoint): Ditto.
13026 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13027 (disable_catch, enable_catch, delete_catch): Ditto.
13029 2004-01-26 Andrew Cagney <cagney@redhat.com>
13031 * remote.c (echo_check, quit_flag): Delete variables.
13032 (cisco_kernel_mode): Delete variable.
13033 (minitelnet_return, tty_input, escape_count): Delete variables.
13034 (remote_cisco_mode): Delete variable.
13035 (remote_cisco_open, remote_cisco_close): Delete function.
13036 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13037 (init_remote_cisco_ops): Delete function.
13038 (_initialize_remote): Do not install "remote cisco" code.
13039 (read_frame): Delete cisco specific code.
13040 (remote_info_process): Delete function.
13041 (remote_wait): Delete cisco specific code.
13042 (remote_cisco_section_offsets): Delete function.
13043 (remote_cisco_objfile_relocate): Delete function.
13044 (remote_async_wait): Delete cisco specific code.
13045 (minitelnet, readtty, readsocket): Delete function.
13047 2004-01-26 Andrew Cagney <cagney@redhat.com>
13049 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13050 comments mentioning extract_returned_value_address.
13051 * infcmd.c (print_return_value): Update. Add comments on
13052 extract_returned_value_address.
13053 * stack.c (return_command): Add comments on
13054 extract_returned_value_address.
13055 * values.c: Update comment.
13056 * m32r-tdep.c: Update comment.
13057 * sparc-tdep.c: Update comment.
13058 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13059 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13060 * sh64-tdep.c (sh64_gdbarch_init): Update.
13061 * sh-tdep.c (sh_gdbarch_init): Update.
13062 * s390-tdep.c (s390_gdbarch_init): Update.
13063 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13064 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13065 * m68k-tdep.c (m68k_gdbarch_init): Update.
13066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13067 * m32r-tdep.c (m32r_gdbarch_init): Update.
13068 * ia64-tdep.c (ia64_gdbarch_init): Update.
13069 * h8300-tdep.c (h8300_gdbarch_init): Update.
13070 * frv-tdep.c (frv_gdbarch_init): Update.
13071 * arm-tdep.c (arm_gdbarch_init): Update.
13072 * alpha-tdep.c (alpha_gdbarch_init): Update.
13074 2004-01-26 Andrew Cagney <cagney@redhat.com>
13076 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13077 SYMBOL_LOCATION_FUNCS
13078 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13079 "struct symbol_ops".
13080 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13081 type to "struct symbol_ops".
13082 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13083 (struct symbol): Replace ".aux_value.loc.funcs" and
13084 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13085 (SYMBOL_OBJFILE): Delete macro.
13086 (SYMBOL_LOCATION_FUNCS): Delete macro.
13087 (SYMBOL_LOCATION_BATON): Update.
13088 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13089 intead of SYMBOL_LOCATION_FUNCS.
13090 * ax-gdb.c (gen_var_ref): Ditto.
13091 * printcmd.c (address_info): Ditto.
13092 * findvar.c (read_var_value): Ditto.
13093 (symbol_read_needs_frame): Ditto.
13095 2004-01-26 Andrew Cagney <cagney@redhat.com>
13097 * dwarf2read.c (read_func_scope): Document frame-base hack.
13099 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13101 * infcmd.c (print_return_value): Plug memory leak; delete
13102 ui_stream object. Rename argument `structure_return' to
13105 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13107 * infcmd.c (print_return_value): Wrap long lines.
13108 (finish_command_continuation, finish_command): Remove unused
13109 variable `funcaddr'. Fix some coding-standards problems.
13111 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13112 SECT_SIZE is large enough, not whether it's exactly the right size.
13113 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13114 TDEP->fpregset to zero.
13116 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13117 floating-point registers for traditional NetBSD core files.
13118 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13119 TDEP->sizeof_fpregset here.
13121 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13123 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13124 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13125 function with code split out from
13126 sparc32nbsd_sigcontext_frame_cache.
13127 (sparc32nbsd_sigcontext_frame_cache): Use
13128 sparc32nbsd_sigcontext_saved_regs.
13129 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13131 * sparcobsd-tdep.c: New file.
13132 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13133 (sparcobsd-tdep.o): New dependency.
13134 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13135 * config/sparc/obsd.mt: New file.
13137 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13138 TDEP->fpregset to be initialized to enable core file register
13141 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13143 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13144 Add opaque declarations.
13145 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13146 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13147 function with code split out from
13148 sparc64nbsd_sigcontext_frame_cache.
13149 (sparc64nbsd_sigcontext_frame_cache): Use
13150 sparc64nbsd_sigcontext_saved_regs.
13151 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13153 * sparc64obsd-tdep.c: New file.
13154 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13155 (sparc64obsd-tdep.o): New dependency.
13156 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13157 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13158 * config/sparc/obsd64.mt: New file.
13160 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13161 read the instruction at PC.
13163 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13164 value of GDB_OSABI_DEFAULT.
13165 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13166 instead of GDB_OSABI_NETBSD_AOUT.
13168 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13170 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13173 2004-01-23 Andrew Cagney <cagney@redhat.com>
13175 * printcmd.c (display_command): Replace tui_set_display call with
13176 tui_set_layout_for_display_command.
13177 * tui/tui.h (enum tui_win_type): Define.
13178 (tui_set_layout): Delete declaration.
13179 (tui_set_layout_for_display_command): Rename set_tui_layout.
13180 * tui/tui-data.h (enum tui_layout_type): Define.
13181 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13183 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13184 (tui_default_win_height): Rename tuiDefaultWinHeight.
13185 (tui_default_win_viewport_height): Rename
13186 tuiDefaultWinViewportHeight.
13187 (tui_set_layout): RenametuiSetLayout.
13188 * tui/tui-layout.c: Update references.
13189 * tui/tui.c: Update references.
13190 * tui/tui-disasm.c: Update references.
13192 2004-01-23 David Carlton <carlton@kealia.com>
13194 Partial workaround for PR c++/1511:
13195 * cp-namespace.c: Include frame.h.
13196 (cp_lookup_transparent_type): New
13197 (cp_lookup_transparent_type_loop): New.
13198 * cp-support.h: Declare cp_lookup_transparent_type.
13199 * symtab.c (basic_lookup_transparent_type): Renamed from
13200 lookup_transparent_type.
13201 (lookup_transparent_type): Replace old body by a call to
13202 current_language->la_lookup_transparent_type.
13203 * symtab.h: Update copyright. Declare
13204 basic_lookup_transparent_type.
13205 * language.h: Update copyright.
13206 (struct language_defn): Add la_lookup_transparent_type.
13207 * language.c: Update copyright.
13208 (unknown_language_defn): Add basic_lookup_transparent_type.
13209 (auto_language_defn): Add basic_lookup_transparent_type.
13210 (local_language_defn): Add basic_lookup_transparent_type.
13211 * ada-lang.c: Update copyright.
13212 (ada_language_defn): Add basic_lookup_transparent_type.
13213 * c-lang.c: Update copyright.
13214 (c_language_defn): Add basic_lookup_transparent_type.
13215 (cplus_language_defn): Add basic_lookup_transparent_type.
13216 (asm_language_defn): Add basic_lookup_transparent_type.
13217 (minimal_language_defn): Add basic_lookup_transparent_type.
13218 * f-lang.c: Update copyright.
13219 (f_language_defn): Add basic_lookup_transparent_type.
13220 * jv-lang.c: Update copyright.
13221 (java_language_defn): Add basic_lookup_transparent_type.
13222 * m2-lang.c: Update copyright.
13223 (m2_language_defn): Add basic_lookup_transparent_type.
13224 * objc-lang.c: Update copyright.
13225 (objc_language_defn): Add basic_lookup_transparent_type.
13226 * p-lang.c: Update copyright.
13227 (p_language_defn): Add basic_lookup_transparent_type.
13228 * scm-lang.c: Update copyright.
13229 (scm_language_defn): Add basic_lookup_transparent_type.
13230 * Makefile.in (cp-namespace.o): Depend on frame.h.
13232 2004-01-23 David Carlton <carlton@kealia.com>
13234 Patch for PR c++/1520:
13235 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13236 properly if we have a specification die.
13237 (determine_prefix_aux): Rename from determine_prefix.
13238 (determine_prefix): Like the old determine_prefix, but never
13241 2004-01-23 Theodore A. Roth <troth@openavr.org>
13243 * avr-tdep.c: Update copyright.
13244 (avr_iaddr_p): Delete unused function.
13245 (avr_saddr_p): Delete unused function.
13247 2004-01-23 David Carlton <carlton@kealia.com>
13249 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13250 Fix for PR symtab/1534.
13252 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13254 * NEWS (New native configurations): Mention OpenBSD/sparc and
13256 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13257 * configure.host: Likewise.
13258 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13259 handler for OpenBSD.
13260 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13262 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13264 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13265 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13267 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13268 * cli/cli-cmds.c (shell_escape): Likewise.
13270 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13271 OpenBSD .note.openbsd.ident sections.
13273 2004-01-22 David Carlton <carlton@kealia.com>
13275 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13276 get_scope_pc_bounds.
13277 (read_file_scope): Ditto.
13278 (get_scope_pc_bounds): New function, produced by extracting code
13279 from the above two functions, consolidating it, and adding support
13280 for DW_TAG_namespace.
13282 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13284 * osabi.c (MAX_NOTESZ): New define.
13285 (check_note): New function.
13286 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13289 2004-01-21 Roland McGrath <roland@redhat.com>
13291 * MAINTAINERS (write after approval): Add myself.
13293 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13295 * utils.c (init_page_info): Move declarations of `rows' and
13296 `cols' before the __GO32__-specific code. Move the closing brace
13297 outside the #ifdef __GO32__..#endif block.
13298 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13300 2004-01-21 Paul Brook <paul@codesourcery.com>
13302 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13303 BPSTAT_WHAT_CHECK_SHLIBS.
13305 2004-01-21 Paul Brook <paul@codesourcery.com>
13307 * MAINTAINERS: Add myself to write-after-approval.
13309 2004-01-20 Andrew Cagney <cagney@redhat.com>
13311 * ax-gdb.c (print_axs_value): Delete unused function.
13312 * jv-lang.c (java_lookup_type): Delete unused function.
13313 * cli/cli-dump.c (dump_filetype): Delete unused function.
13314 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13315 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13316 (mips_getstring): Delete unused function.
13317 (pmon_insert_breakpoint): Delete #if0ed function.
13318 (PMON_MAX_BP): Delete #if0ed MACRO.
13319 (mips_pmon_bp_info): Delete #if0ed variable.
13320 (pmon_remove_breakpoint): Delete #if0ed function.
13321 * monitor.c (monitor_write_even_block): Delete unused function.
13322 (monitor_write_memory_block): Delete #if0ed code.
13323 * dink32-rom.c (dink32_load): Delete unused function.
13324 (_initialize_dink32_rom): Delete #if0ed code.
13325 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13327 * tui/tui-command.c: Update references.
13328 * tui/tui-io.c: Update references.
13329 * tui/tui-command.h: Update copyright.
13330 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13332 * source.c (ambiguous_line_spec): Delete never-defined function.
13333 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13334 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13335 * cli/cli-cmds.c (validate_comname): Ditto.
13337 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13339 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13340 (tui_show_disassem): Rename tuiShowDisassem.
13341 (tui_show_disassem_and_update_source): Rename
13342 tuiVerticalDisassemScroll.
13343 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13344 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13345 * tui/tui.h: Update copyright.
13346 (enum tui_status): Define.
13347 * tui/tui-data.h (enum tui_scroll_direction): Define.
13348 * tui/tui-disasm.c: Update copyright. Update references.
13349 * tui/tui-winsource.c: Update copyright. Update references.
13350 * tui/tui-win.c: Update references.
13351 * tui/tui-layout.c: Update references.
13353 2004-01-20 Andrew Cagney <cagney@redhat.com>
13355 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13356 sym2 to start of block.
13358 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13360 * MAINTAINERS: Delete mmalloc.
13361 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13362 * NEWS: Mention removal of --with-malloc.
13363 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13364 * config.in: Regenerate.
13365 * configure: Regenerate.
13366 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13367 USE_MMALLOC, MMCHECK_FORCE.
13368 * gdbinit.in: Remove mmalloc.
13369 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13370 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13371 * config/i386/go32.mh: Likewise.
13372 * config/i386/interix.mh: Likewise.
13373 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13375 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13377 * linespec.c (decode_variable, symtab_from_filename): Call
13378 error_silent with error message instead of throwing an exception
13380 * defs.h (error_silent, error_output_message): Add prototypes.
13381 (catch_exceptions_with_msg): Ditto.
13382 * utils.c (error_silent, error_output_message): New functions.
13383 * top.c (catch_exceptions_with_msg): New function.
13385 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13387 * mi/mi-cmds.h (enum print_values): Add definition.
13389 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13390 type and value for simple data types and just the name and type
13391 for complex ones, if required.
13393 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13394 children, if required.
13396 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13398 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13399 unused declarations.
13401 2004-01-19 Andrew Cagney <cagney@redhat.com>
13403 * top.h (mapped_symbol_files): Delete declaration.
13404 * main.c (captured_main): Delete option "m" and "mapped".
13405 * objfiles.c (mapped_symbol_files): Delete variable.
13406 * symfile.c (symbol_file_command): Delete mmap code.
13407 (symbol_file_add_with_addrs_or_offsets): Ditto.
13408 (add_symbol_file_command, reread_separate_symbols): Ditto.
13409 * objfiles.h (OBJF_MAPPED): Delete.
13410 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13411 (free_objfile) [USE_MMALLOC]: Ditto.
13412 (open_existing_mapped_file): Delete function.
13413 (open_mapped_file): Delete function.
13414 (map_to_file): Delete function.
13416 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13418 * infrun.c (step_into_function): Account for possible breakpoint
13419 adjustment when computing ``stop_func_start''.
13421 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13423 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13424 the region size against the size of a pointer, not the size of
13425 a register as given by DEPRECATED_REGISTER_SIZE.
13427 2004-01-19 Andrew Cagney <cagney@redhat.com>
13429 * tui/tui-regs.h: Include "tui-data.h".
13430 (tuiFirstRegElementNoInLine): Delete declaration.
13431 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13432 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13433 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13434 (tui_calculate_regs_column_count): Rename
13435 tuiCalculateRegsColumnCount.
13436 (tui_check_register_values): Rename tuiCheckRegisterValues.
13437 (tui_show_registers): Rename tuiShowRegisters.
13438 (tui_display_registers_from_line): Rename
13439 tuiDisplayRegistersFromLine.
13440 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13441 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13442 (tui_first_reg_element_no_inline): Rename
13443 tuiFirstRegElementNoInLine.
13444 * tui/tui-data.h: Update copyright.
13445 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13446 * tui/tui-windata.c: Update copyright, update references.
13447 * tui/tui-regs.c: Update copyright, update references.
13448 * tui/tui-win.c: Update copyright, update references.
13449 * tui/tui-layout.c: Update copyright, update references.
13451 2004-01-18 Andrew Cagney <cagney@redhat.com>
13453 * tui/tui-io.c: Update copyright.
13454 (key_is_end_sequence, key_is_backspace): New functions.
13455 (key_is_command_char, key_is_start_sequence): New function.
13456 (tui_getc): Update references.
13457 * tui/tui-io.h: Update copyright.
13458 (m_tuiStartNewLine): Delete macro.
13459 (m_isBackspace, m_isDeleteChar): Delete macros.
13460 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13461 (m_isNextPage, m_isPrevPage): Delete macros.
13462 (m_isLeftArrow, m_isRightArrow): Delete macros.
13463 (m_isXdbStyleCommandChar): Delete macro.
13464 (key_is_start_sequence): Declare, replace m_isStartSequence.
13465 (key_is_end_sequence): Declare, replace m_isEndSequence.
13466 (key_is_backspace): Declare ,replace m_isBackspace.
13467 (key_is_command_char): Declare, replace m_isCommandChar.
13468 * tui/tui-command.c: Update copyright.
13469 (tuiDispatchCtrlChar): Update references.
13471 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13474 * tui/tui-command.c: Rename tui/tuiCommand.c.
13475 * tui/tui-command.h: Rename tui/tuiCommand.h.
13476 * tui/tui-data.c: Rename tui/tuiData.c.
13477 * tui/tui-data.h: Rename tui/tuiData.h.
13478 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13479 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13480 * tui/tui-io.c: Rename tui/tuiIO.c.
13481 * tui/tui-io.h: Rename tui/tuiIO.h.
13482 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13483 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13484 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13485 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13486 * tui/tui-source.c: Rename tui/tuiSource.c.
13487 * tui/tui-source.h: Rename tui/tuiSource.h.
13488 * tui/tui-stack.c: Rename tui/tuiStack.c.
13489 * tui/tui-stack.h: Rename tui/tuiStack.h.
13490 * tui/tui-win.c: Rename tui/tuiWin.c.
13491 * tui/tui-win.h: Rename tui/tuiWin.h.
13492 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13493 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13494 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13495 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13496 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13497 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13498 * tui/tui-file.c: Update includes.
13499 * tui/tui-hooks.c: Update includes.
13500 * tui/tui-interp.c: Update includes.
13501 * tui/tui.c: Update includes.
13502 * Makefile.in: Update all tui/ dependencies.
13503 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13505 * Makefile.in: Update copyright. Update dependencies.
13507 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13510 2004-01-18 Andrew Cagney <cagney@redhat.com>
13512 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13513 instead of register_gdbarch_init.
13515 * remote-sds.c (tohex): Delete unused function. Update copyright.
13516 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13517 * v850-tdep.c (v850_register_virtual_size): Ditto.
13518 * target.c (normal_target_post_startup_inferior): Ditto.
13519 * source.c (ambiguous_line_spec): Ditto.
13520 * remote.c (adapt_remote_get_threadinfo): Ditto.
13521 * mi/mi-out.c (out_field_fmt): Ditto.
13522 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13523 (output_control_change_notification): Ditto.
13524 * m68k-tdep.c (m68k_register_byte): Ditto.
13525 (m68k_remote_breakpoint_from_pc): Ditto.
13526 * ui-out.c (init_ui_out_state): Delete unused declaration.
13527 * stabsread.c (search_value): Ditto.
13528 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13529 * maint.c (print_section_table): Ditto.
13530 * infrun.c (set_follow_fork_mode_command): Ditto.
13532 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13534 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13535 DW_CFA_def_cfa_exporession. Add support for
13536 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13537 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13539 2004-01-18 Andrew Cagney <cagney@redhat.com>
13541 * ocd.c: Update copyright.
13542 (bdm_read_register_command): Delete unused function.
13543 (_initialize_remote_ocd): Delete commented out reference.
13544 (get_quoted_char, reset_packet): Delete #if0ed function.
13545 (output_packet, put_quoted_char): Delete #if0ed function.
13546 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13547 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13548 (BDM_BREAKPOINT): Delete #if0ed macro.
13549 (remote_timeout): Delete #if0ed variable.
13551 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13553 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13554 (core-sol2.o): Remove dependency.
13555 * core-sol2.c: Remove file.
13557 2004-01-17 Andrew Cagney <cagney@redhat.com>
13559 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13560 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13563 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13565 * remote.c: Update copyright years.
13567 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13569 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13571 2004-01-17 Andrew Cagney <cagney@redhat.com>
13573 * mdebugread.c: Update copyright.
13574 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13575 (parse_type, parse_procedure): Ditto.
13576 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13578 * cris-tdep.c (cris_store_struct_return): Put back accidently
13581 * gdbarch.sh: Update copyright year.
13582 * gdbarch.h, gdbarch.c: Re-generate.
13584 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13586 Suggested by George Anzinger.
13587 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13588 correct stack offset. Include unknown opcode numbers in the error
13591 2004-01-17 Andrew Cagney <cagney@redhat.com>
13593 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13594 extract_struct_value_address, i386 does not set it.
13595 * sparc64-tdep.c (sparc64_init_abi): Do not set
13596 extract_struct_value_address, never called.
13597 (sparc64_extract_struct_value_address): Delete function.
13598 * m68hc11-tdep.c: Update copyright.
13599 (m68hc11_gdbarch_init): Delete redundant assignment of
13600 extract_struct_value_address.
13601 * i386-tdep.c: Update copyright.
13602 (i386_gdbarch_init): Do not set extract_struct_value_address,
13604 (i386_extract_struct_value_address): Delete function.
13605 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13606 extract_struct_value_address, never called.
13607 (sparc32_extract_struct_value_address): #if 0 function. Add
13608 comments explaining its future.
13610 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13612 * arm-tdep.c (arm_write_pc): New function.
13613 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13615 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13617 * breakpoint.c (must_shift_inst_regs): Delete.
13618 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13619 and SHIFT_INST_REGS.
13620 * infcmd.c (step_1, step_1_continuation): Delete references to
13622 * infrun.c (keep_going): Likewise.
13623 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13624 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13626 2004-01-17 Andrew Cagney <cagney@redhat.com>
13628 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13629 * gdbarch.h, gdbarch.c: Re-generate.
13630 * infcmd.c (print_return_value): Delete reference to
13631 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13633 * cris-tdep.c (cris_gdbarch_init): Do not set
13634 deprecated_extract_struct_value_address.
13636 * xstormy16-tdep.c: Update copyright.
13637 (xstormy16_extract_struct_value_address): Update to current
13638 extract struct value address interface.
13639 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13640 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13641 current extract struct value address interface.
13642 (sh64_gdbarch_init): Set extract_struct_value_address.
13644 * cris-tdep.c: Update copyright.
13645 (cris_extract_struct_value_address): Delete function.
13646 (struct_return_address): Delete variable.
13647 (cris_store_struct_return): Do not set struct_return_address.
13649 * mcore-tdep.c: Update copyright.
13650 (mcore_extract_struct_value_address): Delete function. Update
13652 (mcore_gdbarch_init): Update.
13653 * mn10300-tdep.c: Update copyright.
13654 (mn10300_extract_struct_value_address): Delete function.
13655 (mn10300_gdbarch_init): Update.
13656 * v850-tdep.c: Update copyright.
13657 (v850_extract_struct_value_address): Delete.
13658 (v850_gdbarch_init): Update.
13659 * ns32k-tdep.c: Update copyright.
13660 (ns32k_extract_struct_value_address): Delete.
13661 (ns32k_gdbarch_init): Update.
13662 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13663 (hppa_gdbarch_init): Update.
13664 * vax-tdep.c: Update copyright.
13665 (vax_extract_struct_value_address): Delete.
13666 (vax_gdbarch_init): Update.
13668 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13669 * gdbarch.h, gdbarch.c: Re-generate.
13670 * procfs.c (procfs_fetch_registers): Delete reference to
13671 DEPRECATED_NPC_REGNUM.
13672 (procfs_store_registers): Ditto.
13673 * regcache.c (generic_target_write_pc): Simplify.
13674 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13676 * core-sol2.c (fetch_core_registers): Replace
13677 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13679 * hppa-tdep.c: Update copyright year.
13680 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13682 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13684 * mips-tdep.c (mips_write_pc): New function.
13685 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13686 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13687 (mips_find_saved_regs, mips_software_single_step: Ditto.
13688 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13689 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13691 2004-01-17 Andrew Cagney <cagney@redhat.com>
13693 * mips-tdep.c: Re-indent. Group functions by ABI.
13695 2004-01-17 Andrew Cagney <cagney@redhat.com>
13697 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13698 * gdbarch.c: Re-generate.
13699 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13700 DECR_PC_AFTER_BREAK to zero.
13701 * vax-tdep.c (vax_gdbarch_init): Ditto.
13702 * v850-tdep.c (v850_gdbarch_init): Ditto.
13703 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13704 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13705 * sh-tdep.c (sh_gdbarch_init): Ditto.
13706 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13707 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13708 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13709 * mips-tdep.c (mips_gdbarch_init): Ditto.
13710 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13712 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13713 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13714 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13715 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13716 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13717 * frv-tdep.c (frv_gdbarch_init): Ditto.
13718 * cris-tdep.c (cris_gdbarch_init): Ditto.
13719 * avr-tdep.c (avr_gdbarch_init): Ditto.
13720 * arm-tdep.c (arm_gdbarch_init): Ditto.
13721 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13723 2004-01-17 J. Brobecker <brobecker@gnat.com>
13725 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13726 Delete, no longer used.
13727 (read_subrange_type): New function, mostly extracted from
13729 (read_array_type): Replace extracted code by call to
13730 read_subrange_type().
13731 (dwarf2_get_attr_constant_value): New function.
13732 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13733 (add_partial_symbol): Likewise.
13734 (process_die): Likewise.
13735 (new_symbol): Likewise.
13736 (read_type_die): Likewise.
13738 2004-01-16 Andrew Cagney <cagney@redhat.com>
13740 * symfile.c: Update copyright year.
13741 (compare_symbols): Delete unused function.
13742 * stabsread.c: Update copyright year.
13743 (lrs_general_complaint): Delete unused function.
13744 (ref_search_value): Ditto.
13745 (get_substring): Delete declaration.
13746 * sh64-tdep.c: Update copyright year.
13747 (sh64_get_gdb_regnum): Delete unused function.
13748 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13749 Delete unused function.
13751 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13753 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13754 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13756 2004-01-16 Andrew Cagney <cagney@redhat.com>
13758 Changes from Peter Schauer.
13759 * rs6000-tdep.c: Update copyright year.
13760 (rs6000_push_dummy_call): Update the stack pointer before
13761 accessing the corresponding stack region.
13762 * rs6000-nat.c: Update copyright year.
13763 (set_host_arch): Set "info.abfd" to "exec_bfd".
13765 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13767 * blockframe.c: Update copyright year.
13768 (inside_entry_func): Don't treat a zero PC specially.
13770 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13772 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13774 (gcore_create_callback): Ditto. Skip any memory segment that has
13775 no permissions set.
13777 2004-01-14 David Carlton <carlton@kealia.com>
13779 Change symbols for C++ nested types to contain the fully qualified
13780 name, if possible. (At least in the DWARF-2 case.) Partial fix
13781 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13783 * c-exp.y (qualified_type): Handle types nested within classes.
13784 * cp-namespace.c: Update comments.
13785 (cp_set_block_scope): Delete #if 0.
13786 (cp_lookup_nested_type): Handle types nested within classes.
13787 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13789 (add_partial_symbol): Add the name of the enclosing namespace to
13791 (pdi_needs_namespace): New.
13792 (add_partial_namespace): Tweak comment.
13793 (add_partial_structure): New.
13794 (psymtab_to_symtab_1): Initialize processing_current_prefix
13796 (process_die): instead of here.
13797 (read_structure_scope): Try to figure out the name of the class or
13798 namespace that the structure might be defined within.
13799 (read_enumeration): Generate fully-qualified names, if possible.
13800 (read_namespace): Don't set name to NULL.
13801 (die_specification): New.
13802 (new_symbol): Generate fully-qualified names for types.
13803 (read_type_die): Determine appropriate prefix.
13804 (determine_prefix): New.
13805 (typename_concat): New.
13807 * valops.c (value_aggregate_elt): Pass NOSIDE to
13808 value_struct_elt_for_reference.
13809 (value_struct_elt_for_reference): Make static, add NOSIDE
13810 parameter, call value_maybe_namespace_elt as a last resort.
13811 (value_namespace_elt): Break out code into
13812 value_maybe_namespace_elt.
13813 (value_maybe_namespace_elt): New.
13815 2004-01-12 Andrew Cagney <cagney@redhat.com>
13817 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13818 cooked floating-point registers.
13819 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13820 and value_to_register.
13822 2004-01-13 Andrew Cagney <cagney@redhat.com>
13824 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13825 * gdbarch.c: Re-generate.
13826 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13827 FUNCTION_START_OFFSET.
13828 * v850-tdep.c (v850_gdbarch_init): Ditto.
13829 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13830 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13831 * sh-tdep.c (sh_gdbarch_init): Ditto.
13832 * s390-tdep.c (s390_gdbarch_init): Ditto.
13833 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13834 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13835 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13836 * mips-tdep.c (mips_gdbarch_init): Ditto.
13837 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13838 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13840 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13841 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13842 * i386-tdep.c (i386_gdbarch_init): Ditto.
13843 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13844 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13845 * frv-tdep.c (frv_gdbarch_init): Ditto.
13846 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13847 * cris-tdep.c (cris_gdbarch_init): Ditto.
13848 * avr-tdep.c (avr_gdbarch_init): Ditto.
13849 * arm-tdep.c (arm_gdbarch_init): Ditto.
13850 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13852 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13854 * infrun.c (follow_fork_mode_ask): Remove.
13855 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13856 (follow_fork): Simplify and remove internal error for
13857 follow_fork_mode_ask.
13858 (_initialize_infrun): Update "set follow-fork-mode" help text.
13860 2004-01-13 Andrew Cagney <cagney@redhat.com>
13862 * configure.in: Update copyright year.
13863 (build_warnings): Add -Wunused-label.
13864 * configure: Re-generate.
13866 2004-01-12 Andrew Cagney <cagney@redhat.com>
13868 * exec.h (exec_ops): Make "extern".
13870 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13871 the function is void.
13872 (mips_pseudo_register_write): Ditto.
13874 2004-01-12 Andrew Cagney <cagney@redhat.com>
13876 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13877 call. Never defined.
13878 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13879 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13880 (struct sparc_gregset, struct regcache): Ditto.
13881 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13883 2004-01-12 Andrew Cagney <cagney@redhat.com>
13885 * mi/ChangeLog: Delete file. Renamed to ...
13886 * mi/ChangeLog-1999-2003: New file.
13887 * tui/ChangeLog: Delete file. Renamed to ...
13888 * tui/ChangeLog-1998-2003: New file.
13890 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13892 * sparc64nbsd-tdep.c: Include "regset.h".
13893 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13895 (fetch_core_registers): Remove function.
13896 (sparc64nbsd_core_fns): Remove variable.
13897 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13899 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13900 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13901 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13903 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13904 sparc_extract_struct_value_address.
13905 (sparc32_gdbarch_init): Set extract_struct_value_address.
13906 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13908 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13909 return_value_on_stack.
13911 * NEWS: Mention that %cs and %ss have been added to the AMD64
13914 * frame.c: Update copyright year.
13915 (get_prev_frame): Improve comment.
13917 * sparc64fbsd-tdep.c: Include "regset.h".
13918 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13920 (fetch_core_registers): Remove function.
13921 (sparc64fbsd_core_fns): Remove variable.
13922 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13924 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13925 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13926 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13928 * sparcnbsd-tdep.c: Include "regset.h".
13929 (fetch_core_registers): Remove function.
13930 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13931 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13933 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13935 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13937 * sparc-tdep.h (struct regset): Provide opaque declaration.
13938 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13939 fpregset and sizeof_fpregset members.
13940 * sparc-tdep.c (struct regset): Provide opaque declaration.
13941 (sparc_regset_from_core_section): New function.
13942 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13943 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13944 Set regset_from_core_section when appropriate.
13946 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13948 * x86-64-tdep.c (amd64_non_pod_p): New function.
13949 (amd64_classify_aggregate): Return class memory for non-POD
13950 C++ structure types.
13952 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13953 argument. Use it to reserve a register if necessary.
13954 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13955 amd64_push_arguments.
13957 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13959 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13960 register numbers in comments.
13961 * x86-64-tdep.h: Update copyright year.
13962 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13963 Adjust for addition of %cs and %ss.
13964 * amd64fbsd-nat.c: Update copyright year.
13965 (reg_offset): Add register offsets for %cs and %ss.
13966 * amd64fbsd-tdep.c: Update copyright year.
13967 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13968 (amd64fbsd_sc_reg_offset): Likewise.
13969 * x86-64-linux-nat.c: Update copyright year.
13970 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13972 * amd64nbsd-nat.c: Update copyright year.
13973 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13974 * amd64nbsd-tdep.c: Update copyright year.
13975 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13976 * x86-64-linux-tdep.c: Update copyright year.
13977 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13978 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13979 * regformats/reg-x86-64.dat: Add %cs and %ss.
13981 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13982 variables to prevent long lines. Update comments to reflect
13985 2004-01-09 David Carlton <carlton@kealia.com>
13987 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13988 * dwarf2read.c (read_namespace): Pull out name-generating code
13989 into namespace_name. Rename previous_namespace to previous_prefix
13990 and processing_current_namespace to processing_current_prefix..
13991 (namespace_name): New function.
13992 (add_partial_symbol): Substitute uses of pdi->name with
13994 * cp-support.h: Rename processing_current_namespace to
13995 processing_current_prefix.
13996 Update copyright year.
13997 * cp-namespace.c: Rename processing_current_namespace to
13998 processing_current_prefix.
13999 Update copyright year.
14001 2004-01-09 Andrew Cagney <cagney@redhat.com>
14003 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14005 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14007 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14009 (process_one_symbol): Deal with N_PATCH stabs.
14011 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14013 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14015 Update copyright year.
14017 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14019 * config/pa/tm-hppa.h: Update extern declarations for
14020 hppa32_hpux_frame_saved_pc_in_sigtramp,
14021 hppa32_hpux_frame_base_before_sigtramp, and
14022 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14024 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14026 * config/pa/tm-hppah.h: Update copyright years.
14028 2004-01-08 Andrew Cagney <cagney@redhat.com>
14030 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14031 (mips_o32_reg_struct_has_addr): Delete function.
14032 (mips_gdbarch_init): Update.
14033 (mips_extract_struct_value_address): Delete function.
14035 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14037 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14040 2004-01-07 Andrew Cagney <cagney@redhat.com>
14042 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14043 architecture's elf flags (when available).
14045 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14046 FPU to the start, check the MIPS FPU when looking for an old
14048 (set_mipsfpu_single_command): Update the architecture.
14049 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14051 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14052 (mips_mask_address_p): Add "tdep" parameter.
14053 (show_mask_address, mips_addr_bits_remove): Update.
14054 (mips_dump_tdep): Update.
14055 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14056 (MIPS_STACK_ARGSIZE): Delete macro.
14057 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14058 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14059 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14060 (mips_dump_tdep): Update.
14061 (MIPS_SAVED_REGSIZE): Delete macro.
14062 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14063 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14064 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14065 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14066 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14067 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14068 (mips_pop_frame, return_value_location): Update.
14069 (mips_n32n64_return_value, mips_dump_tdep): Update.
14071 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14074 * mips-tdep.c: Update copyright.
14075 (mips_gdbarch_init): Merge two code blocks handling the register
14076 name and number layout.
14078 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14080 * tracepoint.c (validate_actionline): Fix segv at EOF
14082 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14084 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14085 properly for static fields.
14087 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14088 Jason Molenda <jmolenda@apple.com>
14090 * disasm.c: Update copyright to include 2004.
14091 (do_mixed_source_and_assembly): For uiout asm list
14092 and tuple cleanups, initialize to null_cleanup instead of
14093 NULL and do so prior to loop. Only reset when we close off
14094 the tuple/list. Move check for whether to close off the
14095 asm tuple/list to after dump_insns call where it will be run
14096 on each loop iteration.
14098 2004-01-05 Andrew Cagney <cagney@redhat.com>
14100 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14101 should be a switch case and not a label.
14102 * mips-tdep.c (mips32_next_pc): Delete unused labels
14103 "greater_equal_branch" and "less_zero_branch".
14104 * jv-valprint.c (java_print_value_fields): Delete unused label
14107 * target.c (unpush_target): Only close a target that is in the
14110 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14112 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14113 address from [sp + 64] instead of %o2.
14115 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14116 fixes PR backtrace/1476.
14118 2004-01-05 Andrew Cagney <cagney@redhat.com>
14120 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14121 move to start of file.
14122 * i386-tdep.h (struct regcache): Add opaque declaration.
14123 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14125 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14126 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14127 * win32-nat.c (fake_create_process): Use ISO C style definition.
14128 * stabsread.c (define_symbol): Delete #ifndef
14129 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14130 stabs_argument_has_addr call, macro never defined.
14132 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14134 * op50-rom.c: Delete.
14135 * w89k-rom.c: Delete.
14136 * Makefile.in: Remove references.
14138 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14140 * x86-64-tdep.c: Update copyright year.
14141 (struct amd64_register_info): Rename from x86_64_register_info.
14142 (amd64_register_info): Rename from x86_64_register_info.
14143 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14144 (amd64_register_name): Rename from x86_64_register_name.
14145 (amd64_register_type): Rename from x86_64_register_type.
14146 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14147 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14148 (amd64_dwarf_reg_to_regnum): Rename from
14149 x86_64_dwarf_reg_to_regnum.
14150 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14151 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14152 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14153 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14154 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14155 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14156 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14157 (amd64_frame_cache): Rename from x86_64_frame_cache.
14158 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14159 (amd64_frame_prev_register): Rename from
14160 x86_64_frame_prev_register.
14161 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14162 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14163 (amd64_sigtramp_frame_cache): Rename from
14164 x86_64_sigtramp_frame_cache.
14165 (amd64_sigtramp_frame_prev_register): Rename from
14166 x86_64_sigtramp_frame_prev_register.
14167 (amd64_sigtramp_frame_unwind): Rename from
14168 x86_64_sigtramp_frame_unwind.
14169 (amd64_sigtramp_frame_sniffer): Rename from
14170 x86_64_sigtramp_frame_sniffer.
14171 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14172 (amd64_frame_base): Rename from x86_64_frame_base.
14173 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14174 (amd64_frame_align): Rename from x86_64_frame_align.
14175 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14176 (amd64_regset_from_core_section): Rename from
14177 x86_64_regset_from_core_section.
14178 (x86_64_init_abi): Update comments.
14180 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14182 * MAINTAINERS (write after approval): Add myself.
14184 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14186 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14189 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14191 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14192 such that it mentions a specific version of GCC that exhibits this
14195 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14197 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14198 structure that has a single `float' member, store it in %f1 in
14201 * sparc-sol2-nat.c: Add missing '\'.
14203 * sparc-tdep.c (sparc32_return_value): New function.
14204 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14206 (sparc32_gdbarch_init): Set return_value, don't set
14207 extract_return_value, store_return_value, use_struct_convention
14208 and return_value_on_stack.
14210 * sparc-sol2-nat.c: Add missing ')'.
14212 2004-01-03 J. Brobecker <brobecker@gnat.com>
14214 * infrun.c (handle_step_into_function): New function.
14215 (handle_inferior_event): Extract out some code into the new
14218 2004-01-03 J. Brobecker <brobecker@gnat.com>
14220 * infrun.c (handle_inferior_event): Move the declaration of
14221 real_stop_pc inside the if blocks where it is used.
14223 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14225 * sparc64-tdep.c (sparc64_16_byte_align_p)
14226 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14227 Use check_typedef to get subtypes of structures and unions.
14228 (sparc64_store_return_value): Fix calculation of the appropriate
14229 offset into VALBUF when storing a structure or union.
14230 (sparc64_return_value): New function.
14231 (sparc64_use_struct_convention): Remove function.
14232 (sparc64_init_abi): Set return_value, don't set
14233 extract_return_value, store_return_value and
14234 use_struct_convention.
14236 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14238 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14239 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14240 gdb/config/alpha/xm-alphaosf.h,
14241 gdb/config/powerpc/tm-ppcle-eabi.h,
14242 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14243 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14244 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14245 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14246 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14247 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14248 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14249 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14250 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14251 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14252 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14253 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14254 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14255 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14256 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14257 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14258 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14259 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14260 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14261 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14262 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14263 Remove lines for .cvsignore files.
14265 2004-01-03 J. Brobecker <brobecker@gnat.com>
14267 * infrun.c: Back out the previous change.
14269 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14271 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14272 sparc-*-sunos4* to the list of REMOVED configurations.
14274 * configure.tgt: Add back sparc-*-vxworks*.
14275 * remote-vxsparc.c: Remove all includes except for "defs.h",
14276 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14277 Include "sparc-tdep.h".
14278 (SPARC_R_G1): New define.
14279 (vxsparc_gregset): New variable.
14280 (ext_format_sparc): Remove extern declaration.
14281 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14282 sparc32_supply_fpregset.
14283 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14284 sparc_collect_rwindow and sparc32_collect_fpregset.
14285 * config/sparc/tm-vxworks.h: New file, based on recently removed
14287 * config/sparc/vxworks.mt: New file, based on recently removed
14290 2004-01-03 J. Brobecker <brobecker@gnat.com>
14292 * infrun.c (handle_step_into_function): New function.
14293 (handle_inferior_event): Extract out some code into the new
14296 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14298 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14299 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14300 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14301 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14302 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14303 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14304 (sparc_nat_h): New variable.
14305 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14306 (tm-sun4os4.h): Remove dependency.
14307 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14308 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14309 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14310 sparc-tdep.o): Update dependencies.
14311 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14312 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14313 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14315 * configure.host: Remove existing sparc-*-lynxos*,
14316 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14317 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14318 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14319 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14321 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14322 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14323 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14324 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14325 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14326 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14327 sparc64-*-solaris2* and sparc64-*-* triplets.
14328 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14329 "symtab.h" and "objfiles.h".
14330 (BIAS): Remove define.
14331 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14332 (X_DISP19): Remove macros.
14333 (sparc_fetch_instruction): Remove function.
14334 (struct gdbarch_tdep): Remove definition.
14335 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14336 (sparc_breakpoint_from_pc): Remove function.
14337 (struct sparc64_frame_cache): Remove definition.
14338 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14339 sparc64_unwind_pc): Remove functions.
14340 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14341 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14342 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14343 (sparc64_frame_cache): Change return type to `struct
14344 sparc_frame_cache *'. Simply call sparc_frame_cache.
14345 (sparc64_frame_this_id, sparc64_frame_prev_register,
14346 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14347 instead of `struct sparc64_frame_cache.
14348 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14349 sparc_analyze_control_transfer, sparc_software_single_step,
14350 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14351 _initialize_sparc64_tdep): Remove functions.
14352 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14353 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14355 (sparc64_supply_gregset, sparc64_collect_gregset,
14356 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14357 (sparc64_init_abi): New function.
14358 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14359 inclusion guard. Include "sparc-tdep.h".
14361 (r_tstate_offset, r_fprs_offset): New defines.
14362 (enum sparc_regnum): Remove defenition.
14363 (enum sparc64_regnum): Reformat.
14364 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14365 (sparc64_init_abi, sparc64_supply_gregset,
14366 sparc64_collect_gregset, sparc64_supply_fpregset,
14367 sparc64_collect_fpregset): New prototypes.
14368 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14369 Add extern declarations.
14370 (sparc64_sol2_init_abi): New prototype.
14371 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14372 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14374 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14376 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14378 (_initialize_sparc64fbsd_nat): Remove initialization of
14379 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14380 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14381 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14382 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14383 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14384 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14385 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14386 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14387 (sparc64fbsd_r_y_offset): Remove variables.
14388 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14389 Make static and const.
14390 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14391 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14393 (sparc64fbsd_gregset): New variable.
14394 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14395 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14396 and sparc64_supply_fpregset.
14397 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14398 (sparc64fbsd_sigtramp_frame_this_id)
14399 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14400 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14401 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14402 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14403 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14404 * sparcnbsd-tdep.c: Update copyright year. Include
14405 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14406 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14407 "value.h" and "sparcnbsd-tdep.h".
14408 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14409 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14410 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14411 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14413 (sparcnbsd_gregset): New variable.
14414 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14415 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14416 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14417 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14418 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14420 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14421 (sparc32nbsd_sigcontext_frame_this_id)
14422 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14423 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14424 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14425 (sparcnbsd_get_longjmp_target_32,
14426 sparcnbsd_get_longjmp_target_64): Remove functions.
14427 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14428 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14429 sparcnbsd_init_elf): Remove.
14430 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14431 (sparcnbsd_elf_init_abi): New functions.
14432 (_initialize_sparcnbsd_tdep): New prototype.
14433 (_initialize_sparnbsd_tdep): Update.
14434 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14435 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14436 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14437 * config/sparc/linux.mh: Update comment.
14438 (XM_FILE, HOST_IPC): Remove variables.
14439 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14441 * config/sparc/linux.mt: Update comment.
14442 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14443 * config/sparc/nbsd.mt: Reformat.
14444 * config/sparc/nbsd64.mh: Update comment.
14445 (NATDEPFILES): Add sparc-nat.o.
14446 * config/sparc/nbsd64.mt: Update comment.
14447 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14448 (TM_FILE): Set to tm-nbsd.h.
14449 * config/sparc/nbsdelf.mh: Update comment.
14450 (NATDEPFILES): Add sparc-nat.o.
14452 * config/sparc/nbsdaout.mh: Update comment.
14453 (NATDEPFILES): Add sparc-nat.o
14455 * config/sparc/nm-linux.h: Update copyright year. Don't include
14456 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14458 (KERNEL_U_SIZE): Remove define.
14459 (kernel_u_size): Remove prototype.
14460 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14461 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14463 (CHILD_PREPARE_TO_STORE): Remove define.
14464 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14465 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14466 sparcnbsd-nat.c: Rewrite files.
14467 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14468 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14469 sparcnbsd-tdep.h: Remove files.
14470 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14471 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14472 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14473 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14474 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14475 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14476 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14477 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14478 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14479 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14480 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14481 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14482 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14483 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14484 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14485 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14486 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14487 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14488 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14490 2004-01-02 Andrew Cagney <cagney@redhat.com>
14492 From 2003-12-18 Kazuhiro Inaoka:
14493 * configure.host: Add m32r-linux target.
14495 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14497 * top.c (print_gdb_version): Update year to 2004.
14499 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14501 * MAINTAINERS: Add myself to the write-after-approval category.
14503 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14505 From Bernardo Innocenti <bernie@develer.com>:
14506 * configure.tgt: Add uClinux target.
14508 2004-01-02 Andrew Cagney <cagney@redhat.com>
14510 * utils.c (do_my_cleanups): Make static, add forward declaration.
14511 * defs.h (do_my_cleanups): Delete declaration.
14513 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14515 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14516 bfd/ChangeLog-0203.
14518 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14520 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14521 in <machine/reg.h>.
14522 * configure, config.in: Regenerate.
14524 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14525 tui/ChangeLog-1998-2003.
14531 version-control: never