1 2004-10-19 Mark Kettenis <kettenis@gnu.org>
3 * dwarf2read.c (struct comp_unit_head): Fix coding style.
4 (dwarf_decode_line_header): Likewise.
6 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
8 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
10 2004-10-19 Andrew Cagney <cagney@gnu.org>
12 GDB 6.3 branch created.
13 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
15 2004-10-15 Joel Brobecker <brobecker@gnat.com>
17 * dwarf2read.c (set_cu_language): Set language to Ada for
18 DW_LANG_Ada83 and DW_LANG_Ada95.
20 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
22 From Andreas Schwab <schwab@suse.de>:
23 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
24 for xmalloc and xrealloc.
26 2004-10-15 Andrew Cagney <cagney@gnu.org>
28 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
29 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
30 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
33 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
35 * ada-lang.c (ada_lookup_symbol): Correct comment.
36 (ada_evaluate_subexp): Change error message for
37 OP_FUNCALL case so as not to indicate an internal error.
39 2004-10-15 Joel Brobecker <brobecker@gnat.com>
41 Committed by Paul Hilfinger.
42 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
43 type sizes in XVE/XVU types, and emit a warning when that happens,
44 instead of rounding up the size of the resulting type.
45 Some minor reformatting.
46 (ada_is_aligner_type): Do not consider a type as an aligner type
47 if there is a corresponding XVS type as well.
48 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
49 have several levels of pointer indirection to the array.
51 2004-10-15 Jerome Guitton <guitton@gnat.com>
53 Committed by Paul Hilfinger.
54 * ada-lang.c (check_size): New function.
55 (coerce_unspec_val_to_type): call check_size to make sure
56 that the object size is reasonable.
57 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
58 Implements the case when we get a reference when we evaluate
59 the expression of one of the bounds of the slice.
60 (ada_value_struct_elt): when a packed array field is
61 a reference, use ada_coerce_ref to dereference it; use
62 ada_value_ind only if it is a pointer.
64 2004-10-15 Joel Brobecker <brobecker@gnat.com>
66 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
67 a bit to avoid the necessity of an advance declaration. Remove
69 (set_reg_offset): Move implemenation up.
70 (mips16_get_imm): Likewise.
71 (mips16_scan_prologue): Likewise.
72 (reset_saved_regs): Likewise.
73 (mips32_scan_prologue): Likewise.
75 2004-10-14 Joel Brobecker <brobecker@gnat.com>
77 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
78 Remove sp as a parameter, compute it internally instead. Move
79 prologue scanning limit from heuristic_proc_desc to here.
80 (mips16_scan_prologue): Likewise.
81 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
82 by call to mips16_scan_prologue.
83 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
84 by call to mips32_scan_prologue.
85 (heuristic_proc_desc): Remove code that's no longer necessary.
86 Update calls to mips16_scan_prologue and mips32_scan_prologue.
87 (mips_skip_prologue): Update calls to mips16_scan_prologue
88 and mips32_scan_prologue.
90 2004-10-14 Joel Brobecker <brobecker@gnat.com>
92 * mips-tdep.c (mips16_scan_prologue): Merge code from
93 mips16_skip_prologue. Now return the address of the first
94 instruction past the function prologue.
95 (mips16_skip_prologue): Remove, no longer necessary.
96 (mips_skip_prologue): Replace call to mips16_skip_prologue
97 by call to mips16_scan_prologue.
99 2004-10-14 Joel Brobecker <brobecker@gnat.com>
101 * mips-tdep.c (mips32_scan_prologue): Merge code from
102 mips32_skip_prologue. Now return the address of the first
103 instruction past the function prologue.
104 (mips32_skip_prologue): Remove. No longer necessary.
105 (mips16_skip_prologue): Add parameter end_pc instead of
107 (mips_skip_prologue): Compute the upper limit for the
108 prologue scanning. Update call to mips16_skip_prologue.
109 Replace call to mips32_skip_prologue by call to
110 mips32_scan_prologue.
112 2004-10-14 Mark Kettenis <kettenis@gnu.org>
114 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
115 NetBSD system call stubs that store %rp in the ERP slot of the
118 * source.c: Always define O_BINARY to 0 if not defined already.
119 (openp): Unconditionally use O_BINARY.
121 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
122 * event-top.c (gdb_readline2): Likewise.
124 2004-10-14 Orjan Friberg <orjanf@axis.com>
126 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
127 deprecated_add_core_fns which was removed by mistake.
129 2004-10-13 Kevin Buettner <kevinb@redhat.com>
131 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
132 references to deprecated_registers[] with equivalent code.
134 2004-10-13 Kevin Buettner <kevinb@redhat.com>
136 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
137 ``deprecated_registers'' with equivalent code. Use gdb_assert()
138 instead of explicit test and print statement.
140 2004-10-12 Mark Kettenis <kettenis@gnu.org>
142 * sparc-nat.c: Include "inf-ptrace.h".
143 (sparc_target): New function.
144 * sparc-nat.h: Update copyright year.
145 (sparc_target): New prototype.
146 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
147 (_initialize_sparcnbsd_nat): Construct and add target vector.
148 * sparc64nbsd-nat.c: Include "target.h".
149 (_initialize_sparc64nbsd_nat): Construct and add target vector.
150 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
152 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
153 inftarg.o, add inf-ptrace.o.
154 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
155 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
156 (NAT_FILE): Set to nm-bsd.h.
157 (LOADLIBES): New variable.
158 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
159 infarg.o, add inf-ptrace.o.
160 * config/sparc/nm-nbsdaout.h: Remove file.
161 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
162 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
163 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
165 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
166 "fopen-same.h". Update comment.
168 2004-10-11 Mark Kettenis <kettenis@gnu.org>
170 * i386gnu-nat.c: Include "gdb_string.h".
171 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
172 registers when the floating-point state isn't initialized.
173 * Makefile.in (i386gnu-nat.o): Update dependencies.
175 2004-10-11 David Anderson <davea@sgi.com>
177 * regcache.c (regcache_raw_read): Comment was missing "to".
178 Extraneous ' removed.
179 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
180 comment now describes use.
182 2004-10-11 Orjan Friberg <orjanf@axis.com>
184 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
185 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
186 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
187 (cris_sigtramp_frame_sniffer): New functions.
188 (cris_gdbarch_init): Hook in signal trampoline unwinder.
189 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
190 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
191 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
192 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
194 (cris_version_update): Remove, replace with ...
195 (set_cris_version): New function.
196 (struct gdbarch_tdep, cris_mode, cris_mode_update)
197 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
198 (_initialize_cris_tdep): Remove CRIS mode command.
199 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
200 cris-fpless-backtrace command.
201 (cris_scan_prologue): Fix prologue scanning limit.
202 (cris_register_type): Update to reflect actual registers.
203 (cris_register_bytes_ok) Remove.
204 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
205 Remove set_gdbarch_deprecated_register_size,
206 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
208 2004-10-10 Andrew Cagney <cagney@gnu.org>
210 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
213 2004-10-10 Joel Brobecker <brobecker@gnat.com>
215 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
217 2004-10-10 Joel Brobecker <brobecker@gnat.com>
219 * mips-tdep.c (mips16_scan_prologue): Renames
220 mips16_heuristic_proc_desc. Update comment.
221 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
222 (heuristic_proc_desc): Update calls to the 2 functions above.
224 2004-10-10 Joel Brobecker <brobecker@gnat.com>
226 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
227 Update comments. Also immediately return empty cache when the start
228 address of our function could not be found.
229 (mips_insn32_frame_cache): Likewise.
231 2004-10-10 Joel Brobecker <brobecker@gnat.com>
233 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
234 (mips_insn16_frame_cache): Pass frame cache in call to
235 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
236 Remove code that became redundant as a consequence.
237 (mips32_heuristic_proc_desc): No longer compute a fake
238 procedure descriptor. Compute the full frame cache instead.
239 Some minor comment reformatting.
241 2004-10-10 Jim Blandy <jimb@redhat.com>
243 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
244 reader, tracing bytecode stuff): Remove self.
246 2004-10-10 Mark Kettenis <kettenis@gnu.org>
248 * sparc64-linux-tdep.c: Update copyright year. Don't include
250 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
251 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
252 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
254 * sparc-linux-tdep.c: Update copyright year.
255 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
256 to struct frame_info *. Use safe_frame_unwind_memory instead of
257 deprecated_read_memory_nobpt.
258 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
259 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
260 changed signature of sparc_linux_sigtramp_start.
261 (sparc32_linux_pc_in_sigtramp): Remove function.
262 (sparc32_linux_sigtramp_p): New function.
263 (sparc32_linux_sigtramp_frame_sniffer): Use
264 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
266 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
268 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
270 * ada-lang.c (lim_warning): Re-implement as a varargs function.
271 (decode_packed_array_type, value_subscript_packed)
272 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
273 argument in call to lim_warning.
275 * configure.in: Really disable the TUI if an enhanced curses
277 * configure: Regenerate.
279 2004-10-09 Mark Kettenis <kettenis@gnu.org>
281 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
282 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
283 * config/i386/nm-nbsdaout.h: Remove file.
284 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
285 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
286 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
287 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
288 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
289 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
290 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
291 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
292 (ldd, ld_un, ld_2): Remove defines.
293 * config/i386/nm-obsd.h: Likewise.
295 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
297 * ada-lex.l: Remove useless rule whose right-context clause
298 causes unreferenced static function warning for yyrealloc.
299 (ada_flex_use): Remove the artificial reference to yyrealloc.
301 2004-10-08 Andrew Cagney <cagney@gnu.org>
303 * target.h (struct target_ops): Rename to_xfer_memory to
304 deprecated_xfer_memory.
306 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
308 * win32-nat.c: Update.
310 * uw-thread.c: Update.
311 * thread-db.c: Update.
312 * sol-thread.c: Update.
314 * remote-vx.c: Update.
315 * remote-st.c: Update.
316 * remote-sim.c: Update.
317 * remote-sds.c: Update.
318 * remote-rdp.c: Update.
319 * remote-rdi.c: Update.
320 * remote-mips.c: Update.
321 * remote-m32r-sdi.c: Update.
322 * remote-e7000.c: Update.
325 * nto-procfs.c: Update.
327 * linux-nat.c: Update.
329 * hpux-thread.c: Update.
330 * go32-nat.c: Update.
335 * aix-thread.c: Update.
337 2004-10-08 Andrew Cagney <cagney@gnu.org>
339 * target.c (debug_target): Move to near start of file.
340 (target_stopped_data_address_p): Re-org logic, add casts.
342 2004-10-02 Mark Kettenis <kettenis@gnu.org>
344 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
345 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
346 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
347 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
350 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
352 * target.h (to_stopped_data_address): Change prototype to
353 take a CORE_ADDR pointer and return an int.
354 * target.c (update_current_target): Change to_stopped_data_address
355 to match new prototype.
356 (debug_to_stopped_data_address): Change appropriately.
357 * breakpoint.c (bpstat_stop_status): Change call to
358 target_stopped_data_address to use new prototype.
359 * frv-tdep.c (frv_have_stopped_data_address): New function.
360 (frv_stopped_data_address): Change to new prototype and
362 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
363 prototype and functionality.
364 (ia64_stopped_by_watchpoint): New function.
365 * i386-nat.c (i386_stopped_data_address): Change to new
366 prototype and functionality.
367 (i386_stopped_by_watchpoint): New function.
368 * remote.c (remote_stopped_data_address): Change to new prototype
370 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
371 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
372 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
373 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
374 new i386_stopped_by_watchpoint function.
375 (i386_stopped_by_watchpoint): New prototype.
376 (i386_stoppped_data_address): Change to new prototype.
377 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
378 new ia64_stopped_by_watchpoint function.
379 (ia64_stopped_by_watchpoint): New prototype.
380 (ia64_stopped_data_address): Ditto.
382 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
384 * ada-typeprint.c (ada_print_type): Use int_string for printing
385 modulus of modular type.
386 * ada-lang.h (ada_modulus): Change return type to unsigned.
387 * ada-lang.c (ada_language_arch_info): Correct type of
389 (ada_modulus): Return unsigned result.
390 (ada_lookup_symbol): Remove user disambiguation and modify comment
393 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
395 Committed by Paul Hilfinger.
396 * ada-lang.c (decode_packed_array): On big-endian targets,
397 left-justify the value if it comes with a modular type.
399 2004-10-08 Joel Brobecker <brobecker@gnat.com>
401 Committed by Paul Hilfinger.
402 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
403 (is_name_suffix): Add support for "___JM" suffixes.
404 (ada_check_typedef): Renames ada_completed_type.
405 Update all users of CHECK_TYPEDEF, check_typedef, and
406 ada_complete_type to call ada_check_typedef.
407 * ada-typeprint.c: Likewise.
408 * ada-valprint.c: Likewise.
410 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
412 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
414 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
416 * MAINTAINERS: Update e-mail address.
418 2004-10-07 Daniel Jacobowitz <dan@debian.org>
420 From Maciej W. Rozycki <macro@mips.com>:
421 * mips-tdep.c (mips32_next_pc): Check the register's contents,
422 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
424 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
426 * m32r-tdep.c (decode_prologue): Support functions written
427 in assembler language. Recognize trap instructions as the
429 (m32r_frame_unwind_cache): Ditto.
430 (m32r_skip_prologue): Extend search limit. Quit analyzing
431 prologue if pc's location is not readable.
433 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
435 * Makefile.in (.l.c): Do conversions of names of alloc and free
436 functions that are done for .y.c files, plus special one
437 for yy_flex_realloc. Also, correct missing-file tests here.
438 * ada-lex.l (malloc, free): Remove macros.
439 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
441 (ada_flex_use): Dummy definition to remove warnings about unused
443 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
446 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
448 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
450 (sh_return_value_fpu): Ditto for CPUs with FPU.
451 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
452 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
453 Install sh_return_value_nofpu resp. sh_return_value_fpu as
454 RETURN_VALUE functions.
456 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
458 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
459 (sh_pseudo_register_write): Ditto.
461 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
463 * sh-tdep.c (IS_MACL_STS): New define.
465 (IS_MACL_LDS): Ditto.
466 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
467 instructions in prologue.
468 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
469 instructions in epilogue.
471 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
473 * sh-tdep.c (SH_NUM_REGS): Define as 67.
474 (sh_sh_register_name): Add eight empty register names.
475 (sh_sh3_register_name): Ditto.
476 (sh_sh3e_register_name): Ditto.
477 (sh_sh2e_register_name): Ditto.
478 (sh_sh2a_register_name): New function, defining SH2A register set.
479 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
481 (sh_sh_dsp_register_name): Add eight empty register names.
482 (sh_sh3_dsp_register_name): Ditto.
483 (sh_sh4_register_name): Ditto.
484 (sh_sh4_nofpu_register_name): Ditto.
485 (sh_sh4al_dsp_register_name): Ditto.
486 (sh2a_show_regs): New function.
487 (sh2a_nofpu_show_regs): New function.
488 (sh_sh2a_register_type): New function.
489 (do_bank_register_info): New function.
490 (sh_print_pseudo_register): Call do_bank_register_info.
491 Call sh_print_pseudo_register for valid "bank" register.
492 (sh_sh2a_register_sim_regno): New function.
493 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
494 Increment pseudo register count by one for all sh variants with
495 pseudo registers to accomodate pseudo bank register.
496 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
497 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
498 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
499 Increment pseudo register numbers.
501 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
503 * dwarf2read.c (read_subroutine_type): Call make_function_type
504 instead of lookup_function_type.
506 2004-10-05 Jim Blandy <jimb@redhat.com>
508 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
509 (Previous change missed some uses.)
511 2004-10-05 Andrew Cagney <cagney@gnu.org>
513 * target.h (deprecated_child_ops): Rename child_ops.
514 * wince.c: Update copyright. Rename child_ops.
515 * win32-nat.c: Rename child_ops.
516 * target.c: Rename child_ops.
517 * rs6000-nat.c: Rename child_ops.
518 * linux-nat.c: Rename child_ops.
519 * infttrace.c: Rename child_ops.
520 * inftarg.c: Rename child_ops.
521 * infptrace.c: Rename child_ops.
522 * hppah-nat.c: Update copyright. Rename child_ops.
523 * hpux-thread.c: Update copyright. Rename child_ops.
525 2004-10-05 Daniel Jacobowitz <dan@debian.org>
527 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
529 2004-10-05 Andrew Cagney <cagney@gnu.org>
531 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
533 2004-10-05 Daniel Jacobowitz <dan@debian.org>
535 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
536 (die_ref_table): Remove.
537 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
538 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
539 the usage of this type.
540 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
541 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
542 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
543 (dwarf2_create_include_psymtab): Update comment.
544 (find_partial_die): Remove third argument. Remove unreachable call
546 (dwarf2_find_containing_comp_unit): Update comments. Change one
547 assertion to an error. Remove an unreachable error.
548 (dwarf2_find_comp_unit): Update comments.
549 (type_at_offset): Remove dead code.
550 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
551 (store_in_ref_table): Add CU argument.
552 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
553 inter-compilation-unit references.
554 (load_full_comp_unit, process_full_comp_unit): New functions, based
555 on psymtab_to_symtab_1.
556 (psymtab_to_symtab_1): Use them.
557 (dwarf2_add_dependence): New function.
558 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
559 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
560 (partial_die_parent_scope, guess_structure_name): Update for changes
562 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
563 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
564 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
565 (read_die_and_children): Update call to store_in_ref_table.
566 (do_free_die_list_cleanup): Remove.
567 (fixup_partial_die): Update for changes to find_partial_die.
568 (read_full_die): Handle queueing absolute references.
569 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
570 (dwarf2_attr, die_specification, die_type)
571 (die_containing_type, dwarf2_extension): Update calls to
573 (dump_die): Update DW_FORM_ref* handling.
574 (dwarf2_get_ref_die_offset): Likewise.
575 (free_one_comp_unit): Release the dies list.
576 (dwarf2_mark_helper): New function.
577 (dwarf2_mark): Use it.
579 2004-10-05 Mark Kettenis <kettenis@jive.nl>
581 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
582 when writing to memory.
584 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
586 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
587 (m32r_extract_struct_value_address): Delete function.
588 (m32r_return_value): New function.
589 (m32r_gdbarch_init): Instead of store_return_value,
590 extract_return_value, deprecated_extract_struct_value_address
591 and deprecated_use_struct_convention, set return_value.
593 2004-10-03 Daniel Jacobowitz <dan@debian.org>
595 * dwarf2read.c (read_subrange_type): Add comment for variable
598 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
600 * Makefile.in (.l.c): Modify rule for compatibility with recent
601 versions of flex, and remove most command-line options.
602 * ada-lex.l: Add %options line in place of -I -i and -s command-line
605 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
607 Turn on initial Ada support (mainly expression evaluation).
609 * Makefile.in (SFILES): Remove ada-tasks.c.
610 (HFILES_NO_SRCDIR): Add ada-lang.h.
611 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
612 (YYOBJ): Add ada-exp.o.
613 (rule .l.c): Generalize to not mention ada.
614 * symtab.c: Include ada-lang.h.
615 (symbol_natural_name, symbol_demangled_name)
616 (symbol_search_name): Add Ada case.
618 2004-10-01 Andrew Cagney <cagney@gnu.org>
620 * Makefile.in (COMMON_OBS): Add inf-child.o.
621 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
622 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
623 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
624 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
625 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
626 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
627 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
628 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
629 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
630 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
631 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
632 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
633 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
635 * target.c (xfer_using_stratum): Change return type to LONGEST.
636 On each iteration offset, readbuf and writebuf.
637 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
638 partial_length, and read/modify/write predicate, update comments.
639 Pass buffer.word to ptrace write.
641 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
643 * symfile.c (init_filename_language_table): Add extensions for
645 * defs.h (enum language): Add language_ada.
646 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
647 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
648 (add_symbols_from_enclosing_procs): Make a no-op for now.
649 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
650 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
651 (find_line_in_linetable, find_next_line_in_linetable)
652 (read_all_symtabs, is_plausible_func_for_line)
653 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
654 (is_runtime_sym_defined, check_size): Remove declaration.
655 (function_name_from_pc, ada_translate_error_message)
656 (ada_lookup_minimal_symbol): Remove definition.
657 (ada_add_block_symbols): Remove useless label.
658 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
660 (ada_is_exception_sym): Likewise.
662 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
664 Add m32r-linux support.
665 * configure.tgt: Add m32r*-*-linux*.
666 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
667 and m32r-linux-tdep.c.
668 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
669 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
670 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
672 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
673 config/m32r/linux.mh, config/m32r/linux.mt,
674 config/m32r/nm-linux.h: New files.
676 2004-09-30 Joel Brobecker <brobecker@gnat.com>
678 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
679 (mips32_fetch_instruction): Remove, unused.
681 2004-09-30 Joel Brobecker <brobecker@gnat.com>
683 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
684 conditions that will always be true.
686 2004-09-30 Mark Kettenis <kettenis@gnu.org>
688 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
689 (vaxbsd_fetch_inferior_registers): Rename from
690 fetch_inferior_registers. Make static.
691 (vaxbsd_store_inferior_registers): Rename from
692 store_inferior_registers. Make static.
693 (_initialize_vaxbsd_nat): Construct and add target vector.
694 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
695 inftarg.o. Add inf-child.o and inf-ptrace.o.
696 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
697 inftarg.o. Add inf-child.o and inf-ptrace.o.
699 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
700 inftarg.o. Add inf-child.o and inf-ptrace.o.
702 * Makefile.in (vaxbsd-nat.o): Update dependencies.
704 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
705 (m88kbsd_fetch_inferior_registers): Rename from
706 fetch_inferior_registers. Make static.
707 (m88kbsd_store_inferior_registers): Rename from
708 store_inferior_registers. Make static.
709 (_initialize_m88kbsd_nat): New prototype and function.
710 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
711 inftarg.o. Add inf-child.o and inf-ptrace.o.
713 * Makefile.in (m88kbsd-nat.o): Update dependencies.
715 2004-09-30 Andrew Cagney <cagney@gnu.org>
717 * target.c (target_xfer_partial): New function.
718 (target_read_memory_partial, target_write_memory_partial)
719 (default_xfer_partial, target_read_partial, target_write_partial)
720 (xfer_using_stratum): Use.
721 (debug_to_xfer_partial): Delete function.
722 (setup_target_debug): Do not override to_xfer_partial.
724 2004-09-30 Mark Kettenis <kettenis@chello.nl>
726 * fork-child.c: Update copyright year. Fix coding style.
728 2004-09-29 Mark Kettenis <kettenis@gnu.org>
730 * defs.h (msavestring, mstrsave): Remove prototypes.
731 * utils.c (msavestring, mstrsave): Remove functions.
732 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
733 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
735 * source.c (find_and_open_source): Use xstrdup instead of
738 2004-09-30 Andrew Cagney <cagney@gnu.org>
740 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
741 (inf_ptrace_xfer_memory): Delete.
742 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
743 (target_read_memory, target_write_memory): Use xfer_using_stratum
744 when target_xfer_partial_p.
745 (debug_target): Move to start of file.
746 (target_read_memory_partial, target_write_memory_partial): Use
747 to_xfer_partial when target_xfer_partial_p.
749 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
750 inf_ptrace_xfer_memory with equivalent code.
751 * inftarg.c (child_xfer_partial): When performing a write, pass
752 writebuf to child_xfer_memory.
754 * target.c (target_read_string): Use target_read_memory instead of
757 2004-09-29 Andrew Cagney <cagney@gnu.org>
759 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
760 the address of status.
762 * infptrace.c (ptrace_wait): Mention problem with HPUX.
763 (kill_inferior): Inline ptrace_wait call.
764 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
765 * inftarg.c (child_wait): Inline ptrace_wait call.
767 * target.h (struct target_ops): Delete field to_post_wait.
768 (target_post_wait): Delete macro.
769 (child_post_wait): Delete declaration.
770 * target.c (update_current_target, update_current_target)
771 (debug_to_post_wait, setup_target_debug): Delete functions and
773 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
774 * inftarg.c (child_post_wait): Delete.
775 (init_child_ops): Do not set to_post_wait.
776 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
777 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
778 * inf-child.c (inf_child_post_wait): Delete.
779 (inf_child_target): Do not set to_post_wait.
780 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
781 (inf_ptrace_target): Do not set to_post_wait.
783 * wince.c (child_ops): Delete.
784 * win32-nat.c (child_ops): Delete.
786 * inftarg.c (inftarg_set_find_memory_regions)
787 (inftarg_set_make_corefile_notes): Delete functions.
788 (_initialize_linux_nat): Inline calls.
790 * target.h (child_ops): Declare.
791 * inftarg.c (child_ops): Move from here ...
792 * target.c (child_ops): ... to here.
793 * wince.c (child_ops): Delete extern declaration.
794 * win32-nat.c (child_ops): Delete extern declaration.
795 * linux-nat.c (child_ops): Delete extern declaration.
796 * hpux-thread.c (child_ops): Delete extern declaration.
798 2004-09-28 Mark Kettenis <kettenis@gnu.org>
800 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
802 2004-09-28 Mark Kettenis <kettenis@gnu.org>
804 * configure.in: Only set host_makefile_frag when building a native
806 * configure: Regenerate.
808 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
811 2004-09-28 Andrew Cagney <cagney@gnu.org>
813 Problem identified by Paul Hilfinger.
814 * Makefile.in (ada_lex_c): Define.
815 (ada-lex.o): Delete rule.
817 * linux-proc.c: Delete file.
818 * Makefile.in: Update.
819 * config/sparc/linux64.mh (NATDEPFILES):
820 * config/sparc/linux.mh (NATDEPFILES): Update.
821 * config/s390/s390.mh (NATDEPFILES): Update.
822 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
823 * config/powerpc/linux.mh (NATDEPFILES): Update.
824 * config/pa/linux.mh (NATDEPFILES): Update.
825 * config/mips/linux.mh (NATDEPFILES): Update.
826 * config/m68k/linux.mh (NATDEPFILES): Update.
827 * config/ia64/linux.mh (NATDEPFILES): Update.
828 * config/i386/linux64.mh (NATDEPFILES): Update.
829 * config/i386/linux.mh (NATDEPFILES): Update.
830 * config/arm/linux.mh (NATDEPFILES): Update.
831 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
832 * linux-nat.c: Update copyright. Include <sys/param.h>,
833 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
834 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
835 (O_LARGEFILE): Possibly define.
836 (_initialize_linux_nat, linux_proc_pending_signals)
837 (add_line_to_sigset, linux_proc_xfer_memory)
838 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
839 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
840 (struct linux_corefile_thread_data)
841 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
842 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
844 2004-09-16 Andrew Cagney <cagney@gnu.org>
846 * lin-lwp.c: Delete file.
847 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
848 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
849 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
850 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
851 (linux_nat_attach, detach_callback, linux_nat_detach)
852 (resume_callback, resume_clear_callback, linux_nat_resume)
853 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
854 (stop_wait_callback, linux_nat_has_pending, flush_callback)
855 (status_callback, running_callback, count_events_callback)
856 (select_singlestep_lwp_callback, select_event_lwp_callback)
857 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
858 (child_wait, stop_and_resume_callback, linux_nat_wait)
859 (kill_callback, kill_wait_callback, linux_nat_kill)
860 (linux_nat_create_inferior, linux_nat_mourn_inferior)
861 (linux_nat_xfer_memory, linux_nat_thread_alive)
862 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
863 (_initialize_linux_nat): New functions.
864 * Makefile.in: Update all dependencies.
865 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
866 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
867 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
868 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
869 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
870 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
871 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
872 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
873 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
874 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
875 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
876 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
877 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
879 2004-09-27 Mark Kettenis <kettenis@gnu.org>
881 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
882 config/i386/obsd64.mh (NAT_FILE): Remove variable.
884 * configure.in: Don't comment out NATDEPFILES in the generated
885 Makefile if NAT_FILE is unset.
886 * configure: Regenerate.
888 2004-09-27 Andrew Cagney <cagney@gnu.org>
890 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
891 (insert_step_resume_breakpoint): Delete.
892 (insert_step_resume_breakpoint_at_frame): New function.
893 (insert_step_resume_breakpoint_at_sal): New function.
894 (handle_inferior_event, step_into_function)
895 (insert_step_resume_breakpoint): Simplify by using same.
897 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
899 2004-09-26 Mark Kettenis <kettenis@gnu.org>
901 * fbsd-proc.c: Remove file.
902 * Makefile.in (fbsd-proc.o): Remove dependency.
904 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
907 * config/i386/nm-fbsd64.h: Remove file.
908 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
910 2004-09-26 Mark Kettenis <kettenis@gnu.org>
912 * amd64-nat.h: Update copyright year.
913 (amd64bsd_target): New prototype.
914 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
915 (amd64bsd_target): New function.
916 (amd64bsd_fetch_inferior_registers): Rename from
917 fetch_inferior_registers. Make static.
918 (amd64bsd_store_inferior_registers): Rename from
919 store_inferior_registers. Make static.
920 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
921 (_initialize_amd64fbsd_nat): Construct and add target vector.
922 * amd64nbsd-nat.o: Include "target.h".
923 (_initialize_amd64nbsd_nat): Construct and add target vector.
924 * amd64obsd-nat.c: Include "target.h".
925 (_initialize_amd64obsd_nat): Construct and add target vector.
926 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
927 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
928 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
930 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
931 Remove infptrace.o and inftarg.o. Add inf-child.o and
933 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
934 (amd64obsd-nat.o): Update dependencies.
936 2004-09-25 Mark Kettenis <kettenis@gnu.org>
938 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
939 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
940 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
941 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
942 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
944 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
946 (inf_ptrace_detach): Inline detach call.
948 * configure.in: Check for waddstr instead of mvwaddstr when
949 searching for curses library. Check for wborder.
950 * configure, config.in: Regenerate.
951 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
954 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
956 2004-09-24 Robert Picco <Robert.Picco@hp.com>
958 Committed by Andrew Cagney.
959 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
960 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
962 (fetch_register_using_p): Implement 'p' packet. Based on code by
964 (remote_fetch_registers): Call fetch_register_using_p.
965 (init_all_packet_configs, show_remote_cmd)
966 (_initialize_remote): Add p-packet.
968 2004-09-24 Mark Kettenis <kettenis@gnu.org>
970 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
971 instead of call_ptrace. Call wait directly instead of
973 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
974 (inf_ptrace_wait): Inline ptrace_wait call.
976 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
978 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
981 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
983 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
984 the new argument order.
986 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
988 * MAINTAINERS: Remove "broken" from XStormy16 entry.
989 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
990 (struct gdbarch_tdep): Remove.
991 (struct xstormy16_frame_cache): New frame cache structure.
992 (xstormy16_register_byte, xstormy16_register_raw_size)
993 (xstormy16_reg_virtual_type, xstormy16_register_type)
994 (xstormy16_push_arguments, xstormy16_push_return_address)
995 (xstormy16_pop_frame, xstormy16_store_struct_return)
996 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
997 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
998 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
999 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1000 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1001 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1002 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1003 (xstormy16_extract_return_value, xstormy16_store_return_value):
1004 Regcachify. Drop useless struct convention handling.
1005 (xstormy16_register_type, xstormy16_return_value)
1006 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1007 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1008 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1009 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1010 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1011 (xstormy16_unwind_dummy_id) : New functions.
1012 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1013 of xstormy16_scan_prologue.
1014 (xstormy16_frame_unwind): New frame_unwind structure.
1015 (xstormy16_frame_base): New frame_base structure.
1016 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1017 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1019 2004-09-22 Mark Kettenis <kettenis@gnu.org>
1021 * language.c (language_gdbarch_post_init): Fix off-by one error.
1023 2004-09-21 Daniel Jacobowitz <dan@debian.org>
1025 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1026 (struct dwarf2_offset_and_type): New.
1027 (set_die_type, reset_die_and_siblings_types, get_die_type)
1028 (offset_and_type_hash, offset_and_type_eq): New functions.
1029 (read_structure_type, read_enumeration_type, read_array_type)
1030 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1031 (read_tag_reference_type, read_tag_const_type)
1032 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1033 (read_typedef, read_base_type, read_subrange_type): Use
1036 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1038 * Makefile.in (dwarf2read.o): Update dependencies.
1039 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1040 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1042 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1043 mark, and has_form_ref_addr.
1044 (struct dwarf2_per_cu_data): New.
1045 (dwarf2_max_cache_age): New.
1046 (dwarf2_build_psymtabs_hard): Free cached compilation units
1047 after loading. Create and manage the list of compilation units.
1048 Remove unnecessary NULL initialization. Fix indentation.
1049 (psymtab_to_symtab_1): Initialize all of CU.
1050 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1051 (find_partial_die): Use dwarf2_find_containing_comp_unit
1053 (free_stack_comp_unit): Update comments. Clear the per-cu
1054 pointer. Handle aging.
1055 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1056 (age_cached_comp_units, free_one_cached_comp_unit)
1057 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1058 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1059 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1060 (show_dwarf2_cmd): New.
1061 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1062 and "maint show dwarf2 max-cache-age".
1063 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1065 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1068 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1070 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1071 and dwarf2_cu struct pointer as arguments. Change function to use
1072 obstack if provided and use dwarf2_cu to determine language-specific
1074 (partial_die_parent_scope): Change comment to include java. Use
1075 new version of typename_concat instead of obconcat.
1076 (partial_die_full_name): Use typename_concat.
1077 (read_namespace): Ditto.
1078 (read_enumeration_type): Use typename_concat instead of obconcat.
1079 (new_symbol): Ditto.
1080 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1081 (guess_structure_name): Ditto.
1082 (read_subroutine_type): Ditto.
1083 (read_structure_type): Ditto.
1084 (is_vtable_name): Add Java support.
1085 (determine_class_name): Switch to new typename_concat call.
1086 (determine_prefix): Switch to new typename_concat call.
1087 * jv-exp.y (FuncStart): New pattern.
1088 (MethodInvocation): Add support for simple function calls. Change
1089 warning message for other forms of inferior call currently not
1091 * valarith.c (value_subscript): Treat an array with upper-bound
1092 of -1 as unknown size.
1094 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1096 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1097 (lookup_partial_symtab): Use symtab_to_fullname.
1099 2004-09-19 Jim Blandy <jimb@redhat.com>
1101 * minsyms.c (lookup_minimal_symbol): Doc fix.
1103 2004-09-20 Andrew Cagney <cagney@gnu.org>
1105 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1107 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1108 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1110 * infptrace.c: Update.
1112 2004-09-19 Daniel Jacobowitz <dan@debian.org>
1114 * symtab.c (output_source_filename): Mark first argument as const.
1115 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1116 for "info sources" output.
1118 2004-09-20 Mark Kettenis <kettenis@gnu.org>
1120 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1121 <machine/vmparam.h>.
1122 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1123 (register_u_addr): Remove prototype.
1125 2004-09-19 Mark Kettenis <kettenis@gnu.org>
1127 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1128 (i386bsd_fetch_inferior_registers): Rename from
1129 fetch_inferior_registers. Make static.
1130 (i386bsd_store_inferior_registers): Rename from
1131 store_inferior_registers. Make static.
1132 (i386bsd_target): New function.
1133 * i386bsd-nat.h: New file.
1134 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1136 (i386fbsd_resume): Rename from child_resume. Make static.
1137 (_initialize_i386fbsd_nat): Construct and add target vector.
1138 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1139 (_initialize_i386nbsd_nat): Construct and add target vector.
1140 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1142 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1143 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1144 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1145 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1146 (LOADLIBES): New variable.
1147 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1148 inf-ptrace.o. Remove inftarg.o.
1149 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1150 inf-ptrace.o. Remove inftarg.o.
1151 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1152 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1153 (LOADLIBES): New variable.
1154 * Makefile.in (i386bsd_nat_h): New variable.
1155 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1158 * sparc64nbsd-tdep.c: Include "objfiles.h".
1159 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1160 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1161 svr4_lp64_fetch_link_map_offsets.
1162 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1164 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1165 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1166 svr4_lp64_fetch_link_map_offsets.
1167 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1170 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1171 * fbsd-nat.h: New file.
1172 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1173 (fbsd_nat_h): New variable.
1174 (fbsd-nat.o): New dependency.
1176 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1177 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1179 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1182 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1184 * ada-exp.y (type_int): New function to add layer of abstraction
1185 around references to expression types.
1187 (type_long_long): Ditto.
1188 (type_float): Ditto.
1189 (type_double): Ditto.
1190 (type_long_double): Ditto.
1192 (type_system_address): Ditto.
1193 (simple_exp): Use type_* functions in place of builtin_*
1196 (write_var_from_name): Ditto.
1197 (write_object_renaming): Ditto.
1198 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1200 (build_ada_types): Remove, replacing with...
1201 (ada_language_arch_info): New function to initialize primitive
1202 type vector in language_arch_info.
1203 (ada_array_length): Remove use of builtin_type_ada_int.
1204 (value_pos_atr): Ditto.
1205 (ada_evaluate_subexp): Ditto.
1206 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1207 builtin_type_ada_long_long, builtin_type_ada_char,
1208 builtin_type_ada_float, builtin_type_ada_double,
1209 builtin_type_ada_long_double, builtin_type_ada_natural,
1210 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1211 (ada_builtin_types): Remove.
1212 (ada_language_defn): Remove entries for la_builtin_type_vector and
1213 string_char_type and use ada_language_arch_info.
1214 (_initialize_ada_language): Do type-vector initialization along
1215 the lines of c-lang.c.
1216 (ada_create_fundamental_type): Break up line.
1217 (ada_dump_symtab): Remove unused function.
1218 (enum ada_primitive_types): Define.
1219 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1220 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1221 builtin_type_ada_float, builtin_type_ada_double,
1222 builtin_type_ada_long_double, builtin_type_ada_natural,
1223 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1224 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1225 (processInt): Ditto.
1226 (processReal): Ditto.
1227 (name_lookup): Ditto.
1228 * ada-typeprint.c (print_range): Use builtin_type_int, not
1229 builtin_type_ada_int.
1231 2004-09-18 Mark Kettenis <kettenis@gnu.org>
1233 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1235 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1236 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1237 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1238 * configure.in: Improve checks for curses library by checking for
1239 mvwaddstr instead of initscr. Drop HP curses in favour of
1240 standard curses on HP-UX.
1241 * configure: Regenerated.
1243 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1245 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1246 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1247 Minor formatting changes.
1248 (empty_array): Slight rewrite for formatting.
1249 (emit_char,parse,ada_language_defn,build_ada_types,
1250 ada_is_exception_sym, _initialize_ada_language): Move
1252 (ada_dump_symtab): Remove unused definition.
1253 (ada_maybe_exception_partial_symbol): Remove unused definition.
1255 2004-09-16 Andrew Cagney <cagney@gnu.org>
1257 * inf-child.c: Include "gdb_string.h".
1258 (inf_child_core_file_to_sym_file): Delete.
1259 (inf_child_target): Set to_fetch_registers and to_store_registers.
1260 * inf-ptrace.c: Include "gdb_string.h".
1261 * Makefile.in: Update all dependencies.
1263 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1266 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1268 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1269 call to heuristic_proc_desc. Remove code that became redundant
1271 (read_next_frame_reg): Remove special case for SP_REGNUM.
1272 (set_reg_offset): Fix small typo.
1273 (reset_saved_regs): New procedure.
1274 (mips32_heuristic_proc_desc): No longer compute a fake
1275 procedure descriptor. Compute the full frame cache instead.
1276 Some minor comment reformatting.
1278 2004-09-14 Andrew Cagney <cagney@gnu.org>
1280 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1283 * thread-db.c (thread_db_new_objfile): Assume that there is a
1286 2004-09-13 Jim Blandy <jimb@redhat.com>
1288 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1289 so that its storage isn't referenced after its lifetime ends.
1291 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1292 and never assigned to. Delete it, and the 'if (use_buffer)'
1293 clauses. Delete 'raw_buffer', since it is now unused.
1295 2004-09-13 Andrew Cagney <cagney@gnu.org>
1297 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1298 * configure: Re-generate.
1299 * nlm/Makefile.in (TAGS): Update.
1300 * Makefile.in (TAGS): Update.
1301 * config/vax/nbsd.mt (TM_FILE): Update.
1302 * config/sparc/vxworks.mt (TM_FILE): Update.
1303 * config/sparc/sol2.mt (TM_FILE): Update.
1304 * config/sparc/sol2-64.mt (TM_FILE): Update.
1305 * config/sparc/obsd64.mt (TM_FILE): Update.
1306 * config/sparc/obsd.mt (TM_FILE): Update.
1307 * config/sparc/nbsd64.mt (TM_FILE): Update.
1308 * config/sparc/nbsd.mt (TM_FILE): Update.
1309 * config/sparc/linux64.mt (TM_FILE): Update.
1310 * config/sparc/linux.mt (TM_FILE): Update.
1311 * config/sparc/fbsd.mt (TM_FILE): Update.
1312 * config/sh/wince.mt (TM_FILE): Update.
1313 * config/sh/nbsd.mt (TM_FILE): Update.
1314 * config/sh/linux.mt (TM_FILE): Update.
1315 * config/sh/embed.mt (TM_FILE): Update.
1316 * config/s390/s390.mt (TM_FILE): Update.
1317 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1318 * config/rs6000/rs6000.mt (TM_FILE): Update.
1319 * config/rs6000/aix4.mt (TM_FILE): Update.
1320 * config/powerpc/vxworks.mt (TM_FILE): Update.
1321 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1322 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1323 * config/powerpc/obsd.mt (TM_FILE): Update.
1324 * config/powerpc/nbsd.mt (TM_FILE): Update.
1325 * config/powerpc/linux.mt (TM_FILE): Update.
1326 * config/powerpc/aix.mt (TM_FILE): Update.
1327 * config/pa/obsd.mt (TM_FILE): Update.
1328 * config/pa/linux.mt (TM_FILE): Update.
1329 * config/pa/hppahpux.mt (TM_FILE): Update.
1330 * config/pa/hppa64.mt (TM_FILE): Update.
1331 * config/pa/hppa.mt (TM_FILE): Update.
1332 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1333 * config/mips/wince.mt (TM_FILE): Update.
1334 * config/mips/vxmips.mt (TM_FILE): Update.
1335 * config/mips/nbsd.mt (TM_FILE): Update.
1336 * config/mips/linux.mt (TM_FILE): Update.
1337 * config/mips/irix6.mt (TM_FILE): Update.
1338 * config/mips/irix5.mt (TM_FILE): Update.
1339 * config/mips/embed.mt (TM_FILE): Update.
1340 * config/m68k/vxworks68.mt (TM_FILE): Update.
1341 * config/m68k/st2000.mt (TM_FILE): Update.
1342 * config/m68k/os68k.mt (TM_FILE): Update.
1343 * config/m68k/obsd.mt (TM_FILE): Update.
1344 * config/m68k/nbsd.mt (TM_FILE): Update.
1345 * config/m68k/monitor.mt (TM_FILE): Update.
1346 * config/m68k/linux.mt (TM_FILE): Update.
1347 * config/m68k/cisco.mt (TM_FILE): Update.
1348 * config/ia64/linux.mt (TM_FILE): Update.
1349 * config/ia64/aix.mt (TM_FILE): Update.
1350 * config/ia64/ia64.mt (TM_FILE): Update.
1351 * config/i386/vxworks.mt (TM_FILE): Update.
1352 * config/i386/obsd64.mt (TM_FILE): Update.
1353 * config/i386/obsd.mt (TM_FILE): Update.
1354 * config/i386/nto.mt (TM_FILE): Update.
1355 * config/i386/nbsd64.mt (TM_FILE): Update.
1356 * config/i386/nbsd.mt (TM_FILE): Update.
1357 * config/i386/linux64.mt (TM_FILE): Update.
1358 * config/i386/linux.mt (TM_FILE): Update.
1359 * config/i386/i386sol2.mt (TM_FILE): Update.
1360 * config/i386/i386lynx.mt (TM_FILE): Update.
1361 * config/i386/fbsd64.mt (TM_FILE): Update.
1362 * config/i386/fbsd.mt (TM_FILE): Update.
1363 * config/i386/cygwin.mt (TM_FILE): Update.
1364 * config/h8300/h8300.mt (TM_FILE): Update.
1365 * config/frv/frv.mt (TM_FILE): Update.
1366 * config/cris/cris.mt (TM_FILE): Update.
1367 * config/arm/wince.mt (TM_FILE): Update.
1368 * config/arm/nbsd.mt (TM_FILE): Update.
1369 * config/arm/linux.mt (TM_FILE): Update.
1370 * config/arm/embed.mt (TM_FILE): Update.
1371 * config/alpha/nbsd.mt (TM_FILE): Update.
1372 * config/alpha/fbsd.mt (TM_FILE): Update.
1373 * config/alpha/alpha.mt (TM_FILE): Update.
1374 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1375 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1377 Eliminate event_loop_p, always has the value 1.
1378 * defs.h (event_loop_p): Delete macro.
1379 * breakpoint.c (until_break_command): Simplify.
1380 * utils.c (prompt_for_continue): Simplify.
1381 * tracepoint.c (read_actions): Simplify.
1382 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1383 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1384 (set_prompt, init_main): Simplify.
1385 (init_signals, disconnect): Delete, unused.
1386 * remote.c (remote_async_resume)
1387 (extended_remote_async_create_inferior): Simplify.
1388 * mi/mi-interp.c (mi_input): Delete, unused.
1389 (mi_interpreter_resume, mi_command_loop): Simplify.
1390 * interps.c (current_interp_command_loop): Simplify.
1391 * infrun.c (proceed): Simplify.
1392 * infcmd.c (run_command, continue_command, step_1, jump_command)
1393 (until_command, advance_command, finish_command)
1394 (interrupt_target_command): Simplify.
1395 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1397 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1398 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1399 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1400 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1401 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1402 * mips-tdep.c (mips_dump_tdep): Do not print same.
1404 2004-09-12 Andrew Cagney <cagney@gnu.org>
1406 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1408 * Makefile.in (valprint.o): Delete explict rule.
1410 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1411 reported by Dave Anderson.
1413 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1415 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1417 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1418 Andrew Cagney <cagney@gnu.org>
1420 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1421 (mi_cmd_data_list_register_values)
1422 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1423 the register number computation.
1425 2004-09-12 Andrew Cagney <cagney@gnu.org>
1427 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1428 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1429 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1430 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1432 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1433 inf-ptrace.o and inf-child.o.
1434 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1435 * Makefile.in: Update dependencies.
1437 2004-09-11 Andrew Cagney <cagney@gnu.org>
1439 * language.c (hex_string, hex_string_custom): Move from here ...
1440 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1441 (CELLSIZE): Increase to 50.
1442 * language.h (hex_string, hex_string_custom): Move from here ...
1443 * defs.h: ... to here.
1444 * Makefile.in: Update all dependencies.
1446 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1448 * language.c (local_hex_format_custom): Remove.
1449 (local_hex_string): Rename to hex_string, use C format, and move to
1451 (local_hex_string_custom): Rename to hex_string_custom and change
1452 interface. Now uses C format. Move to utils.c
1453 (local_octal_format_custom): Remove.
1454 (local_decimal_format_custom): Remove.
1455 (unknown_language_defn): Remove language-specific number
1457 (auto_language_defn): Ditto.
1458 (local_language_defn): Ditto.
1459 * language.h (struct language_format_info): Delete declaration.
1460 (struct language_defn): Remove language_format_info fields
1461 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1462 (local_binary_format): Remove macro.
1463 (local_binary_format_prefix): Remove macro.
1464 (local_binary_format_specifier): Remove macro.
1465 (local_binary_format_suffix): Remove macro.
1466 (local_octal_format): Remove macro.
1467 (local_octal_format_prefix): Remove macro.
1468 (local_octal_format_specifier): Remove macro.
1469 (local_octal_format_suffix): Remove macro.
1470 (local_decimal_format): Remove macro.
1471 (local_decimal_format_prefix): Remove macro.
1472 (local_decimal_format_specifier): Remove macro.
1473 (local_decimal_format_suffix): Remove macro.
1474 (local_hex_format): Remove macro.
1475 (local_hex_format_prefix): Remove macro.
1476 (local_hex_format_specifier): Remove macro.
1477 (local_hex_format_suffix): Remove macro.
1478 (local_decimal_format_custom): Remove.
1479 (local_octal_format_custom): Remove.
1480 (local_hex_format_custom): Remove.
1481 (local_hex_string): Rename to hex_string and move to defs.h.
1482 (local_hex_string_custom): Rename to hex_string_custom, change
1483 interface, and move to defs.h.
1484 * utils.c: (int_string): New function.
1485 (hex_string): New function (from language.c).
1486 (hex_string_custom): New function (from language.c).
1487 (octal2str): New function.
1488 (decimal2str): Add width parameter.
1489 (paddr_u): Use new decimal2str interface.
1491 * defs.h (hex_string): Declare.
1492 (hex_string_custom): Declare.
1493 (int_string): Declare.
1494 * printcmd.c (print_scalar_formatted): Remove localized binary
1496 * valprint.c (print_longest): Use int_string.
1497 (print_floating): Use C hex format.
1498 (print_hex_chars): Ditto.
1499 (print_binary_chars): Remove language-specific formatting.
1500 (print_octal_chars): Use C octal format.
1501 (print_decimal_chars): Delocalize format.
1502 (print_decimal): Remove.
1503 * ada-lang.c (ada_language_defn): Remove language-specific number
1505 * p-lang.c (pascal_language_defn): Ditto.
1506 * c-lang.c (c_language_defn): Ditto.
1507 (cplus_language_defn): Ditto.
1508 (asm_language_defn): Ditto.
1509 (minimal_language_defn): Ditto.
1510 * f-lang.c (f_language_defn): Ditto.
1511 * jv-lang.c (java_language_defn): Ditto.
1512 * m2-lang.c (m2_language_defn): Ditto.
1513 * scm-lang.c (scm_language_defn): Ditto.
1514 * objc-lang.c (objc_language_defn): Ditto.
1515 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1517 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1518 * ui-out.c (ui_out_field_core_addr): Ditto.
1519 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1520 * exec.c (print_section_info): Ditto.
1521 * i387-tdep.c (print_i387_status_word): Ditto.
1522 (print_i387_control_word): Ditto.
1523 (i387_print_float_info): Ditto.
1524 * maint.c (maint_print_section_info): Ditto.
1525 * solib.c (info_sharedlibrary_command): Ditto.
1526 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1527 * symtab.c (print_msymbol_info): Ditto.
1528 * tracepoint.c (tracepoints_info): Ditto.
1529 * solib-frv.c (lm_base): Ditto.
1530 (frv_current_sos): Ditto.
1531 (enable_break2): Ditto.
1532 (enable_break): Ditto.
1533 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1534 (process_one_symbol): Ditto.
1535 * infcmd.c (program_info): Ditto.
1536 * mdebugread.c (parse_partial_symbols): Ditto.
1537 * symfile.c (add_symbol_file_command): Ditto.
1538 * cli/cli-cmds.c (edit_command): Ditto.
1539 (list_command): Ditto.
1540 * infcall.c (call_function_by_hand): Ditto.
1541 * remote-vx.c (vx_run_files_info): Ditto.
1546 * aix-thread.c (pdc_symbol_addrs): Ditto.
1547 (pdc_read_regs): Ditto.
1548 (pdc_write_regs): Ditto.
1549 (pdc_read_data): Ditto.
1550 (pdc_write_data): Ditto.
1551 * d10v-tdep.c (display_trace): Ditto.
1552 * rs6000-nat.c (find_toc_address): Ditto.
1553 * aix-thread.c: Don't include language.h.
1554 * buildsym.c: Ditto.
1556 * mdebugread.c: Ditto.
1557 * rs6000-nat.c: Ditto.
1558 * buildsym.c (make_blockvector): Use renamed hex_string.
1560 2004-09-10 Jason Molenda (jmolenda@apple.com)
1562 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1563 chars after 'if' or 'while' commands in user-defined commands.
1565 2004-09-08 Jim Blandy <jimb@redhat.com>
1567 Fix bug reported and analyzed by Olivier Crete:
1568 * symfile.c (copy_section_addr_info): New function.
1569 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1570 original set of address arguments, instead of handwritten code
1571 that uses one length to allocate and a different length to
1572 initialize. Use make_cleanup_free_section_addr_info.
1573 * symfile.h (copy_section_addr_info): New declaration.
1574 * utils.c: #include "symfile.h".
1575 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1577 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1578 * Makefile.in (utils.o): Update dependencies.
1580 2004-09-08 Andrew Cagney <cagney@gnu.org>
1582 * thread-db.c (keep_thread_db): Delete.
1583 (thread_db_new_objfile, thread_db_create_inferior)
1584 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1586 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1588 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1589 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1590 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1591 (i386_frameless_signal_p): Remove prototype.
1592 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1593 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1595 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1596 instead of FP0_REGNUM.
1597 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1598 of FP0_REGNUM and FPC_REGNUM.
1600 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1601 (sunos_solib_create_inferior_hook): Don't call
1602 sunos_relocate_main_executable.
1604 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1605 solib_svr4_fetch_link_map_offsets to
1606 svr4_ilp32_fetch_link_map_offsets.
1607 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1608 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1609 svr4_ilp32_fetch_link_map_offsets.
1610 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1612 2004-09-07 Jim Blandy <jimb@redhat.com>
1614 * frame.h (frame_register): Doc fix.
1616 2004-09-07 Andrew Cagney <cagney@gnu.org>
1618 * vx-share/wait.h: Delete #ifdef USG.
1619 * utils.c (request_quit): Ditto.
1620 * tui/tui.c (tui_reset): Ditto.
1622 * remote-sds.c: Ditto.
1623 * remote-rdi.c: Ditto.
1624 * mdebugread.c: Ditto.
1625 * m68klinux-nat.c: Ditto.
1626 * infttrace.c: Ditto.
1627 * infptrace.c: Ditto.
1628 * i386v-nat.c: Ditto.
1631 * core-aout.c: Ditto.
1633 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1635 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1636 heuristic_proc_desc.
1637 (mips_insn32_frame_cache): Likewise.
1639 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1641 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1642 left behind by error.
1644 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1646 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1647 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1649 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1651 * config/rs6000/xm-aix4.h: Remove this file.
1652 * config/rs6000/aix4.mh (XM_FILE): Delete.
1654 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1656 * config/rs6000/xm-rs6000.h: Remove this file.
1657 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1659 2004-09-03 Andrew Cagney <cagney@gnu.org>
1661 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1662 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1665 * mips-tdep.c (temp_saved_regs): Delete.
1666 (set_reg_offset): Replace saved_regs parameter with this_cache.
1667 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1668 (mips32_heuristic_proc_desc): Add this_cache parameter.
1669 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1670 (after_prologue): Pass a NULL this_cache.
1672 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1673 non-kernel trap prologues.
1675 * mips-tdep.c (find_proc_desc): Delete function.
1676 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1678 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1679 mips_insn32_frame_cache.
1681 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1682 Simplify as NEXT_FRAME is NULL.
1683 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1685 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1687 (mips_skip_prologue): Update.
1689 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1690 "cur_frame" parameter.
1691 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1692 (mips_insn32_frame_cache, find_proc_desc): Update
1694 * config/vax/nm-obsd.h: Delete file.
1695 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1696 * config/vax/nm-nbsd.h: Delete file.
1697 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1698 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1699 * config/sh/nm-nbsd.h: Delete file.
1700 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1701 * config/rs6000/nm-rs6000ly.h: Delete file.
1702 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1703 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1704 * config/powerpc/nm-obsd.h: Delete file.
1705 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1706 * config/powerpc/nm-nbsd.h: Delete file.
1707 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1708 * config/pa/nm-obsd.h: Delete file.
1709 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1710 * config/mips/nm-nbsd.h: Delete file.
1711 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1712 * config/m88k/nm-obsd.h: Delete file.
1713 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1714 * config/m68k/nm-nbsd.h: Delete file.
1715 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1716 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1717 * config/i386/nm-nbsd.h: Delete file.
1718 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1719 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1720 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1721 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1722 * config/i386/nm-i386lynx.h: Delete file.
1723 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1724 * config/arm/nm-nbsd.h: Delete file.
1725 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1726 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1728 * config/i386/tm-fbsd.h: Delete file.
1729 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1730 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1732 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1733 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1734 * config/rs6000/aix4.mt (TM_FILE): Set to
1735 config/rs6000/tm-rs6000.h.
1736 * config/powerpc/tm-ppc-aix.h: Delete file.
1737 * config/powerpc/aix.mt (TM_FILE): Set to
1738 config/rs6000/tm-rs6000.h.
1739 * config/m68k/tm-linux.h: Delete file.
1740 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1741 * config/i386/tm-linux64.h: Delete file.
1742 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1743 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1745 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1746 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1747 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1748 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1749 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1750 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1751 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1752 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1753 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1755 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1758 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1760 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1761 Minor reformatting. Some code factoring.
1763 2004-09-02 Andrew Cagney <cagney@gnu.org>
1765 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1766 * config/vax/tm-nbsd.h: Delete file.
1767 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1768 * config/sparc/tm-vxworks.h: Delete file.
1769 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1770 * config/sparc/tm-nbsd.h: Delete file.
1771 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1772 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1773 * config/sparc/tm-linux.h: Delete file.
1774 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1775 * config/s390/tm-linux.h: Delete file.
1776 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1777 * config/pa/tm-bsd.h: Delete file.
1778 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1779 * config/m68k/tm-obsd.h: Delete file.
1780 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1781 * config/m68k/tm-nbsd.h: Delete file.
1782 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1783 * config/i386/tm-vxworks.h: Delete file.
1784 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1785 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1786 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1787 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1788 * config/i386/tm-nbsd.h: Delete file.
1789 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1790 * config/i386/tm-i386lynx.h: Delete file.
1791 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1792 * config/cris/tm-cris.h: Delete file.
1794 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1795 * configure: Re-generate.
1796 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1797 * config/arm/tm-nbsd.h: Delete file.
1799 * config/powerpc/tm-ppcle-sim.h: Delete.
1800 * config/powerpc/tm-ppcle-eabi.h: Delete.
1801 * config/powerpc/tm-nbsd.h: Delete.
1802 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1803 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1806 * config/i386/nto.mh (NAT_FILE): Delete.
1807 * config/i386/nm-nto.h: Delete.
1809 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1810 * config/m68k/tm-os68k.h: Ditto.
1811 * config/m68k/tm-monitor.h: Ditto.
1812 * config/m68k/tm-cisco.h: Ditto.
1813 * config/m68k/st2000.mt (TM_FILE): Delete.
1814 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1815 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1816 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1817 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1819 * config/m68k/tm-st2000.h: Delete.
1820 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1821 * config/sparc/fbsd.mt (TM_FILE): Delete.
1822 * config/sparc/tm-fbsd.h: Delete.
1824 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1825 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1826 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1828 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1829 GDB_TM_FILE and GDB_XM_FILE.
1830 * gdbarch.c: Re-generate.
1831 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1832 quotes in macro definition.
1833 * configure.in: Re-generate.
1835 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1836 validating architecture methods.
1837 * gdbarch.c: Re-generate.
1839 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1840 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1841 GDB_MULTI_ARCH_PARTIAL.
1842 * gdbarch.h: Re-generate.
1844 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1845 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1846 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1847 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1848 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1849 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1850 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1851 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1852 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1853 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1854 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1855 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1857 2004-09-01 Andrew Cagney <cagney@gnu.org>
1859 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1860 and main_func_highpc.
1861 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1862 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1863 * nlmread.c (nlm_symfile_read): Update.
1865 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1867 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1868 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1869 (find_proc_desc): Remove dead code.
1871 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1873 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1875 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1877 * observer.sh: Add struct so_list declaration.
1878 * Makefile.in: Add dependencies on observer.h for solib.c and
1880 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1882 (_initialize_breakpoint): Register
1883 disable_breakpoints_in_unloaded_shlib as an observer of the
1884 "solib unloaded" observation event.
1885 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1886 call decode_line_1 so unfound breakpoint errors are silent.
1887 * solib.c (update_solib_list): When a solib is discovered to have
1888 been unloaded by the program, notify all observers of the
1889 "solib unloaded" observation event.
1891 2004-09-01 Andrew Cagney <cagney@gnu.org>
1893 * frame.c: Include "objfiles.h".
1894 (inside_main_func): New function.
1895 (get_prev_frame): Use new inside_main_func.
1896 * Makefile.in (frame.o): Update dependencies.
1897 * defs.h (inside_main_func): Delete declaration.
1898 * blockframe.c (inside_main_func): Delete function.
1900 2004-08-31 Jim Blandy <jimb@redhat.com>
1902 * dwarf2read.c (is_vtable_name): New function, based on logic from
1903 read_structure_type, but passing the correct length to strncmp,
1904 and using 'sizeof' instead of 'strlen'.
1905 (read_structure_type): Call it.
1907 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1909 * config/powerpc/aix.mh: Add comment.
1911 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1913 * MAINTAINERS: Add self to Write-After-Approval.
1915 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1917 * MAINTAINERS: Add self to Write-After-Approval.
1919 2004-08-30 Andrew Cagney <cagney@gnu.org>
1921 Fix PR breakpoints/1757.
1922 * infrun.c (struct execution_control_state): Replace
1923 remove_breakpoints_on_following_step with
1924 step_after_step_resume_breakpoint.
1925 (init_execution_control_state): Update.
1926 (handle_inferior_event): For signals, when stepping off a
1927 breakpoint, set step_after_step_resume_breakpoint. When
1928 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1929 (keep_going): Delete code handling
1930 remove_breakpoints_on_following_step.
1932 2004-08-29 David Lecomber <david@streamline-computing.com>
1935 * language.h (enum array_ordering): New enum.
1936 * language.h (struct language_defn): New la_array_ordering
1938 * language.c (unknown_language_defn, auto_language_defn)
1939 (local_language_defn): Ditto.
1940 * ada-lang.c (ada_language_defn): Ditto.
1941 * c-lang.c (c_language_defn, cplus_language_defn)
1942 (asm_language_defn, minimal_language_defn): Ditto.
1943 * f-lang.c (f_language_defn): Ditto.
1944 * jv-lang.c (java_language_defn): Ditto.
1945 * m2-lang.c (f_language_defn): Ditto.
1946 * objc-lang.c (objc_language_defn): Ditto.
1947 * p-lang.c (pascal_language_defn): Ditto.
1948 * scm-lang.c (scm_language_defn): Ditto.
1949 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1950 oriented large to small in type structure.
1951 * dwarf2read.c (read_array_order): New function.
1952 (read_array_type): Use read_array_order to check row/column
1955 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1957 * target.c (target_resize_to_sections): Check
1958 current_target.to_sections for an old value when updating.
1960 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1962 * procfs.c (dbx_link_bpt_addr): New static global variable.
1963 (dbx_link_shadow_contents): New static global variable.
1964 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1965 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1967 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1968 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1970 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1971 after the inferior has been forked.
1972 (remove_dbx_link_breakpoint): New function.
1973 (dbx_link_addr): New function.
1974 (insert_dbx_link_bpt_in_file): New function.
1975 (insert_dbx_link_bpt_in_region): New function.
1976 (insert_dbx_link_breakpoint): New function.
1977 (proc_trace_syscalls_1): New function, extracted from
1978 proc_trace_syscalls.
1979 (proc_trace_syscalls): Replace extract code by call to
1980 proc_trace_syscalls_1.
1981 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1984 2004-08-25 Jim Blandy <jimb@redhat.com>
1986 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1988 2004-08-25 Andrew Cagney <cagney@gnu.org>
1990 * infrun.c (struct execution_control_state): Delete field
1991 "stepping_through_sigtramp".
1992 (init_execution_control_state): Do not set same.
1993 (context_switch): Do not pass same to save_infrun_state and
1995 * gdbthread.h (struct thread_info): Delete field
1996 stepping_through_sigtramp.
1997 (save_infrun_state, load_infrun_state): Delete parameter
1998 stepping_through_sigtramp.
1999 * thread.c (load_infrun_state, save_infrun_state): Update.
2001 * infrun.c: Re-indent. Move expression operators to the beginning
2002 of the line. Remove long disabled #if 0 code.
2004 2004-08-24 Andrew Cagney <cagney@gnu.org>
2006 * doublest.h (floatformat_ieee_quad): Rename
2007 floatformat_ia64_quad.
2008 * doublest.c (floatformat_ieee_quad): Rename
2009 floatformat_ia64_quad.
2010 (_initialize_doublest): Update.
2012 2004-08-24 Jim Blandy <jimb@redhat.com>
2014 * dwarf2expr.h (struct dwarf_expr_context): New members
2015 'num_pieces' and 'pieces', for returning the result of an
2016 expression that uses DW_OP_piece.
2017 (struct dwarf_expr_piece): New struct type.
2018 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2020 (free_dwarf_expr_context): Free pieces, if any.
2021 (add_piece): New function.
2022 (execute_stack_op): Implement DW_OP_piece.
2023 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2024 expression is a list of pieces, print an error message.
2025 (dwarf2_loc_desc_needs_frame): If the expression yields
2026 pieces, and any piece is in a register, then we need a frame.
2028 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2029 the stack until we've decided what sort of result the evaluation
2030 has produced. Use separate variables, with more specific names.
2032 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
2034 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2035 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2036 (arm_netbsd_init_abi_common): Register them.
2038 2004-08-22 Mark Kettenis <kettenis@gnu.org>
2040 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2042 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2043 safe_frame_unwind_memory instead of target_read_memory.
2045 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2047 (fetch_register, store_register): Remove prototypes.
2048 (child_resume): Reorganize code and comments such that it is
2049 grouped a bit more logically.
2050 (attach): Explicitly compare errno against 0.
2051 (detach): Likewise. Use perror_with_name instead of
2053 * Makefile.in (infptrace.o): Update dependencies.
2055 * ia64-linux-nat.c: Update copyright year.
2056 (fetch_debug_register, store_debug_register)
2057 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2059 * config/ia64/nm-linux.h: Update copyright year.
2060 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2062 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2063 from CORE_ADDR to struct frame_info *. Use
2064 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2065 (amd64_linux_sigtramp_p): Adjust for changed signature of
2066 and64_linux_sigtramp_start
2068 * gdb_ptrace.h: GNU/Linux.
2070 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2073 * infptrace.c: Include "gdb_assert.h".
2074 (PTRACE_XFER_TYPE): Remove define.
2075 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2076 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2078 (fetch_inferior_registers, store_inferior_registers): Remove
2079 redundant culry braces. Tweak comment. s/regno/regnum.
2080 * Makefile.in (infptrace.o): Update dependencies.
2082 * configure.in: Change test for return type of ptrace to default
2083 to `long' instead of `int'.
2084 * configure: Regenerate.
2086 2004-08-21 Mark Kettenis <kettenis@gnu.org>
2088 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2090 * configure.in: Check for ttrace function.
2091 * configure, config.in: Regenerate.
2093 * gdb_ptrace.h: New file.
2094 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2096 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2097 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2098 (attach): Don't define PT_ATTACH.
2099 (detach): Don't define PT_DETACH.
2100 * Makefile.in (gdb_ptrace_h): New variable.
2101 (infptrace.o): Update dependencies.
2103 2004-08-16 Mark Kettenis <kettenis@gnu.org>
2105 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2106 instead of `int' if not already defined.
2107 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2109 * infptrace.c (call_ptrace): Revert change that replaced
2110 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2112 2004-08-15 Mark Kettenis <kettenis@gnu.org>
2114 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2117 * linux-nat.c (kill_inferior): Add missing third and fourth
2118 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2120 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2123 * proc-why.c (proc_prettyfprint_why): Fix format string.
2125 * solib-osf.c (osf_current_sos): Remove unsused label.
2127 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2129 * configure, config.in: Regenerate.
2130 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2131 <ncurses/ncurses.h>.
2133 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2134 * config/nm-nbsd.h: Update copyright year.
2135 (PTRACE_ARG3_TYPE): Remove define.
2137 * sparc-nat.c (fetch_inferior_registers)
2138 (store_inferior_registers, sparc_xfer_wcookie):
2139 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2141 * alphabsd-nat.c (fetch_inferior_registers):
2142 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2144 * amd64bsd-nat.c (fetch_inferior_registers)
2145 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2147 * armnbsd-nat.c: Update copyright year.
2148 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2149 (store_register, store_regs, store_fp_register, store_fp_regs):
2150 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2151 * hppabsd-nat.c (fetch_inferior_registers)
2152 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2154 * i386bsd-nat.c (fetch_inferior_registers)
2155 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2156 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2157 * m68kbsd-nat.c (fetch_inferior_registers)
2158 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2160 * m88kbsd-nat.c (fetch_inferior_registers)
2161 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2163 * mipsnbsd-nat.c: Update copyright year.
2164 (fetch_inferior_registers, store_inferior_registers):
2165 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2166 * ns32knbsd-nat.c: Update copyright year.
2167 (fetch_inferior_registers, store_inferior_registers):
2168 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2169 * ppcnbsd-nat.c (fetch_inferior_registers):
2170 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2172 * ppcobsd-nat.c (fetch_inferior_registers):
2173 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2175 * shnbsd-nat.c: Update copyright year.
2176 (fetch_inferior_registers, store_inferior_registers):
2177 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2178 * vaxbsd-nat.c (fetch_inferior_registers)
2179 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2182 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2184 * infptrace.c (call_ptrace, child_resume, attach, detach)
2185 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2186 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2187 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2190 2004-08-14 Mark Kettenis <kettenis@gnu.org>
2192 * defs.h: Remove out-of-date comment.
2193 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2194 [!GETENV_PROVIDED] (getenv): Remove prototype.
2196 * standalone.c: Remove file.
2197 * Makefile.in (standalone.o): Remove dependency.
2199 * i386-linux-nat.c (dummy_sse_values): Remove function and
2201 (i386_linux_dr_get): Fix typo in comment.
2202 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2204 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2206 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2208 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2211 2004-08-13 Mark Kettenis <kettenis@gnu.org>
2213 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2214 parenthesis in definition.
2215 * configure: Regenerated.
2217 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2219 * PROBLEMS: Mention build/1411.
2221 2004-08-09 Robert Millan <robertmh@gnu.org>
2223 Committed by Nathanael Nerode.
2224 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2225 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2227 2004-08-12 Andrew Cagney <cagney@gnu.org>
2229 * NEWS: Mention fixes in GDB 6.2.1.
2230 * PROBLEMS: Remove mention of mips-irix.
2232 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2234 * config/powerpc/xm-aix.h: Delete.
2235 * config/powerpc/aix.mh (MH_FILE): Remove.
2236 * config/powerpc/aix432.mh (MH_FILE): Remove.
2238 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2240 * config/powerpc/aix.mh: Remove obsolete comment.
2241 * config/powerpc/aix432.mh: Likewise.
2243 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2245 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2247 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2249 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2250 this file is now empty.
2251 * config/xm-aix4.h: Remove, this file is no longer included
2254 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2256 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2257 that file is now empty.
2258 (termdef): Remove prototype, function no longer used.
2260 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2262 * doc/gdbint.texinfo (Host Definition): Remove documentation
2263 for USE_O_NOCTTY, no longer used.
2264 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2265 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2267 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2269 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2270 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2271 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2273 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2275 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2276 instead of FIVE_ARG_PTRACE.
2278 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2279 (new_tty): Use O_NOCTTY unconditionally.
2281 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2283 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2284 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2287 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2289 * xcoff_symfile_finish: Replace last call to xmfree by call
2292 2004-08-10 Andrew Cagney <cagney@gnu.org>
2294 * main.c (captured_main): Delete call to init_malloc.
2295 * defs.h (init_malloc): Delete declaration.
2296 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2297 (init_malloc): Delete functions.
2299 * defs.h (xmfree): Delete.
2300 * utils.c (xmfree): Delete function.
2301 (xfree): Inline calls to xmfree and mfree.
2302 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2303 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2304 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2305 * somread.c (som_symfile_finish): Ditto.
2306 * objfiles.c (allocate_objfile, free_objfile):
2307 * nlmread.c (nlm_symfile_finish): Ditto.
2308 * hpread.c (hpread_symfile_finish): Ditto.
2309 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2310 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2311 * coffread.c (coff_symfile_finish): Ditto.
2313 * defs.h (xmcalloc): Delete declaration.
2314 * utils.c (xmcalloc): Delete.
2315 (xcalloc): Inline calls to xmcalloc and mcalloc.
2316 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2318 * symtab.c (create_demangled_names_hash): Ditto.
2320 * defs.h (xmrealloc): Delete.
2321 * utils.c (xmrealloc): Delete.
2322 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2323 * symmisc.c (extend_psymbol_list): Use xrealloc.
2324 * source.c (find_source_lines): Ditto.
2325 * hpread.c (hpread_lookup_type): Ditto.
2326 * dbxread.c (add_bincl_to_list): Ditto.
2328 * utils.c (xmmalloc): Delete.
2329 (xmalloc): Inline xmmalloc and mmalloc calls.
2330 (msavestring): Use xmalloc.
2331 * defs.h (xmmalloc): Delete declaration.
2332 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2334 * symmisc.c (extend_psymbol_list): Ditto.
2335 * symfile.c (init_psymbol_list): Ditto.
2336 * source.c (find_source_lines): Ditto.
2337 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2338 * elfread.c (elf_symtab_read): Ditto.
2339 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2340 * coffread.c (coff_symfile_init): Ditto.
2342 2004-08-10 David Carlton <carlton@bactrian.org>
2344 * MAINTAINERS: Remove David Carlton from c++ testsuite
2347 2004-08-10 Jerome Guitton <guitton@gnat.com>
2349 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2350 print a line feed before the prompt.
2352 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2354 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2356 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2358 General cleanup of the AIX xm include file:
2359 * config/xm-aix4.h (fd_set): Remove undefine.
2360 Remove include of <sys/select.h>.
2361 (HAVE_TERMIO): Remove define.
2363 (NULL): Remove redefine.
2364 (alloca): Remove #pragma.
2365 (vfork): Remove define.
2367 (SIGWINCH_HANDLER): Remove.
2368 (SIGWINCH_HANDLER_BODY): Remove.
2370 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2372 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2373 GDB_OSABI_OPENBSD_ELF.
2375 2004-08-07 Robert Millan <robertmh@gnu.org>
2377 * bsd-kvm.c: Check for nlist.h before including it.
2379 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2381 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2382 sigcontext' offset consistency checks for ancient BSD.
2384 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2386 * configure.in: Check for <sys/types.h>. Check return and
2387 argument types of ptrace.
2388 * configure, config.in: Regenerate.
2390 2004-08-09 Jim Blandy <jimb@redhat.com>
2392 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2393 rs6000_register_sim_regno): Doc fixes.
2395 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2397 * mips-tdep.c: Include "floatformat.h".
2398 (n32n64_floatformat_always_valid): New function.
2399 (floatformat_n32n64_long_double_big): New constant.
2400 (mips_gdbarch_init): Set size and format of long double
2401 for N32 and N64 ABIs.
2402 * Makefile.in (mips-tdep.o): Update dependencies.
2404 2004-08-08 Andrew Cagney <cagney@gnu.org>
2406 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2407 print. Improve script's error messages.
2408 * gdbarch.h: Re-generate.
2410 * gdbarch.sh (pformat): New function.
2411 (float_format, double_format, long_double_format): List with bit
2412 members. Use pformat when printing.
2413 * gdbarch.c, gdbarch.h: Re-generate.
2415 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2417 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2418 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2419 (ppcnbsd_supply_pcb): New function.
2420 (_initialize_ppcnbsd_nat): New prototype and function.
2421 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2422 (LOADLIBES): New variable.
2423 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2425 2004-08-08 Andrew Cagney <cagney@gnu.org>
2427 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2428 (builtin_type_ieee_double, builtin_type_ia64_quad)
2429 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2430 BE/LE floating-point types.
2431 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2432 (builtin_type_ieee_double, builtin_type_ia64_quad)
2433 (builtin_type_ia64_spill): Declare.
2434 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2435 (floatformat_ieee_double, floatformat_arm_ext)
2436 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2437 of LE/BE floatformats.
2438 * doublest.h: (struct floatformat, floatformat_ieee_single)
2439 (floatformat_ieee_double, floatformat_arm_ext)
2440 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2442 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2444 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2446 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2447 instead of regcache_raw_supply when storing the registers.
2449 * i386gnu-nat.c: Update copyright year.
2450 (gnu_store_registers): Don't use deprecated_registers and
2451 deprecated_registers_valid. Use regcache_valid_p and
2452 regcache_raw_supply instead.
2454 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2457 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2458 variables. Incapitalized "process".
2460 * configure.in: Add cursesX to the list of possible curses libs.
2461 Add cursesX.h to the list of possible curses headers.
2462 * configure, config.in: Regenerate.
2464 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2466 * configure.in: Test for struct lwp in <sys/lwp.h>.
2467 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2468 the offset of l_addr in struct lwp.
2470 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2472 * bsd-kvm.c: Include "gdbcore.h"
2473 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2475 2004-08-07 Andrew Cagney <cagney@gnu.org>
2477 * gdbtypes.c (build_flt, build_complex): New functions.
2478 (gdbtypes_post_init): Use.
2480 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2482 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2483 through to builtin_type_uint128.
2485 * c-exp.y: Use builtin_type function to obtain builtin types.
2487 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2489 * gdbtypes.c (gdbtypes_post_init): Update.
2490 (build_gdbtypes): Move initialization of builtin_type_int0
2491 through to builtin_type_uint128 from here ...
2492 (_initialize_gdbtypes): ... to here.
2493 * d10v-tdep.c (d10v_register_type): Update.
2495 * doublest.c: Update copyright.
2496 (floatformat_from_length): Call error when floatformat is NULL.
2497 (extract_floating_by_length): Remove NULL fmt check.
2498 (store_floating_by_length): Ditto.
2500 2004-08-07 Andrew Cagney <cagney@gnu.org>
2502 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2503 that the register is valid.
2505 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2507 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2508 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2509 struct frame_info *. Use safe_frame_unwind_memory instead of
2510 deprecated_read_memory_nobpt.
2511 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2512 changed signature of i386_linux_sigtramp_start and
2513 i386_linux_rt_sigtramp_start.
2515 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2516 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2517 instead of deprecated_read_memory_nobpt.
2518 (i386nbsd_sigtramp_p): Adjust for changed signature of
2519 i386nbsd_sigtramp_offset.
2521 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2522 safe_frame_unwind_memory instead of target_read_memory.
2524 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2526 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2527 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2528 (_initialize_kernel_u_addr): Remove prototype and function.
2529 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2531 * xcoffread.c: Likewise.
2533 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2535 * vax-nat.c: New file.
2536 * vaxbsd-nat.c: Tweak comment.
2537 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2539 (vax-nat.o): New dependency.
2540 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2541 (vax-*-ultrix2*): Remove.
2542 * config/vax/vax.mh: New file.
2543 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2544 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2545 (vax_register_u_addr): New prototype.
2546 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2547 * config/vax/vaxult2.mh: Remove file.
2548 * config/vax/vaxult.mh: Remove file.
2549 * config/vax/vaxbsd.mh: Remove file.
2550 * config/vax/vax.mt (TM_FILE): Remove.
2551 * config/vax/tm-vaxbsd.h: Remove file.
2553 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2555 * aix-thread.c (get_signaled_thread): New function.
2556 (iter_trap): Delete, no longer used.
2557 (iter_tid): New function.
2558 (pd_update): Find the thread that received the SIGTRAP signal
2559 by first locating the kernel thread, and then finding its
2562 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2564 * lin-lwp.c (child_wait): Continue inferior after processing
2565 PTRACE_EVENT_CLONE event.
2567 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2569 * MAINTAINERS: Add self to Write-After-Approval.
2571 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2573 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2574 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2576 2004-08-05 Andrew Cagney <cagney@gnu.org>
2578 * config/xm-sysv4.h: Delete file.
2579 * config/mips/xm-irix5.h: Delete file.
2580 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2581 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2582 * config/ia64/xm-aix.h: Delete file.
2583 * config/ia64/aix.mh (XM_FILE): Delete.
2584 * config/pa/xm-hppah.h: Delete file.
2585 * config/pa/hpux11w.mh (XM_FILE): Delete.
2586 * config/pa/hpux11.mh (XM_FILE): Delete.
2587 * config/pa/hpux1020.mh (XM_FILE): Delete.
2588 * config/pa/hppahpux.mh (XM_FILE): Delete.
2590 * config/alpha/xm-alphalinux.h: Delete file.
2591 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2592 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2593 * config/alpha/xm-alphaosf.h: Delete file.
2594 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2595 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2596 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2597 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2599 * config/i386/xm-i386v.h: Delete file.
2600 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2601 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2602 * config/i386/xm-i386sco.h: Delete file.
2603 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2604 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2605 * config/i386/xm-i386v4.h: Delete file.
2606 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2607 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2608 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2609 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2611 * config/vax/xm-vax.h: Delete file.
2612 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2613 * config/vax/xm-vaxult2.h: Delete file.
2614 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2615 * config/vax/vaxult2.mh (XM_FILE): Delete.
2616 * config/vax/xm-vaxult.h: Delete file.
2617 * config/vax/vaxult.mh (XM_FILE): Delete.
2618 * config/vax/xm-vaxbsd.h: Delete file.
2619 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2621 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2622 * gdbarch.h, gdbarch.c: Re-generate.
2623 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2624 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2625 * frame.h: Delete deprecated_read_fp from comments.
2626 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2627 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2629 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2631 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2632 trampoline in OpenBSD 3.5-current.
2634 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2637 * Makefile.in: Remove embedded page breaks.
2639 2004-08-04 Jim Blandy <jimb@redhat.com>
2641 * regcache.c (regcache_raw_read): Assert that, after calling
2642 target_fetch_registers, the register we're reading is cached.
2644 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2645 a call to 'internal_error', with a more helpful error message.
2646 * rs6000-tdep.c (e500_pseudo_register_read,
2647 e500_pseudo_register_write, rs6000_store_return_value): Same.
2649 2004-08-04 Andrew Cagney <cagney@gnu.org>
2651 * Makefile.in: Update dependencies.
2653 2004-08-04 Jim Blandy <jimb@redhat.com>
2655 Change the layout of the PowerPC E500 raw register cache to allow
2656 the lower 32-bit halves of the GPRS to be their own raw registers,
2657 not pseudoregisters.
2658 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2659 add ppc_ev0_upper_regnum flag.
2660 * rs6000-tdep.c: #include "reggroups.h".
2661 (spe_register_p): Recognize the ev upper half registers as SPE
2663 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2665 (e500_move_ev_register): New function.
2666 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2667 vector registers are the pseudo-registers now, formed by splicing
2668 together the gprs and the upper-half registers.
2669 (e500_register_reggroup_p): New function.
2671 (P8, A4): New macro.
2672 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2673 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2675 (registers_e500): Rearrange register set so that the raw register
2676 set contains 32-bit GPRs and upper-half registers, and the SPE
2677 vector registers become pseudo-registers.
2678 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2679 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2680 register numbers are now the same for the E500 as they are for
2681 other PowerPC variants. Register e500_register_reggroup_p as the
2682 register group function for the E500.
2683 * Makefile.in (rs6000-tdep.o): Update dependencies.
2685 Adapt PPC E500 native support to the new raw regcache layout.
2686 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2687 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2688 (fetch_spe_register, store_spe_register): Handle fetching/storing
2689 all the SPE registers at once, if regno == -1. These now take
2690 over the job of fetch_spe_registers and store_spe_registers.
2691 (fetch_spe_registers, store_spe_registers): Deleted.
2692 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2693 unconditionally; they're always raw. Fetch/store SPE upper half
2694 registers, if present, instead of ev registers.
2695 (fetch_register, store_register): Remove sanity checks: gprs are
2696 never pseudo-registers now, so we never need to even mention any
2697 registers that are ever pseudoregisters.
2699 Use a fixed register numbering when communicating with the PowerPC
2701 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2702 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2703 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2705 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2706 init_sim_regno_table.
2707 * Makefile.in (gdb_sim_ppc_h): New variable.
2708 (rs6000-tdep.o): Update dependencies.
2710 2004-08-02 Andrew Cagney <cagney@gnu.org>
2712 * cris-tdep.c (cris_register_size): Restore function, still used
2715 * gdbarch.sh (deprecated_target_read_fp)
2716 (deprecated_frame_locals_address, deprecated_frame_args_address)
2717 (deprecated_frame_chain_valid, deprecated_frame_chain)
2718 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2719 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2720 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2721 * gdbarch.h, gdbarch.c: Re-generate.
2722 * regcache.c (deprecated_read_fp): Do not call
2723 DEPRECATED_TARGET_READ_FP_P.
2724 * infcmd.c (default_print_registers_info): Do not call
2725 DEPRECATED_DO_REGISTERS_INFO.
2726 * frame-base.c (default_frame_locals_address): Do not call
2727 DEPRECATED_FRAME_LOCALS_ADDRESS.
2728 (default_frame_args_address): Do not call
2729 DEPRECATED_FRAME_ARGS_ADDRESS.
2731 * gdbarch.sh (deprecated_register_raw_size)
2732 (deprecated_register_virtual_size:int): Delete.
2733 * gdbarch.h, gdbarch.c: Re-generate.
2734 * cris-tdep.c (cris_register_size): Delete.
2735 (cris_gdbarch_init): Update.
2736 * alpha-tdep.c (alpha_register_raw_size)
2737 (alpha_register_virtual_size): Delete.
2738 (alpha_gdbarch_init): Update.
2740 * gdbarch.sh (deprecated_register_virtual_type)
2741 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2742 (deprecated_dummy_write_sp): Delete.
2743 * gdbarch.h, gdbarch.c: Re-generate.
2745 * gdbarch.sh (deprecated_register_bytes): Delete.
2746 * gdbarch.h, gdbarch.c: Re-generate.
2747 * regcache.c (deprecated_register_bytes): New function.
2748 * regcache.h (deprecated_register_bytes): Declare.
2749 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2750 * v850-tdep.c (v850_gdbarch_init): Update.
2751 * sh64-tdep.c (sh64_gdbarch_init): Update.
2752 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2753 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2754 * mcore-tdep.c (mcore_gdbarch_init): Update.
2755 * cris-tdep.c (cris_gdbarch_init): Update.
2756 * arm-tdep.c (arm_gdbarch_init): Update.
2757 * remote.c (init_remote_state): Update.
2758 * remote-vx.c (vx_prepare_to_store): Update.
2759 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2760 * irix5-nat.c (fetch_core_registers): Update.
2761 * cris-tdep.c (cris_register_bytes_ok): Update.
2762 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2764 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2765 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2766 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2767 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2768 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2769 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2770 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2771 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2772 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2773 with mips_insn16 and mips_insn32.
2775 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2776 * rs6000-tdep.c (rs6000_push_dummy_call)
2777 (rs6000_extract_return_value): Use register_size.
2778 * xstormy16-tdep.c (xstormy16_get_saved_register)
2779 (xstormy16_extract_return_value): Ditto.
2780 * valops.c (value_assign): Ditto.
2781 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2782 * v850-tdep.c (v850_extract_return_value): Ditto.
2783 * tracepoint.c (collect_symbol): Ditto.
2784 * target.c (debug_print_register): Ditto.
2785 * stack.c (frame_info): Ditto.
2786 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2787 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2788 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2789 (store_register_using_P): Ditto.
2790 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2791 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2792 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2793 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2794 * regcache.c (deprecated_read_register_bytes)
2795 (deprecated_write_register_bytes, read_register)
2796 (write_register): Ditto.
2797 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2798 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2799 * monitor.c (monitor_supply_register, monitor_fetch_register)
2800 (monitor_store_register): Ditto.
2801 * mn10300-tdep.c (mn10300_pop_frame_regular)
2802 (mn10300_print_register): Ditto.
2803 * mipsv4-nat.c (fill_fpregset): Ditto.
2804 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2805 (mips64_fill_fpregset): Ditto.
2806 * mi/mi-main.c (register_changed_p, get_register)
2807 (mi_cmd_data_write_register_values): Ditto.
2808 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2809 * irix5-nat.c (fill_gregset, fetch_core_registers):
2810 * infrun.c (write_inferior_status_register): Ditto.
2811 * infptrace.c (fetch_register, store_register): Ditto.
2812 * infcmd.c (default_print_registers_info): Ditto.
2813 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2814 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2815 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2816 * hpux-thread.c (hpux_thread_fetch_registers)
2817 (hpux_thread_store_registers): Ditto.
2818 * hppah-nat.c (store_inferior_registers, fetch_register):
2819 * findvar.c (value_from_register): Ditto.
2820 * dve3900-rom.c (fetch_bitmapped_register):
2821 * cris-tdep.c (cris_gdbarch_init): Ditto.
2822 * alpha-tdep.h: Ditto.
2823 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2825 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2826 DEPRECATED_REGISTER_RAW_SIZE from comments.
2827 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2828 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2829 DEPRECATED_REGISTER_RAW_SIZE.
2830 * findvar.c (value_of_register): Simplify by assuming that the
2831 registers raw and virtual sizes are identical.
2832 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2834 * arch-utils.c (generic_register_size): Simplify by assuming
2837 * regcache.c (legacy_read_register_gen, real_register)
2838 (legacy_write_register_gen): Delete, not used.
2840 * regcache.c (struct regcache_descr): Delete legacy_p.
2841 (init_legacy_regcache_descr): Delete function.
2842 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2843 Do not use deprecated register functions.
2844 (regcache_raw_read, deprecated_write_register_gen):
2845 (deprecated_read_register_gen, regcache_raw_write): Delete code
2846 predicated on legacy_p.
2847 (register_size): Delete check against register raw size.
2849 * cris-tdep.c (cris_register_type): Replace
2850 cris_register_virtual_type.
2851 (cris_gdbarch_init): Update, set register_type.
2853 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2854 * gdbarch.h, gdbarch.c: Re-generate.
2855 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2856 (arm_gdbarch_init) Do not set frameless function invocation.
2857 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2858 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2859 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2860 (frv_gdbarch_init): Do not set frameless function invocation.
2861 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2862 * sh-tdep.c (sh_gdbarch_init): Ditto.
2863 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2864 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2865 * avr-tdep.c (avr_gdbarch_init): Ditto.
2867 * blockframe.c (legacy_frame_chain_valid): Delete function.
2869 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2870 and pc. Update comments.
2871 (pc_in_dummy_frame): Delete function.
2872 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2874 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2875 call_hi, top and pc, use the id.
2876 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2878 * dummy-frame.c: Include "gdb_string.h".
2879 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2880 (generic_save_dummy_frame_tos): Delete.
2881 (dummy_frame_push): New function, replaces above.
2882 * dummy-frame.h: Update copyright.
2883 (dummy_frame_push): Declare.
2884 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2885 (generic_save_call_dummy_addr): Delete declarations.
2886 * infcall.c: Include "dummy-frame.h".
2887 (call_function_by_hand): Add locals caller_regcache,
2888 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2889 with call to frame_save_as_regcache plus cleanup. Delete calls to
2890 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2891 Move clear_proceed_status to just before the resume, add call to
2892 dummy_frame_push (discard cleanup).
2893 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2894 (dummy-frame.o): Add $(gdb_string_h).
2896 2004-08-01 Andrew Cagney <cagney@gnu.org>
2898 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2899 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2900 * dummy-frame.c (find_dummy_frame): Delete.
2901 (struct dummy_frame_cache, dummy_frame_sniffer)
2902 (dummy_frame_prev_register, dummy_frame_this_id)
2903 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2904 frame unwinder using a dummy_frame_cache.
2906 2004-08-01 Andrew Cagney <cagney@gnu.org>
2908 * frame.h (frame_save_as_regcache): Declare.
2909 * frame.c (frame_save_as_regcache): New function.
2910 (do_frame_read_register): Replace do_frame_unwind_register.
2911 (frame_pop): Use frame_save_as_regcache.
2912 * dummy-frame.c (generic_push_dummy_frame): Use
2913 frame_save_as_regcache.
2915 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2917 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2918 file as included until we record the first line in the linetable.
2920 2004-08-01 Andrew Cagney <cagney@gnu.org>
2922 * frame.h (deprecated_pop_dummy_frame)
2923 (deprecated_read_register_dummy)
2924 (deprecated_generic_find_dummy_frame): Delete.
2925 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2926 (deprecated_read_register_dummy)
2927 (deprecated_find_dummy_frame_regcache)
2928 (discard_innermost_dummy)
2929 (deprecated_pop_dummy_frame): Delete.
2930 (dummy_frame_this_id): Simplify.
2931 (struct dummy_frame): Delete "fp" and "sp".
2932 (find_dummy_frame): Simplify.
2933 (generic_push_dummy_frame): Do not set "fp" or "sp".
2934 (fprint_dummy_frames): Do not print "fp" and "sp"
2936 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2938 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2939 (struct i386_insn): New structure.
2940 (i386_match_insn): New function.
2941 (i386_frame_setup_skip_insns): New variable.
2942 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2943 array i386_frame_setup_insns of instructions that should be
2944 skipped inside the frame setup sequence.
2946 2004-08-01 Andrew Cagney <cagney@gnu.org>
2948 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2949 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2950 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2951 * stack.c (frame_info): Delete references to
2952 DEPRECATED_FRAME_INIT_SAVED_REGS and
2953 deprecated_get_frame_saved_regs.
2954 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2955 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2956 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2957 (frame_unwind_register_signed)
2958 (frame_unwind_register_unsigned)
2959 (frame_unwind_unsigned_register): Use register_size.
2960 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2961 (deprecated_frame_xmalloc_with_cleanup)
2962 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2963 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2965 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2966 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2967 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2968 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2970 * infcall.c (call_function_by_hand): Do not use
2971 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2972 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2973 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2974 DEPRECATED_STACK_ALIGN.
2976 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2978 Committed by Andrew Cagney.
2979 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2981 2004-08-01 Andrew Cagney <cagney@gnu.org>
2983 * mips-tdep.c (mips16_frame_cache)
2984 (mips16_frame_this_id, mips16_frame_prev_register)
2985 (mips16_frame_unwind, mips16_frame_sniffer)
2986 (mips16_frame_base_address, mips16_frame_base)
2987 (mips16_frame_base_sniffer, mips32_frame_cache)
2988 (mips32_frame_this_id, mips32_frame_prev_register)
2989 (mips32_frame_unwind, mips32_frame_sniffer)
2990 (mips32_frame_base_address, mips32_frame_base)
2991 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2992 separate heuristic mips16 and mips32 unwinders.
2993 (mips_stub_frame_cache, mips_stub_frame_this_id)
2994 (mips_stub_frame_prev_register)
2995 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2996 (mips_stub_frame_base_address, mips_stub_frame_base)
2997 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2998 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2999 match true mdebug frames.
3000 (non_heuristic_proc_desc): Add forward declaration.
3002 2004-08-01 Andrew Cagney <cagney@gnu.org>
3004 * config/mips/tm-irix6.h: Delete file.
3005 * config/mips/tm-irix5.h: Delete file.
3006 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3007 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3009 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3010 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3011 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3012 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3013 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3014 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3015 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3016 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3017 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3018 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3019 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3020 (TARGET_SIGNAL_RAW_VALUES): Delete.
3021 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3023 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3024 (TARGET_HW_WATCH_LIMIT): Delete.
3025 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3026 * minimon.h: Delete file.
3028 * trad-frame.c (trad_frame_get_this_base)
3029 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3031 * trad-frame.h (trad_frame_set_this_base)
3032 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3034 2004-07-31 Andrew Cagney <cagney@gnu.org>
3036 * trad-frame.c (trad_frame_get_prev_register): Rename
3037 trad_frame_get_prev_register.
3038 * vax-tdep.c (vax_frame_prev_register): Update.
3039 * trad-frame.h: Update.
3040 * trad-frame.c (trad_frame_get_register): Update.
3041 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3042 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3044 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3045 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3047 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3049 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3051 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3053 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3055 * s390-tdep.c (s390_frame_prev_register)
3056 (s390_stub_frame_prev_register)
3057 (s390_sigtramp_frame_prev_register): Update.
3058 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3059 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3060 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3061 * m88k-tdep.c (m88k_frame_prev_register)
3062 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3063 * m32r-tdep.c (m32r_frame_prev_register): Update.
3064 * hppa-tdep.c (hppa_frame_prev_register_helper)
3065 * frv-tdep.c (frv_frame_prev_register): Update.
3066 * d10v-tdep.c (d10v_frame_prev_register): Update.
3067 * cris-tdep.c (cris_frame_prev_register): Update.
3068 * avr-tdep.c (avr_frame_prev_register): Update.
3069 * arm-tdep.c (arm_prologue_prev_register)
3070 (arm_sigtramp_prev_register): Update.
3072 2004-07-31 Andrew Cagney <cagney@gnu.org>
3074 * frame.h (legacy_saved_regs_unwind)
3075 (legacy_frame_chain_valid, legacy_frame_p)
3076 (enum frame_type): Delete UNKNOWN_FRAME.
3077 * dummy-frame.c (dummy_frame_this_id): Simplify.
3078 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3079 * frame.c (struct frame_info): Delete the field "type".
3080 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3081 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3082 (legacy_saved_regs_unwind, legacy_frame_p)
3083 (frame_type_from_pc): Delete.
3084 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3085 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3087 2004-07-31 Mark Kettenis <kettenis@gnu.org>
3089 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3092 * mips-nat.c: Remove file.
3093 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3094 (mips-nat.o): Remove dependency.
3096 * infptrace.c: Update copyright year.
3097 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3098 explicitly setting the buffer to all zeroes.
3100 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3101 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3103 2004-07-30 Andrew Cagney <cagney@gnu.org>
3105 * GDB 6.2 released from gdb_6_2-branch.
3107 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3109 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3111 * exec.c (exec_file_attach):
3112 * nto-tdep.c (nto_find_and_open_solib):
3113 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3114 * solib.c (solib_open):
3115 * somsolib.c (som_solib_sizeof_symbol_table):
3116 * source.c (is_regular_file, openp, open_source_file):
3117 * symfile.c (symfile_bfd_open):
3118 * wince.c (upload_to_device): Differentiate between the search for
3119 binary and source files.
3121 2004-07-30 Andrew Cagney <cagney@gnu.org>
3123 * complaints.c (_initialize_complaints): Pass NULL to
3124 add_setshow_zinteger_cmd for help_doc.
3125 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3127 2004-07-30 Andrew Cagney <cagney@gnu.org>
3130 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3131 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3132 $(PACKAGE).pot and update-po.
3133 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3134 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3135 (update-po): New rules.
3136 (localedir): Define using autoconf.
3137 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3138 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3139 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3140 * configure.in: Generate CATALOGS and LINGUAS from contents of
3141 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3142 * configure: Re-generate.
3143 * po/gdbtext: New file
3145 2004-07-30 Jerome Guitton <guitton@gnat.com>
3147 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3150 2004-07-30 David Lecomber <dsl@sources.redhat.com>
3152 * dwarf2read.c (read_file_scope): Set producer if attribute
3154 (struct dwarf2_cu): Added new member producer.
3156 2004-07-30 Jerome Guitton <guitton@gnat.com>
3158 * inflow.c (kill_command): release file handles in BFD.
3159 * exec.c (exec_file_attach): Ditto.
3160 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3162 2004-07-29 Andrew Cagney <cagney@gnu.org>
3164 * PROBLEMS (mips-irix): Note that it is broken.
3166 2004-07-29 Andrew Cagney <cagney@gnu.org>
3168 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3169 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3171 * config/xm-nbsd.h: Delete file.
3172 * config/arm/xm-nbsd.h: Delete file.
3173 * config/i386/xm-nbsd.h: Delete file.
3174 * config/ns32k/xm-nbsd.h: Delete file.
3175 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3176 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3177 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3178 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3179 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3181 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3182 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3183 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3184 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3185 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3186 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3188 * config/powerpc/xm-linux.h: Delete empty file.
3189 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3190 * config/powerpc/linux.mh (XM_FILE): Delete.
3191 * config/m68k/xm-linux.h: Delete empty file.
3192 * config/m68k/linux.mh (XM_FILE): Delete.
3193 * config/ia64/xm-linux.h: Delete empty file.
3194 * config/ia64/linux.mh (XM_FILE): Delete.
3195 * config/arm/xm-linux.h: Delete empty file.
3196 * config/arm/linux.mh (XM_FILE): Delete.
3198 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3199 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3200 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3201 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3202 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3203 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3204 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3205 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3207 * config/m68k/xm-m68k.h: Delete file.
3208 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3210 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3211 * config/pa/xm-linux.h: Delete empty file.
3212 * config/pa/linux.mh (XM_FILE): Delete.
3213 * config/i386/xm-i386.h: Delete empty file.
3214 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3216 * config/i386/obsdaout.mh (XM_FILE): Delete.
3217 * config/i386/obsd64.mh (XM_FILE): Delete.
3218 * config/i386/fbsd64.mh (XM_FILE): Delete.
3219 * config/i386/nto.mh (XM_FILE): Delete.
3220 * config/i386/obsd.mh (XM_FILE): Delete.
3221 * config/i386/linux64.mh (XM_FILE): Delete.
3222 * config/i386/linux.mh (XM_FILE): Delete.
3223 * config/i386/i386sol2.mh (XM_FILE): Delete.
3224 * config/i386/i386gnu.mh (XM_FILE): Delete.
3225 * config/i386/fbsd.mh (XM_FILE): Delete.
3226 * config/i386/nbsd64.mh (XM_FILE): Delete.
3228 2004-07-29 Andrew Cagney <cagney@gnu.org>
3230 * config/pa/xm-linux.h: Do not include "floatformat.h".
3231 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3232 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3233 * config/i386/xm-i386.h: Do not include "floatformat.h".
3234 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3235 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3236 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3237 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3238 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3239 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3240 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3241 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3242 * configure, config.in: Regenerate.
3243 * configure.host (gdb_host_float_format, gdb_host_double_format)
3244 (gdb_host_long_double_format): Set according to the host.
3246 2004-07-29 Andrew Cagney <cagney@gnu.org>
3248 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3250 2004-07-28 Andrew Cagney <cagney@gnu.org>
3252 * PROBLEMS: Mention threads/1650.
3253 * NEWS: Mention the NPTL fix.
3255 2004-07-28 Andrew Cagney <cagney@gnu.org>
3257 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3258 (add_setshow_cmd_full): Make static.
3259 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3260 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3261 * cli/cli-decode.c (add_setshow_filename_cmd)
3262 (add_setshow_string_cmd): New functions.
3263 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3264 * mips-tdep.c (_initialize_mips_tdep): Update.
3265 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3266 * cli/cli-logging.c (_initialize_cli_logging): Update.
3267 * complaints.c (_initialize_complaints): Update.
3268 * remote.c (_initialize_remote): Update.
3270 2004-07-28 Andrew Cagney <cagney@gnu.org>
3272 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3273 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3274 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3275 print parameters. Make string parameters constant.
3276 * command.h: Update. Update copyright.
3277 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3278 * observer.c (_initialize_observer): Ditto.
3279 * frame.c (_initialize_frame): Ditto.
3280 * complaints.c (_initialize_complaints): Ditto.
3281 * maint.c (_initialize_maint_cmds): Ditto.
3282 * target.c (initialize_targets): Ditto.
3283 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3284 * infcall.c (_initialize_infcall): Ditto.
3285 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3286 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3287 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3288 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3289 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3291 2004-07-28 Andrew Cagney <cagney@gnu.org>
3293 * gdbtypes.c (lookup_primitive_typename): Delete function.
3294 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3295 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3296 * gdbtypes.c (lookup_typename): Ditto.
3297 * f-exp.y (yylex): Ditto.
3298 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3300 * scm-lang.c (c_builtin_types): Delete extern declaration.
3301 (scm_language_defn): Replace
3302 string_char_type and primitive_type_vector with
3303 la_language_arch_info.
3304 * jv-lang.c (java_language_defn): Replace
3305 string_char_type and primitive_type_vector with
3306 la_language_arch_info.
3307 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3308 c_builtin_types in comment.
3309 * c-lang.h (struct language_arch_info): Declare opaque.
3310 (c_language_arch_info): Declare.
3311 (c_builtin_types): Delete declaration.
3312 * c-lang.c (c_language_arch_info): Set string_char_type to
3313 builtin_char, not builtin_true_char. Make global.
3314 (c_builtin_types): Delete array.
3315 (asm_language_defn, minimal_language_defn): Replace
3316 string_char_type and primitive_type_vector with
3317 la_language_arch_info.
3319 2004-07-28 Andrew Cagney <cagney@gnu.org>
3321 * gdbtypes.h (struct builtin_type): Rename true_char to
3323 * gdbtypes.c (gdbtypes_post_init): Update.
3324 * c-lang.c (arch_info): New function.
3325 (enum c_primitive_types): New enum.
3326 (c_language_defn): Instead of string_char_type and
3327 primitive_type_vector set la_language_arch_info.
3329 2004-07-28 Andrew Cagney <cagney@gnu.org>
3331 * language.h (struct language_arch_info): Fix typo
3332 s/primative/primitive/.
3333 * gdbtypes.c (lookup_primitive_typename): Ditto.
3334 * language.c (language_lookup_primitive_type_by_name)
3335 (unknown_language_arch_info): Ditto.
3337 2004-07-27 Andrew Cagney <cagney@gnu.org>
3339 * defs.h (enum language): Add nr_languages.
3340 * language.h (struct language_arch_info): Define.
3341 (struct language_defn): Add la_language_arch_info.
3342 (language_lookup_primative_type_by_name): Declare.
3343 (language_string_char_type): Declare.
3344 * language.c (_initialize_language, language_gdbarch_post_init)
3345 (struct language_gdbarch, language_gdbarch_data): Implement
3346 per-architecture language information.
3347 (unknown_language_arch_info, language_string_char_type)
3348 (language_lookup_primative_type_by_name): New functions.
3349 (unknown_language_defn, auto_language_defn)
3350 (local_language_defn): Set la_language_arch_info to
3351 unknown_language_arch_info.
3352 (unknown_builtin_types): Delete.
3353 * gdbtypes.c (lookup_primitive_typename): Use
3354 language_lookup_primative_type_by_name.
3355 (create_string_type): Use language_string_char_type.
3356 * values.c (value_from_string): Use language_string_char_type.
3357 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3358 * p-lang.c (pascal_language_defn): Ditto.
3359 * m2-lang.c (m2_language_defn): Ditto.
3360 * jv-lang.c (java_language_defn): Ditto.
3361 * objc-lang.c (objc_language_defn): Ditto.
3362 * f-lang.c (f_language_defn): Ditto.
3363 * c-lang.c (c_language_defn, cplus_language_defn)
3364 (asm_language_defn, minimal_language_defn): Ditto.
3366 2004-07-27 Andrew Cagney <cagney@gnu.org>
3368 * gdbtypes.h (struct builtin_type): Declare.
3369 (builtin_type): Declare.
3370 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3371 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3372 (gdbtypes_post_init): New function.
3373 (builtin_type): New function.
3375 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3377 * remote-m32r-sdi.c: Fix breakpoint bug.
3378 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3379 recv_char_data, recv_long_data): New functions to replace communication
3382 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3384 Document PR threads/1650.
3385 * PROBLEMS (Threads): Document problem with many threads
3387 2004-07-26 Andrew Cagney <cagney@gnu.org>
3389 * gdb-mi.el: Move from here ...
3390 * mi/gdb-mi.el: ... to here.
3392 2004-07-26 Andrew Cagney <cagney@gnu.org>
3394 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3395 * main.c (captured_main): When in batch mode always detach.
3397 2004-07-26 Andrew Cagney <cagney@gnu.org>
3399 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3400 and h8300 as broken.
3401 * NEWS: END-OF-LIFE frame compatibility module.
3402 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3405 2004-07-26 Andrew Cagney <cagney@gnu.org>
3407 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3408 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3409 * wince.c (_initialize_wince): Update.
3410 * win32-nat.c (_initialize_win32_nat): Update.
3411 * varobj.c (_initialize_varobj): Update.
3412 * valops.c (_initialize_valops): Update.
3413 * utils.c (initialize_utils, initialize_utils): Update.
3414 * tui/tui-win.c (_initialize_tui_win): Update.
3415 * top.c (init_main): Update.
3416 * symfile.c (_initialize_symfile): Update.
3417 * source.c (_initialize_source): Update.
3418 * somsolib.c (_initialize_som_solib): Update.
3419 * solib.c (_initialize_solib): Update.
3420 * solib-frv.c (_initialize_frv_solib): Update.
3421 * serial.c (_initialize_serial): Update.
3422 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3423 * remote.c (_initialize_remote, _initialize_remote): Update.
3424 * remote-vx.c (_initialize_vx): Update.
3425 * remote-utils.c (_initialize_sr_support): Update.
3426 * remote-sds.c (_initialize_remote_sds): Update.
3427 * remote-mips.c (_initialize_remote_mips): Update.
3428 * remote-e7000.c (_initialize_remote_e7000): Update.
3429 * proc-api.c (_initialize_proc_api): Update.
3430 * printcmd.c: Update.
3431 * parse.c (_initialize_parse): Update.
3432 * pa64solib.c (_initialize_pa64_solib): Update.
3433 * p-valprint.c (_initialize_pascal_valprint): Update.
3434 * monitor.c (_initialize_remote_monitors): Update.
3435 * mips-tdep.c (_initialize_mips_tdep): Update.
3436 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3437 * maint.c (_initialize_maint_cmds): Update.
3438 * lin-lwp.c (_initialize_lin_lwp): Update.
3439 * language.c (_initialize_language): Update.
3440 * kod.c (_initialize_kod): Update.
3441 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3442 * i386-tdep.c (_initialize_i386_tdep): Update.
3443 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3444 * gdbarch.sh: Update.
3445 * gdbarch.c: Re-generate.
3446 * gdb-events.sh: Update.
3447 * gdb-events.c: Re-generate.
3448 * frame.c (_initialize_frame): Update.
3450 * demangle.c (_initialize_demangler): Update.
3451 * dcache.c (_initialize_dcache): Update.
3452 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3453 * cp-valprint.c (_initialize_cp_valprint): Update.
3454 * corefile.c (_initialize_core): Update.
3455 * command.h: Update.
3456 * cli/cli-decode.h: Update.
3457 * cli/cli-cmds.c (init_cli_cmds): Update.
3458 * charset.c (_initialize_charset): Update.
3459 * breakpoint.c (_initialize_breakpoint): Update.
3460 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3461 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3462 * aix-thread.c (_initialize_aix_thread): Update.
3464 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3466 Partial fix for PR backtrace/1718.
3467 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3468 that GCC migrates into the prolugue. Don't handle any
3469 instructions that clobber %ebx.
3471 2004-07-23 Andrew Cagney <cagney@gnu.org>
3473 Use regcache_raw_collect instead of regcache_collect.
3474 * regcache.h (regcache_collect): Delete declaration.
3475 * regcache.c (regcache_colect): Delete function.
3476 * win32-nat.c (do_child_store_inferior_registers): Update.
3477 * sol-thread.c (sol_thread_store_registers): Update.
3478 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3479 * rs6000-nat.c (store_register): Update.
3480 * remote.c (store_register_using_P, remote_store_registers): Update.
3481 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3482 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3483 (fill_vrregset, store_spe_registers, fill_gregset)
3484 (fill_gregset): Update.
3485 * nto-procfs.c (procfs_store_registers): Update.
3486 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3487 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3488 * m68klinux-nat.c (store_register, fill_gregset): Update.
3489 * m68k-tdep.c (fill_gregset): Update.
3490 * infptrace.c (store_register): Update.
3491 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3492 * i386-linux-nat.c (store_register, fill_gregset): Update.
3493 * hppa-linux-nat.c (fill_gregset): Update.
3494 * go32-nat.c (store_register): Update.
3495 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3496 (store_fp_regs): Update.
3497 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3498 (store_nwfpe_extended, store_fpregister, store_fpregs)
3499 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3500 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3501 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3502 (store_regs_user_thread, store_regs_kernel_thread): Update.
3504 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3506 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3507 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3509 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3510 member of `struct comp_unit'.
3512 2004-07-23 Andrew Cagney <cagney@gnu.org>
3514 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3515 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3517 2004-07-23 Martin Hunt <hunt@redhat.com>
3518 Kevin Buettner <kevinb@redhat.com>
3520 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3521 alignment was being added to the offset instead of multiplied.
3523 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3525 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3526 changed signal trampoline in OpenBSD 3.5-current.
3528 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3529 <machine/pcb.h> and "bsd-kvm.h".
3530 (sparc64nbsd_supply_pcb): New function.
3531 (_initialize_sparc64nbsd_nat): Renamed from
3532 _initialize_sparcnbsd_nat. Enable libkvm interface.
3533 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3534 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3535 (LOADLIBES): New variable.
3537 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3539 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3541 2004-07-21 Andrew Cagney <cagney@gnu.org>
3543 Use regcache_raw_supply instead of supply_register.
3544 * regcache.h (supply_register): Delete declaration.
3545 * regcache.c (supply_register): Delete function.
3546 * wince.c (do_child_fetch_inferior_registers): Update.
3547 * win32-nat.c (do_child_fetch_inferior_registers)
3548 (fetch_elf_core_registers): Update.
3549 * v850ice.c (v850ice_fetch_registers): Update.
3550 * thread-db.c (thread_db_store_registers): Update.
3551 * sol-thread.c (sol_thread_store_registers): Update.
3552 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3553 * rs6000-nat.c (fetch_register): Update.
3554 * rom68k-rom.c (rom68k_supply_one_register): Update.
3555 * remote.c (remote_wait, remote_async_wait): Update.
3556 * remote-st.c (get_hex_regs): Update.
3557 * remote-sim.c (gdbsim_fetch_register): Update.
3558 * remote-sds.c (sds_fetch_registers): Update.
3559 * remote-rdp.c (remote_rdp_fetch_register): Update.
3560 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3561 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3562 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3563 * remote-hms.c (init_hms_cmds): Update.
3564 * remote-est.c (init_est_cmds): Update.
3565 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3566 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3567 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3568 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3569 (fetch_register, supply_vrregset, supply_vrregset)
3570 (fetch_spe_registers): Update.
3571 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3572 * monitor.c (monitor_supply_register): Update.
3573 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3574 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3575 (mipsnbsd_supply_fpreg): Update.
3576 * mips-nat.c (fetch_inferior_registers)
3577 (fetch_core_registers): Update.
3578 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3579 (supply_fpregset, mips64_supply_gregset)
3580 (mips64_supply_fpregset): Update.
3581 * m68klinux-nat.c (fetch_register, supply_gregset)
3582 (supply_fpregset): Update.
3583 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3584 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3585 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3586 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3587 * infptrace.c (fetch_register): Update.
3588 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3589 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3590 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3591 (gnu_fetch_registers, gnu_store_registers): Update.
3592 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3593 * i386-linux-nat.c (fetch_register, supply_gregset)
3594 (dummy_sse_values): Update.
3595 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3596 * hppah-nat.c (fetch_register): Update.
3597 * hppa-linux-nat.c (fetch_register, supply_gregset)
3598 (supply_fpregset): Update.
3599 * go32-nat.c (fetch_register): Update.
3600 * dve3900-rom.c (fetch_bitmapped_register)
3601 (_initialize_r3900_rom): Update.
3602 * cris-tdep.c (supply_gregset): Update.
3603 * abug-rom.c (init_abug_cmds): Update.
3604 * core-aout.c (fetch_core_registers): Update.
3605 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3606 (fetch_register, fetch_fp_register): Update.
3607 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3608 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3609 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3610 * alphanbsd-tdep.c (fetch_core_registers): Update.
3611 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3612 * alpha-nat.c (fetch_osf_core_registers)
3613 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3614 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3615 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3617 2004-07-21 Andrew Cagney <cagney@gnu.org>
3619 * PROBLEMS: Mention breakpoints/1702.
3620 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3621 that is known to work.
3623 2004-07-21 Andrew Cagney <cagney@gnu.org>
3625 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3626 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3627 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3628 (handle_inferior_event): Wrap call to deprecated
3629 IGNORE_HELPER_CALL in #ifdef.
3630 * config/mips/tm-nbsd.h: Update.
3632 2004-07-20 Jim Blandy <jimb@redhat.com>
3634 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3635 bfd_mach_ppc has no segment registers.
3637 Include PowerPC SPR numbers for special-purpose registers.
3638 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3639 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3640 new member in initializer.
3641 (S, S4, SN4, S64): New macros for defining special-purpose
3643 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3644 registers_403, registers_403GC, registers_505, registers_860,
3645 registers_601, registers_602, registers_603, registers_604,
3646 registers_750, registers_e500): Use them.
3648 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3649 replace references with expression used to initialize variable.
3651 2004-07-20 Andrew Cagney <cagney@gnu.org>
3653 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3655 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3656 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3657 (s390_sigtramp_frame_sniffer): Update.
3658 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3659 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3660 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3661 (mips32_fetch_instruction): Update.
3662 * mcore-tdep.c (get_insn): Update.
3663 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3664 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3665 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3666 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3667 (i386_linux_rt_sigtramp_start): Update.
3668 * i386-linux-nat.c (child_resume): Update.
3669 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3670 * hppa-linux-tdep.c (insns_match_pattern): Update.
3671 * gdbcore.h: Update.
3672 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3673 * frame.c (safe_frame_unwind_memory): Update.
3674 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3675 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3676 * alpha-tdep.c (alpha_read_insn): Update.
3678 2004-07-20 Andrew Cagney <cagney@gnu.org>
3680 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3681 containing both bytes and mask. Add "frame_type".
3682 * tramp-frame.c (tramp_frame_start): Update.
3683 (tramp_frame_prepend_unwinder): Update.
3684 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3685 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3686 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3687 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3689 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3691 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3692 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3693 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3694 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3696 2004-07-17 Andrew Cagney <cagney@gnu.org>
3698 * NEWS, PROBLEMS: Update for 6.2.
3700 * README: Update to 6.2.
3702 * utils.c (xvasprintf): Call xstrvprintf.
3704 * parse.c: Update copyright.
3705 (null_post_parser): Eliminate ARGSUSED.
3707 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3708 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3709 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3711 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3712 * ppc-linux-nat.c: Use "Linux kernel".
3713 * hppa-linux-tdep.c: Use GNU/Linux.
3714 * hppa-linux-nat.c: Use GNU/Linux.
3715 * dwarfread.c: Add [sic] to use of Linux.
3717 * hppa-linux-nat.c: Do not include <string.h>.
3718 (supply_fpregset): Remove "register" attribute.
3720 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3722 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3724 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3725 * configure, config.in: Regenerated.
3727 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3729 (vaxbsd_supply_pcb): New function.
3730 (_initialize_vaxbsd_nat): New prototype and function.
3731 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3733 (LOADLIBES): New variable.
3734 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3735 (LOADLIBES): New variable.
3736 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3737 (LOADLIBES): New variable.
3738 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3740 2004-07-16 Andrew Cagney <cagney@gnu.org>
3742 * defs.h (event_loop_p): Replace variable declaration with macro,
3744 * main.c (captured_main): Delete options "-async" and "-noasync".
3745 (event_loop_p): Delete variable.
3746 * NEWS: Mention that "-async" and "-noasync" were removed.
3748 2004-07-16 Andrew Cagney <cagney@gnu.org>
3750 * remote-m32r-sdi.c: Re-indent.
3752 2004-07-16 Jim Blandy <jimb@redhat.com>
3754 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3755 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3756 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3757 missing MPC823 SPRs.
3758 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3759 incorrect. (This was corrected in GDB's register name tables on
3762 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3763 should be "esasrr" ("ESA Save and Restore Register").
3765 2004-07-16 Andrew Cagney <cagney@gnu.org>
3767 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3768 calls, no longer applicable. Update comments and rename parameter
3769 "step_frame" to "return_frame".
3771 2004-07-16 Andrew Cagney <cagney@gnu.org>
3773 * frame.c (fprint_field): New function.
3774 (fprint_frame_id): Use fprint_field.
3776 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3778 * ada-lang.c (ada_language_defn): Remove commented out code.
3780 2004-07-15 Jim Blandy <jimb@redhat.com>
3782 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3783 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3785 2004-07-14 Jim Blandy <jimb@redhat.com>
3787 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3789 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3791 * ppc-tdep.h (ppc_num_srs): New enum constant.
3793 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3794 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3795 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3796 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3797 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3798 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3799 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3800 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3801 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3802 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3803 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3804 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3805 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3806 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3807 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3808 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3809 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3810 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3811 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3812 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3813 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3814 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3815 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3816 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3817 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3818 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3819 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3820 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3821 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3822 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3823 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3824 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3825 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3826 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3827 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3828 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3829 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3830 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3831 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3832 special-purpose register numbers.
3834 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3835 manual mentions 'md_twb', but many mention 'm_twb', and at that
3836 point in the register list.)
3838 2004-07-14 Andrew Cagney <cagney@gnu.org>
3840 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3841 instead of "internal-error".
3843 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3845 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3846 that was inserted inside a comment.
3848 2004-07-10 Randolph Chung <tausq@debian.org>
3850 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3852 (hppa_hpux_push_dummy_code): New function.
3853 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3854 Set find_global_pointer method.
3856 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3858 * NEWS: Mention BSD libkvm interface.
3860 2004-07-10 Michael Snyder <msnyder@redhat.com>
3862 * symfile.c (generic_load): Comment typo.
3863 * stack.c (get_selected_block): Ditto.
3864 * regcache.c (regcache_cooked_read): Ditto.
3865 * monitor.c (monitor_debug): Ditto.
3866 * mips-tdep.c (mips_read_pc): Ditto.
3867 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3868 * gdb_mbuild.sh: Ditto.
3869 * gdbarch.sh: Ditto.
3872 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3874 * ada-tasks.c: Remove file.
3876 Remove ARI problems:
3878 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3881 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3883 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3884 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3885 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3886 (UMIN_OF_SIZE): Remove.
3887 (max_of_type): New function to replace orphan macro in gdbtypes.h
3888 (min_of_type): Ditto.
3889 (discrete_type_high_bound): Use max_of_type.
3890 (discrete_type_low_bound): Use min_of_type.
3891 (possible_user_operator_p): Move operator to beginning of line.
3892 (ada_is_variant_part): Ditto.
3893 (ensure_lval): Rewrite to avoid deprecated operations.
3894 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3895 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3896 (ada_enum_name): Remove assignments in 'if' statements.
3897 (build_ada_types): Add gdbarch parameter.
3898 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3899 with gdbarch_data_register_post_init.
3900 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3903 * ada-valprint.c (inspect_it): Remove declaration.
3904 (repeat_count_threshold): Remove declaration.
3905 (ada_print_floating): Remove assignments in 'if' statements.
3906 (print_str): Move operator to beginning of line.
3908 2004-07-08 Jim Blandy <jimb@redhat.com>
3910 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3912 2004-07-08 Bob Rossi <bob@brasko.net>
3914 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3916 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3918 * language.h (struct_language_defn): Add new function pointer:
3919 la_class_name_from_physname. Also add new prototype for
3920 language_class_name_from_physname.
3921 * language.c (language_class_name_from_physname): New function.
3922 (unk_lang_class_name): Ditto.
3923 (unknown_language_defn, auto_language_defn): Change
3924 to add unk_lang_class_name function pointer for
3925 la_class_name_from_physname.
3926 (local_language_defn): Ditto.
3927 * dwarf2read.c (guess_structure_name): Change to call
3928 language_class_name_from_physname.
3929 (determine_class_name): Ditto.
3930 * cp-support.c (class_name_from_physname): Renamed.
3931 (cp_class_name_from_physname): New name of function.
3932 * cp-support.h: Ditto.
3933 * c-lang.c (c_language_defn): Change to add NULL
3934 for class_name_from_physname function pointer.
3935 (cplus_language_defn): Change to add cp_class_name_from_physname.
3936 * jv-lang.c (java_class_name_physname): New function.
3937 (java_find_last_component): New static routine.
3938 (java_language_defn): Add java_class_name_from_physname pointer.
3939 * ada-lang.c (ada_language_defn): Change to add NULL
3940 for class_name_from_physname function pointer.
3941 * f-lang.c (f_language_defn): Ditto.
3942 * m2-lang.c (m2_language_defn): Ditto.
3943 * objc-lang.c (objc_language_defn): Ditto.
3944 * p-lang.c (pascal_language_defn): Ditto.
3945 * scm-lang.c (scm_language_defn): Ditto.
3947 2004-07-06 Andrew Cagney <cagney@gnu.org>
3949 Patch from Bart Robinson.
3950 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3951 (O_LARGEFILE): Define to 0, if not defined.
3953 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3955 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3956 <machine/pcb.h> and "bsd-kvm.h".
3957 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3958 (m68kbsd_supply_pcb): New function.
3959 (_initialize_m68kbsd_nat): New prototype and function.
3960 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3961 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3962 (LOADLIBES): New variable.
3963 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3964 (LOADLIBES): New variable.
3966 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3968 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3970 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3972 (bsd_kvm_cmdlist): New variable.
3973 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3974 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3975 command and "kvm proc" command.
3976 * Makefile.in (bsd-kvm.o): Update dependencies.
3978 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3980 * osabi.c: Update copyright year.
3981 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3982 notes if EI_OSABI is set to ELFOSABI_HPUX.
3984 2004-07-01 Michael Snyder <msnyder@redhat.com>
3986 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3987 that seems to have gotten whacked out of line.
3989 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3991 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3994 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3996 * ada-lang.c (decode_packed_array): Minor change to comment.
3997 (ada_value_slice_ptr): New function.
3998 (ada_value_slice): New function.
3999 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4000 test. Don't know why it is there.
4001 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4002 to avoid dereferencing huge arrays from which one is slicing.
4003 (empty_array): Correct to return an array rather than
4005 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4006 on empty arrays (let'em use 'FIRST instead).
4008 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4010 Address complaints from gdb_ari.sh:
4012 * ada-exp.y: Include gdb_string.h rather than string.h.
4013 (convert_char_literal): Reformat declaration.
4014 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4015 * ada-lex.l: Change use of free to xfree (the macro would do so
4016 anyway, but this is harmless).
4017 Include gdb_string.h rather than string.h.
4018 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4020 * ada-lang.c (parse): Remove K&Rism in parameter list.
4021 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4023 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4025 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4028 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4030 * alphabsd-nat.c: Update copyright year.
4031 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4033 2004-06-29 Joel Brobecker <brobecker@gnat.com>
4035 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4036 (i386_cygwin_in_solib_call_trampoline): New function.
4037 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4038 and skip_trampoline_code gdbarch methods.
4040 2004-06-29 Jim Blandy <jimb@redhat.com>
4042 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4043 name actually used in the dependency lists.
4045 2004-06-29 Randolph Chung <tausq@debian.org>
4047 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4049 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4051 * win32-nat.c (child_pid_to_exec_file): New function.
4052 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4055 2004-06-28 Andrew Cagney <cagney@gnu.org>
4057 * defs.h (xstrvprintf): Declare.
4058 * utils.c (xstrvprintf): New function.
4059 (internal_vproblem, xstrprintf, xasprintf)
4060 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4061 * serial.c (serial_printf): Ditto.
4062 * complaints.c (vcomplaint): Ditto.
4064 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4066 * infcmd.c (attach_command): Move call to target_terminal_inferior
4067 behind loading symbol table.
4069 2004-06-28 Andrew Cagney <cagney@gnu.org>
4071 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4072 change - add back extern deprecated_ui_loop_hook declaration.
4074 2004-06-28 Andrew Cagney <cagney@gnu.org>
4076 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4078 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4079 (c_value_of_variable): Ditto.
4080 * utils.c (internal_vproblem): Ditto.
4081 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4082 * remote.c (add_packet_config_cmd): Ditto.
4083 * remote-rdp.c (rdp_set_command_line): Ditto.
4084 * regcache.c (regcache_dump): Ditto.
4085 * frv-tdep.c (new_variant, new_variant): Ditto.
4086 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4087 (fbsd_find_memory_regions): Ditto.
4088 * breakpoint.c (create_thread_event_breakpoint)
4089 (create_breakpoints): Ditto.
4090 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4091 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4093 2004-06-28 Joel Brobecker <brobecker@gnat.com>
4095 * ada-lang.c: Re-indent file, with some massaging to help indent
4096 a bit when the result is otherwise really too ugly.
4098 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4100 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4101 code_addr_p and special_addr_p to 'unsigned int'.
4103 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4105 * i386v4-nat.c: Update copyright year and tweak comment.
4106 (regmap): Remove trailing comma.
4107 (supply_gregset): Rename local variable i to regnum. Call
4108 regcache_raw_supply instead of supply_register.
4109 (fill_gregset): Rename argument regno to regnum. Call
4110 regcache_raw_collect instead of regcache_collect.
4112 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4114 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4116 (frame_id_build, frame_id_build_special): Update comments.
4117 (frame_id_build_wild): New prototype.
4118 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4119 struct frame_id fields.
4120 (frame_id_build_wild): New function.
4121 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4123 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4125 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4128 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4130 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4132 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4134 * ada-lang.c: Re-indent file.
4136 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4138 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4139 (no_symtab_msg): Likewise.
4141 2004-06-27 Andreas Schwab <schwab@suse.de>
4143 * source.c: Fix whitespace.
4145 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4147 * configure.in: Include <sys/param.h> for td_pcb test.
4148 * configure: Regenerated.
4150 * i386nbsd-nat.c: New file.
4151 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4152 i386obsd-nat.c and i386obsd-tdep.c.
4153 (i386nbsd-nat.o): New dependency.
4154 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4156 (LOADLIBES): New variable.
4157 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4159 (LOADLIBES): New variable.
4161 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4162 (LOADLIBES): New variable.
4164 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4165 fetching from BSD_KVM_PADDR. Correctly lookup address for
4168 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4170 (amd64fbsd_supply_pcb): New funcion.
4171 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4173 2004-06-27 <david@streamline-computing.com>
4175 Partial fix for PR cli/1056.
4176 * valarith.c: Check for zero in division and remainder
4179 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4181 * i387-tdep.c: Remove excessive whitespace.
4183 2004-06-26 Andrew Cagney <cagney@gnu.org>
4185 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4186 * gdb-events.h, gdb-events.c: Re-generate.
4187 * tui/tui-hooks.c (tui_install_hooks): Update.
4188 (tui_remove_hooks): Update.
4189 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4191 2004-06-26 Mark Kettenis <kettenis@gnu.org>
4193 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4194 (gregset_t, fpregset_t): Remove typedefs.
4195 (REG_OFFSET): Rename argument.
4196 (amd64bsd_r_reg_offset): Rename from reg_offset.
4197 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4199 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4201 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4203 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4205 * vax-tdep.c: Tweak comment.
4207 Add OpenBSD/hppa support.
4208 * NEWS (New native configurations): Mention OpenBSD/hppa.
4209 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4210 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4212 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4213 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4214 * configure.host: Add hppa*-*-openbsd*.
4215 * configure.tgt: Add hppa*-*-openbsd*.
4217 2004-06-25 Andrew Cagney <cagney@gnu.org>
4219 * defs.h (deprecated_ui_loop_hook): Deprecated.
4220 * wince.c (child_wait): Update.
4221 * win32-nat.c (child_wait): Update.
4222 * v850ice.c (v850ice_wait): Update.
4223 * top.c (deprecated_ui_loop_hook): Update.
4225 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4226 (do_unix_readchar): Update.
4227 * ser-tcp.c (net_open): Update.
4228 * remote-sim.c (gdb_os_poll_quit): Update.
4229 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4231 2004-06-24 Andrew Cagney <cagney@gnu.org>
4233 * defs.h (deprecated_pre_add_symbol_hook)
4234 (deprecated_post_add_symbol_hook): Deprecated.
4235 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4236 (symbol_file_add_with_addrs_or_offsets): Update references.
4238 2004-06-24 Andrew Cagney <cagney@gnu.org>
4240 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4241 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4242 * wince.c (ui_loop_hook): Delete extern declaration.
4243 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4244 * v850ice.c (ui_loop_hook): Delete extern declaration..
4245 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4246 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4247 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4248 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4249 ui_loop_hook declaration.
4251 2004-06-24 Andrew Cagney <cagney@gnu.org>
4253 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4254 entry_func_highpc fields.
4255 * objfiles.c (init_entry_point_info): Do not clear
4256 entry_func_lowpc and entry_func_highpc.
4257 (objfile_relocate): Do not relocate entry_func_lowpc and
4259 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4261 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4263 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4264 entry_func_lowpc and entry_func_highpc with call to
4267 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4269 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4270 quad-precision floating point arguments in registers.
4272 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4274 From Michael Mueller <m.mueller99@kay-mueller.de>:
4275 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4278 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4280 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4282 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4283 untriggered watchpoints to a separate if clause. Update function
4284 comment regarding STOPPED_BY_WATCHPOINT argument.
4286 2004-06-22 Jim Blandy <jimb@redhat.com>
4288 * gdbarch.sh: Doc fix.
4290 2004-06-21 Martin Hunt <hunt@redhat.com>
4291 Kevin Buettner <kevinb@redhat.com>
4293 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4294 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4295 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4296 to set_gdbarch_sp_regnum(). Use cooked register number.
4297 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4299 2004-06-21 Andrew Cagney <cagney@gnu.org>
4301 * gdbarch.sh: When the macro field is empty, do not generate a
4302 macro definition. When the macro field is "=", generate the macro
4303 name from the upper-case function name.
4304 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4305 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4306 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4307 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4308 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4309 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4310 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4311 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4312 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4313 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4314 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4315 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4316 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4317 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4318 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4319 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4320 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4321 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4322 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4323 (DEPRECATED_USE_STRUCT_CONVENTION)
4324 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4325 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4326 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4327 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4328 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4329 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4330 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4331 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4332 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4333 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4334 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4335 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4336 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4337 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4338 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4339 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4340 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4341 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4343 2004-06-21 Andrew Cagney <cagney@gnu.org>
4345 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4346 macro name, and the function rather than macro value. Only wrap
4347 macro print statements in #ifdef. Move format logic to where it
4349 * gdbarch.c: Re-generate.
4351 * gdbarch.sh (read): Delete "print_p" and "description", add
4352 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4353 Delete references to print_p.
4354 (TARGET_ARCHITECTURE): Delete print predicate.
4355 * gdbarch.c: Re-generate.
4357 * gdbarch.sh: Check that multi-arch methods do not provide a
4359 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4360 (print_registers_info, print_float_info, print_vector_info)
4361 (adjust_breakpoint_address, remote_translate_xfer_address)
4362 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4363 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4364 name from the multi-arch definition.
4366 2004-06-20 Andrew Cagney <cagney@gnu.org>
4368 * gdbarch.sh: Sort by the function, instead of macro name.
4369 * gdbarch.c: Re-generate.
4371 2004-06-20 Andrew Cagney <cagney@gnu.org>
4373 * gdbarch.sh: Use the function, instead of macro name in
4374 errors and the log file.
4375 (return_value): Remove stray ":" in spec.
4377 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4378 * gdbarch.h, gdbarch.c: Re-generate.
4379 * Makefile.in (arch-utils.o): Update dependencies.
4380 * values.c (using_struct_return): Move code calling
4381 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4382 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4383 to legacy_return_value, simplify.
4384 * infcmd.c (print_return_value): Move code calling
4385 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4386 to legacy_return_value, simplify.
4387 * infcall.c (call_function_by_hand): Move code calling
4388 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4389 * arch-utils.c: Update copyright. Include "gdbcore.h".
4390 (legacy_return_value): New function.
4391 * arch-utils.h: Update copyright.
4392 (legacy_return_value): Declare.
4394 2004-06-20 Andrew Cagney <cagney@gnu.org>
4396 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4397 * gdbarch.h, gdbarch.c: Re-generate.
4398 * values.c (using_struct_return): Update call.
4399 * mcore-tdep.c: Update comment.
4400 * infcall.c (call_function_by_hand): Update comment.
4401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4402 * arch-utils.h (always_use_struct_convention): Update.
4403 * v850-tdep.c (v850_gdbarch_init): Update.
4404 * sh64-tdep.c (sh64_gdbarch_init): Update.
4405 * sh-tdep.c (sh_gdbarch_init): Update.
4406 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4407 * mips-tdep.c (mips_gdbarch_init): Update.
4408 * mcore-tdep.c (mcore_gdbarch_init): Update.
4409 * m32r-tdep.c (m32r_gdbarch_init): Update.
4410 * ia64-tdep.c (ia64_gdbarch_init): Update.
4411 * h8300-tdep.c (h8300_gdbarch_init): Update.
4412 * frv-tdep.c (frv_gdbarch_init): Update.
4413 * cris-tdep.c (cris_gdbarch_init): Update.
4414 * arm-tdep.c (arm_gdbarch_init): Update.
4415 * alpha-tdep.c (alpha_gdbarch_init): Update.
4417 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4419 * PROBLEMS: Add more specific information, and a work-around,
4422 2004-06-18 Andrew Cagney <cagney@gnu.org>
4424 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4425 * gdbarch.h, gdbarch.c: Re-generate.
4426 * ada-lang.c (ada_finish_decode_line_1): Update.
4427 * infrun.c (handle_inferior_event): Update.
4428 * infcall.c (find_function_addr): Update.
4429 * linespec.c (minsym_found): Update.
4430 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4432 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4433 * cli/cli-cmds.c (disassemble_command): Update.
4434 * vax-tdep.c (vax_gdbarch_init): Update.
4436 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4438 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4440 2004-06-17 Andrew Cagney <cagney@gnu.org>
4442 GDB 6.1.1 released from the GDB 6.1 branch.
4443 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4446 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4449 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4450 operation as a uleb128. Found by Michael Coulter.
4452 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4454 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4456 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4457 to ada-lang.h; this is needed to be able to implement the kill command
4460 (task_entry): Ditto.
4462 (ada_build_task_list): Ditto.
4464 * ada-lang.c: Conditionalize routines and data structures related
4465 to breakpoints, exceptions, completion, and symbol caching on
4466 GNAT_GDB, since these are not yet used in the submitted public sources.
4467 (ada_main_name): Editorial: Move definition out of exception-related
4470 2004-06-15 Andrew Cagney <cagney@gnu.org>
4472 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4473 deprecated_pc_in_call_dummy.
4475 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4477 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4478 bfd_get_section_size_before_reloc or _raw_size.
4479 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4480 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4481 (dwarf2_read_section): Likewise.
4482 * elfread.c (elf_locate_sections): Likewise.
4483 * gcore.c (derive_heap_segment): Likewise.
4484 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4485 * remote-e7000.c (e7000_load): Likewise.
4486 * remote-m32r-sdi.c (m32r_load): Likewise.
4487 * remote-mips.c (mips_load_srec): Likewise.
4488 (pmon_load_fast): Likewise.
4489 * remote.c (compare_sections_command): Likewise.
4490 * symfile.c (add_section_size_callback): Likewise.
4491 (load_section_callback): Likewise.
4492 (pc_in_unmapped_range): Likewise.
4493 (pc_in_mapped_range): Likewise.
4494 (sections_overlap): Likewise.
4495 (list_overlays_command): Likewise.
4496 (simple_overlay_update_1): Likewise.
4497 (simple_overlay_update): Likewise.
4498 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4499 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4501 2004-06-14 Randolph Chung <tausq@debian.org>
4503 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4504 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4506 (hppa_hpux_inferior_created): New function.
4507 (hppa_hpux_init_abi): Register observer.
4508 * symfile.c (hp_cxx_exception_support_initialized)
4509 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4510 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4512 2004-06-14 Randolph Chung <tausq@debian.org>
4514 * MAINTAINERS (Write After Approval): Alphabetize my entry
4517 2004-06-14 Andrew Cagney <cagney@gnu.org>
4519 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4520 testsuite maintainer.
4522 2004-06-13 Andrew Cagney <cagney@gnu.org>
4524 * infcmd.c (print_return_value): Fix logic, allow
4525 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4527 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4528 defining any macros.
4529 * gdbarch.h: Re-generate.
4531 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4532 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4533 * gdbarch.h: Re-generate.
4535 * values.c (generic_use_struct_convention): Don't check gcc_p.
4537 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4538 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4539 * gdbarch.h, gdbarch.c: Regenerate.
4540 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4541 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4542 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4543 deprecated_max_register_raw_size and
4544 deprecated_max_register_virtual_size.
4545 * v850-tdep.c (v850_gdbarch_init): Ditto.
4546 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4547 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4548 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4549 * cris-tdep.c (cris_gdbarch_init): Ditto.
4551 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4552 * gdbarch.h, gdbarch.c: Re-generate.
4553 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4554 (m68hc11_use_struct_convention): Delete function.
4555 (m68hc11_extract_struct_value_address): Delete function.
4556 (m68hc11_return_value): New function.
4557 (m68hc11_gdbarch_init): Instead of store_return_value,
4558 extract_return_value, return_value_on_stack,
4559 deprecated_extract_struct_value_address and use_struct_convention,
4561 * values.c (using_struct_return): Do not call
4562 RETURN_VALUE_ON_STACK.
4563 * arch-utils.h (generic_return_value_on_stack_not): Delete
4565 * arch-utils.c (generic_return_value_on_stack_not): Delete
4568 2004-06-12 Andrew Cagney <cagney@gnu.org>
4570 * values.c (register_value_being_returned): Delete function.
4571 * infcmd.c (legacy_return_value): Delete function.
4572 * infcall.c (call_function_by_hand): Inline
4573 "register_value_being_returned", simplify.
4574 * values.c (using_struct_return): Update comment, refer to
4575 print_return_value instead of register_value_being_returned.
4576 * infcmd.c (print_return_value): Inline calls to
4577 register_value_being_returned and legacy_return_value. Simplify.
4579 2004-06-11 Randolph Chung <tausq@debian.org>
4581 * somread.c (som_symtab_read): Exclude gcc local symbols.
4583 2004-06-11 Randolph Chung <tausq@debian.org>
4585 * infrun.c (handle_inferior_event): Handle the case when a
4586 trampoline ends up in the runtime resolver, and if the trampoline
4587 has no name. Rearrange the code so that all the trampoline
4588 processing happens before other step-out-of-range handling.
4590 2004-06-11 Martin Hunt <hunt@redhat.com>
4592 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4595 2004-06-10 Andrew Cagney <cagney@gnu.org>
4597 * blockframe.c (legacy_inside_entry_func): Delete.
4598 (legacy_frame_chain_valid): Inline call to
4599 legacy_inside_entry_func, simplify.
4601 2004-06-10 Bob Rossi <bob@brasko.net>
4603 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4604 * dwarf2read.c (partial_die_info): Add dirname field.
4605 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4606 (read_partial_die): Save away DW_AT_comp_dir.
4607 * defs.h (symtab_to_filename): Removed.
4608 * source.c (find_and_open_source): Added.
4609 (open_source_file): Just calls find_and_open_source.
4610 (symtab_to_filename): Removed.
4611 (symtab_to_fullname, psymtab_to_fullname): Added.
4612 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4613 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4615 * symtab.h (partial_symtab): Add dirname field.
4616 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4617 (mi_cmd_file_list_exec_source_file): Call new function
4618 symtab_to_fullname to find fullname.
4619 (mi_cmd_file_list_exec_source_files): Added.
4620 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4621 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4623 2004-06-10 Andrew Cagney <cagney@gnu.org>
4625 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4626 to generic_use_struct_convention, the default value.
4628 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4631 * ns32k-tdep.c (ns32k_push_arguments): New function.
4632 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4633 * infcall.c (call_function_by_hand): Call error instead of
4634 legacy_push_arguments.
4635 * value.h (legacy_push_arguments): Delete declaration.
4636 * valops.c (legacy_push_arguments): Delete function.
4637 (value_push): Delete function.
4639 2004-06-10 Brian Ford <ford@vss.fsi.com>
4641 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4642 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4644 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4646 2004-06-10 Andrew Cagney <cagney@gnu.org>
4648 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4649 * gdbarch.h, gdbarch.c: Re-generate.
4650 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4652 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4653 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4654 deprecated_pc_in_call_dummy instead of
4655 DEPRECATED_PC_IN_CALL_DUMMY.
4656 (arm_skip_prologue): Ditto.
4657 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4658 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4659 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4660 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4662 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4663 (sh64_init_extra_frame_info, sh64_get_saved_register)
4664 (sh64_pop_frame): Ditto.
4665 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4666 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4667 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4668 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4669 (h8300_pop_frame): Ditto.
4670 * blockframe.c (legacy_inside_entry_func)
4671 (legacy_frame_chain_valid): Ditto.
4672 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4673 to deprecated_pc_in_call_dummy.
4675 2004-06-09 Andrew Cagney <cagney@gnu.org>
4677 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4678 provide a default value.
4679 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4680 * gdbarch.h, gdbarch.c: Re-generate.
4681 * arch-utils.c (generic_convert_register_p): Rename
4682 legacy_convert_register_p
4683 (legacy_register_to_value, legacy_value_to_register): Delete
4685 * arch-utils.h (generic_convert_register_p): Rename
4686 legacy_convert_register_p.
4687 (legacy_register_to_value, legacy_value_to_register): Delete
4690 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4691 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4692 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4693 * gdbarch.h, gdbarch.c: Re-generate.
4694 * infcmd.c (default_print_registers_info): Simplify.
4695 * findvar.c (value_of_register): Simplify.
4696 * mi/mi-main.c (get_register): Simplify.
4697 * arch-utils.c (legacy_convert_register_p): Always return 0.
4698 (legacy_register_to_value, legacy_value_to_register): Always call
4701 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4702 #ifdef CLEAR_INSN_CACHE code.
4703 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4704 Delete #ifdef CLEAR_DEFERRED_STORES code.
4706 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4708 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4710 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4712 * config/mips/mipsv4.mh: Delete file.
4714 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4716 (hpread_adjust_stack_address): Delete declaration.
4718 2004-06-08 Andrew Cagney <cagney@gnu.org>
4720 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4721 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4722 PTRACE_ATTACH / PTRACE_DETACH available call error.
4723 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4724 * infttrace.c (update_thread_state_after_attach, attach, detach):
4725 Remove #ifdef wrappers.
4726 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4727 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4728 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4729 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4730 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4731 * config/nm-linux.h (ATTACH_DETACH): Delete.
4732 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4733 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4734 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4735 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4736 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4738 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4740 * configure.in: Set $configdir to the right OS specific value.
4741 Use value when setting $tcldir and $tkdir.
4742 * configure: Regenerate.
4744 2004-06-06 Paul Brook <paul@codesourcery.com>
4746 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4749 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4751 * ada-lang.c (lookup_symbol_in_language): New function to allow
4752 re-use of another language's symbol lookup code. (Placed here
4753 temporarily while Ada support is being integrated into the public
4755 (restore_language): New auxiliary function for
4756 lookup_symbol_in_language.
4757 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4758 temporarily while Ada support is being integrated into the public
4761 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4763 * Makefile.in (check//%): New.
4765 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4766 (mn10300_store_return_value): Rewrite.
4767 (mn10300_type_align): New.
4768 (mn10300_use_struct_convention): Rewrite.
4769 (mn10300_return_value): New, using all of the above.
4770 (mn10300_pop_frame_regular): Add saved_regs_size.
4771 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4773 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4774 regs if PC is on movm.
4776 2004-06-07 Jim Blandy <jimb@redhat.com>
4778 Add native Linux support for the PowerPC E500.
4779 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4780 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4781 all architectures except the E500.
4782 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4784 (struct gdb_evrregset_t): New type.
4785 (have_ptrace_getsetevrregs): New variable.
4786 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4787 fetch_spe_registers): New functions.
4788 (fetch_register): Call fetch_spe_register as appropriate.
4789 Assert that we're only passed raw register numbers.
4790 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4791 Don't fetch gprs if they're pseudoregisters.
4792 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4793 store_spe_registers): New functions.
4794 (store_register): Call store_spe_register as appropriate.
4795 Assert that we're only passed raw register numbers.
4796 (store_ppc_registers): Call store_spe_registers as appropriate.
4797 Don't store gprs if they're pseudoregisters.
4799 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4801 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4802 struct if one exists, even if we are dealing with a zombie thread.
4804 2004-06-07 Andrew Cagney <cagney@gnu.org>
4806 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4807 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4808 Rename PC_REQUIRES_RUN_BEFORE_USE.
4809 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4812 2004-06-07 Randolph Chung <tausq@debian.org>
4814 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4815 unwinding after sp has been saved to the stack but before the end
4816 of the prologue, and after the fp has been modified but before it has
4817 been saved to the stack.
4818 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4819 Remove superfluous definitions.
4820 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4822 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4824 Committed by Randolph Chung.
4825 * hppa-linux-nat.c: Include the correct version of the header file
4826 depending on the kernel version.
4828 2004-06-06 Randolph Chung <tausq@debian.org>
4830 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4831 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4833 2004-06-06 Randolph Chung <tausq@debian.org>
4835 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4836 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4837 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4838 * hppa-tdep.c (hppa_symbol_address): New function definition.
4839 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4841 2004-06-06 Randolph Chung <tausq@debian.org>
4843 * hppa-tdep.h (struct value): Forward declaration.
4844 (gdbarch_tdep): Define tdep find_global_pointer method.
4845 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4846 associated with the function we are trying to call, and write it
4848 (hppa32_convert_from_funct_ptr_addr): New function.
4849 (hppa_find_global_pointer): New function.
4850 (hppa_gdbarch_init): Set default find_global_pointer method; set
4851 convert_from_func_ptr_addr method.
4852 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4853 (hppa_linux_init_abi): Set find_global_pointer method.
4854 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4856 2004-06-06 Randolph Chung <tausq@debian.org>
4858 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4859 to struct value *function.
4860 * gdbarch.c: Regenerate.
4861 * gdbarch.h: Likewise.
4862 * infcall.c (call_function_by_hand): Pass entire function value
4865 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4866 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4867 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4868 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4869 * arm-tdep.c (arm_push_dummy_call): Likewise.
4870 * avr-tdep.c (avr_push_dummy_call): Likewise.
4871 * cris-tdep.c (cris_push_dummy_call): Likewise.
4872 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4873 * frv-tdep.c (frv_push_dummy_call): Likewise.
4874 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4875 * hppa-tdep.c (hppa32_push_dummy_call)
4876 (hppa64_push_dummy_call): Likewise.
4877 * i386-tdep.c (i386_push_dummy_call): Likewise.
4878 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4879 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4880 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4881 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4882 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4883 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4884 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4885 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4886 (ppc64_sysv_abi_push_dummy_call): Likewise.
4887 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4888 (ppc64_sysv_abi_push_dummy_call): Likewise.
4889 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4890 * s390-tdep.c (s390_push_dummy_call): Likewise.
4891 * sh-tdep.c (sh_push_dummy_call_fpu)
4892 (sh_push_dummy_call_nofpu): Likewise.
4893 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4894 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4895 * vax-tdep.c (vax_push_dummy_call): Likewise.
4897 2004-06-04 Jim Blandy <jimb@redhat.com>
4899 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4900 gdbarch argument to register_size.
4902 * rs6000-tdep.c (rs6000_store_return_value): Use
4903 regcache_cooked_write_part instead of
4904 deprecated_write_register_bytes.
4905 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4906 not gdbarch_deprecated_store_return_value.
4908 * ppc-linux-nat.c (store_register, fetch_register): Remove
4909 incorrect assertions. Simplify and generalize handling of
4910 transfers whose sizes are not multiples of, or less than, sizeof
4913 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4915 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4916 as a new thread event.
4917 * thread-db.c (thread_get_info_callback): If the thread is a
4918 zombie, return TD_THR_ZOMBIE.
4919 (thread_from_lwp): If thread_get_info_callback returns
4920 TD_THR_ZOMBIE, check if the thread is still on the thread list
4921 and return a -1 ptid if not found.
4922 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4923 change the status to TARGET_WAITKIND_SPURIOUS.
4925 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4927 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4928 double values in little endian mode.
4930 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4932 Committed by Andrew Cagney.
4933 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4934 after last enum constant to avoid error from IBM C
4937 2004-06-02 Jim Blandy <jimb@redhat.com>
4939 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4940 to 'message', and make it local to the lone block that uses it.
4942 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4944 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4946 * ada-exp.y: Update copyright notice.
4949 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4950 SPECIAL_VARIABLE and unify the treatment of these cases.
4952 (write_attribute_call0): Remove.
4953 (write_attribute_call1): Remove.
4954 (write_attribute_calln): Remove.
4955 (save_qualifier): Add missing semicolon.
4957 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4958 temporarily disabled to allow compilation with FSF head version.
4960 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4961 use individual operators (OP_*) for all attributes.
4962 (exp syntax): Use write_int.
4963 Handle STRING literals with OP_STRING.
4964 (variable syntax): Add limit parameter to calls to
4965 write_object_renaming.
4967 (temp_parse_space): New definition to hold entities that need
4968 only live until the next call to ada_parse.
4969 (string_to_operator): Rename fields of ada_opname_table entries.
4971 (write_var_from_sym): Record block.
4972 (write_var_from_name): Minor reformatting.
4973 Make sure saved name is properly encoded in the case of multiple
4974 matches, and set its language to Ada.
4976 Modify to indicate unresolved name as symbol in the UNRESOLVED
4977 namespace, allocated in temp_parse_space.
4978 (write_int): New function.
4980 (write_object_renaming): Add max_depth parameter to limit
4981 chains of object renamings.
4982 Handle case where root of renaming expression is itself a renaming.
4983 Use temp_parse_space for temporary name buffer.
4984 Handle renamings to dereferenced pointers (___XEXA suffices).
4986 (ada_parse, yyerror, string_to_operator,
4987 write_var_from_sym, write_var_from_name, write_attribute_call0,
4988 write_attribute_call1, write_attribute_calln,
4989 write_object_renaming): Protoize.
4991 (_initialize_ada_exp): New function.
4993 * ada-lang.c: Update copyright notice.
4994 General terminology change to conform to GNAT compiler usage:
4995 mangle => encode, demangle => decode
4996 Include gdb_obstack.h.
5005 (ADA_RETAIN_DOTS): Make sure this is defined.
5006 (TRUNCATION_TOWARDS_ZERO): Define.
5007 (struct string_vector): Define.
5008 (unresolved_names): Remove definition.
5009 (xnew_string_vector): New function.
5010 (string_vector_append): New function.
5011 (extract_string): Make static.
5012 (ada_unqualified_name): New function.
5013 (add_angle_brackets): New function.
5014 (function_name_from_pc): New function.
5015 (place_on_stack): Rename to ensure_lval.
5017 (ensure_lval): Renamed from place_on_stack.
5018 Make identity on lvals.
5020 (is_nonfunction): New interface.
5021 Only symbols in LOC_CONST class can be enumerals.
5022 (fill_in_ada_prototype): Remove; now independent of language.
5023 (add_defn_to_vec): Add obstack and symtab arguments.
5024 Use obstack to hold collected definitions.
5025 (num_defns_collected): New function.
5026 (defns_collected): New function.
5027 (ada_resolve_subexp): Rename to resolve_subexp.
5028 (resolve_subexp): Renamed from ada_resolve_subexp.
5029 (ada_op_name): Return non-const result.
5030 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5033 (to_fixed_array_type): Add declaration.
5034 (coerce_unspec_val_to_type): Remove offset parameter.
5035 (find_sal_from_funcs_and_line): New interface.
5036 (find_line_in_linetable): Ditto.
5038 (all_sals_for_line): Rename to ada_sals_for_line and make
5040 Add new parameter. When set, do not ask the user to choose the
5041 instance, but use the first one found instead.
5042 Use given line number in returned sals.
5044 Skip the prologue if funfirstline is set.
5045 Correct for memory leak when 0 lines found.
5047 (value_pos_atr): Use pos_atr.
5048 (pos_atr): New function.
5049 (standard_lookup): Add block parameter.
5051 (makeTimeStart): Remove declaration and uses.
5052 (makeTimeStop): Remove declaration and uses.
5054 (ada_completer_word_break_characters): Allow for VMS.
5055 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5056 (raise_sym_name): New constant.
5057 (raise_unhandled_sym_name): New constant.
5058 (raise_assert_sym_name): New constant.
5059 (process_raise_exception_name): New constant.
5060 (longest_exception_template): New constant.
5061 (warning_limit): New variable to limit warnings during expression
5063 (warnings_issued): New variable to keep track of warnings issued.
5064 (known_runtime_file_name_patterns): New constant.
5065 (known_auxiliary_function_name_patterns): New constant.
5066 (symbol_list_obstack): New variable.
5068 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5069 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5070 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5071 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5072 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5073 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5074 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5075 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5078 (ada_get_field_index): New function.
5079 (lim_warning): New function.
5080 (ada_translate_error_message): New function.
5081 (MAX_OF_SIZE): New function.
5082 (MIN_OF_SIZE): New function.
5083 (UMAX_OF_SIZE): New function.
5084 (UMIN_OF_SIZE): New function.
5085 (discrete_type_high_bound): New function.
5086 (discrete_type_low_bound): New function.
5087 (base_type): New function.
5088 (do_command): Remove.
5090 (ada_update_initial_language): Use language_ada, not language_unknown.
5091 (ada_encode): Renamed from ada_mangle.
5092 Obey ADA_RETAIN_DOTS.
5093 (ada_decode): Renamed from ada_demangle.
5094 Update coding conventions.
5095 (decoded_names_store): New hash table.
5096 (ada_decode_symbol): New function.
5097 (ada_la_decode): New function.
5099 (modify_general_field): Correct computations of offset and bit
5101 (desc_base_type): Handle ref types, too.
5102 (ada_is_direct_array_type): New function.
5104 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5105 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5106 (ada_is_bogus_array_descriptor,ada_type_of_array,
5107 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5108 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5109 ada_is_array_descriptor_type.
5111 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5112 (ada_is_packed_array_type): Handle pointers or
5113 references to packed arrays as well.
5114 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5115 (decode_packed_array_type): Search for the packed array type
5116 symbol in the currently selected block and associated
5118 Use lookup_symbol again.
5120 (decode_packed_array): Handle pointers and references.
5121 Update call to coerce_unspec_val_to_type.
5122 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5123 (ada_value_primitive_packed_val): Improve comment.
5125 (ada_index_type): Substitute int type for "undefined".
5126 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5127 ada_array_langth, ada_is_string_type): Use renamed
5128 ada_is_simple_array_type.
5129 (empty_array): New function.
5131 (ada_resolve): Rename to resolve.
5132 (resolve): Make static.
5133 Call renamed resolve_subexp.
5135 (ada_resolve_subexp): Rename to resolve_subexp.
5136 (resolve_subexp): Update comment.
5137 Decomment disabled code.
5138 Add LOC_COMPUTED* cases.
5139 Modify to use temporary struct symbols (marked as being in
5140 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5141 OP_UNRESOLVED_VALUE.
5142 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5145 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5146 Use new ada_lookup_symbol_list interface.
5147 Use new ada_resolve_function interface.
5148 Remove OP_TYPE case.
5150 (ada_args_match): Idiot proof against null actuals.
5151 Use intermediate variables to clarify.
5152 (ada_resolve_function): Update comment and interface.
5153 (mangled_ordered_before): Rename to encoded_ordered_before and
5155 (sort_choices): Update comment and interface.
5156 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5157 (user_select_syms): New interface.
5158 Use new sort_choices interface.
5159 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5160 (possible_user_operator_p): Idiot-proof against null values.
5161 (ada_simple_renamed_entity): Don't make cleanup; rely on
5162 caller to free result string.
5163 Remove const from return type.
5164 (make_array_descriptor): Rename uses of place_on_stack to
5166 Make sure that arrays are on stack.
5168 (HASH_SIZE): Define.
5169 (struct cache_entry): Define.
5170 (cache_space): Define.
5172 (clear_ada_sym_cache): New function.
5173 (find_entry): New function.
5174 (lookup_cached_symbol): New function.
5175 (defn_vector_size): Define.
5176 (cache_symbol): New function.
5177 (defn_symbols): Remove.
5179 (standard_lookup): Use lookup_symbol_in_language to get effect of
5183 (symbol_completion_match): New function.
5184 (symbol_completion_add): New function.
5185 (ada_make_symbol_completion_list): New function.
5187 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5188 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5189 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5190 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5192 (ada_lookup_simple_minsym): New function.
5193 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5195 (add_symbols_from_enclosing_procs): New interface.
5196 Conditionalize more helpfully.
5197 Don't bother if program isn't running.
5198 Use new interface to get_frame_block.
5199 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5201 (remove_extra_symbols): New interface.
5202 (xget_renaming_scope): New function.
5203 (is_package_name): New function.
5204 (renaming_is_visible): New function.
5205 (remove_out_of_scope_renamings): New function.
5207 (ada_lookup_symbol_list): New interface.
5208 Properly reinitialize the symbol list obstack.
5209 Don't call add_symbols_from_enclosing_procs if we start from a
5210 static or global block.
5211 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5212 add_symbols_from_enclosing_procs.
5213 Add symtab data to cached entries.
5214 Handle symbols prefixed with
5215 "standard__" specially; strip prefix and don't look in local symbols.
5216 Do not include out of scope renaming symbols in list of
5218 Add const to block parameter.
5219 Move check for non-local, non-global symbols earlier.
5220 Remove timing stuff.
5221 (ada_lookup_symbol): New interface.
5222 Find symtab as well.
5223 (ada_lookup_symbol_nonlocal): New function.
5225 (is_name_suffix): Enhance suffix detection to recognize
5226 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5227 (is_dot_digits_suffix): New function.
5228 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5230 (ada_add_block_symbols): New interface. Use obstack to return results
5231 in a vector of struct ada_symbol_infos. Add symtab argument.
5232 Use new interface to add_defn_to_vec.
5233 Remove calls to fill_in_ada_prototype.
5234 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5236 (ada_finish_decode_line_1): Add const qualification to local to fix
5238 Start looking in static block for functions to avoid attempts
5239 to search frame chain for up-level variables.
5240 Adapt to new ada_sals_for_line interface.
5241 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5242 Handle quoting of the function name inside the spec string.
5243 Skip prologue when funfirstline is set and update the
5244 function documentation to that effect.
5246 (debug_print_lines, debug_print_block, debug_print_blocks,
5247 debug_print_symtab): Remove.
5249 (ada_main_name): New function.
5250 (ada_exception_breakpoint_type): New function.
5251 (is_known_support_routine): New function.
5252 (ada_find_printable_frame): Renamed from find_printable_frame and made
5254 Remove level parameter.
5255 Use new interface to select_frame.
5257 (begin_command): Remove.
5258 (ada_adjust_exception_stop): New function.
5259 (ada_print_exception_stop): New function.
5260 (exception_name_from_cond): New function.
5261 (ada_report_exception_break): Replace disabled code with
5262 conditionalization on GNAT_GDB.
5263 Get the exception name from the condition string.
5264 Remove and move functionality into new functions
5265 ada_print_exception_breakpoint_task and
5266 ada_print_exception_breakpoint_nontask.
5267 (error_breakpoint_runtime_sym_not_found): New function.
5268 (is_runtime_sym_defined): New function.
5269 (ada_breakpoint_rewrite): Uncomment suppressed code.
5270 Use symbolic error-message and runtime-symbol names.
5271 Surround runtime symbol names in quotes.
5272 Allow non-specific breakpoints on exceptions and assertions before
5275 (ada_is_tagged_type): Add parameter.
5276 (ada_is_tag_type): New function.
5277 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5278 (ada_variant_discrim_type): Ditto.
5279 (value_tag_from_contents_and_address): New function.
5280 (type_from_tag): New function.
5281 (struct tag_args): New structure used to communicate with
5283 (ada_tag_name_1): New function.
5284 (ada_tag_name): New function.
5286 (ada_scan_number): Update comment.
5287 (find_struct_field): New function.
5288 (ada_search_struct_field): Make static.
5289 (ada_value_struct_elt): New version that returns references when
5290 given pointers or references to structs.
5291 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5292 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5294 (ada_value_ind): Use new ada_to_fixed_value interface.
5295 (ada_coerce_ref): Ditto.
5296 (field_offset): Remove.
5298 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5299 (ada_find_renaming_symbol): New function.
5300 (ada_prefer_type): Prefer named types over unnamed ones.
5301 (variant_field_index): New function.
5302 (contains_variant_part): Removed: subsumed by variant_field_index.
5303 (ada_template_to_fixed_record_type): New function, mostly from
5304 template_to_fixed_record_type.
5305 (template_to_fixed_record_type):
5306 Do not scan the type fields beyond the last one; prevents a
5308 Handle case where variant field is listed BEFORE discriminant it
5310 Fix calculation of record length when bit length is
5311 not evenly divisible by char length.
5312 Move code to ada_template_to_fixed_record_type and call it.
5314 (template_to_static_fixed_type): Revise comment.
5315 Modify to work on ordinary record types as well as templates,
5316 so as to handle fields that use ___XVE or ___XVU encodings.
5317 (to_record_with_fixed_variant_part): Fill out comment.
5318 Initialize C++ stuff in right type.
5319 Allow case where DVAL is null.
5320 Handle case where variant field is not last.
5321 Fix typo concerning record length.
5322 (to_fixed_record_type): Decomment disabled code.
5323 (to_fixed_record_type): Use variant_field_index instead of
5324 contains_variant_part.
5325 (to_fixed_variant_branch_type): Ditto.
5326 (to_fixed_array_type): Decomment disabled code.
5327 (ada_to_fixed_type): Convert tagged types to the specific type.
5328 Deactivate the size-check for array types in order to avoid
5329 some false size alarms.
5330 (to_static_fixed_type): Decomment disabled code.
5331 Modify to call template_to_static_fixed_type
5332 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5333 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5334 Remove valaddr argument, as it is never really used.
5335 (ada_to_fixed_value): Change interface to act on single struct value*
5337 (adjust_pc_past_prologue): New function.
5338 (ada_attribute_name): Modify to take enum exp_opcode argument.
5340 (ada_enum_name): Recognize new homonym-distinguishing convention.
5341 Adjust local variable's type to remove compiler warning.
5342 Fix a small problem in the part that unqualifies the enumeration name.
5343 (ada_value_binop): New function.
5344 (ada_value_equal): New function.
5346 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5347 Don't give error message when not doing normal evaluation
5348 and a tagged type doesn't seem to contain a structure member.
5349 Give error message for packed arrays.
5350 For indexing arrays, handle pointers to packed arrays correctly.
5351 Handle case of 'first and 'last attributes of bare integral type
5352 without encoded subtype info.
5353 Remove some unnecessary casts.
5354 Fix uninitialized value of type in computing 'first, 'last, or 'length
5356 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5357 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5359 Attributes are now exp_opcode values.
5360 Correct treatment of 'modulus.
5361 Better error message for taking 'length of wrong kind of type;
5363 Change EVAL_NORMAL to noside for consistency.
5364 Use ada_value_binop for DIV, MOD, REM.
5365 Make special case out of array of length 0, since an argument
5366 of 0 upsets some platforms' malloc.
5367 Use OP_STRING instead of OP_ARRAY.
5368 For slice, add check that we have an array type before extracting
5369 a slice out of it. Avoids a SEGV.
5370 When evaluating an array slice, if the array type is a reference to
5371 an aligner type, then replace the aligner type by the actual type.
5372 Decomment disabled code.
5373 Remove some dead code.
5374 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5375 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5376 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5377 and UNOP_MBR to UNOP_IN_RANGE.
5378 If an array type has a parallel ___XVE type, then use it.
5379 Turn arrays into pointers for lvalue arrays.
5380 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5381 bounds error and handle 0-length slices.
5383 When selecting fields, apply ada_to_fixed_value (because the fields
5384 might have ___XVU or ___XVE encodings even if not dynamic.)
5385 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5386 (ada_is_system_address_type): New function.
5388 (get_var_value): Use new interface to ada_lookup_symbol_list.
5389 (get_int_var_value): New interface.
5390 (to_fixed_range_type): Allow unknown bound, with warning.
5391 (ada_is_modular_type): Decomment disabled code.
5392 (ADA_OPERATORS): New definition.
5393 (ada_operator_length): New function.
5394 (ada_expr_op_name): New function.
5395 (ada_forward_operator_length): New function.
5396 (ada_dump_subexp_body): New function.
5397 (ada_print_subexp): New function.
5398 (ada_exp_descriptor): New constant.
5399 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5400 (ada_language_defn): Add ada_exp_descriptor entry.
5401 Change ada_parse => parse.
5402 Add post-parser entry.
5403 Use ada-specific non-local symbol lookup.
5404 Don't use C-style arrays.
5405 String lower-bound is 1.
5406 Decomment disabled code.
5407 (parse): New function.
5408 New fields ada_translate_error_message, ada_lookup_symbol,
5409 ada_lookup_minimal_symbol.
5411 * ada-lang.h: Update copyright dates.
5412 Replace the mangle/demangle terminology throughout by the
5413 more appropriate encode/decode one.
5414 Include breakpoint.h.
5415 Forward declare struct partial_symbol, struct block.
5416 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5417 (EXTRACT_ADDRESS): Remove.
5418 (EXTRACT_INT): Remove.
5419 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5420 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5421 (MAX_RENAMING_CHAIN_LENGTH): Define.
5422 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5424 (enum task_states): Remove.
5425 ada_task_states: Remove.
5426 (fat_string): Remove.
5427 (struct entry_call): Remove.
5428 (struct task_fields): Remove.
5429 (struct task_entry): Remove.
5431 (struct ada_symbol_info): Define.
5432 (enum ada_attribute): Remove.
5433 (enum ada_operator): Define.
5435 (ada_get_field_index): Declare.
5436 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5437 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5438 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5439 (ada_lookup_symbol_list): New interface.
5440 (ada_decode_symbol): Declare.
5441 (ada_decode): Declare.
5442 (ada_lookup_symbol): New interface.
5443 (ada_update_initial_language): Declare.
5444 (ada_lookup_simple_minsym): Declare.
5445 (user_select_syms): New interface.
5446 (ada_sals_for_line): Declare.
5447 (ada_is_tagged_type): New interface.
5448 (ada_tag_name): Declare.
5449 (ada_lookup_struct_elt_type): Remove declaration.
5450 (ada_search_struct_field): Remove declaration.
5451 (ada_attribute_name): New interface.
5452 (ada_is_system_address_type): Declare.
5453 (ada_to_fixed_value): Remove declaration.
5454 (ada_template_to_fixed_record_type_1): Declare.
5455 (get_int_var_value): New interface.
5456 (ada_find_any_symbol): Declare.
5457 (ada_find_renaming_symbol): Declare.
5458 (ada_mangle): Rename to ada_encode.
5459 (ada_simple_renamed_entity): Remove const.
5460 (ada_main_name): Declare.
5461 (get_current_task): Rename to ada_get_current_task.
5462 (get_entry_number): Remove declaration.
5463 (ada_report_exception_break): Remove declaration.
5464 (ada_print_exception_breakpoint_nontask): Declare.
5465 (ada_print_exception_breakpoint_task): Declare.
5466 (ada_find_printable_frame): Declare.
5468 * ada-lex.l: Update copyright notices.
5469 Use xmalloc and xfree instead of malloc and free.
5470 Use new interface to name_lookup.
5471 Use new interface to
5472 ada_mangle=>ada_encode.
5473 Redo handling of '$...' variable to parallel current treatment
5475 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5476 digit_to_int, strtoulst, processInt, processReal, processId,
5477 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5480 (processInt): Use cast to remove harmless warning.
5481 (processReal): Modify to get rid of compiler warning on scan formats.
5483 (processId): Replace xmalloc with obstack_alloc for name and remove
5484 call to ada_name_string_cleanup.
5485 Remove obsolete disabled code.
5486 (name_lookup): Ditto.
5488 Use obsavestring on temp_parse_space instead of savestring
5489 on name, and remove call to ada_name_string_cleanup.
5490 Free string returned from ada_simple_renamed_entity.
5491 Use new interface to ada_lookup_symbol_list.
5492 Decomment disabled code.
5493 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5495 When a type name lookup succeeds as a result of
5496 lookup_primitive_typename, check for regular type entry that has not
5498 Limit length of chain of renamed symbols we are willing to follow.
5499 Do not break names beginning with "standard__" into segments.
5500 (block_lookup): Use new interface to ada_lookup_symbol_list.
5502 * ada-typeprint.c: Update copyright notice.
5503 (demangled_type_name): Rename to decoded_type_name.
5504 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5505 (print_range_bound): Correct handling of negative
5506 bounds that make the index type looked unsigned under STABS.
5507 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5508 (print_range_type_named): Use the builtin int type if no type
5509 corresponding to the given type name could be found.
5510 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5511 Add some bullet-proofing.
5512 (print_variant_clauses): Allow for variant branches with ___XVU
5513 encodings that are not dynamic fields.
5514 Use new interface to ada_is_tagged_type.
5515 (print_record_type): Allow for fields with ___XVE encodings that
5516 are not dynamic fields.
5517 Use new interface to ada_is_tagged_type.
5518 (ada_print_type): ada_is_array_descriptor =>
5519 ada_is_array_descriptor_type.
5521 * ada-valprint.c: Update copyright notice.
5522 Include gdb_string.h
5524 (ui_memcpy): New function.
5525 (ada_print_floating): New function.
5526 (ada_print_str): Order arguments correctly.
5527 Correct handling of empty arrays and arrays of 0-length items.
5528 ada_is_array_descriptor => ada_is_array_descriptor_type
5529 Print values of type System.Address in hexadecimal format.
5530 Use ada_print_floating to print floating-point numbers in Ada format.
5531 Print class tag values with type names.
5532 No longer print the address of reference values. Avoids
5533 a potential confusion.
5534 (ada_value_print): Stop printing the object type for reference
5535 values, but preserve that behavior for access types. Avoids
5536 a potential confusion.
5537 Simplify one conditional expression, as the first part is now
5539 ada_is_array_descriptor => ada_is_array_descriptor_type
5540 Add check for arrays for null records, and print them by hand.
5542 2004-06-01 Jim Blandy <jimb@redhat.com>
5544 * ppc-tdep.h: Delete unused 'regoff' member.
5545 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5547 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5550 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5551 (hpread_read_struct_type): Likewise.
5553 2004-06-01 Andrew Cagney <cagney@gnu.org>
5555 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5556 instead of xasprintf.
5557 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5558 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5559 (mi_cmd_data_list_register_names)
5560 (mi_cmd_data_list_changed_registers)
5561 (mi_cmd_data_list_register_values)
5562 (get_register, mi_cmd_data_write_register_values)
5563 (mi_cmd_data_write_register_values)
5564 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5565 (mi_cmd_target_download, mi_cmd_target_select)
5566 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5567 (mi_execute_cli_command, mi_execute_async_cli_command)
5568 (mi_execute_async_cli_command): Ditto.
5569 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5570 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5572 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5573 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5574 error_last_message instead of mi_error_last_message.
5575 * mi/mi-main.c (mi_error_last_message): Delete function.
5577 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5578 "invalid number of columns" error. Delete redundant "out of
5581 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5583 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5584 (gregset_t, fpregset_t): Remove typedefs.
5585 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5586 (REG_OFFSET): Rename argument.
5587 (i386bsd_r_reg_offset): Rename from reg_offset.
5588 (REG_ADDR): Remove macro.
5589 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5591 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5592 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5593 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5594 instead of supply_gregset.
5595 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5596 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5597 instead of fill_gregset.
5598 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5600 * i386bsd-nat.c: Don't include "gregset.h".
5601 (supply_gregset, fill_gregset): Make static.
5602 (supply_fpregset, fill_fpregset): Remove.
5603 * Makefile.in (i386bsd-nat.o): Update dependencies.
5605 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5607 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5608 "gdb_assert.h". Con't include "gregset.h".
5609 (fbsd_make_corefile_notes): Use regset-based core file support
5610 instead off fill_gregset and fill_fpregset.
5611 * Makefile.in (fbsd-proc.o): Update dependencies.
5613 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5615 (m88k_frame_prev_register): Simplify code a bit.
5617 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5618 (amd64_collect_fpregset): New function.
5619 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5621 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5623 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5624 (i386_collect_gregset): New function.
5625 (i386_supply_fpregset): Adjust comment.
5626 (i386_collect_fpregset): New function.
5627 (i386_regset_from_core_section): Use i386_collect_gregset and
5628 i386_collect_fpregset.
5630 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5631 handle VALUEP being null.
5633 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5635 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5637 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5639 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5640 assembler in OpenBSD 3.5-current.
5641 (amd64obsd_sigcontext_addr): Likewise.
5643 2004-05-28 Jim Blandy <jimb@redhat.com>
5645 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5646 register set, so our regcache isn't declared "legacy" and our E500
5647 pseudoregister read and write functions aren't ignored.
5648 (rs6000_register_byte, rs6000_register_raw_size,
5649 rs6000_register_virtual_type, rs6000_register_convertible,
5650 rs6000_register_convert_to_virtual,
5651 rs6000_register_convert_to_raw): Deleted.
5652 (rs6000_register_type, rs6000_convert_register_p,
5653 rs6000_register_to_value, rs6000_value_to_register): New
5655 (rs6000_gdbarch_init): Don't register
5656 gdbarch_deprecated_register_size,
5657 gdbarch_deprecated_register_bytes,
5658 gdbarch_deprecated_register_byte,
5659 gdbarch_deprecated_register_raw_size,
5660 gdbarch_deprecated_register_virtual_type,
5661 gdbarch_deprecated_register_convertible,
5662 gdbarch_deprecated_register_convert_to_virtual, or
5663 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5664 register gdbarch_register_type, gdbarch_convert_register_p,
5665 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5667 2004-05-26 Jim Blandy <jimb@redhat.com>
5669 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5670 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5671 functions, updated to match the register numberings used in GCC.
5672 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5673 rs6000_dwarf2_reg_to_regnum as register number conversions
5674 functions for STABS and Dwarf2.
5676 2004-05-26 Randolph Chung <tausq@debian.org>
5678 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5681 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5683 * NEWS: Document new "start" command.
5685 2004-05-25 Randolph Chung <tausq@debian.org>
5687 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5690 2004-05-25 Randolph Chung <tausq@debian.org>
5692 * hppa-hpux-tdep.c (offsetof): Define.
5693 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5694 (hppa32_hpux_frame_base_before_sigtramp)
5695 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5696 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5697 (hppa64_hpux_frame_base_before_sigtramp)
5698 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5700 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5701 (hppa_hpux_sigtramp_frame_unwind_cache)
5702 (hppa_hpux_sigtramp_frame_this_id)
5703 (hppa_hpux_sigtramp_frame_prev_register)
5704 (hppa_hpux_sigtramp_frame_unwind)
5705 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5706 (hppa_hpux_init_abi): Register sigtramp unwinder.
5707 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5709 2004-05-25 Randolph Chung <tausq@debian.org>
5711 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5712 and multiple stack unwinds.
5713 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5715 2004-05-25 Andrew Cagney <cagney@gnu.org>
5717 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5718 * symfile-mem.h: Delete file.
5719 * symfile-mem.c: Do not include "symfile-mem.h".
5720 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5721 "struct bfd_section". When an error do not bother returning NULL.
5722 (add_symbol_file_from_memory_command): Use "struct bfd" and
5723 "struct bfd_section".
5724 * Makefile.in (symfile_mem_h): Delete.
5725 (symfile-mem.o): Update dependencies.
5727 2004-05-25 Nick Roberts <nickrob@gnu.org>
5729 * gdb-mi.el: New file.
5731 2004-05-25 Andrew Cagney <cagney@gnu.org>
5733 * inftarg.c: Include "observer.h".
5734 (child_attach, child_create_inferior): Notify inferior_created.
5735 * corelow.c: Include "observer.h".
5736 (core_open): Notify inferior_created.
5737 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5739 2004-05-25 Andrew Cagney <cagney@gnu.org>
5741 * target.h (struct target_ops): Add from_tty to
5743 (target_create_inferior, find_default_create_inferior): Update.
5744 * infcmd.c (run_command): Update.
5745 * wince.c (child_create_inferior): Update.
5746 * win32-nat.c (child_create_inferior): Update.
5747 * uw-thread.c (uw_thread_create_inferior): Update.
5748 * thread-db.c (thread_db_create_inferior): Update.
5749 * target.c (debug_to_create_inferior)
5750 (find_default_create_inferior): Update.
5751 (maybe_kill_then_create_inferior): Update.
5752 * sol-thread.c (sol_thread_create_inferior): Update.
5753 * remote.c (extended_remote_async_create_inferior)
5754 (extended_remote_create_inferior): Update.
5755 * remote-vx.c (vx_create_inferior): Update.
5756 * remote-st.c (st2000_create_inferior): Update.
5757 * remote-sim.c (gdbsim_create_inferior): Update.
5758 * remote-sds.c (sds_create_inferior): Update.
5759 * remote-rdp.c (remote_rdp_create_inferior): Update.
5760 * remote-rdi.c (arm_rdi_create_inferior): Update.
5761 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5762 * remote-e7000.c (e7000_create_inferior): Update.
5763 * procfs.c (procfs_create_inferior): Update.
5764 * ocd.c (ocd_create_inferior): Update.
5765 * ocd.h (ocd_create_inferior): Update.
5766 * nto-procfs.c (procfs_create_inferior): Update.
5767 * monitor.c (monitor_create_inferior): Update.
5768 * lin-lwp.c (lin_lwp_create_inferior): Update.
5769 * inftarg.c (child_create_inferior): Update.
5770 * hpux-thread.c (hpux_thread_create_inferior): Update.
5771 * gnu-nat.c (gnu_create_inferior): Update.
5773 2004-05-25 Andrew Cagney <cagney@gnu.com>
5775 * MAINTAINERS: Update e-mail address.
5777 2004-05-24 Randolph Chung <tausq@debian.org>
5779 * thread.c (info_threads_command, thread_apply_all_command)
5780 (thread_apply_command, thread_command, do_captured_thread_select):
5781 Remove HPUXHPPA-specific code.
5783 2004-05-24 Randolph Chung <tausq@debian.org>
5785 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5787 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5790 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5792 * infcmd.c (kill_if_already_running): New function, extracted
5794 (run_command): Replace extracted code by call to
5795 kill_if_already_running().
5796 (start_command): New function.
5797 (_initialize_infcmd): Add "start" command.
5799 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5801 Add OpenBSD/m88k support.
5802 * NEWS (New native configurations): Mention OpenBSD/m88k.
5803 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5804 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5805 * Makefile.in (m88k_tdep_h): New variable.
5806 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5807 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5808 * configure.host: Add m88*-*-openbsd*.
5809 * configure.tgt: Add m88*-*-openbsd*.
5811 2004-05-24 Jim Blandy <jimb@redhat.com>
5813 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5816 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5818 * symtab.c (fixup_section): Search section table when lookup by
5821 2004-05-24 Randolph Chung <tausq@debian.org>
5823 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5826 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5828 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5829 register number in regcache_raw_collect call.
5830 (m68kbsd_collect_fpregset): Likewise.
5831 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5833 * regset.h (struct regset): Add back `regset' member.
5835 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5837 * configure.in: Check for td_pcb in `struct thread'.
5838 * configure, config.in: Regenerated.
5840 * dpx2-nat.c: Remove file.
5841 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5842 (dpx2-nat.o): Remove dependencies.
5844 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5845 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5846 (amd64obsd_supply_pcb): New function.
5847 (_initialize_amd64obsd_nat): Enable libkvm interface.
5848 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5849 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5850 (LOADLIBES): New variable.
5852 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5853 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5854 (sparc32nbsd_supply_pcb): New function.
5855 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5856 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5857 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5858 (LOADLIBES): New variable.
5860 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5862 * bsd-kvm.c, bsd-kvm.h: New files.
5863 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5865 (i386fbsd_supply_pcb): New function.
5866 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5867 (i386fbsd-nat.o): Update dependencies.
5868 (bsd_kvm_h): New variable.
5869 (bsd-kvm.o): New dependency.
5870 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5871 (LOADLIBES): New variable.
5873 * regset.c: Tweak comment.
5874 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5876 * regset.h: Update copyright year.
5877 (struct regset): Remove `descr' member, add `gdbarch' member.
5878 (regset_alloc): Adjust prototype and comment.
5879 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5880 (i386_supply_fpregset): Likewise.
5881 (i386_regset_from_core_section): Update call to regset_alloc.
5882 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5884 (i386obsd_aout_regset_from_core_section): Update call to
5886 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5888 (i386nbsd_aout_regset_from_core_section): Update call to
5890 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5892 (amd64_regset_from_core_section): Update call to regset_alloc.
5893 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5895 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5896 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5897 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5898 (sparc32nbsd_init_abi): Update call to regset_alloc.
5899 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5900 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5901 (sparc64obsd_init_abi): Update call to regset_alloc.
5902 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5903 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5904 (sparc64nbsd_init_abi): Update call to regset_alloc.
5905 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5906 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5907 (sparc64fbsd_init_abi): Update call to regset_alloc.
5909 2004-05-22 Jim Blandy <jimb@redhat.com>
5911 * ppc-tdep.h (spe_register_p): New declaration.
5912 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5914 * rs6000-tdep.c (spe_register_p): New function.
5915 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5917 (rs6000_gdbarch_init): Initialize the new members of the tdep
5920 2004-05-21 Jim Blandy <jimb@redhat.com>
5922 * ppc-linux-nat.c (fetch_register): Move code back to be next
5923 to the comment that describes it. (Moved code, instead of
5924 comment, for symmetry with store_register.)
5926 Allocate regset structures in the gdbarch's obstack, not using
5928 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5929 Add 'arch' argument. Allocate the regset on arch's obstack, not
5931 * regset.h (regset_alloc): Update declaration.
5932 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5934 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5935 * i386-tdep.c (i386_regset_from_core_section): Same.
5936 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5937 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5938 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5939 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5940 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5941 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5943 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5945 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5947 2004-05-21 Jim Blandy <jimb@redhat.com>
5949 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5950 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5952 2004-05-20 Jim Blandy <jimb@redhat.com>
5954 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5956 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5958 * regset.h: Make prototype const-correct.
5959 * regset.c (regset_xmalloc): Make const-correct.
5961 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5963 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5964 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5965 (symbol_search_name): Declare.
5967 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5968 (iter_name_next_hashed): Ditto.
5969 (iter_name_next_linear): Ditto.
5970 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5972 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5973 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5974 (symbol_search_name): New function.
5976 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5978 * minsyms.c (build_minimal_symbol_hash_tables): Change
5979 test for adding to demangled hash table to check for difference
5980 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5982 2004-05-19 Jim Blandy <jimb@redhat.com>
5984 Use a constructor function to create regset structures.
5985 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5986 (struct regset): Use supply_regset_ftype. Add new
5987 'collect_regset' member.
5988 (regset_xmalloc): New declaration.
5989 * regset.c: New file.
5990 * am64-tdep.c (amd64_regset_from_core_section): Use
5991 regset_xmalloc to construct regset structures.
5992 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5993 * i386-tdep.c (i386_regset_from_core_section): Same.
5994 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5995 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5996 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5997 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5998 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5999 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6000 * Makefile.in (COMMON_OBS): Add regset.o.
6001 (regset.o): New rule.
6003 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6005 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6006 and pthread_cond_wait.c.
6008 2004-05-18 Jim Blandy <jimb@redhat.com>
6010 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6011 before the mach-specific switch, and then let the individual cases
6012 override the defaults, rather than leaving them uninitialized
6013 until the switch and then setting them in each case.
6015 2004-05-18 Randolph Chung <tausq@debian.org>
6017 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6018 millicode functions.
6020 2004-05-18 Randolph Chung <tausq@debian.org>
6022 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6023 references to dld_flags_buffer consistent.
6025 2004-05-18 Randolph Chung <tausq@debian.org>
6027 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6028 it for unwinding the stack.
6030 2004-05-18 Randolph Chung <tausq@debian.org>
6032 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6033 Undefine these so we can overide them using gdbarch.
6035 2004-05-18 Randolph Chung <tausq@debian.org>
6037 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6038 handling for 64-bit HPUX (elf).
6040 2004-05-18 Daniel Jacobowitz <dan@debian.org>
6042 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6044 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6045 * ia64-tdep.c (examine_prologue): Likewise.
6046 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6047 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6049 2004-05-18 Mark Kettenis <kettenis@gnu.org>
6051 * vax-tdep.c (vax_return_value): Implement
6052 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6054 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6056 * vax-tdep.c (vax_return_value): Fix typo.
6058 2004-05-17 Andrew Cagney <cagney@redhat.com>
6060 * MAINTAINERS: Mark Salter was also responsible for
6063 * NEWS: Mention signal fixes.
6065 2004-05-17 Randolph Chung <tausq@debian.org>
6067 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6068 check to see if we are unwinding an export stub. Export stubs clobber
6069 the %rp in the call path and stores the original rp in a stack slot.
6071 2004-05-17 Jim Blandy <jimb@redhat.com>
6073 * MAINTAINERS: Update address for J.T. Conklin.
6075 2004-05-17 Randolph Chung <tausq@debian.org>
6077 * hppa-tdep.c: Remove superfluous #include's.
6078 * Makefile.in (hppa-tdep.o): Update dependencies.
6080 2004-05-17 Randolph Chung <tausq@debian.org>
6082 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6083 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6084 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6085 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6086 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6087 Remove static function declarations.
6089 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6091 * alphabsd-nat.c: Update copyright year.
6092 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6094 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6097 * m68k-tdep.c (m68k_svr4_return_value): Implement
6098 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6100 2004-05-16 Mark Kettenis <kettenis@gnu.org>
6102 * sol-thread.c Update copyright year. Fix various coding
6103 standards violations. Tweak a few comments.
6104 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6107 2004-05-15 Randolph Chung <tausq@debian.org>
6109 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6110 as pointer instead of array reference since HPUX compiler does
6111 not accept unsized array arguments.
6112 * somsolib.c (dld_flags_buffer): Use constant array size.
6114 2004-05-15 Mark Kettenis <kettenis@gnu.org>
6116 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6117 offset with decimal offset.
6118 (amd64obsd_sigcontext_addr): Return correct address for entire
6121 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6122 instead of get_frame_base.
6124 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6125 (fill_gregset): Use regcache_raw_collect.
6127 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6130 * config/sparc/tm-nbsd64.h: Remove file.
6131 * config/tm-sunos.h: Remove file.
6133 2004-05-15 Joel Brobecker <brobecker@gnat.com>
6135 * rs6000-tdep.c (store_param_on_stack_p): New function,
6136 an improved version of some code extracted from skip_prologue().
6137 (skip_prologue): Use store_param_on_stack_p() to detect
6138 instructions saving a parameter on the stack. Detect when r0
6139 is used to save a parameter.
6140 Do not mark "li rx, SIMM" instructions as part of the prologue,
6141 unless the following instruction is also part of the prologue.
6143 2004-05-14 Andrew Cagney <cagney@redhat.com>
6145 * infrun.c (handle_inferior_event): Simplify
6146 STEP_OVER_UNDEBUGGABLE.
6148 * infrun.c (handle_step_into_function): Delete function.
6149 (handle_inferior_event): Inline calls to
6150 handle_step_into_function.
6152 2004-05-14 Jerome Guitton <guitton@gnat.com>
6154 * rs6000-nat.c: Fix a comment.
6156 2004-05-12 David Anderson <davea@sgi.com>
6158 Committed by Jim Blandy <jimb@redhat.com>:
6159 * regcache.c (struct regcache_descr): fix comment spelling.
6161 2004-05-13 J. Brobecker <brobecker@gnat.com>
6163 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6164 Fixes a link link failure.
6166 2004-05-13 J. Brobecker <brobecker@gnat.com>
6168 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6169 error that was causing the build to fail.
6171 2004-05-13 J. Brobecker <brobecker@gnat.com>
6173 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6174 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6176 2004-05-13 Andrew Cagney <cagney@redhat.com>
6178 * infrun.c (handle_inferior_event): Check for
6179 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6180 calls. Update comments.
6182 2004-05-13 Jim Blandy <jimb@redhat.com>
6184 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6185 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6186 (store_regs_user_thread, store_regs_kernel_thread): Use
6187 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6188 * ppc-linux-nat.c (fill_gregset): Same.
6189 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6190 (ppc_linux_sigtramp_cache): Same.
6191 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6192 (ppcnbsd_sigtramp_cache_init): Same.
6193 * rs6000-nat.c (fetch_core_registers): Same.
6194 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6195 (rs6000_frame_cache): Same.
6197 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6198 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6199 of assuming that the gprs are numbered starting with zero.
6200 * ppc-linux-nat.c (fill_gregset): Same.
6201 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6202 * ppcnbsd-nat.c (getregs_supplies): Same.
6203 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6204 * rs6000-nat.c (fetch_core_registers): Same.
6205 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6207 2004-05-07 Michael Snyder <msnyder@redhat.com>
6209 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6210 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6212 2004-05-13 Andrew Cagney <cagney@redhat.com>
6214 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6216 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6218 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6219 base_address for shared libraries.
6221 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6223 * MAINTAINERS (write after approval): Add myself.
6225 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6227 * breakpoint.c (bpstat_stop_status): Add new argument
6228 STOPPED_BY_WATCHPOINT. Use it instead of testing
6229 target_stopped_data_address agaist 0 to check whether
6230 or not we stopped due to a hardware watchpoint.
6231 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6232 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6235 2004-05-12 Jim Blandy <jimb@redhat.com>
6237 * configure.in: When checking whether we should use the -bbigtoc
6238 option, don't forget to restore the original value of LDFLAGS.
6239 * configure: Regenerated.
6241 2004-05-12 Andrew Cagney <cagney@redhat.com>
6243 * thread.c (load_infrun_state): Delete step_sp.
6244 * infrun.c (context_switch): Ditto.
6245 * inferior.h (step_sp): Ditto.
6246 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6247 * gdbthread.h (struct thread_info, save_infrun_state)
6248 (restore_infrun_state): Ditto.
6250 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6252 * MAINTAINERS (write after approval): Add myself.
6254 2004-05-12 Andrew Cagney <cagney@redhat.com>
6256 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6257 eliminate reference to step_sp.
6258 (struct execution_control_state, init_execution_control_state)
6259 (handle_inferior_event, keep_going): Delete update_step_sp and
6261 * infcmd.c (step_sp): Note that variable is unused.
6263 2004-05-11 Andrew Cagney <cagney@redhat.com>
6265 * infrun.c (step_over_function): Delete function.
6266 (handle_step_into_function): Use insert_step_resume_breakpoint.
6267 (insert_step_resume_breakpoint): Fix assertion.
6269 2004-05-11 Nick Roberts <nickrob@gnu.org>
6271 * utils.c (defaulted_query): Just use the normal query input type
6272 when printing the annotations.
6274 2004-05-11 Andrew Cagney <cagney@redhat.com>
6276 * infrun.c (handle_inferior_event): Simplify code handling
6277 step-into or return-from a signal trampoline.
6279 2004-05-11 Andrew Cagney <cagney@redhat.com>
6281 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6282 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6284 2004-05-10 Jim Blandy <jimb@redhat.com>
6286 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6287 with a call to internal_error.
6289 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6290 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6291 processor variant lacks those registers.
6292 (ppc_floating_point_unit_p): Change description to make it clear
6293 that this returns info about the ISA, not the ABI.
6294 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6295 return true or false by checking tdep->ppc_fp0_regnum and
6296 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6297 arch/mach switching done in rs6000_gdbarch_init; it's better to
6298 keep that logic there, and just check the results here.
6299 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6300 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6301 floating-point registers.
6302 (ppc_supply_fpregset, ppc_collect_fpregset)
6303 (rs6000_push_dummy_call, rs6000_extract_return_value)
6304 (rs6000_store_return_value): Assert that we have floating-point
6306 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6307 (rs6000_frame_cache): Don't note the locations at which
6308 floating-point registers were saved if we have no fprs.
6309 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6311 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6312 (store_regs_user_thread, store_regs_kernel_thread): Only call
6313 supply_fprs / fill_fprs if we actually have floating-point
6315 (special_register_p): Check ppc_fpscr_regnum before matching
6317 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6318 supply / collect fpscr if we don't have it.
6319 * ppc-bdm.c: #include "gdb_assert.h".
6320 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6321 have floating-point registers, since I can't test this code on
6322 FP-free systems to adapt it.
6323 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6324 fpscr and floating point register numbers if they don't exist.
6325 (fetch_register): Assert that we have floating-point registers
6326 before we reach the code that handles them.
6327 (store_register): Same. And use tdep instead of calling
6329 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6331 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6332 fprs and fpscr if we don't have them.
6333 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6335 * ppcnbsd-nat.c: #include "gdb_assert.h".
6336 (getfpregs_supplies): Assert that we have floating-point registers.
6337 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6338 * ppcobsd-tdep.c: #include "gdb_assert.h".
6339 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6340 have floating-point registers.
6341 * rs6000-nat.c (regmap): Don't match against the fpscr and
6342 floating point register numbers if they don't exist.
6343 (fetch_inferior_registers, store_inferior_registers,
6344 fetch_core_registers): Only fetch / store / supply the
6345 floating-point registers and the fpscr if we have them.
6346 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6347 (ppcobsd-tdep.o): Update dependencies.
6349 2004-05-10 Andrew Cagney <cagney@redhat.com>
6351 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6352 (context_switch): Do not switch through_sigtramp_breakpoint.
6353 * gdbthread.h (save_infrun_state, load_infrun_state)
6354 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6355 and structure member.
6356 * thread.c (load_infrun_state, save_infrun_state): Update.
6358 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6360 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6362 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6364 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6366 * aclocal.m4: Regenerate.
6368 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6370 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6372 2004-05-10 Andrew Cagney <cagney@redhat.com>
6374 * infrun.c (check_sigtramp2): Delete function.
6375 (handle_inferior_event): When single stepping, and taking a
6376 signal, set a breakpoint at the signal return address. Delete
6377 redundant calls to check_sigtramp2.
6378 (insert_step_resume_breakpoint): New function.
6379 (through_sigtramp_breakpoint, handle_inferior_event)
6380 (follow_exec, wait_for_inferior, fetch_inferior_event)
6381 (currently_stepping, keep_going): Delete most uses of
6382 through_sigtramp_breakpoint, not that it should be deleted.
6383 (delete_breakpoint_current_contents): Delete function.
6385 2004-05-10 Randolph Chung <tausq@debian.org>
6387 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6389 * config/pa/tm-linux.h: New file.
6391 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6393 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6394 of prefixes. Don't print the prefix twice in the CLI.
6396 2004-05-10 Jim Blandy <jimb@redhat.com>
6398 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6399 collect all the gprs.
6401 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6402 loop collecting gprs.
6404 2004-05-09 Andrew Cagney <cagney@redhat.com>
6406 * remote-vx.c (net_step): Delete step-range code.
6407 * remote.c (remote_resume, init_all_packet_configs)
6408 (set_remote_protocol_E_packet_cmd)
6409 (show_remote_protocol_E_packet_cmd)
6410 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6411 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6412 (show_remote_protocol_e_packet_cmd): Ditto.
6414 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6416 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6418 * hppa-tdep.h: Update copyright year.
6419 (struct trad_frame_saved_reg): Add opaque declaration.
6421 * amd64-tdep.c (amd64_return_value): Implement
6422 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6424 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6425 (m68k_value_to_register): New functions.
6426 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6429 * defs.h (enum return_value_convention): Add
6430 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6431 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6432 * infcmd.c (legacy_return_value): New function.
6433 (print_return_value): Rwerite to implement
6434 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6435 * values.c (using_struct_return): Check for inequality to
6436 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6437 RETURN_VALUE_STRUCT_CONVENTION.
6438 * i386-tdep.c (i386_return_value): Implement
6439 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6441 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6442 include "symtab.h", "opcode/vax.h" and "inferior.h".
6443 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6444 to read_memory_unsigned_integer.
6445 (vax_gdbarch_init): Reorder.
6446 (_initialize_vax_tdep): Spell out prototype.
6447 * Makefile.in (vax-tdep.o): Update dependencies.
6449 2004-05-08 Andrew Cagney <cagney@redhat.com>
6451 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6452 * target.c (target_detach, target_disconnect): Ditto.
6454 * infcall.c (call_function_by_hand): When no
6455 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6456 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6457 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6458 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6459 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6461 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6462 * gdbarch.h, gdbarch.c: Re-generate.
6463 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6464 deprecated_fix_call_dummy.
6465 * v850-tdep.c (v850_gdbarch_init): Ditto.
6466 * infcall.c (call_function_by_hand): Do not call
6467 DEPRECATED_FIX_CALL_DUMMY.
6469 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6470 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6471 * gdbarch.h, gdbarch.c: Re-generate.
6472 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6473 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6474 deprecated_sizeof_call_dummy_words.
6475 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6476 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6477 * v850-tdep.c (v850_gdbarch_init): Ditto.
6478 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6479 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6480 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6481 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6482 * arch-utils.h (legacy_call_dummy_words)
6483 (legacy_sizeof_call_dummy_words): Delete declarations.
6484 * arch-utils.c (legacy_call_dummy_words)
6485 (legacy_sizeof_call_dummy_words): Delete variables.
6487 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6488 * gdbarch.h, gdbarch.c: Re-generate.
6489 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6490 * infcall.c (call_function_by_hand): Eliminate call to
6491 DEPRECATED_PUSH_DUMMY_FRAME.
6492 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6494 (ns32k_push_dummy_frame): Delete function.
6496 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6497 deprecated_call_dummy_breakpoint_offset or
6498 deprecated_call_dummy_start_offset.
6499 * dummy-frame.c, arm-tdep.c: Update comments.
6500 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6501 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6502 * gdbarch.h, gdbarch.c: Re-generate.
6504 * infcall.c (legacy_push_dummy_code): Delete function.
6505 (push_dummy_code): Delete call.
6507 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6508 * gdbarch.h, gdbarch.c: Re-generate.
6509 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6510 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6511 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6512 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6514 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6515 (struct frame_info): Delete opaque declaration.
6516 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6517 * frame.c (get_frame_type): Delete call.
6519 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6521 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6522 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6524 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6526 * alphanbsd-tdep.c: Include "gdb_string.h".
6527 * armnbsd-tdep.c: Update copyright year.
6528 Include "gdb_string.h".
6529 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6532 * delta68-nat.c: Remove file.
6533 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6534 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6535 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6536 (delta68-nat.o): Remove dependency.
6538 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6540 (m68k_gdbarch_init): Don't set
6541 deprecated_frameless_function_invocation.
6543 2004-05-07 Randolph Chung <tausq@debian.org>
6545 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6546 read_memory_nobpt for code reading when doing frame unwinding.
6547 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6549 2004-05-07 Randolph Chung <tausq@debian.org>
6551 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6552 instead of sp, handle sigaltstack case.
6553 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6554 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6555 signal handler and not that of the caller.
6556 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6557 hppa_linux_sigtramp_find_sigcontext.
6559 2004-05-07 Randolph Chung <tausq@debian.org>
6561 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6563 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6564 * hppa-linux-nat.c (fetch_register, store_register): Define.
6565 (fetch_inferior_registers, store_inferior_registers): Define.
6566 (supply_gregset): Add comment and clean up some unneeded code.
6567 (fill_gregset): Add comment and fix so that it saves registers in
6568 the right place in the gregset.
6569 (fill_fpregset): Fix buffer overrun problem.
6570 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6572 2004-05-07 Randolph Chung <tausq@debian.org>
6574 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6575 do common handling of the pcoqt register.
6576 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6577 to use helper function.
6578 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6579 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6580 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6581 generic fallback unwinder when all else fails.
6582 (hppa_gdbarch_init): Add fallback sniffer.
6583 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6584 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6585 to use helper function.
6587 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6589 * config/djgpp/fnchange.lst: Add translation rules for
6590 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6592 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6594 * frame.c (get_prev_frame_1): Work around GCC bug.
6595 * frame.h: Add comment about GCC bug.
6597 2004-05-07 Andrew Cagney <cagney@redhat.com>
6599 * observer.c: Include "commands.h" and "gdbcmd.h".
6600 (observer_debug, _initialize_observer): Add the
6601 command "set/show debug observer".
6602 * observer.sh: When observer debugging, log notify calls.
6603 * Makefile.in (observer.o): Update dependencies.
6605 2004-05-07 Jason Molenda (jmolenda@apple.com)
6607 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6609 2004-05-07 Jim Blandy <jimb@redhat.com>
6611 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6612 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6613 to recognize gpr regnums, instead of assuming that
6614 tdep->ppc_fp0_regnum marks the end of the general-purpose
6617 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6618 the given architecture has floating-point registers.
6620 2004-05-07 Andrew Cagney <cagney@redhat.com>
6622 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6624 * gdbarch.h, gdbarch.c: Re-generate.
6625 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6626 deprecated_use_generic_dummy_frames.
6628 2004-05-07 Brian Ford <ford@vss.fsi.com>
6630 * NEWS: Mention Cygwin DWARF 2 support.
6632 2004-05-07 Andrew Cagney <cagney@redhat.com>
6634 * objfiles.h (struct entry_info): Delete unused fields
6635 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6636 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6637 * mipsread.c (mipscoff_symfile_read): Update.
6638 * mdebugread.c (parse_partial_symbols): Update.
6639 * dwarfread.c (read_file_scope): Update.
6640 * dwarf2read.c (read_file_scope): Update.
6641 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6642 * coffread.c (complete_symtab): Update.
6644 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6646 * infcall.c (_initialize_infcall): Fix typo.
6648 2004-05-07 Andrew Cagney <cagney@redhat.com>
6650 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6651 * command.h (add_setshow_zinteger_cmd): Declare.
6653 2004-05-06 Randolph Chung <tausq@debian.org>
6655 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6656 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6657 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6658 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6659 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6660 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6661 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6663 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6664 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6665 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6666 (hppa64_hpux_frame_find_saved_regs_in_sig)
6667 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6668 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6669 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6670 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6671 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6672 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6673 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6674 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6675 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6676 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6677 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6678 (hppa32_register_type, hppa_cannot_store_register)
6679 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6680 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6681 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6682 * pa64solib.c (pa64_solib_have_load_event)
6683 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6684 (pa64_solib_unloaded_library_pathname): Likewise.
6685 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6686 (som_solib_library_pathname): Likewise.
6688 2004-05-05 Jim Ingham <jingham@apple.com>
6690 * breakpoint.c (create_breakpoints): Copy the ignore count and
6691 thread id over from the pended breakpoint to the actual
6694 2004-05-05 Andrew Cagney <cagney@redhat.com>
6696 * gdbarch.sh (PARM_BOUNDARY): Delete.
6697 gdbarch.h, gdbarch.c: Re-generate.
6698 * valops.c (PARM_BOUNDARY): Delete macro.
6699 (value_push): Delete PARM_BOUNDARY code.
6700 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6702 2004-05-04 Jim Blandy <jimb@redhat.com>
6704 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6705 Don't assume that the gprs, fprs, and UISA sprs are
6706 contiguous, start at register number zero, and end with fpscr.
6707 Instead, use the numbers from the tdep structure.
6709 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6710 should no longer be used in code specific to the RS6000 and its
6712 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6713 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6714 tdep->ppc_fp0_regnum.
6715 (ppc_supply_fpregset, ppc_collect_fpregset)
6716 (rs6000_push_dummy_call, rs6000_extract_return_value)
6717 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6718 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6720 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6721 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6723 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6724 bdm_ppc_store_registers): Same.
6725 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6726 (store_register, fill_fpregset): Same.
6727 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6728 (ppc_linux_supply_fpregset): Same.
6729 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6730 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6732 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6733 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6734 ppc64_sysv_abi_return_value): Same.
6735 * rs6000-nat.c (regmap, fetch_inferior_registers)
6736 (store_inferior_registers, fetch_core_registers): Same.
6738 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6740 * m68knbsd-nat.c: Remove file.
6741 * m68knbsd-tdep.c: Remove file.
6742 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6744 * configure.host: Add m68k-*-netbsdelf*.
6745 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6746 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6747 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6749 * config/m68k/nbsdelf.mh: New file.
6750 * config/m68k/nbsd.mt: New file.
6751 * config/m68k/nbsdaout.mt: Remove file.
6752 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6753 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6754 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6755 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6756 (use_struct_convention): Remove prototype.
6757 (USE_STRUCT_CONVENTION): Remove define.
6758 * config/m68k/xm-nbsd.h: Remove file.
6760 2004-05-04 Michael Snyder <msnyder@redhat.com>
6762 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6763 reg_struct_return method (as gcc usually does for cross targets).
6765 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6767 Committed by Andrew Cagney.
6768 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6769 alignment padding when accessing ucontext struct members.
6771 2004-05-04 Jim Blandy <jimb@redhat.com>
6773 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6774 'ppc_gplast_regnum' member.
6775 (ppc_num_gprs): New enum constant.
6776 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6777 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6778 * rs6000-nat.c (regmap, fetch_inferior_registers,
6779 store_inferior_registers): Same.
6780 * rs6000-tdep.c (e500_pseudo_register_read)
6781 (e500_pseudo_register_write): Same.
6782 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6784 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6785 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6786 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6787 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6789 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6791 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6792 * rs6000-nat.c (regmap, fetch_inferior_registers)
6793 (store_inferior_registers): Same.
6795 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6798 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6800 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6801 failure detected by recent versions of GCC.
6802 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6803 to be consistent with the usage in dwarf2_create_include_psymtab.
6805 2004-05-03 Michael Snyder <msnyder@redhat.com>
6807 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6808 (heuristic_proc_start): Whitespace cleanup.
6810 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6812 * sun3-nat.c: Remove file.
6813 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6815 (ALLDEPFILES): Remove sun3-nat.c.
6816 (sun3-nat.o): Remove dependencies.
6818 * i386-interix-nat.c, i386-interix-tdep.c,
6819 config/i386/nm-interix.h, config/i386/interix.mh,
6820 config/i386/interix.mt: Remove files.
6821 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6824 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6826 * m68k-tdep.h (struct gdbarch_tdep): Add member
6827 struct_value_regnum.
6828 (m68k_svr4_init_abi): New prototype.
6829 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6830 different calling conventions.
6831 (m68k_extract_return_value): Remove code dealing with single-field
6833 (m68k_store_return_value): Remove code dealing with single-field
6834 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6835 (m68k_extract_struct_value_address): Remove function.
6836 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6837 (m68k_reg_struct_return_p, m68k_return_value)
6838 (m68k_svr4_return_value): New functions.
6839 (m68k_use_struct_convention): Remove function.
6840 (m68k_push_dummy_call): Use new struct_value_regnum member of
6841 `struct gdbarch_tdep' instead of hardcoded register number to
6843 (m68k_svr4_init_abi): New function.
6844 (m68k_gdbarch_init): Don't set extract_return_value,
6845 store_return_values, deprecated_extract_struct_value_address and
6846 use_struct_convention. Set return_value instead. Initialize new
6847 struct_value_regnum member of `struct gdbarch_tdep'.
6848 * m68klinux-tdep.c: Update copyright year.
6849 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6850 (m68k_linux_extract_struct_value_address): Remove function.
6851 (m68k_linux_init_abi): Don't set extract_return_value,
6852 store_return_values, deprecated_extract_struct_value_address and
6853 use_struct_convention. Call m68k_svr4_init_abi but override the
6854 new struct_value_regnum member of `struct gdbarch_tdep'.
6855 * Makefile.in (m68k-tdep.o): Update dependencies.
6857 2004-05-03 J. Brobecker <brobecker@gnat.com>
6859 * dwarf2read.c (line_header): Add new included_p field in
6861 (partial_die_info): New field has_stmt_list. New field line_offset.
6862 (dwarf2_create_include_psymtab): New function.
6863 (dwarf2_build_include_psymtabs): New function.
6864 (add_file_name): Add forward declaration. Initialize new field.
6865 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6866 to be able to determine the list of files included by the
6867 given unit, and build their associated psymtabs.
6868 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6870 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6871 (read_file_scope): Update call to dwarf_decode_lines.
6872 (read_partial_die): Handle DW_AT_stmt_list attributes.
6874 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6877 * configure.in: Revert special case for osf5.*.
6878 * configure: Regenerate.
6880 2004-05-02 Jim Blandy <jimb@redhat.com>
6882 Move the symbol-file-from-memory functions into their own file.
6883 * symfile-mem.c, symfile-mem.h: New files.
6884 * symfile.c (symbol_file_add_from_bfd): New function.
6885 (symbol_file_add): Call symbol_file_add_from_bfd.
6886 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6887 Moved to symfile-mem.c.
6888 (_initialize_symfile): Move definition of
6889 add-symbol-file-from-memory command to symfile-mem.c.
6890 * symfile.h (symbol_file_add_from_bfd): New declaration.
6891 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6892 * config/powerpc/linux.mt (TDEPFILES): Same.
6893 * Makefile.in (SFILES): Add symfile-mem.c.
6894 (symfile_mem_h): New variable.
6895 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6896 (symfile-mem.o): New rule.
6898 2004-05-01 Andrew Cagney <cagney@redhat.com>
6900 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6901 frame_find_by_id instead of frame_relative_level.
6902 (do_enable_breakpoint): Ditto.
6903 * thread.c: Update copyright.
6904 (info_threads_command): Ditto, simplify.
6906 * frame.c (deprecated_generic_get_saved_register): Delete
6907 function, moved to "xstormy16-tdep.c".
6908 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6909 deprecated_generic_get_saved_register from "frame.c".
6910 (xstormy16_frame_saved_register): Call
6911 xstormy16_get_saved_register.
6912 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6914 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6915 * frame.h (deprecated_generic_get_saved_register): Delete.
6917 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6919 * dwarfread.c: Update documentation on the state of dwarf-1.
6921 2004-05-01 Andrew Cagney <cagney@redhat.com>
6923 * stack.c (select_frame_command): Delete call to
6924 frame_relative_level.
6925 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6927 (frame_info): Do not print FRAMELESS.
6928 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6929 (catch_info): Delete #if0 code.
6931 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6932 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6933 of frame_relative_level.
6934 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6936 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6937 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6938 frame_relative_level.
6940 * frame.h (deprecated_set_frame_type): Delete declaration.
6941 * frame.c (deprecated_set_frame_type): Delete function, update
6944 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6945 * gdbarch.h, gdbarch.c: Re-generate.
6946 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6947 (shnbsd_pc_in_sigtramp): Delete.
6948 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6950 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6952 * frame.h: Update comments.
6953 * ppc-linux-tdep.c: Update comments.
6954 * breakpoint.c (bpstat_what): Update comments.
6956 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6957 m68klinux-tdep.o's dependencies, were previously added to
6960 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6961 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6962 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6963 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6964 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6966 * Makefile.in (m68klinux-nat.o): Update dependencies.
6967 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6968 (m68k_linux_sigtramp_frame_cache)
6969 (m68k_linux_sigtramp_frame_this_id)
6970 (m68k_linux_sigtramp_frame_prev_register)
6971 (m68k_linux_sigtramp_frame_unwind)
6972 (m68k_linux_sigtramp_frame_sniffer)
6973 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6974 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6975 names, use trad-frame.h.
6976 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6977 (struct m68k_sigtramp_info): Delete.
6978 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6979 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6980 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6981 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6984 * infrun.c (check_sigtramp2): Delete check for
6985 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6987 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6989 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6991 2004-05-01 Andrew Cagney <cagney@redhat.com>
6993 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6994 (frv_linux_sigtramp_frame_cache)
6995 (frv_linux_sigtramp_frame_this_id)
6996 (frv_linux_sigtramp_frame_prev_register)
6997 (frv_linux_sigtramp_frame_unwind)
6998 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6999 include "linux" in function and variable names, directly call
7000 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7001 the latest trad-frame code.
7002 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7003 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7004 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7005 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7006 * frv-tdep.c (frv_sigtramp_frame_cache)
7007 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7008 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7010 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7011 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7012 (frv_set_sigcontext_reg_addr): Delete function.
7014 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7015 (DEPRECATED_SIGTRAMP_END): Delete.
7016 * gdbarch.h, gdbarch.c: Re-generate.
7017 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7018 * config/vax/tm-vaxbsd.h: Update copyright.
7019 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7020 (DEPRECATED_IN_SIGTRAMP): Define.
7021 * config/m68k/tm-nbsd.h: Update copyright.
7022 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7023 (DEPRECATED_IN_SIGTRAMP): Define.
7025 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7027 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7028 encondings. Fixes PR gdb/1628.
7030 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7031 DW_CFA_restore state without a matching DW_CFA_remember_state
7032 instead of aborting. Fixes PR backtrace/1589.
7034 2004-04-30 Joel Brobecker <brobecker@gnat.com>
7036 * MAINTAINERS: Add self as AIX maintainer.
7037 Update my e-mail address in write-after-approval section.
7039 2004-04-30 Andrew Cagney <cagney@redhat.com>
7041 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7042 (legacy_get_prev_frame): Ditto.
7044 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7045 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7046 * mipsread.c (sigtramp_address): Delete extern variable.
7047 (mipscoff_new_init): Delete reference.
7048 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7049 (fixup_sigtramp): Delete function.
7050 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7051 (fixup_sigtramp): Delete declarations.
7053 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7054 deprecated_pc_in_sigtramp.
7055 (ppcnbsd_pc_in_sigtramp): Delete function.
7057 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7059 * config/m68k/nm-nbsd.h: Tweak comments.
7060 * config/m68k/nm-nbsdaout.h: Likewise.
7062 2004-04-30 Andrew Cagney <cagney@redhat.com>
7064 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7065 legacy_pc_in_sigtramp.
7066 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7068 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7070 Add OpenBSD/m68k support.
7071 * NEWS (New native configurations): Mention OpenBSD/m68k.
7072 * m68kbsd-tdep.c: New file.
7073 * m68kbsd-nat.c: New file.
7074 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7075 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7076 * configure.host: Add m68k-*-openbsd.
7077 * configure.tgt: Add m68k-*-openbsd.
7078 * config/m68k/tm-obsd.h: New file.
7079 * config/m68k/obsd.mt: New file.
7080 * config/m68k/obsd.mh: New file.
7081 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7084 2004-04-30 Andrew Cagney <cagney@redhat.com>
7086 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7087 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7089 2004-04-30 Mark Kettenis <kettenis@gnu.org>
7091 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7092 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7094 2004-04-30 Brian Ford <ford@vss.fsi.com>
7096 Revert 2004-04-16 change.
7097 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7098 (i386_coff_init_abi): Remove.
7099 * i386-tdep.h (i386_coff_init_abi): Remove.
7100 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7102 2004-04-30 Andrew Cagney <cagney@redhat.com>
7104 * blockframe.c (find_pc_partial_function): Delete use of
7105 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7106 DEPRECATED_SIGTRAMP_END.
7108 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7109 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7110 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7111 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7112 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7114 * defs.h (deprecated_inside_entry_file): Delete declaration.
7115 * blockframe.c (deprecated_inside_entry_file): Delete function.
7116 (legacy_frame_chain_valid): Delete call.
7117 * sh64-tdep.c (sh64_frame_chain): Delete call.
7118 * objfiles.h: Update comments.
7119 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7121 * frame.c (get_prev_frame): Delete call, update comments.
7123 2004-04-30 Brian Ford <ford@vss.fsi.com>
7125 * MAINTAINERS (Write After Approval): Add myself.
7127 2004-04-30 Andrew Cagney <cagney@redhat.com>
7129 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7130 * gdbarch.h, gdbarch.c: Re-generate.
7131 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7134 2004-04-30 Andrew Cagney <cagney@redhat.com>
7136 * gdb-events.sh (selected_thread_changed)
7137 (selected_frame_level_changed, target_changed): Delete.
7138 * gdb-events.h, gdb-events.c: Re-generate.
7139 * valops.c (value_assign): Update.
7140 * stack.c (select_frame_command, up_silently_base)
7141 (down_silently_base): Update.
7143 2004-04-29 Andrew Cagney <cagney@redhat.com>
7145 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7146 registers correctly.
7147 (print_gp_register_row, mips32_heuristic_proc_desc)
7148 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7149 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7150 references to mips_isa_regsize.
7152 2004-04-29 Andrew Cagney <cagney@redhat.com>
7154 * mips-tdep.c (struct gdbarch_tdep): Delete
7155 mips_fp_register_double.
7156 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7158 (mips_gdbarch_init): Do not set mips_fp_register_double.
7159 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7161 2004-04-29 Joel Brobecker <brobecker@gnat.com>
7163 Committed by Andrew Cagney.
7164 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7167 2004-04-29 Andrew Cagney <cagney@redhat.com>
7169 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7170 gdbarch, use mips_abi, update callers.
7171 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7172 mips_abi_regsize, update callers.
7173 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7174 mips_default_abi_regsize.
7175 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7176 mips_default_abi_regsize.
7178 2004-04-29 Andrew Cagney <cagney@redhat.com>
7180 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7181 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7182 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7183 mips_default_abi_regsize.
7184 (mips_isa_regsize): Rename mips_regisze.
7185 * mipsnbsd-tdep.c: Update.
7186 * mips-linux-tdep.c: Update.
7187 * irix5-nat.c: Update.
7188 * mips-tdep.h (mips_isa_regsize): Update.
7190 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7191 Delete all disabled code.
7192 * gdb-events.h, gdb-events.c: Re-generate.
7194 2004-04-19 Jerome Guitton <guitton@gnat.com>
7195 Mark Kettenis <kettenis@gnu.org>
7197 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7198 the function begins with a branch instruction.
7200 2004-04-29 Mark Kettenis <kettenis@gnu.org>
7202 * i386-tdep.c: Fix spelling mistakes.
7204 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7205 Andrew Cagney <cagney@redhat.com>
7207 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7209 * acconfig.h: Provide default _KMEMUSER value.
7210 * config.in, configure: Re-generate.
7211 * NEWS: Mention fix.
7213 2004-04-24 Randolph Chung <tausq@debian.org>
7215 * configure.host (hppa*-*-linux*): New target.
7216 * configure.tgt (hppa*-*-linux*): Likewise.
7217 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7218 gdbarch_init_osabi() call earlier so that osabi-specific frame
7219 unwinders can be registered first.
7220 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7222 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7223 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7224 * config/pa/linux.mh: New file.
7225 * config/pa/linux.mt: New file.
7226 * config/pa/nm-linux.h: New file.
7227 * config/pa/xm-linux.h: New file.
7228 * hppa-linux-nat.c: New file.
7229 * hppa-linux-tdep.c: New file.
7231 2004-04-28 Randolph Chung <tausq@debian.org>
7233 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7235 (hppa32_push_dummy_call): Fix small struct and floating point argument
7236 passing, and make sure the stack frame is properly aligned.
7238 2004-04-28 Andrew Cagney <cagney@redhat.com>
7240 * stack.c (print_stack_frame): Fix description.
7242 * NEWS: Mention gdb/gdbserver/configure execute permission
7243 changed. PR server/519.
7245 2004-04-28 Andrew Cagney <cagney@redhat.com>
7247 * stack.c (print_stack_frame_stub): Delete declaration.
7248 (struct print_stack_frame_args, print_stack_frame)
7249 (print_frame_info, print_frame): Replace "source" with print what.
7250 Replace "print" with "print_level". Replace "args" with
7252 * frame.h (show_and_print_stack_frame, print_stack_frame)
7253 (print_frame_info): Update declarations.
7254 * stack.c (select_and_print_frame, frame_command)
7255 (current_frame_command, up_command, down_command): Update calls -
7256 use get_selected_frame, pass "enum print_what" for source, do not
7257 call frame_relative_level.
7258 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7259 * remote-rdp.c (remote_rdp_open): Ditto.
7260 * remote-mips.c (common_open): Ditto.
7261 * remote-e7000.c (e7000_start_remote): Ditto.
7262 * ocd.c (ocd_start_remote): Ditto.
7263 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7264 * infrun.c (normal_stop): Ditto.
7265 * inflow.c (kill_command): Ditto.
7266 * infcmd.c (finish_command): Ditto.
7267 * corelow.c (core_open): Ditto.
7268 * tracepoint.c (finish_tfind_command): Ditto.
7269 * thread.c (info_threads_command, info_threads_command)
7270 (restore_current_thread, do_captured_thread_select): Ditto.
7271 * ada-tasks.c (task_command): Ditto.
7273 2004-04-26 Orjan Friberg <orjanf@axis.com>
7275 * frame.c: Include "observer.h".
7276 (frame_observer_target_changed): New function.
7277 (_initialize_frame): Attach target_changed observer.
7278 * regcache.c: Include "observer.h".
7279 (regcache_observer_target_changed): New function.
7280 (_initialize_regcache): Attach target_changed observer.
7281 * valops.c: Include "observer.h".
7282 (value_assign): Notify target_changed event when modifying register.
7283 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7285 2004-04-26 Orjan Friberg <orjanf@axis.com>
7287 From Paul Koning <pkoning@equallogic.com>:
7288 * breakpoint.c (free_valchain): New function.
7289 (insert_bp_location, delete_breakpoint): Use free_valchain.
7290 (remove_breakpoint): Do not remove the valchain.
7291 (bpstat_stop_status): If not stopped by watchpoint, skip
7292 watchpoints when generating stop status list.
7293 * infrun.c (handle_inferior_event): Make
7294 stepped_after_stopped_by_watchpoint a global variable.
7295 * remote.c (remote_stopped_data_address): Return watch data
7296 address rather than zero if stepped_after_stopped_by_watchpoint is
7299 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7302 * configure.in: Check for curses after termcap.
7303 On osf5.*, do not check for ncurses.
7304 * configure: Regenerate.
7306 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7308 * ppcobsd-nat.c: Include "ppc-tdep.h".
7309 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7311 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7312 Fixes PR tdep/1623 and PR tdep/1624.
7314 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7316 * xmodem.h, xmodem.c: Remove files.
7317 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7319 2004-04-23 Randolph Chung <tausq@debian.org>
7321 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7322 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7323 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7324 for handling stackless frames.
7325 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7327 2004-04-23 Randolph Chung <tausq@debian.org>
7329 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7330 starts at a pc before the frame is created.
7332 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7334 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7336 2004-04-23 Jerome Guitton <guitton@gnat.com>
7338 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7339 use convert_typed_floating to get the appropriate format.
7341 2004-04-22 Randolph Chung <tausq@debian.org>
7343 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7344 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7345 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7346 (hppa_sign_extend): Add prototype.
7347 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7348 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7349 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7350 hppa targets will also use these functions.
7351 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7352 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7353 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7354 (hppa_gdbarch_init): Remove gdbarch setting of
7355 skip_trampoline_code, in_solib_call_trampoline and
7356 in_solib_return_trampoline.
7357 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7358 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7359 hppa_in_solib_call_trampoline.
7360 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7361 Moved from hppa-tdep.c.
7362 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7363 in_solib_call_trampoline and in_solib_return_trampoline.
7365 2004-04-22 Randolph Chung <tausq@debian.org>
7367 * hppa-tdep.c (hppa_debug): New variable.
7368 (find_unwind_entry, hppa_frame_cache): Add debug output.
7369 (_initialize_hppa_tdep): Add command to set debug flag.
7371 2004-04-22 Andrew Cagney <cagney@redhat.com>
7373 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7375 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7376 signal trampoline unwinder.
7377 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7379 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7381 Add OpenBSD/powerpc support.
7382 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7383 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7384 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7385 (ppc_collect_fpregset): New prototypes.
7386 * ppcobsd-nat.c: New file.
7387 * ppcobsd-tdep.c: New file.
7388 * ppcobsd-tdep.h: New file.
7389 * rs6000-tdep.c: Include "regset.h".
7390 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7391 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7393 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7394 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7395 (rs6000-tdep.o): Update dependencies.
7396 * configure.host: Add powerpc-*-openbsd.
7397 * configure.tgt: Add powerpc-*-openbsd.
7398 * config/powerpc/obsd.mh: New file.
7399 * config/powerpc/nm-obsd.h: New file.
7400 * config/powerpc/obsd.mt: New file.
7402 2004-04-22 Andrew Cagney <cagney@redhat.com>
7404 * frame.h (show_frame_info): Delete declaration.
7406 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7407 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7408 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7409 * frv-tdep.c (frv_frame_this_id): Ditto.
7410 * avr-tdep.c (avr_frame_this_id): Ditto.
7412 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7414 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7416 2004-04-22 Jim Blandy <jimb@redhat.com>
7418 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7419 register number zero.
7421 2004-04-21 Michael Snyder <msnyder@redhat.com>
7423 * mips-tdep.c (heuristic_proc_start):
7424 Warning() already prefixes "Warning: ".
7426 2004-04-21 Andrew Cagney <cagney@redhat.com>
7428 * annotate.h (deprecated_annotate_starting_hook)
7429 (deprecated_annotate_stopped_hook)
7430 (deprecated_annotate_exited_hook)
7431 (deprecated_annotate_signal_hook)
7432 (deprecated_annotate_signalled_hook): Deprecate.
7433 * tracepoint.h (deprecated_create_tracepoint_hook)
7434 (deprecated_delete_tracepoint_hook)
7435 (deprecated_modify_tracepoint_hook)
7436 (deprecated_trace_find_hook)
7437 (deprecated_trace_start_stop_hook): Deprecate.
7438 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7439 * remote.h (deprecated_target_resume_hook)
7440 (deprecated_target_wait_loop_hook): Deprecate.
7441 * gdbcore.h (deprecated_exec_file_display_hook)
7442 (deprecated_file_changed_hook): Deprecate.
7443 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7444 * defs.h (deprecated_modify_breakpoint_hook)
7445 (deprecated_command_loop_hook, deprecated_show_load_progress)
7446 (deprecated_print_frame_info_listing_hook)
7447 (deprecated_query_hook, deprecated_warning_hook)
7448 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7449 (deprecated_delete_breakpoint_hook)
7450 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7451 (deprecated_readline_begin_hook, deprecated_readline_hook)
7452 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7453 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7454 (deprecated_context_hook, deprecated_target_wait_hook)
7455 (deprecated_attach_hook, deprecated_detach_hook)
7456 (deprecated_call_command_hook, deprecated_set_hook)
7457 (deprecated_error_hook, deprecated_error_begin_hook)
7458 (deprecated_ui_load_progress_hook): Deprecate.
7459 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7460 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7461 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7462 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7463 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7464 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7465 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7466 * annotate.c, aix-thread.c: Update.
7468 2004-04-21 Andrew Cagney <cagney@redhat.com>
7470 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7471 * vaxnbsd-tdep.c: Include "gdb_string.h".
7473 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7474 (add_symbol_file_from_memory_command): #if 0 function body, call
7477 2004-04-21 Andrew Cagney <cagney@redhat.com>
7479 * gdbcore.h: Update copyright.
7480 (deprecated_add_core_fns): Rename add_core_fns.
7481 * win32-nat.c (_initialize_core_win32): Update.
7482 * sun3-nat.c (_initialize_core_sun3): Update.
7483 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7484 * rs6000-nat.c (_initialize_core_rs6000): Update.
7485 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7486 * nto-tdep.c (_initialize_nto_tdep): Update.
7487 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7488 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7489 * mips-nat.c (_initialize_core_mips): Update.
7490 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7491 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7492 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7493 * lynx-nat.c (_initialize_core_lynx): Update.
7494 * irix5-nat.c (_initialize_core_irix5): Update.
7495 * i386-interix-nat.c (_initialize_core_interix): Update.
7496 * cris-tdep.c (_initialize_cris_tdep): Update.
7497 * corelow.c (deprecated_add_core_fns): Update.
7498 * core-regset.c (_initialize_core_regset): Update.
7499 * core-aout.c (_initialize_core_aout): Update.
7500 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7501 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7502 * alpha-nat.c (_initialize_core_alpha): Update.
7504 2004-04-21 Jim Blandy <jimb@redhat.com>
7506 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7508 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7510 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7512 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7513 (read_attribute_value): Update calls to dwarf_alloc_block.
7514 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7516 (psymtab_to_symtab_1): Likewise. Clean up using
7517 free_stack_comp_unit.
7518 (add_to_cu_func_list): Use the comp_unit_obstack.
7520 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7522 * dwarf2read.c (dwarf2_flag_true_p): New function.
7523 (die_is_declaration): Use the function above. Add some comments.
7525 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7527 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7528 architecture when registering sparcnbsd_core_osabi_sniffer.
7531 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7533 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7536 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7537 * i386-tdep.c: Correct register numbering scheme comments
7539 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7540 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7541 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7542 (i386_gdb_arch_init): Likewise.
7544 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7545 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7548 * m68k-tdep.h: Tweak comments.
7549 * m68k-tdep.c: Tweak comment.
7551 2004-04-17 Randolph Chung <tausq@debian.org>
7553 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7554 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7555 (hppa_hpux_som_init_abi): Set is_elf to 0.
7556 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7557 * hppa-tdep.c (low_text_segment_address): Remove global.
7558 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7559 section offset to calculate segment address.
7560 (internalize_unwinds): Define low_text_segment_address as local and
7561 pass to record_text_segment_lowaddr for ELF targets.
7562 (hppa_gdbarch_init): Zero fill tdep structure.
7563 (hppa_dump_tdep): Print tdep structure.
7564 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7566 2004-04-17 Randolph Chung <tausq@debian.org>
7568 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7569 (hppa_gdbarch_init): Set pseudo_register_read.
7570 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7571 * regcache.c (supply_register): Remove check for
7572 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7574 2004-04-17 Randolph Chung <tausq@debian.org>
7576 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7577 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7578 (hpread_adjust_stack_address): Move to hpread.c.
7579 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7580 obj_private_struct): Move from tm-hppa.h.
7581 * hpread.c (hppa-tdep.h): Include.
7582 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7583 (hpread_read_function_type, hpread_read_doc_function_type)
7584 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7586 * pa64solib.c (hppa-tdep.h): Include.
7587 * somsolib.c (hppa-tdep.h): Include.
7588 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7589 inferior_status): Remove unused forward declarations.
7590 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7591 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7592 obj_private_struct): Move to hppa-tdep.h.
7593 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7595 2004-04-17 Randolph Chung <tausq@debian.org>
7597 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7598 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7599 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7600 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7601 Remove forward declaration and make static.
7602 (hppa_reg_struct_has_addr): Remove.
7604 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7606 * observer.sh: Move comments in sed command to first column.
7608 2004-04-16 Jason Molenda (jmolenda@apple.com)
7610 * frame.c: Minor typeo corrections in comments.
7612 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7614 * observer.c (observer_test_first_notification_function): Update
7616 (observer_test_second_notification_function): Likewise.
7617 (observer_test_third_notification_function): Likewise.
7619 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7621 From Brian Ford <ford@vss.fsi.com>:
7622 * i386-tdep.c (i386_coff_init_abi): New function.
7623 * i386-tdep.h (i386_coff_init_abi): New prototype.
7624 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7625 register number translation functions for DWARF and DWARF 2.
7627 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7629 * dwarf2read.c: Back out my previous change, it was incorrect.
7631 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7633 * dwarf2read.c: Include "hashtab.h".
7634 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7636 (struct partial_die_info): Add comments. Use bitfields to reduce
7637 memory footprint. Add scope, scope_set, has_specification,
7638 spec_offset, die_parent, die_child, and die_sibling.
7639 (peek_die_abbrev): Add prototype.
7640 (partial_read_comp_unit_head): New function, broken out from
7641 dwarf2_build_psymtabs_hard.
7642 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7643 Use partial_read_comp_unit_head. Initialize the CU and
7644 comp_unit_obstack. Update calls to read_partial_die and
7645 scan_partial_symbols. Use free_stack_comp_unit and
7647 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7648 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7649 Update calls to helper functions. Remove NAMESPACE argument.
7651 (partial_die_parent_scope, partial_die_full_name): New functions.
7652 (add_partial_symbol): Remove namespace argument. Update call to
7653 pdi_needs_namespace. Use partial_die_full_name. Handle
7654 DW_TAG_namespace. Check has_namespace_info flag.
7655 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7656 tag. Handle namespaces.
7657 (add_partial_namespace, add_partial_enumeration): Simplify.
7658 (guess_structure_name): New function, derived from
7659 add_partial_structure.
7660 (add_partial_structure): Remove.
7661 (determine_class_name): Update comment.
7662 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7663 (is_type_tag_for_partial, load_partial_dies): New functions.
7664 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7665 Record specifications instead of following them immediately.
7666 (find_partial_die_in_comp_unit, find_partial_die)
7667 (fixup_partial_die, free_stack_comp_unit)
7668 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7669 (partial_die_hash, partial_die_eq): New functions.
7670 * Makefile.in (hashtab_h): Define.
7671 (dwarf2read.o): Update dependencies.
7672 (observer_inc, observer_h): Move to the correct section.
7674 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7676 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7677 (die_is_declaration): Use the function above. Add comment.
7679 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7681 * dwarf2read.c (read_structure_scope): Identify stub types
7682 using die_is_declaration() only.
7684 2004-04-15 Roland McGrath <roland@redhat.com>
7686 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7687 argument instead of NAME.
7688 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7689 in call to symbol_file_add_with_addrs_or_offsets.
7690 (build_addr_info): New function, helper for ...
7691 (symbol_file_add_from_memory): New function.
7692 (add_symbol_file_from_memory_command): New function using that.
7693 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7694 (pre_add_symbol_hook): Add const to argument type.
7695 * symfile.h (symbol_file_add_from_memory): Declare it.
7697 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7699 * NEWS (New native configurations): Mention OpenBSD/vax.
7700 * configure.host: Add vax-*-openbsd*.
7701 * config/vax/obsd.mh: New file.
7702 * config/vax/nm-obsd.h: New file.
7704 * vax-tdep.c: Include "regset.h".
7705 (vax_supply_gregset): New function.
7706 (vax_gregset): New variable.
7707 (vax_regset_from_core_section): New function.
7708 (vax_gdbarch_init): Set regset_from_core_section.
7709 * Makefile.in (vax-tdep.o): Update dependencies.
7711 2004-04-15 Andrew Cagney <cagney@redhat.com>
7713 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7714 (observer_normal_stop_notification_stub)
7715 (observer_attach_normal_stop, observer_detach_normal_stop):
7716 Delete, replaced by #include "observer.inc".
7717 * infrun.c (normal_stop): Pass "stop_bpstat" to
7718 observer_notify_normal_stop.
7719 * Makefile.in (observer_inc): Define.
7720 (observer.o): Update dependencies.
7721 (observer.h, observer.inc): New rules.
7722 * observer.h: Delete file.
7723 * observer.sh: New file.
7725 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7727 * vax-tdep.c (vax_frame_cache): Fix typo.
7729 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7731 * NEWS (New native configurations): Mention NetBSD/vax.
7732 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7733 * config/vax/nbsdelf.mh: New file.
7734 * config/vax/nbsdaout.mh: New file.
7735 * config/vax/nm-nbsd.h: New file.
7736 * config/vax/nm-nbsdaout.h: New file.
7738 * vaxnbsd-tdep.c: New file.
7739 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7740 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7741 * config/vax/nbsd.mt: New file.
7742 * config/vax/tm-nbsd.h: New file.
7744 * Makefile.in (vaxbsd-nat.o): New dependency.
7746 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7747 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7748 struct_addr arguments. Don't push return value address.
7749 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7750 arguments to vax_store_arguments. Store return value address in
7752 (vax_store_struct_return, vax_extract_return_value)
7753 (vax_store_return_value): Remove functions.
7754 (vax_return_value): New function.
7755 (vax_gdbarch_init): Set return value. Don't set
7756 deprecated_store_struct_return, deprecated_extract_struct_return
7757 and deprecated_store_return_value.
7759 2004-04-14 Andreas Schwab <schwab@suse.de>
7761 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7763 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7765 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7767 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7768 (vax_unwind_dummy_id): New functions.
7769 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7770 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7772 (vax_fix_call_dummy): Remove function.
7773 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7774 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7775 call_dummy_location, deprecated_call_dummy_words,
7776 deprecated_sizeof_call_dummy_words,
7777 deprecated_call_dummy_breakpoint_offset,
7778 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7779 and deprecated_dummy_write_sp.
7781 2004-04-13 David Carlton <carlton@kealia.com>
7783 * MAINTAINERS: Move myself to "paper trail" section.
7785 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7787 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7789 (vax_frame_init_saved_regs): Remove function.
7790 (vax_sigtramp_saved_pc): Remove function.
7791 (vax_frame_saved_pc): Remove function.
7792 (vax_frame_args_address): Remove function.
7793 (vax_frame_num_args): Rewrite.
7794 (vax_frame_chain): Remove function.
7795 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7797 (vax_pop_frame): Likewise.
7798 (vax_saved_pc_after_call): Remove function.
7799 (struct vax_frame_cache): New structure.
7800 (vax_frame_cache): New function.
7801 (vax_frame_this_id): New function.
7802 (vax_frame_prev_register): New function.
7803 (vax_frame_unwind): New variable.
7804 (vax_frame_sniffer): New function.
7805 (vax_frame_base_address): New function.
7806 (vax_frame_args_address): New function.
7807 (vax_frame_base): New variable.
7808 (vax_unwind_pc): New function.
7809 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7810 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7811 deprecated_frame_chain, deprecated_frame_saved_pc,
7812 deprecated_frame_args_address and
7813 deprecated_frame_init_saved_regs.
7814 * Makefile.in (vax-tdep.o): Update dependencies.
7816 * vaxbsd-nat.c: New file.
7818 * vax-tdep.h: Update copyright year. Adjust comments.
7819 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7820 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7821 (vax_regnum): New enum. Replacing...
7822 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7823 (VAX_PS_REGNUM): ... these removed macros.
7824 * vax-tdep.c (vax_register_name): Remove prototype.
7825 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7826 (vax_register_byte, vax_register_raw_size,
7827 vax_register_virtual_size, vax_register_virtual_type): Remove
7829 (vax_register_type): New function.
7830 (vax_breakpoint_from_pc): Reorganize.
7831 (vax_gdbarch_init): Set register_type. Don't set
7832 deprecated_register_size, deprecated_register_bytes,
7833 deprecated_register_byte, deprecated_register_raw_size,
7834 deprecated_max_register_raw_size,
7835 deprecated_register_virtual_size,
7836 deprecated_max_register_virtual_size and
7837 deprecated_register_virtual_type. Add comment on stack direction.
7839 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7841 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7842 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7843 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7845 2004-04-10 Randolph Chung <tausq@debian.org>
7847 * MAINTAINERS (write after approval): Add myself.
7849 2004-04-07 Randolph Chung <tausq@debian.org>
7851 * hppa-tdep.c (hppa_inner_than): Remove.
7852 (is_pa_2): Remove unused static variable.
7853 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7855 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7857 * language.h (language_defn): Add new la_post_parser field.
7858 * parser-defs.h (null_post_parser): New declaration (default for
7861 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7862 insert call to that function.
7863 (parse_exp_in_context): New function, including code formerly in
7864 parse_exp_1. Calls language-dependent post-parser after
7866 (parse_expression_in_context): New exported function.
7867 (null_post_parser): New definition.
7868 * expression.h (parse_expression_in_context): Add declaration.
7870 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7871 * c-lang.c (c_language_defn): Ditto.
7872 (cplus_language_defn): Ditto.
7873 (asm_language_defn): Ditto.
7874 (minimal_language_defn): Ditto.
7875 * f-lang.c (f_language_defn): Ditto.
7876 * jv-lang.c (java_language_defn): Ditto.
7877 * language.c (unknown_language_defn): Ditto.
7878 (auto_language_defn): Ditto.
7879 (local_language_defn): Ditto.
7880 * m2-lang.c (m2_language_defn): Ditto.
7881 * scm-lang.c (scm_language_defn): Ditto.
7882 * obj-lang.c (objc_language_defn): Ditto.
7884 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7886 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7887 (amd64nbsd_mcontext_addr): New function.
7888 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7889 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7890 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7892 * corelow.c (core_xfer_partial): Fix coding standards violation.
7893 Add support for TARGET_OBJECT_WCOOKIE.
7895 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7896 deprecated_pc_in_sigtramp.
7897 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7898 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7899 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7900 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7901 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7902 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7903 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7905 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7906 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7909 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7910 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7911 (amd64_collect_fxsave): Likewise.
7913 * i386-sol2-tdep.c: Include "gdb_string.h".
7914 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7916 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7918 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7920 * i386-sol2-tdep.c: Include "solib-svr4.h".
7921 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7922 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7923 * config/i386/tm-i386sol2.h: Include :solib.h".
7924 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7925 solib-svr4.o and solib-legacy.o.
7926 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7929 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7931 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7932 whether a register is supplied by PTRACE_GETFPREGS.
7933 (store_inferior_registers): Likewise.
7934 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7935 whether a register is supplied by PT_GETFPREGS.
7936 (store_inferior_registers): Likewise.
7938 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7939 * config/i386/linux64.mt (TDEPFILES): Likewise.
7941 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7943 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7944 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7945 the program counter is in the range specified by `struct
7947 * amd64-linux-tdep.c: Include "symtab.h".
7948 (amd64_linux_pc_in_sigtramp): Remove function.
7949 (amd64_linux_sigtramp_p): New function.
7950 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7951 deprecated_pc_in_sigtramp.
7952 * amd64nbsd-tdep.c: Include "symtab.h".
7953 (amd64nbsd_sigtramp_p): New function.
7954 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7955 deprecated_pc_in_sigtramp.
7956 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7958 (amd64obsd_pc_in_sigtramp): Remove function.
7959 (amd64obsd_sigtramp_p): New function.
7960 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7961 deprecated_pc_in_sigtramp.
7962 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7963 (i386bsd_pc_ins_sigtramp): Remove prototype.
7964 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7965 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7966 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7967 the program counter is in the range specified by `struct
7969 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7970 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7971 (i386_go32_pc_in_sigtramp): Remove function.
7972 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7973 Initialize TDEP->sigtramp_p.
7974 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7975 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7976 deprecated_pc_in_sigtramp.
7977 * i386-linux-tdep.c: Adjust comments.
7978 (i386_linux_pc_in_sigtramp): Remove function.
7979 (i386_linux_sigtramp_p): New function.
7980 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7981 deprecated_pc_in_sigtramp.
7982 * i386-nto-tdep.c: Update copyright year.
7983 (i386nto_pc_in_sigtramp): Remove function.
7984 (i386nto_sigtramp_p): New function.
7985 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7987 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7988 deprecated_pc_in_sigtramp.
7989 * i386-sol2-tdep.c: Update copyright year.
7990 (i386_sol2_pc_in_sigtramp): Remove function.
7991 (i386_sol2_sigtramp_p): New function.
7992 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7993 deprecated_pc_in_sigtramp.
7994 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7995 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7996 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7997 deprecated_sigtramp_start and deprecated_sigtramp_end.
7998 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7999 (i386nbsd_pc_in_sigtramp): Remove function.
8000 (i386nbsd_sigtramp_p): New function.
8001 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8002 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8003 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8004 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8005 (i386obsd_pc_in_sigtramp): Remove function.
8006 (i386obsd_sigtramp_p): New function.
8007 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8009 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8010 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8012 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8013 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8016 * config/i386/i386aout.mt: Remove file.
8018 * configure.tgt: Remove i[34567]86-*-go32*,
8019 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8020 and i[34567]86-*-isc*. Set gdb_target to i386 for
8021 i[34567]86-*-netware* and i[34567]86-*-*.
8022 * config/i386/i386.mt: New file.
8023 * config/i386/embed.mt: Remove file.
8024 * config/i386/go32.mt: Remove file.
8025 * config/i386/i386nw.mt: Remove file.
8026 * config/i386/i386v.mt: Remove file.
8027 * config/i386/tm-go32.h: Remove file.
8029 * tui/tui-hooks.c: Include "readline/readline.h" after
8030 "gdb_curses.h" instead of before.
8031 * tui/tui-io.c: Likewise.
8033 * tui/tui.c: Fix typo in comment.
8035 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8037 2004-04-08 Andrew Cagney <cagney@redhat.com>
8039 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8040 (deprecated_exception_support_initialized): Declare.
8041 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8042 (initialize_hp_cxx_exception_support)
8043 (child_enable_exception_callback): Update.
8044 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8045 (deprecated_exception_support_initialized): Rename
8046 deprecated_exception_catchpoints_are_fragile and
8047 deprecated_exception_support_initialized.
8048 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8050 * symtab.c (deprecated_hp_som_som_object_present): Rename
8051 hp_som_som_object_present.
8052 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8053 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8054 Update. Delete extern declaration.
8055 * valops.c (hp_som_som_object_present): Ditto.
8056 * parse.c (deprecated_hp_som_som_object_present)
8057 (parse_nested_classes_for_hpacc): Ditto.
8058 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8059 * hppa-hpux-tdep.c (hp_som_som_object_present)
8060 (initialize_hp_cxx_exception_support): Ditto.
8061 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8062 * cp-valprint.c (hp_som_som_object_present)
8063 (cp_print_class_method): Ditto.
8064 * c-typeprint.c (hp_som_som_object_present):
8065 (c_type_print_base): Ditto.
8066 * c-exp.y (hp_som_som_object_present): Ditto.
8068 2004-04-08 Andrew Cagney <cagney@redhat.com>
8070 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8071 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8072 (frame_unwind_find_by_frame): Re-implement the unwind code so
8073 that it can both prepend and append sniffers. Replace
8074 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8075 * tramp-frame.c (tramp_frame_append): Use
8076 frame_unwind_prepend_unwinder.
8077 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8078 frame_unwind_register_unwinder.
8079 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8081 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8082 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
8083 (mips_linux_init_abi): Update.
8085 2004-04-08 Kevin Buettner <kevinb@redhat.com>
8087 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8088 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8091 2004-04-07 Kevin Buettner <kevinb@redhat.com>
8093 * ia64-tdep.c (elf.h): Don't include.
8094 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8096 2004-04-07 Jason Molenda (jmolenda@apple.com)
8098 * frame.h: Typeo corrections in comments.
8100 2004-04-07 Jim Blandy <jimb@redhat.com>
8102 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8105 2004-04-07 Mark Kettenis <kettenis@gnu.org>
8107 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8108 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8109 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8110 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8112 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8114 * config/sparc/tm-sol2.h: Update copyright year. Include
8117 * sparc-sol2-tdep.c: Update copyright year. Include
8119 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8120 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8121 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8122 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8125 2004-04-06 Andrew Cagney <cagney@redhat.com>
8127 * infttrace.c: Include "infttrace.h".
8128 * infttrace.h: Include "target.h".
8129 * Makefile.in (infttrace_h): Update.
8130 (infttrace.o): Update.
8132 2004-04-06 Andrew Cagney <cagney@redhat.com>
8134 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8135 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8136 move extern declarations from here ...
8137 * infttrace.h: ... to here.
8138 * Makefile.in (hppah-nat.o): Update dependencies.
8140 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8141 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8142 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8143 (hppa_breakpoint_from_pc): Delete.
8145 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8147 2004-04-05 Andrew Cagney <cagney@redhat.com>
8149 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8150 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8153 2004-04-06 Randolph Chung <tausq@debian.org>
8155 Committed by Andrew Cagney (mechanical change).
8156 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8157 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8158 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8159 child_enable_exception_callback, current_ex_event,
8160 null_symtab_and_line, child_get_current_exception_event,
8161 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8162 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8163 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8164 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8165 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8166 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8167 Move hpux-specific definitions ...
8168 * hppa-hpux-tdep.c: ... to here.
8170 2004-04-05 Andrew Cagney <cagney@redhat.com>
8172 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8173 skip_prologue_using_sal.
8175 2004-04-05 Andrew Cagney <cagney@redhat.com>
8177 * config/i386/tm-i386.h: Delete file.
8178 * config/i386/tm-vxworks.h: Update copyright, do not include
8180 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8181 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8182 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8183 * config/i386/ncr3000.mt (TM_FILE): Delete.
8184 * config/i386/interix.mt (TM_FILE): Delete.
8185 * config/i386/i386v.mt (TM_FILE): Delete.
8186 * config/i386/i386nw.mt (TM_FILE): Delete.
8187 * config/i386/i386gnu.mt (TM_FILE): Delete.
8188 * config/i386/i386aout.mt (TM_FILE): Delete.
8189 * config/i386/embed.mt (TM_FILE): Delete.
8191 2004-04-05 Kevin Buettner <kevinb@redhat.com>
8193 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8194 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8195 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8196 (accg7_regnum): New constants.
8197 (last_spr_regnum, last_pseudo_regnum): Update.
8198 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8199 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8200 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8202 (frv_register_sim_regno): Update spr_map[].
8204 2004-04-04 Andrew Cagney <cagney@redhat.com>
8206 * config/mips/xm-riscos.h: Delete.
8207 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8208 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8209 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8210 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8211 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8212 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8213 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8214 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8215 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8216 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8217 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8218 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8219 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8220 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8221 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8222 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8223 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8224 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8225 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8226 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8227 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8228 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8229 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8230 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8231 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8232 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8234 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8235 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8236 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8237 * configure.host: Remove m680[01]0-sun-sunos3*,
8238 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8239 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8240 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8241 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8243 * NEWS: Mention removed systems.
8245 2004-04-04 Andrew Cagney <cagney@redhat.com>
8247 GDB 6.1 release created from 6.1 branch.
8249 2004-04-04 Andrew Cagney <cagney@redhat.com>
8251 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8252 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8253 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8255 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8256 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8257 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8259 2004-04-03 Jim Blandy <jimb@redhat.com>
8261 * MAINTAINERS: Chris Faylor has changed employers; add him to
8262 "paper trail" section, and update his E-mail address.
8264 2004-04-03 Andrew Cagney <cagney@redhat.com>
8266 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8267 generic dummy frames.
8268 * dummy-frame.c: Update copyright.
8269 (dummy_frame_sniffer): Delete check for generic dummy frames.
8271 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8272 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8273 (REG_PARM_STACK_SPACE): Delete.
8274 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8275 Inline reference to REG_PARM_STACK_SPACE.
8277 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8278 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8279 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8280 (FRAME_BASE_BEFORE_SIGTRAMP)
8281 (hppa32_hpux_frame_base_before_sigtramp)
8282 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8283 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8284 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8285 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8286 (FRAME_BASE_BEFORE_SIGTRAMP)
8287 (hppa64_hpux_frame_base_before_sigtramp)
8288 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8290 2004-04-03 Andrew Cagney <cagney@redhat.com>
8292 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8294 2004-04-02 Andrew Cagney <cagney@redhat.com>
8296 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8297 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8298 * dummy-frame.h: Delete out-of-date comments.
8299 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8300 * gdbarch.h, gdbarch.c: Re-generate.
8302 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8304 Committed by Andrew Cagney <cagney@redhat.com>.
8305 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8306 into account an instruction saving a register if we have already
8307 seen an earlier instruction saving that same register.
8309 2004-04-02 Andrew Cagney <cagney@redhat.com>
8311 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8312 * gdbarch.h, gdbarch.c: Re-generate.
8313 * frame.c (legacy_get_prev_frame): Delete references to
8314 DEPRECATED_INIT_FRAME_PC_FIRST.
8316 * infrun.c (pc_in_sigtramp): Delete function.
8317 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8320 2004-04-02 Andrew Cagney <cagney@redhat.com>
8322 * infrun.c (handle_step_into_function): Delete code conditional on
8324 (handle_inferior_event, step_over_function): Ditto.
8326 2004-04-02 Andrew Cagney <cagney@redhat.com>
8328 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8329 "previous frame inner to this frame" test.
8331 2004-04-02 Andrew Cagney <cagney@redhat.com>
8333 * frame.c (safe_frame_unwind_memory): New function.
8334 * frame.h (safe_frame_unwind_memory): Declare. Update description
8336 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8337 "next_frame". Use safe_frame_unwind_memory.
8338 (tramp_frame_sniffer): Update call to tramp_frame_start.
8340 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8342 * dwarf2read.c (dwarf2_objfile_data_key): New.
8343 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8344 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8345 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8346 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8347 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8348 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8349 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8351 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8352 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8353 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8354 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8355 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8356 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8358 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8360 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8361 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8362 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8363 (read_partial_die, read_full_die, read_indirect_string)
8364 (dwarf_decode_line_header, dwarf_decode_macros)
8365 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8366 Update uses of removed variables.
8367 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8369 (_initialize_dwarf2_read): New function.
8370 * symfile.h (dwarf2_has_info): Update prototype.
8371 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8372 * elfread.c (elf_symfile_read): Likewise.
8374 2004-04-01 Jim Blandy <jimb@redhat.com>
8376 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8377 function for register numbers on all the rs6000-derived targets.
8378 (rs6000_gdbarch_init): Don't register a separate
8379 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8380 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8383 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8386 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8388 * valarith.c: Update copyright notice.
8389 (value_add): Handle range types.
8391 (value_equal): Ditto.
8392 (value_less): Ditto.
8394 (value_complement): Ditto.
8395 (value_binop): Simplify slightly by using is_integral_type and
8396 eliminiating unnecessary COERCE_ENUMs.
8398 2004-03-31 Andrew Cagney <cagney@redhat.com>
8400 * frame.h (frame_unwind_id): Declare.
8401 * frame.c (frame_unwind_id): New function.
8402 (get_prev_frame_1): New function.
8403 (frame_debug_got_null_frame): New function.
8404 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8405 code proper to prev_frame, update description.
8406 * infrun.c (step_over_function): Use frame_unwind_id.
8408 2004-04-31 J. Brobecker <brobecker@gnat.com>
8410 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8411 (hppa64_push_dummy_call): Likewise.
8413 2004-03-30 Jim Blandy <jimb@redhat.com>
8415 From Ulrich Weigand:
8416 * utils.c (query): Do not use a va_list variable multiple times.
8418 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8420 * Makefile.in (linux_nat_h): Update dependencies.
8421 * configure.in: Check for <gnu/libc-version.h>.
8422 * configure: Regenerate.
8423 * config.in: Regenerate.
8424 * linux-nat.h: Include "target.h". Add waitstatus field to
8426 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8427 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8429 (lin_lwp_handle_extended): New function. Handle clone events.
8430 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8432 (child_wait): Handle clone events.
8433 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8434 * linux-nat.c (linux_enable_event_reporting): Turn on
8435 PTRACE_O_TRACECLONE.
8436 (linux_handle_extended_wait): Handle clone events.
8437 * thread-db.c: Include <gnu/libc-version.h>.
8438 (struct private_thread_info): Add dying flag.
8439 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8441 (attach_thread): Update comments. Handle dying threads.
8442 (detach_thread): Set the dying flag.
8443 (check_event): Always call attach_thread.
8445 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8447 * mips-tdep.c (mips_pdr_data): New.
8448 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8449 (_initialize_mips_tdep): Initialize mips_pdr_data.
8451 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8453 * minsyms.c (install_minimal_symbols): Move dropping leading
8454 char from linkage name from here...
8455 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8456 test for "__gnu_compiled*" symbols.
8458 2004-03-28 Jim Blandy <jimb@redhat.com>
8460 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8461 registers to temp register r0 and byte stores as prologue
8464 2004-03-28 Andrew Cagney <cagney@redhat.com>
8466 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8469 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8471 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8472 and switch the layout to force a display of register window.
8474 2004-02-26 J. Brobecker <brobecker@gnat.com>
8476 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8477 of the INTEGER class.
8479 2004-03-26 Jim Blandy <jimb@redhat.com>
8481 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8482 bytes long on PPC GNU/Linux.
8484 2004-03-26 David Carlton <carlton@kealia.com>
8486 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8488 2004-03-25 Andrew Cagney <cagney@redhat.com>
8490 * PROBLEMS: Add general section titles, remove references to
8493 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8495 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8497 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8498 FP_REGISTER_VIRTUAL_SIZE.
8499 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8500 of DEPRECATED_REGISTER_RAW_SIZE.
8501 (arm_register_type): Add gdbarch argument.
8502 (arm_register_raw_size, arm_register_virtual_size): Delete.
8503 (arm_register_byte, arm_extract_return_value)
8504 (arm_store_return_value, arm_get_longjmp_target): Update references
8505 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8506 (arm_gdbarch_init): Likewise. Don't set
8507 deprecated_register_raw_size, deprecated_register_virtual_size,
8508 deprecated_max_register_raw_size,
8509 deprecated_max_register_virtual_size, or
8510 deprecated_max_register_virtual_type. Do set register_type.
8511 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8512 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8513 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8514 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8515 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8516 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8518 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8519 (remote_rdp_store_register): Likewise.
8521 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8523 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8524 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8525 to after osabi initialization.
8526 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8527 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8529 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8530 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8532 (mips_linux_init_abi): Append signal trampoline unwinders.
8534 2004-03-24 Andrew Cagney <cagney@redhat.com>
8536 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8537 * tramp-frame.c: Include "gdb_assert.h".
8538 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8540 (tramp_frame_append): Validate the tramp frame's instructions.
8541 * Makefile.in (tramp-frame.o): Update dependencies.
8543 2004-03-23 Andrew Cagney <cagney@redhat.com>
8545 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8547 2004-03-23 Andrew Cagney <cagney@redhat.com>
8549 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8550 Nasser as past testsuite/lib/ (and other) maintainers.
8552 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8554 * infcmd.c (attach_command): Reread symbols if we already have
8557 2004-03-23 Andrew Cagney <cagney@redhat.com>
8559 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8561 2004-03-23 Andrew Cagney <cagney@redhat.com>
8563 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8564 * gdbarch.h, gdbarch.c: Re-generate.
8565 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8566 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8567 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8568 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8569 (DEPRECATED_SIGTRAMP_START): Update.
8570 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8571 (DEPRECATED_SIGTRAMP_START): Update.
8572 * blockframe.c (find_pc_sect_partial_function): Update.
8573 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8575 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8577 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8580 2004-03-23 Andrew Cagney <cagney@redhat.com>
8582 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8583 predicate, deprecate.
8584 * gdbarch.h, gdbarch.c: Re-generate.
8585 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8586 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8587 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8588 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8589 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8590 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8591 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8592 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8593 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8594 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8595 * blockframe.c (find_pc_partial_function): Update.
8596 * breakpoint.c (bpstat_what): Update.
8597 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8598 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8599 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8600 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8601 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8602 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8603 * i386-nto-tdep.c (i386nto_init_abi): Update.
8604 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8605 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8606 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8607 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8608 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8609 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8610 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8611 * infrun.c (pc_in_sigtramp): Update.
8612 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8613 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8614 * mips-tdep.c (mips_gdbarch_init): Update.
8615 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8616 * ppc-linux-tdep.c: Update comment.
8617 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8618 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8619 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8620 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8621 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8622 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8623 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8624 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8625 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8626 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8628 2004-03-23 Andrew Cagney <cagney@redhat.com>
8630 * tramp-frame.h, tramp-frame.h: New files.
8631 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8632 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8634 * Makefile.in: Update all dependencies.
8636 2004-03-23 Andrew Cagney <cagney@redhat.com>
8638 * Makefile.in (trad_frame_h): Add $(frame_h).
8639 * trad-frame.h: Update copyright. Include "frame.h".
8640 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8641 (trad_frame_set_id, trad_frame_get_id): Declare.
8642 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8643 * trad-frame.c: Update copyright.
8644 (struct trad_frame_cache): Define.
8645 (trad_frame_cache_zalloc): New function.
8646 (trad_frame_set_id, trad_frame_get_id): New functions.
8647 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8649 2004-03-22 Andrew Cagney <cagney@redhat.com>
8651 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8652 s390_pltstub_unwind_cache.
8653 (s390_stub_frame_unwind_cache): Rename
8654 s390_pltstub_frame_unwind_cache.
8655 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8656 (s390_stub_frame_prev_register): Rename
8657 s390_pltstub_frame_prev_register.
8658 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8659 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8661 From Ulrich Weigand:
8662 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8663 pointer calls like PLT calls.
8665 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8667 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8668 PC rather than the partial function start address. Use the start
8669 address to sanity check the found PDR.
8671 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8673 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8674 linux_handle_extended_wait.
8676 2004-03-22 Andrew Cagney <cagney@redhat.com>
8678 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8681 * frame.h (generic_pop_current_frame): Delete declaration.
8682 (deprecate_pop_dummy_frame): Deprecate
8683 generic_pop_dummy_frame.
8684 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8685 (generic_pop_current_frame): Delete function.
8686 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8687 generic_pop_current_frame.
8688 * v850-tdep.c (v850_pop_frame): Update.
8689 * mcore-tdep.c (mcore_pop_frame): Update.
8690 * sh64-tdep.c (sh64_pop_frame): Update.
8691 * h8300-tdep.c (h8300_pop_frame): Update.
8693 2004-03-22 Andrew Cagney <cagney@redhat.com>
8695 * frame.h (deprecated_pc_in_call_dummy): Rename
8696 generic_pc_in_call_dummy.
8697 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8698 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8699 generic_pc_in_call_dummy.
8700 (pc_in_dummy_frame): Make static.
8701 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8702 * gdbarch.h, gdbarch.c: Re-generate.
8703 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8704 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8705 (legacy_get_prev_frame): Ditto.
8706 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8709 2004-03-21 Andrew Cagney <cagney@redhat.com>
8711 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8712 declaration and out-of-date comment.
8713 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8715 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8716 deprecated_pc_in_call_dummy.
8718 * infrun.c (handle_inferior_event): For non legacy frames, use the
8719 frame ID and frame type to identify a signal trampoline. Update
8722 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8724 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8725 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8727 2004-03-21 Andrew Cagney <cagney@redhat.com>
8729 * frame-unwind.h: Update copyright.
8730 (struct frame_data): Add opaque declaration.
8731 (frame_sniffer_ftype): Declare.
8732 (struct frame_unwind): Add "unwind_data" and "sniffer".
8733 (frame_unwind_register_unwinder): Declare.
8734 (frame_unwind_find_by_frame): Add parameter "this_cache".
8735 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8736 (legacy_get_prev_frame, legacy_get_prev_frame)
8737 (get_frame_type): Pass the prologue_cache to
8738 frame_unwind_find_by_frame.
8739 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8741 (frame_unwind_register_unwinder): New function.
8742 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8744 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8746 * bcache.c (print_percentage): Use floating point to avoid
8747 incorrect results when portion*100 overflows.
8749 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8751 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8752 (ppc_linux_init_extra_frame_info)
8753 (ppc_linux_frameless_function_invocation)
8754 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8755 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8756 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8757 (rs6000_frame_chain): Delete declarations.
8758 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8759 (ppc_linux_init_extra_frame_info)
8760 (ppc_linux_frameless_function_invocation)
8761 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8762 (ppc_linux_init_abi): Remove registration of above deleted functions.
8763 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8764 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8765 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8766 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8767 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8768 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8769 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8770 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8771 frame management for all OSABIs.
8773 2004-03-19 Andrew Cagney <cagney@redhat.com>
8775 Committed by Kevin Buettner <kevinb@redhat.com>.
8777 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8779 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8780 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8781 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8782 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8783 unwinders. #ifdef legacy frame code.
8784 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8786 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8787 (struct rs6000_frame_cache, rs6000_frame_cache)
8788 (rs6000_frame_this_id, rs6000_frame_prev_register)
8789 (rs6000_frame_sniffer, rs6000_frame_unwind)
8790 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8791 (rs6000_frame_base): Implement a traditional frame unwinder.
8792 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8795 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8797 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8798 breakpoint address for watchpoints or the catch eventpoints.
8799 Add new paramter ``bptype''. Adjust all callers.
8801 2004-03-19 Andrew Cagney <cagney@redhat.com>
8803 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8805 * PROBLEMS: Delete note that ARM does not use frame code, problem
8808 2004-03-18 Andrew Cagney <cagney@redhat.com>
8810 * stack.c (return_command): Delete code wrapped in #ifdef
8811 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8813 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8815 2004-03-18 Andrew Cagney <cagney@redhat.com>
8817 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8818 DEPRECATED_IN_SIGTRAMP.
8819 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8820 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8821 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8822 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8823 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8824 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8825 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8826 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8827 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8828 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8830 2004-03-18 Andrew Cagney <cagney@redhat.com>
8832 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8833 (struct frame_base_table_entry): Define.
8834 (struct frame_base_table): Re-implement as a linked list.
8835 (frame_base_init): Re-implement.
8836 (frame_base_table): Delete function.
8837 (append_predicate): Delete function.
8838 (frame_base_append_sniffer): Update.
8839 (frame_base_set_default): Update.
8840 (frame_base_find_by_frame): Update.
8841 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8842 * Makefile.in (frame-base.o): Update dependencies.
8844 2004-03-17 Andrew Cagney <cagney@redhat.com>
8846 * frame.c (legacy_get_prev_frame): Pass correct frame to
8847 frame_unwind_find_by_frame.
8849 2004-03-17 David Carlton <carlton@kealia.com>
8851 * NEWS: Mention C++ nested types and namespaces
8853 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8855 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8856 and "Regressions since gdb 5.3.". Add known regressions since
8859 2004-03-16 David Carlton <carlton@kealia.com>
8861 * dwarf2read.c (process_structure_scope): Process children even
8862 when we're a declaration.
8864 2004-03-16 Andrew Cagney <cagney@redhat.com>
8866 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8867 * blockframe.c (find_pc_partial_function)
8868 (find_pc_sect_partial_function): Merge into a single
8869 find_pc_partial_function.
8871 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8873 * i386bsd-nat.c: s/regno/regnum/g.
8874 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8876 (store_inferior_registers): Likewise.
8878 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8880 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8882 (store_inferior_registers): Call i387_collect_fsave and
8883 i387_collect_fxsave instead of i387_fill_fsave and
8886 2004-03-15 Andrew Cagney <cagney@redhat.com>
8888 * Makefile.in (frame-unwind.o): Update dependencies.
8889 * frame-unwind.c: Include "gdb_obstack.h".
8890 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8892 (append_predicate): Delete function.
8893 (struct frame_unwind_table_entry): New structure.
8894 (struct frame_unwind_table): Replace "sniffer" with "head" and
8896 (frame_unwind_append_sniffer): Update.
8897 (frame_unwind_find_by_frame): Update.
8898 (_initialize_frame_unwind): Registe frame_unwind_init using
8899 gdbarch_data_register_pre_init.
8901 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8903 * i386bsd-nat.c: Update copyright year.
8904 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8905 define unconditionally.
8907 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8909 * i387-tdep.h (i387_collect_fsave): New prototype.
8910 * i387-tdep.c (i387_collect_fsave): New function containing most
8911 of the code from i387_fill_fsave.
8912 (i387_fill_fsave): Call i387_collect_fsave.
8914 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8916 * i386-linux-tdep.c: Update copyright year.
8917 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8918 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8919 svr4_ilp32_link_map_offsets instead of
8920 i386_linux_svr4_fetch_link_map_offsets.
8922 2004-03-15 David Carlton <carlton@kealia.com>
8924 Fix for PR c++/1553:
8925 * dwarf2read.c (read_structure_type): Determine type name by
8926 calling determine_class_name.
8927 (determine_class_name): New.
8928 (determine_prefix): Look at TYPE_TAG_NAME and call
8929 determine_class_name when appropriate.
8930 (determine_prefix_aux, class_name): Delete.
8931 (read_namespace): Set die->type.
8933 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8935 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8936 unused macro definition. The definition in target.h (or perhaps
8937 elsewhere) takes precedence.
8939 2004-03-15 Andrew Cagney <cagney@redhat.com>
8941 * ppc-tdep.h: Update copyright.
8942 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8943 function signatures to match "regsets.h".
8944 * ppc-linux-tdep.c: Include "regset.h".
8945 (ELF_GREGSET_SIZE): Delete.
8946 (right_supply_register): New function.
8947 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8948 using right_supply_register.
8949 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8951 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8952 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8953 (_initialize_ppc_linux_tdep): Do not register
8954 ppc_linux_regset_core_fns.
8955 (ppc_linux_regset_from_core_section): Replace
8956 fetch_core_registers.
8957 (ppc_linux_regset_core_fns): Delete.
8958 * ppc-linux-nat.c: (right_fill_reg): New function.
8959 (supply_gregset): Update call to ppc_linux_supply_gregset.
8960 (fill_gregset): Clear the register set, use right_fill_reg.
8961 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8962 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8964 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8967 2004-03-15 Andrew Cagney <cagney@redhat.com>
8969 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8970 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8971 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8972 and register_gdbarch_data.
8973 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8974 (struct gdbarch_data): Replace "init" by "pre_init" and
8976 * gdbarch.h, gdbarch.c: Re-generate.
8977 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8978 with"obstack", use OBSTACK_ZALLOC.
8979 (dwarf2_frame_ops): Delete.
8980 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8981 (dwarf2_frame_init_reg): Use gdbarch_data.
8982 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8983 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8984 (_initialize_svr4_solib): Update.
8985 * user-regs.c (_initialize_user_regs): Update.
8986 * reggroups.c (_initialize_reggroup): Update.
8987 * regcache.c (_initialize_regcache): Update.
8988 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8989 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8990 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8991 * frame-unwind.c (_initialize_frame_unwind): Update.
8992 * frame-base.c (_initialize_frame_base): Update.
8993 * user-regs.c (user_reg_add): Update.
8994 * reggroups.c (reggroup_add): Update.
8995 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8996 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8997 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8998 * frame-base.c (frame_base_table): Update.
8999 * remote.c (_initialize_remote): Update.
9000 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
9002 2004-03-15 Andrew Cagney <cagney@redhat.com>
9004 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9006 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9008 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9009 * frv-linux-tdep.c: New file.
9010 * frv-tdep.c (struct gdbarch_tdep): Add new field
9011 ``sigcontext_reg_addr''.
9012 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9013 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9014 (frv_sigramp_frame_sniffer): New functions.
9015 (frv_sigtramp_frame_unwind): New static global.
9016 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9018 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9019 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9021 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9023 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9024 but not via a call to error(), when unable to read memory.
9026 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9028 * frv-tdep.c (frv_call_dummy_words): Delete.
9029 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9031 2004-03-15 Andrew Cagney <cagney@redhat.com>
9033 * infrun.c (handle_step_into_function, step_over_function): Only
9034 update and use STEP_FRAME_ID when the system is using legacy
9035 frames. Update comments.
9037 2004-03-14 Mark Kettenis <kettenis@gnu.org>
9039 * amd64-linux-tdep.h: Remove file.
9040 * amd64-linux-tdep.c: Don't include "inferior.h" and
9041 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9042 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9043 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9044 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9045 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9047 (user_to_gdb_regmap): Remove variable.
9048 (amd64_linux_gregset_reg_offset): New variable.
9049 (amd64_core_fns): Remove variable.
9050 (fetch_core_registers): Remove function.
9051 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9053 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9054 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9055 * Makefile.in (amd64_linux_tdep_h): Remove.
9056 (amd64-linux-nat.o): Update dependencies.
9057 (amd64-linux-tdep.o): Update dependencies.
9059 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9060 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9062 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9064 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9065 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9067 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
9069 * dwarf2read.c (read_structure_type): Rename from
9070 read_structure_scope. Don't create a symbol or call process_die.
9071 Return immediately if die->type is set. Call read_type_die before
9072 dwarf2_add_member_fn.
9073 (process_structure_scope): New function.
9074 (read_enumeration_type, process_enumeration_scope): New functions,
9075 broken out from read_enumeration. Don't create the enumeration
9076 type if it has already been created.
9077 (read_enumeration): Removed.
9078 (process_die): Call read_structure_type, process_structure_scope,
9079 read_enumeration_type, and process_enumeration_scope. Just call
9080 new_symbol for base and subrange types. Add a comment about other
9082 (read_type_die): Call read_enumeration_type.
9083 (add_partial_structure, new_symbol): Update comments.
9085 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9087 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9089 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9091 * tui/tui-win.h (tui_get_cmd_list): Declare.
9092 * tui/tui-win.c (tui_command): New function.
9093 (tui_get_cmd_list): New function.
9094 (_initialize_tui_win): Moved initialization of tui command in
9097 * tui/tui-data.c (init_content_element): Setup new data members.
9098 (init_win_info): Likewise.
9099 (free_content_elements): Free it.
9100 * tui/tui-data.h (struct tui_data_element): Store the register
9102 (struct tui_data_info): Keep the current register group.
9104 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9106 * tui/tui-regs.h (tui_show_registers): Update prototype.
9107 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9108 (tui_resize_all): No need to calculate anything for register window.
9109 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9110 (tui_set_register_element, tui_set_general_regs_content): Remove.
9111 (tui_set_special_regs_content): Remove.
9112 (tui_set_general_and_special_regs_content): Remove.
9113 (tui_set_float_regs_content): Remove.
9114 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9115 (tui_set_regs_content): Remove.
9116 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9117 (tui_v_show_registers_command_support): Remove.
9118 (tui_show_registers): Use a reggroup to specify the registers to show.
9119 (tui_show_register_group): New function.
9120 (tui_display_registers_from): Compute the layout of register window
9121 and refresh with new API; be sure to delete old register windows.
9122 (tui_check_register_values): Update to use tui_get_register and
9124 (tui_display_register): Just refresh the register window part.
9125 (tui_register_format): Format registers and save in tui_data_element.
9126 (tui_get_register): New to combine tui_reg_value_has_changed and
9127 tui_get_register_raw_value; fix to use the new gdb API.
9128 (tui_show_float_command): Renamed tui_reg_float_command.
9129 (tui_show_general_command): Renamed tui_reg_general_command.
9130 (tui_show_special_command): Renamed tui_reg_system_command.
9131 (_initialize_tui_regs): Remove unused commands.
9133 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9135 * NEWS (New native configurations): Mention OpenBSD/amd64.
9137 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9138 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9140 * config/i386/nm-fbsd64.h: Likewise.
9141 * config/i386/nm-obsd.h: Likewise.
9142 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9143 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9145 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9147 * frv-tdep.c (set_variant_scratch_registers): New function.
9148 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9151 From Richard Sandiford <rsandifo@redhat.com>:
9152 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9154 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9156 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9157 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9158 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9159 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9160 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9161 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9162 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9163 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9164 definitions from frv-tdep.c to frv-tdep.h.
9166 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9168 Add shared library support for FR-V FDPIC ABI:
9169 * Makefile.in (solib-frv.o): Add dependencies.
9170 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9172 (frv_push_dummy_call): Add support for FDPIC ABI.
9173 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9175 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9176 (frv_fdpic_find_canonical_descriptor): Declare.
9177 * solib-frv.c: New file.
9178 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9179 * config/frv/tm-frv.h (solib.h): Include.
9181 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9183 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9184 (frv-tdep.o): Update dependencies.
9185 * frv-tdep.h: New file.
9186 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9187 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9189 (struct gdbarch_tdep): Add new member ``frv_abi''.
9190 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9192 (new_variant): Set ``frv_abi'' field.
9193 (gdb_arch_init): Detect FDPIC executables.
9195 2004-03-12 Mark Kettenis <kettenis@gnu.org>
9197 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9200 2004-03-11 Andrew Cagney <cagney@redhat.com>
9202 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9204 2004-03-11 Kevin Buettner <kevinb@redhat.com>
9206 * solist.h (master_so_list): New function.
9207 * solib.c (master_so_list): Likewise.
9208 * solib-svr4.c (enable_break): Iterate over so_list entries
9209 obtained from master list instead of entries obtained directly
9210 via svr4_current_sos().
9212 2004-03-10 Ben Elliston <bje@gnu.org>
9214 * MAINTAINERS: Update my mail address.
9216 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9218 * remote-m32r-sdi.c: Support hardware watchpoint.
9220 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9222 * user-regs.c: Update copyright years.
9223 (struct user_regs): Rename to gdb_user_regs.
9224 (append_user_reg, builtin_user_regs, user_regs_init)
9225 (user_reg_add, user_reg_map_name_to_regnum)
9226 (usernum_to_user_reg): Update.
9228 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9230 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9231 (skip_children): New functions.
9232 (locate_pdi_sibling): Call skip_children.
9234 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9236 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9237 * gdbtypes.c (check_typedef): Update comments.
9239 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9241 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9242 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9243 pointer. Update comment about comp_unit_head.
9244 (struct abbrev_info): Shorten two int flags.
9245 (dwarf_alloc_abbrev): Take a CU argument.
9246 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9247 each time through the loop. Update cleanup argument.
9248 (psymtab_to_symtab_1): Update cleanup call.
9249 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9251 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9252 Just call obstack_free and clear the pointer.
9254 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9256 * infrun.c (handle_inferior_event): Remove short-circuit code for
9257 events in a different thread.
9259 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9261 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9262 print the whole transfer.
9263 (initialize_targets): Update description of "set debug target".
9265 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9267 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9269 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9271 * MAINTAINERS (write after approval): Add myself.
9273 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9275 * sh-tdep.c (sh_print_registers_info): Use for loop.
9276 Don't skip multiple registers when a float register is encountered.
9278 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9281 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9282 to official SH documentation.
9284 2004-03-07 Andrew Cagney <cagney@redhat.com>
9286 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9289 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9291 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9292 (arm_get_next_pc): Handle BX and BLX.
9294 2004-03-07 Andrew Cagney <cagney@redhat.com>
9296 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9297 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9299 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9300 (hppa_target_read_fp): Delete.
9301 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9302 register_virtual_size, max_register_raw_size,
9303 max_register_virtual_size, register_byte, register_size,
9304 target_read_fp, fp_regnum, and register_bytes. Set register_type
9305 instead of register_virtual_type.
9306 (hppa32_register_type, hppa64_register_type): Replace
9307 hppa32_register_virtual_type and hppa64_register_virtual_type.
9308 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9309 (HPPA_FP_REGNUM): Define.
9311 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9313 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9314 (pa_do_registers_info): Delete.
9315 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9316 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9317 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9319 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9320 GDB_TARGET_IS_HPPA code.
9321 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9322 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9323 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9324 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9325 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9326 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9327 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9328 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9329 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9330 (hppa_frameless_function_invocation, hppa64_store_return_value)
9331 (hppa_store_struct_return, hppa64_extract_return_value)
9332 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9333 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9334 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9335 (find_proc_framesize, deposit_21, restore_pc_queue)
9336 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9337 (rp_saved, pc_in_linker_stub): Delete.
9339 Unconditionally enable 64-bit frame and ABI code.
9340 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9341 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9342 push_dummy_frame, fix_call_dummy, push_arguments,
9343 call_dummy_location, extract_return_value, use_struct_convention,
9344 store_return_value, store_struct_return, saved_pc_after_call,
9345 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9346 frame_chain, frame_chain_valid, frameless_function_invocation,
9347 frame_saved_pc, and pop_frame.
9349 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9350 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9351 (hppa_gdbarch_init): Do not set PC_REGNUM.
9353 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9355 * config/alpha/tm-fbsd.h: Remove file.
9356 * config/alpha/fbsd.mt: Tweak comment.
9357 (TM_FILE): Set to tm-alpha.h.
9359 2004-03-05 Andrew Cagney <cagney@redhat.com>
9361 * infrun.c (step_over_function): When non-legacy code, and no
9362 step_frame_id, use the unwinder to get the caller's frame ID.
9364 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9366 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9367 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9368 bfd_arch_unknown. Adjust comment.
9370 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9371 * i386obsd-tdep.c: Correct spelling in comment.
9372 * i386nbsd-tdep.c: Correct spelling in comment.
9373 * sparc-tdep.c: Correct spelling in comments.
9375 2004-03-05 David Carlton <carlton@kealia.com>
9377 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9380 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9382 * sparc-tdep.c: Fix typo in comment.
9384 2004-03-04 J. Brobecker <brobecker@gnat.com>
9386 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9388 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9390 * dwarf2read.c: Add comment describing memory lifetimes.
9391 (struct dwarf2_pinfo): Update comment.
9392 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9393 (read_enumeration, new_symbol): Don't use obsavestring.
9395 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9397 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9398 instead of amd64_fill_fxsave.
9399 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9400 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9402 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9403 Reorganize code a bit.
9405 2004-03-04 Orjan Friberg <orjanf@axis.com>
9407 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9408 when the frame pointer is pushed. Don't set the frame pointer's
9409 address on the stack unless it's actually located there.
9410 Set the SRP's address on the stack correctly when the PC is still in
9412 (cris_return_value): New function.
9413 (cris_gdbarch_init): Clear deprecated store_return_value,
9414 extract_return_value.
9416 2004-03-02 Jim Blandy <jimb@redhat.com>
9418 * stabsread.c (reg_value_complaint): The maximum register number
9419 is one less than the number of registers.
9421 2004-03-02 Andrew Cagney <cagney@redhat.com>
9423 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9424 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9425 trailing comma and redundant assignment of I386_ST0_REGNUM.
9426 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9427 32-bit segment registers.
9429 2004-03-01 Andrew Cagney <cagney@redhat.com>
9431 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9432 use frame_relative_level and get_next_frame.
9434 2004-02-29 Andrew Cagney <cagney@redhat.com>
9436 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9437 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9438 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9441 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9443 * inflow.c (terminal_inferior): Don't give up the terminal if we
9444 previously couldn't get the inferior's terminal state.
9446 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9448 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9451 2004-02-28 Andrew Cagney <cagney@redhat.com>
9453 * NEWS: Refer to GDB 6.1.
9454 * README: Refer to GDB 6.1.
9455 * PROBLEMS: Refer to GDB 6.1.
9457 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9459 * thread-db.c (disable_thread_signals): Remove unused function.
9461 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9463 * amd64-nat.c: Include "gdb_string.h".
9464 (amd64_collect_native_gregset): Zero-extend the 32-bit
9465 general-purpose registers and %eip.
9467 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9468 * amd64-tdep.c (amd64_collect_fxsave): New function.
9469 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9471 * i387-tdep.h: Update copyright year.
9472 (i387_collect_fxsave): New prototype.
9473 * i387-tdep.c: Update copyright year.
9474 (i387_collect_fxsave): New function containing most of the code
9475 from i387_fill_fxsave.
9476 (i387_fill_fxsave): Call i387_collect_fxsave.
9478 2004-02-28 Andrew Cagney <cagney@redhat.com>
9480 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9481 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9483 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9485 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9487 2004-02-28 Andrew Cagney <cagney@redhat.com>
9489 * utils.c: Use "", instead of <>, to include readline.
9490 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9491 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9492 * source.c, solib.c, exec.c, event-top.c: Ditto.
9493 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9494 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9495 * Makefile.in: Update all dependencies.
9496 (readline_tilde_h, readline_history_h): Define.
9497 (readline_headers): Delete.
9499 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9501 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9502 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9503 "config/i386/tm-lx64.h".
9505 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9506 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9507 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9509 2004-02-28 Andrew Cagney <cagney@redhat.com>
9511 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9513 * breakpoint.c (_initialize_breakpoint): Use
9514 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9515 Add help to show command.
9517 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9519 * i386-nat.c: Reformat to be closer to coding standards.
9520 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9521 `retval'. Make variables `align' and `size' local to while-loop.
9522 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9523 (_initialize_i386_nat): New prototype.
9525 * tui/tui.c: Include <readline/readline.h> instead of
9526 "readline/readline.h". Include it after <term.h> and
9529 2004-02-27 Andrew Cagney <cagney@redhat.com>
9531 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9532 the new frame unwind code.
9533 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9534 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9537 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9538 "return_value" and "push_dummy_call".
9539 (hppa32_use_struct_convention): Delete unused function.
9540 (hppa32_store_return_value): Delete unused function.
9541 (hppa32_extract_return_value): Delete unused function.
9542 (hppa32_stack_align): Delete function.
9544 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9546 * coffread.c (enter_linenos): Don't let rawptr reference memory
9547 outside linetab[]'s limits.
9549 2004-02-27 Andrew Cagney <cagney@redhat.com>
9551 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9552 inferior stack space - the stack needs to grow upwards.
9553 (hppa32_frame_align): New function.
9554 (hppa64_frame_align): Replace hppa_frame_align.
9555 (hppa_gdbarch_init): Update.
9557 2004-02-26 Orjan Friberg <orjanf@axis.com>
9559 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9560 (dwarf2-frame.h): Include.
9561 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9562 Remove static variables related to ABI setting.
9563 (struct gdbarch_tdep): Remove cris_abi member.
9564 (struct frame_extra_info): Remove.
9565 (cris_unwind_cache, stack_item): New structs.
9566 (cris_frame_unwind, cris_frame_base): New variables.
9567 (push_stack_item, pop_stack_item)
9568 (cris_frame_unwind_cache, cris_frame_this_id)
9569 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9570 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9571 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9572 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9573 (cris_reg_struct_has_addr): New functions.
9574 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9575 (cris_frame_saved_pc, cris_saved_pc_after_call,
9576 (cris_store_struct_return, cris_frameless_function_invocation)
9577 (cris_pop_frame, cris_skip_prologue_main)
9578 (cris_abi_original_store_return_value)
9579 (cris_abi_v2_store_return_value)
9580 (cris_abi_original_extract_return_value)
9581 (cris_abi_v2_extract_return_value)
9582 (cris_abi_original_reg_struct_has_addr)
9583 (cris_abi_v2_reg_struct_has_addr)
9584 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9585 (cris_push_return_address, cris_abi_update): Remove.
9586 (_initialize_cris_tdep): Remove ABI command.
9587 (cris_dump_tdep): Ditto.
9588 (cris_gdbarch_init): Remove ABI command.
9589 Set store_return_value, extract_return_value, push_dummy_code,
9590 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9591 frame_unwind_append_sniffer, frame_base_set_default.
9592 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9593 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9594 sizeof_call_dummy_words, get_saved_register, push_return_address,
9595 pop_frame, store_struct_return, frame_init_saved_regs,
9596 init_extra_frame_info, frameless_function_invocation, frame_chain,
9597 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9600 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9602 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9603 * valprint.c (print_hex_chars): Change from static to external.
9604 (print_char_chars): New function.
9605 * printcmd.c (print_scalar_formatted): For integer and enum types
9606 that are longer than LONGEST, perform processing via appropriate
9607 print_*_chars routines.
9609 2004-02-26 Andrew Cagney <cagney@redhat.com>
9611 * Makefile.in: Update dependencies.
9612 Changes from Ulrich Weigand,
9613 * s390-tdep.c: Include "dwarf2-frame.h".
9614 (s390_dwarf2_frame_init_reg): New function.
9615 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9616 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9618 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9620 * breakpoint.c (pending_break_support): New setting variable.
9621 (break_command_1): Account for pending_break_support setting
9622 when creating pending breakpoints.
9623 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9624 (_initialize_breakpoint): Add "set breakpoint pending" and
9625 "show breakpoint pending" commands.
9627 2004-02-26 Andrew Cagney <cagney@redhat.com>
9630 * charset.c (backslashable, backslashed, represented): Remove 'e'
9631 from list of escaped characters, not part of ISO-C.
9633 2004-02-25 J. Brobecker <brobecker@gnat.com>
9635 From Peter Schauer <schauer@pdf.de>:
9636 * tui/tui.c: Move system header includes after local includes.
9637 Fixes a build failure on solaris systems.
9639 2004-02-25 J. Brobecker <brobecker@gnat.com>
9641 * configure.in: Refine the previous change.
9642 * configure: Regenerate.
9644 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9646 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9647 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9648 "amd64-tdep.h" instead of "x86-64-tdep.h".
9649 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9650 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9651 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9652 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9653 and "x86-64-tdep.c".
9654 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9655 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9656 and "x86-64-tdep.c".
9657 * amd64bsd-nat.c: Update copyright year.
9658 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9659 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9661 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9663 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9665 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9667 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9669 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9671 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9672 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9673 * Makefile.in (amd64_linux_tdep_h): Renamed from
9674 x86_64_linux_tdep_h.
9675 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9676 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9677 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9678 (amd64obsd-tdep.o): Update dependencies.
9679 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9681 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9683 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9684 amd64-linux-nat.c amd64-linux-tdep.c.
9685 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9686 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9687 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9688 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9689 amd64-tdep.o and amd64-linux-tdep.o.
9690 (TM_FILE): Set to tm-linux64.h.
9691 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9692 (NAT_FILE): Set to nm-linux64.h.
9693 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9694 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9696 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9698 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9701 2004-02-25 Roland McGrath <roland@redhat.com>
9703 * remote.c (remote_protocol_qPart_auxv): New variable.
9704 (init_all_packet_configs): Initialize it.
9705 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9706 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9707 (show_remote_cmd): Call it.
9708 (_initialize_remote): Initialize commands.
9709 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9710 service TARGET_OBJECT_AUXV requests.
9712 2004-02-25 J. Brobecker <brobecker@gnat.com>
9714 * configure.in: Make sure that the wborder function is available.
9715 Otherwise, search for it in the cur_colr library.
9716 * configure: Regenerate.
9718 2004-02-25 Andrew Cagney <cagney@redhat.com>
9720 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9722 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9724 * config/i386/tm-x86-64linux.h: Tweak comments.
9726 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9728 * MAINTAINERS: Add self to write-after-approval list.
9730 2004-02-25 Andrew Cagney <cagney@redhat.com>
9732 PR cli/1566. Problem found, and fix suggested by David Allan.
9733 * cli/cli-script.c (execute_control_command): Unconditionally
9734 install a cleanup. Default "ret" to "invalid_control". Use
9735 "break" instead of "return" to escape from the switch.
9737 2004-02-24 J. Brobecker <brobecker@gnat.com>
9739 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9740 with the lines macro defined in term.h on AiX.
9741 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9742 a collision with the label_width macro defined in term.h on AiX.
9744 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9746 Committed by Kevin Buettner <kevinb@redhat.com>.
9748 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9749 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9750 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9751 instead of ia64_write_pc().
9752 * ia64-linux-tdep.c (regcache.h): Include.
9753 (ia64_linux_write_pc): New function.
9755 2004-02-23 Roland McGrath <roland@redhat.com>
9757 * auxv.c (info_auxv_command): Fix typos in error messages.
9759 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9761 * x86-64-tdep.h: Tweak comment.
9762 (enum amd64_regnum): New.
9763 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9764 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9765 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9766 (X86_64_XMM1_REGNUM): Removed.
9767 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9768 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9769 prototypes for renamed functions.
9770 * x86-64-tdep.c: Fix typo.
9771 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9773 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9774 Use constants from `enum amd64_regnum' for register numbers.
9775 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9776 (amd64_analyze_prologue, amd64_frame_cache,
9777 amd64_sigtramp_frame_cache): Use constants from `enum
9778 amd64_regnum' for register numbers.
9779 (amd64_supply_fpregset): Adjust for renamed functions.
9780 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9781 `enum amd64_regnum' for register numbers.
9782 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9783 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9784 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9785 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9786 (amd64_linux_fill_gregset): Adjust for renamed macros.
9787 (fetch_core_registers): Adjust for renamed functions.
9788 (amd64_linux_init_abi): Adjust for renamed functions.
9789 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9791 * amd64-nat.c: Adjust for renamed macros.
9792 * amd64bsd-nat.c (fetch_inferior_registers)
9793 (store_inferior_registers): Use constants from `enum amd64_regnum'
9794 for register numbers. Adjust for renamed variables.
9795 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9797 (_initialize_amd64fbsd_nat): Use constants from `enum
9798 amd64_regnum' for register numbers.
9799 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9800 `enum amd64_regnum' for register numbers.
9801 (amd64fbsd_init_abi): Adjust for renamed functions.
9802 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9803 `enum amd64_regnum' for register numbers.
9804 (amd64nbsd_init_abi): Adjust for renamed functions.
9805 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9806 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9807 `enum amd64_regnum' for register numbers.
9808 (amd64obsd_init_abi): Adjust for renamed functions.
9809 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9811 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9813 * breakpoint.c (print_one_breakpoint): Do not output spaces
9814 after printing <PENDING> for a pending breakpoint.
9816 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9818 * printcmd.c (print_scalar_formatted): Initialize val_long
9819 to remove compiler warning message.
9821 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9823 * defs.h (nquery, yquery): New prototypes.
9824 * breakpoint.c (break_command_1): Use new nquery interface.
9825 * utils.c (defaulted_query, nquery, yquery): New functions.
9827 2004-02-23 Andrew Cagney <cagney@redhat.com>
9829 * hppa-tdep.c (hppa_frame_align): New function.
9830 (hppa32_push_dummy_call): New function.
9831 (hppa64_push_dummy_call): New function.
9832 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9835 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9836 FIX_CALL_DUMMY when push_dummy_call is available.
9837 (call_function_by_hand, push_dummy_code): Ditto.
9839 2004-02-22 Andrew Cagney <cagney@redhat.com>
9841 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9842 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9843 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9844 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9845 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9846 call_dummy_location to ON_STACK.
9848 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9850 * x86-64-linux-tdep.c: Tweak comment.
9851 (amd64_linux_supply_gregset): Renamed from
9852 x86_64_linux_supply_gresget.
9853 (amd64_linux_fill_gregset): Renamed from
9854 x86_64_linux_fill_gregset.
9855 (fetch_core_registers): Adjust for renamed functions.
9856 (amd64_core_fns): Renamed from x86_64_core_fns.
9857 (amd64_linux_sigtramp_start): Renamed from
9858 x86_64_linux_sigtramp_start.
9859 (amd64_linux_pc_in_sigtramp): Renamed from
9860 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9861 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9862 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9863 (amd64_linux_sigcontext_addr): Renamed from
9864 x86_64_linux_sigcontext_addr.
9865 (amd64_linux_sc_reg_offset): Renamed from
9866 x86_64_linux_sc_reg_offset.
9867 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9868 Adjust for renamed functions and variables.
9869 (_initialize_amd64_linux_tdep): Renamed from
9870 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9872 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9873 Adjust for renamed functions.
9875 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9876 from x86_64_linux_gregset64_reg_offset.
9877 (amd64_linux_gregset32_reg_offset): Rename from
9878 x86_64_linux_gregset64_reg_offset.
9879 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9880 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9881 (amd64_linux_dr_set_control): Renamed from
9882 x86_64_linux_dr_set_control. Adjust for renamed functions.
9883 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9884 Adjust for renamed functions.
9885 (amd64_linux_dr_reset_addr): Renamed from
9886 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9887 (amd64_linux_dr_get_status): Renamed from
9888 x86_64_linux_dr_get_status. Adjust for renamed functions.
9889 (_initialize_amd64_linux_nat): Renamed from
9890 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9892 * config/i386/nm-x86-64linux.h: Update copyright year.
9893 Adjust for renamed functions.
9895 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9896 amd64fbsd_sigtramp_start.
9897 (amd64fbsd_sigtramp_end_addr): Renamed from
9898 amd64fbsd_sigtramp_end.
9899 (amd64fbsd_init_abi): Adjust for renamed variables.
9900 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9902 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9903 amd64fbsd_sigtramp_start.
9904 (amd64fbsd_sigtramp_end_addr): Renamed from
9905 amd64fbsd_sigtramp_end.
9907 2004-02-22 Andrew Cagney <cagney@redhat.com>
9909 * hppa-tdep.c (hppa32_return_value): New function.
9910 (hppa64_return_value): New function.
9911 (hppa_gdbarch_init): Set return_value; keep disabled.
9913 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9914 struct-return and inferior function call methods.
9916 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9918 (struct hppa_frame_cache): Define.
9919 (hppa_frame_cache, hppa_frame_this_id): New functions.
9920 (hppa_frame_prev_register): New function.
9921 (hppa_frame_unwind, hppa_frame_base): New variables.
9922 (hppa_frame_unwind_sniffer): New function.
9923 (hppa_frame_base_address, hppa_unwind_pc): New function.
9924 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9925 sniffer, and frame base sniffer; keep disabled.
9926 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9927 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9929 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9930 to predicates for "seriously old code".
9932 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9935 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9937 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9939 * config/pa/tm-hppa.h: Update copyright.
9940 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9941 (deprecated_init_frame_pc_default): Delete declaration.
9942 (hppa_frame_init_saved_regs): Delete declaration.
9943 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9944 * hppa-tdep.c: Include "arch-utils.h".
9945 (hppa_gdbarch_init): Set deprecated init_frame_pc
9946 and deprecated frame_init_saved_regs.
9947 (hppa_frame_init_saved_regs): Make static.
9949 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9951 Remove old 386BSD support.
9952 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9953 * configure.host: Remove i[34567]86-*-bsd*.
9954 * configure.tgt: Remove i[34567]86-*-bsd*.
9955 * i386b-nat.c: Removed.
9956 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9957 (i386b-nat.o): Remove dependencies.
9959 * config/i386/i386bsd.mh: Removed.
9960 * config/i386/i386bsd.mt: Removed.
9961 * config/i386/nm-i386bsd.h: Removed.
9962 * config/i386/tm-i386bsd.h: Removed.
9963 * config/i386/xm-i386bsd.h: Removed.
9965 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9967 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9968 (amd64fbsd_init_abi): Set link map offsets.
9969 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9970 (amd64nbsd_init_abi): Set link map offsets.
9971 * amd64obsd-tdep.c: Include "solib-svr4.h".
9972 (amd64obsd_init_abi): Set link map offsets.
9973 * i386fbsd-tdep.c: Include "solib-svr4.h".
9974 (i386fbsd_init_abi): Set link map offsets.
9975 * i386nbsd-tdep.c: Include "solib-svr4.h".
9976 (i386nbsdelf_init_abi): Set link map offsets.
9977 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9978 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9979 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9980 solib-legacy.o and core-aout.o. Reformat.
9981 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9982 solib-svr4.o, solib-legacy.o. Reformat.
9983 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9984 * config/i386/nbsdelf.mh: Reformat.
9985 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9986 solib-svr4.o, solib-legacy.o and corelow.o.
9987 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9988 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9989 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9990 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9991 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9992 (TM_FILE): Set to tm-fbsd.h.
9993 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9994 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9996 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9998 (TM_FILE): Set to nm-nbsd.h.
9999 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10000 Simplify shared library support. Don't include "elf/common.h".
10001 (SVR4_SHARED_LIBS): Don't define.
10002 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10004 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10005 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10006 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10007 Don't include "i386/tm-i386.h". Include "solib.h".
10008 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10009 Don't include "i386/tm-i386.h".
10010 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10011 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10012 Include "i386/xm-i386.h".
10013 (HOST_LONG_DOUBLE_FORMAT): Remove.
10015 Fix OpenBSD/i386 sigtramp recognition.
10016 * i386-tdep.h: Update copyright year.
10017 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10018 (i386bsd_sigtramp_end): New prototypes.
10019 (i386fbsd_sigtramp_start_addr): Renamed from
10020 i386fbsd_sigtramp_start.
10021 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10022 (i386obsd_sigtramp_start_addr): Renamed from
10023 i386obsd_sigtramp_start.
10024 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10025 * i386bsd-tdep.c: Update copyright year.
10026 (i386bsd_pc_in_sigtramp): Make public.
10027 * i386fbsd-nat.c: Update copyright year.
10028 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10029 * i386fbsd-tdep.c: Update copyright year.
10030 (i386fbsd_sigtramp_start_addr): Renamed from
10031 i386fbsd_sigtramp_start.
10032 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10033 (i386fbsdaout_init_abi): Adjust for renamed variables.
10034 * i386obsd-nat.c: Update copyright year.
10035 (_initialize_i386obsd_nat): Adjust for renamed variables.
10036 * i386obsd-tdep.c: Include "target.h".
10037 (i386obsd_page_size): New variable.
10038 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10039 (i386obsd_sigtramp_end): New functions.
10040 (i386obsd_sigtramp_start_addr): Renamed from
10041 i386obsd_sigtramp_start.
10042 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10043 (i386obsd_init_abi): Adjust for renamed variables. Set
10044 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10045 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10047 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10048 trampoline change in OpenBSD kernel.
10050 * amd64-nat.c: Update copyright year.
10051 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10052 architecture from REGCACHE.
10054 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10055 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10057 2004-02-21 Mark Kettenis <kettenis@gnu.org>
10059 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10060 i[34567]86-*-openbsd3.[0-3].
10061 * config/i386/obsdaout.mh: New file.
10063 * config/i386/obsd.mh (MH_FLAGS): Remove.
10066 * i386obsd-tdep.c: Update copyright years. Include
10068 (i386obsd_init_abi): Don't set regset_from_core_section here.
10069 (i386obsd_aout_init_abi): New function. Set
10070 regset_from_core_section here.
10071 (i386obsd_elf_init_abi): New function.
10072 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10073 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10074 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10075 (TM_FILE): Set to tm-nbsd.h.
10077 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10080 * solib-svr4.h: Update copyright year.
10081 (svr4_ilp32_fetch_link_map_offsets)
10082 (svr4_lp64_fetch_link_map_offsets): New prototype.
10083 * solib-svr4.c: Update copyright year.
10084 (svr4_ilp32_fetch_link_map_offsets)
10085 (svr4_lp64_fetch_link_map_offsets): New function.
10087 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
10089 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10090 to the partial symbol table.
10092 2004-02-20 J. brobecker <brobecker@gnat.com>
10094 * PROBLEMS: Add description of problem documented under gdb/1560.
10096 2004-02-20 Mark Kettenis <kettenis@gnu.org>
10098 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10100 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10102 (amd64obsd_init_abi): Reorder initializations. Use
10103 amd64obsd_r_reg_offset to initialize the general-purpose register
10104 set details. Set regset_from_core_section.
10105 (_initialize_amd64obsd_tdep): Rename from
10106 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10107 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10108 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10110 * NEWS (New native configurations): Mention OpenBSD/alpha.
10111 * configure.tgt: Add alpha*-*-openbsd*.
10112 * configure.host: Add alpha*-*-openbsd*.
10113 * alphanbsd-tdep.c: Update copyright year.
10114 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10116 2004-02-20 Andrew Cagney <cagney@redhat.com>
10119 * configure.tgt: Delete target "none-*-*".
10120 * configure.host: Delete host "none-*-*".
10121 * config/none/none.mh: Delete file.
10122 * config/none/none.mt: Delete file.
10123 * config/none/xm-none.h: Delete file.
10124 * config/none/tm-none.h: Delete file.
10125 * config/none/nm-none.h: Delete file.
10127 2004-02-19 Fred Fish <fnf@redhat.com>
10129 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10130 cache->uses_fp prior to setting it.
10132 2004-02-19 Fred Fish <fnf@redhat.com>
10134 Fix for PR breakpoint/1558.
10135 * sh-tdep.c (IS_JSR): New macro.
10136 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10138 2004-02-19 Jim Blandy <jimb@redhat.com>
10140 * findvar.c (value_from_register): Doc fix.
10142 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10144 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10145 type being greater than sizeof of host's LONGEST. Always use
10146 unpack_long() unless format 'f' chosen.
10148 2004-02-19 Joel Brobecker <brobecker@gnat.com>
10150 Committed by Elena Zannoni <ezannoni@redhat.com>
10152 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10153 contains a symbol wich is the best, non-exact match for the given
10154 pc. Update comments.
10156 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
10158 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10159 macro, which was part of the now removed Mach 3 port.
10160 * utils.c (request_quit): Ditto.
10162 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10164 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10165 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10167 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10169 Committed by Mark Kettenis <kettenis@gnu.org>.
10171 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10174 2004-02-18 Andrew Cagney <cagney@redhat.com>
10176 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10177 CONFIG_INSTALL and CONFIG_UNINSTALL.
10178 * configure: Re-generate.
10179 * interps.h (INTERP_TUI): Define.
10180 * Makefile.in: Update dependencies.
10182 (tui-main.o): Specify dependencies.
10183 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10184 * tui/tui-main.c: New file.
10186 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10188 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10189 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10191 * configure.host: Add x86_64-*-openbsd*.
10192 * configure.tgt: Add x86_64-*-openbsd*.
10193 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10195 * tui/tui.c: Don't include <malloc.h>.
10197 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10198 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10201 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10202 static. Remove extraneous whitespace.
10203 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10206 2004-02-17 Jim Blandy <jimb@redhat.com>
10208 * findvar.c (value_from_register): Doc fix.
10210 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10212 Committed by Jim Blandy <jimb@redhat.com>.
10214 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10215 CORE_ADDR as type for selectors. Correct types for GNU run time
10216 message lookup function to use double indirection.
10217 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10218 * objc-lang.h (lookup_child_selector): Adapt prototype.
10220 * s390-nat.c (SUBOFF): New macro.
10221 (supply_gregset, fill_gregset): Use it to handle debugging
10222 of 32-bit exectuables running under a 64-bit kernel.
10223 * s390-tdep.c: Include "solib-svr4.h".
10224 (s390_svr4_fetch_link_map_offset): New function.
10225 (s390x_svr_fetch_link_map_offset): Likewise.
10226 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10227 * Makefile.in (s390-tdep.o): Update dependencies.
10229 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10231 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10232 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10233 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10234 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10235 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10236 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10237 S390_SIGNAL_FRAMESIZE,
10238 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10239 (struct frame_extra_info): Remove.
10240 (s390_memset_extra_info): Remove.
10241 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10242 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10243 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10244 (is_rse): Renamed to ...
10245 (is_rsy): ... this. Support long displacements.
10246 (is_rxe): Renamed to ...
10247 (is_rxy): ... this. Support long displacements.
10248 (compute_x_addr): Support long displacements.
10249 (struct s390_prologue_data): New data type.
10250 (s390_on_stack): Change API to use struct s390_prologue_data.
10251 (s390_store): Reimplement.
10252 (s390_load): New function.
10253 (s390_get_signal_frame_info): Remove.
10254 (s390_get_frame_info): Remove, replace by ...
10255 (s390_analyze_prolog): ... this new function.
10256 (s390_check_function_end): Remove.
10257 (s390_function_start): Remove.
10258 (s390_frameless_function_invokation): Remove.
10259 (s390_is_sigreturn): Remove.
10260 (s390_init_frame_pc_first): Remove.
10261 (s390_init_frame_extra_info): Remove.
10262 (s390_frame_init_saved_regs): Remove.
10263 (s390_frame_saved_pc_nofix): Remove.
10264 (s390_frame_saved_pc): Remove.
10265 (s390_frame_chain): Remove.
10266 (s390_fp_regnum, s390_read_fp): Remove.
10267 (s390_pop_frame_regular, s390_pop_frame): Remove.
10268 (s390_saved_pc_after_call): Remove.
10269 (s390_skip_prologue): Reimplement.
10270 (s390_in_function_epilogue_p): Support long displacements.
10271 (struct s390_unwind_cache): New data structure.
10272 (s390_frame_unwind_cache): New function.
10273 (s390_prologue_frame_unwind_cache): Likewise.
10274 (s390_backchain_frame_unwind_cache): Likewise.
10275 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10276 (s390_frame_unwind): Define.
10277 (s390_frame_sniffer): New function.
10278 (struct s390_pltstub_unwind_cache): New data structure.
10279 (s390_pltstub_frame_unwind_cache): New function.
10280 (s390_pltstub_frame_this_id): Likewise.
10281 (s390_pltstub_frame_prev_register): Likewise.
10282 (s390_pltstub_frame_unwind): Define.
10283 (s390_pltstub_frame_sniffer): New function.
10284 (struct s390_sigtramp_unwind_cache): New data structure.
10285 (s390_sigtramp_frame_unwind_cache): New function.
10286 (s390_sigtramp_frame_this_id): Likewise.
10287 (s390_sigtramp_frame_prev_register): Likewise.
10288 (s390_sigtramp_frame_unwind): Define.
10289 (s390_sigtramp_frame_sniffer): New function.
10290 (s390_frame_base_address, s390_local_base_address): New functions.
10291 (s390_frame_base): Define.
10292 (s390_unwind_pc, s390_unwind_sp): New function.
10293 (s390_push_dummy_call): Use new frame base location.
10294 (s390_unwind_dummy_id): Likewise.
10295 (s390_gdbarch_init): Remove calls to:
10296 set_gdbarch_frameless_function_invocation,
10297 set_gdbarch_deprecated_init_frame_pc,
10298 set_gdbarch_deprecated_frame_chain,
10299 set_gdbarch_deprecated_frame_init_saved_regs,
10300 set_gdbarch_deprecated_pop_frame,
10301 set_gdbarch_deprecated_init_extra_frame_info,
10302 set_gdbarch_deprecated_init_frame_pc_first,
10303 set_gdbarch_deprecated_target_read_fp,
10304 set_gdbarch_deprecated_frame_saved_pc,
10305 set_gdbarch_deprecated_saved_pc_after_call,
10306 set_gdbarch_deprecated_fp_regnum.
10308 set_gdbarch_in_solib_call_trampoline,
10309 frame_unwind_append_sniffer,
10310 frame_base_set_default,
10311 set_gdbarch_unwind_pc,
10312 set_gdbarch_unwind_sp.
10313 * Makefile.in (s390-tdep.o): Update dependencies.
10315 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10316 (S390_STACK_FRAME_OVERHEAD): Remove.
10317 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10318 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10319 (s390_promote_integer_argument): Remove.
10320 (s390_cannot_extract_struct_value_address): Remove.
10321 (s390_use_struct_convention, s390_store_struct_return): Remove.
10322 (s390_extract_return_value, s390_store_return_value): Remove.
10323 (s390_return_value_convention, s390_return_value): New functions.
10324 (is_float_singleton): Handle typedefs.
10325 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10326 Remove, replace by ...
10327 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10328 s390_function_arg_integer): ... these new functions.
10329 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10330 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10331 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10334 set_gdbarch_deprecated_store_struct_return,
10335 set_gdbarch_deprecated_extract_return_value,
10336 set_gdbarch_deprecated_store_return_value,
10337 set_gdbarch_use_struct_convention,
10338 set_gdbarch_extract_struct_value_address,
10339 set_gdbarch_deprecated_pc_in_call_dummy,
10340 set_gdbarch_deprecated_push_arguments,
10341 set_gdbarch_deprecated_save_dummy_frame_tos,
10342 set_gdbarch_deprecated_push_return_address,
10343 set_gdbarch_deprecated_sizeof_call_dummy_words,
10344 set_gdbarch_deprecated_call_dummy_words,
10345 set_gdbarch_deprecated_dummy_write_sp.
10347 set_gdbarch_push_dummy_call,
10348 set_gdbarch_unwind_dummy_id,
10349 set_gdbarch_return_value.
10351 * config/s390/nm-linux.h: Update comments.
10352 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10353 (STOPPED_BY_WATCHPOINT): Redefine.
10354 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10355 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10356 (s390_stopped_by_watchpoint): Likewise.
10357 (watch_area_cnt): Remove.
10358 * s390-nat.c: Update comments.
10359 (watch_area): Remove typedef.
10360 Global replace watch_area by struct watch_area.
10361 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10362 (s390_stopped_by_watchpoint): Remove pid argument,
10363 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10364 (s390_fix_watch_points): Remove pid argument,
10365 use s390_inferior_tid. Recompute area spanned by watchpoints.
10366 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10367 argument. Reimplement.
10369 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10370 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10371 (FETCH_INFERIOR_REGISTERS): Define.
10372 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10374 * config/s390/s390x.mt: Remove.
10375 * config/s390/tm-s390.h: Remove.
10376 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10377 (TARGET_ELF64): Remove.
10378 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10379 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10380 s390*-*-* case; always set gdb_target to s390.
10381 * regformats/reg-s390.dat: Remove control registers.
10382 * regformats/reg-s390x.dat: Likewise.
10383 * s390-tdep.h: New file.
10384 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10385 Include "inferior.h" and "s390-tdep.h".
10386 Remove private definition of offsetof.
10387 (s390_register_u_addr): Remove.
10388 (regmap_gregset, regmap_fpregset): Define.
10389 (supply_gregset, fill_gregset): Reimplement.
10390 (supply_fpregset, fill_fpregset): Likewise.
10391 (s390_inferior_tid): New function.
10392 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10393 (fetch_inferior_registers, store_inferior_registers): Likewise.
10394 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10395 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10396 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10397 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10398 (struct gdbarch_tdep): Define.
10399 (struct s390_register_info): Define.
10400 (s390_register_info): New variable.
10401 (s390_register_name): Reimplement.
10402 (s390_register_type): New function.
10403 (s390_register_raw_size, s390x_register_raw_size): Remove.
10404 (s390_cannot_fetch_register): Remove.
10405 (s390_register_byte): Remove.
10406 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10407 (s390_dwarf_regmap): New variable.
10408 (s390_dwarf_reg_to_regnum): New function.
10409 (s390_stab_reg_to_regnum): Remove.
10410 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10411 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10412 (s390_convert_register_p): Likewise.
10413 (s390_register_to_value, s390_value_to_register): Likewise.
10414 (s390_register_reggroup_p): Likewise.
10415 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10416 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10417 (s390_supply_regset, s390_regset_from_core_section): New functions.
10418 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10419 (S390_FPR_SIZE): Likewise.
10420 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10421 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10422 (S390_NUM_GPRS): Move here from tm-s390.h.
10423 (S390_NUM_FPRS): Likewise.
10424 (s390_in_function_epilogue_p): New function.
10425 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10426 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10427 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10428 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10429 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10431 set_gdbarch_deprecated_max_register_raw_size,
10432 set_gdbarch_deprecated_max_register_virtual_size,
10433 set_gdbarch_deprecated_register_byte,
10434 set_gdbarch_cannot_fetch_register,
10435 set_gdbarch_cannot_store_register,
10436 set_gdbarch_deprecated_register_size,
10437 set_gdbarch_deprecated_register_raw_size,
10438 set_gdbarch_deprecated_register_virtual_size,
10439 set_gdbarch_deprecated_register_virtual_type,
10440 set_gdbarch_deprecated_register_bytes.
10442 set_gdbarch_num_pseudo_regs,
10443 set_gdbarch_register_type,
10444 set_gdbarch_convert_register_p,
10445 set_gdbarch_register_to_value,
10446 set_gdbarch_value_to_register,
10447 set_gdbarch_register_reggroup_p,
10448 set_gdbarch_regset_from_core_section,
10449 set_gdbarch_pseudo_register_read,
10450 set_gdbarch_pseudo_register_write,
10451 set_gdbarch_in_function_epilogue_p.
10452 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10453 (s390_tdep_h): New variable.
10455 2004-02-17 Jim Blandy <jimb@redhat.com>
10457 * findvar.c (value_from_register): If the type has no length, just
10458 return an acceptable value --- don't report an internal error.
10460 * stabsread.c (read_type): If we find any type numbers that are
10461 forward references, complain if the references aren't resolved by
10462 the time we're finished reading.
10463 (cleanup_undefined_types): Make error message more appropriate for
10466 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10468 * Makefile.in (defs_h): Remove dependency on progress_h.
10469 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10471 * main.c (captured_main): Delete use of START_PROGRESS and
10474 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10476 * objfiles.c (terminate_minimal_symbol_table): Add back
10477 initialization of MSYMBOL_TYPE.
10479 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10481 Committed by Andrew Cagney.
10482 * Makefile.in (ia64_tdep_h): New macro.
10483 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10484 (ia64-tdep.o): Likewise.
10485 * ia64-tdep.h: New file.
10486 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10487 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10488 (ia64_aix_sigcontext_register_address): Likewise.
10489 (ia64_linux_getunwind_table): Delete declaration.
10490 * ia64-linux-tdep.c: Likewise.
10492 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10494 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10495 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10496 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10498 2004-02-17 Andrew Cagney <cagney@redhat.com>
10500 * symtab.c (skip_prologue_using_sal): New function.
10501 * symtab.h (skip_prologue_using_sal): Declare.
10502 * frv-tdep.c: Include "symtab.h".
10503 (skip_prologue_using_sal): Delete function.
10504 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10505 * rs6000-tdep.c (refine_prologue_limit): Mention
10506 skip_prologue_using_sal.
10507 * ia64-tdep.c (refine_prologue_limit): Ditto.
10508 * Makefile.in: Update dependencies.
10510 2004-02-16 Andrew Cagney <cagney@redhat.com>
10512 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10513 START_INFERIOR_TRAPS_EXPECTED.
10514 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10515 START_INFERIOR_TRAPS_EXPECTED.
10516 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10518 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10519 macro, moved to "nm-osf.h". Update copyright.
10520 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10523 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10524 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10525 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10526 frameless_look_for_prologue.
10527 * frame.h (legacy_frameless_look_for_prologue): Rename
10528 frameless_look_for_prologue.
10529 * gdbarch.h, gdbarch.c: Re-generate.
10530 * sh64-tdep.c (sh64_gdbarch_init): Update.
10531 * sh-tdep.c (sh_gdbarch_init): Update.
10532 * s390-tdep.c (s390_gdbarch_init): Update.
10533 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10534 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10535 * m68k-tdep.c (m68k_gdbarch_init): Update.
10536 (delta68_frame_args_address): Update.
10537 * m32r-tdep.c (m32r_gdbarch_init): Update.
10538 * hppa-tdep.c (hppa_gdbarch_init): Update.
10539 * h8300-tdep.c (h8300_gdbarch_init): Update.
10540 * frv-tdep.c (frv_gdbarch_init): Update.
10541 (frv_frameless_function_invocation): Update.
10542 * cris-tdep.c (cris_gdbarch_init): Update.
10543 (cris_frameless_function_invocation): Update.
10544 * avr-tdep.c (avr_gdbarch_init): Update.
10545 * arm-tdep.c (arm_gdbarch_init): Update.
10546 * stack.c (frame_info): Update, call predicate.
10547 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10548 * frame.c (legacy_get_prev_frame): Update, call predicate..
10549 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10550 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10551 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10553 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10554 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10555 * vax-tdep.c (vax_gdbarch_init): Ditto.
10557 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10560 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10562 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10565 2004-02-16 Andrew Cagney <cagney@redhat.com>
10567 * tui/tui-windata.c: Include "gdb_string.h".
10568 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10569 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10570 * Makefile.in: Update dependencies.
10572 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10574 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10575 * infrun.c: Include "gdb_assert.h".
10576 (singlestep_ptid, saved_singlestep_ptid)
10577 (stepping_past_singlestep_breakpoint): New variables.
10578 (resume): Set singlestep_ptid. Check for singlestep thread
10580 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10581 (handle_inferior_event): Handle singlestep thread hop.
10583 2004-02-16 Andrew Cagney <cagney@redhat.com>
10585 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10586 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10587 (dwarf2_frame_init_reg): Ditto.
10589 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10590 suggested by Joshua Neuheisel
10592 * configure.in: Always check for curses, including pdcurses.
10593 Warn, instead of error, when no curses are found. Enable TUI when
10594 curses is available.
10595 * configure: Re-generate.
10597 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10599 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10600 sh_sh4_register_convert_to_virtual.
10601 (sh_register_convert_to_raw): Rename from
10602 sh_sh4_register_convert_to_raw.
10603 (sh_pseudo_register_read): Accomodate above name change.
10604 (sh_pseudo_register_write): Ditto.
10606 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10608 * sh-tdep.c (sh_generic_register_name): Remove.
10609 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10611 2004-02-15 Andrew Cagney <cagney@redhat.com>
10613 * configure.in (build_warnings): Add -Wunused-function.
10614 * configure: Re-generate.
10616 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10617 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10619 * procfs.c (procfs_init_inferior): Assume that
10620 START_INFERIOR_TRAPS_EXPECTED is defined.
10621 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10622 * config/ns32k/tm-nbsd.h: Delete file,
10623 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10625 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10626 * config/vax/tm-vax.h: Delete file.
10628 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10629 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10630 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10631 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10632 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10633 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10634 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10636 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10638 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10639 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10640 (struct dwarf2_frame_ops): New.
10641 (dwarf2_frame_default_init_reg): New function, based on
10642 dwarf2_frame_init_reg.
10643 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10644 (dwarf2_frame_init_reg): Call architecture-specific function.
10645 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10646 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10647 instead of dwarf2_frame_data.
10648 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10649 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10651 2004-02-15 Andrew Cagney <cagney@redhat.com>
10653 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10654 register_gdbarch_swap.
10655 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10656 * f-lang.c (_initialize_f_language): Update, use
10657 DEPRECATED_REGISTER_GDBARCH_SWAP.
10658 * remote.c (_initialize_remote): Ditto.
10659 * regcache.c (_initialize_regcache): Ditto.
10660 * parse.c (_initialize_parse): Ditto.
10661 * infrun.c (_initialize_infrun): Ditto.
10662 * mi/mi-main.c (_initialize_mi_main): Ditto.
10663 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10665 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10666 poking .cacheable directly.
10667 * symfile.c (symfile_bfd_open): Ditto.
10669 * Makefile.in: Update all dependencies.
10671 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10672 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10673 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10674 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10675 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10677 2004-02-14 Andrew Cagney <cagney@redhat.com>
10679 * arch-utils.c (legacy_convert_register_p): Check
10680 DEPRECATED_REGISTER_CONVERTIBLE_P.
10681 * findvar.c (value_of_register): Ditto.
10683 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10684 * gdbarch.h, gdbarch.c: Re-generate.
10685 * arch-utils.c (deprecated_register_convertible_not): Delete.
10686 * arch-utils.h (deprecated_register_convertible_not): Delete.
10687 * mi/mi-main.c (get_register): Update. Update copyright.
10688 * infcmd.c (default_print_registers_info): Update.
10690 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10691 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10692 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10693 * gdbarch.h, gdbarch.c: Re-generate.
10694 * frame.c (deprecated_get_next_frame_hack): Delete function.
10695 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10696 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10698 * infcall.c (call_function_by_hand): Update.
10700 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10702 * symfile.c (init_entry_point_info, entry_point_address): Move
10704 * objfiles.c (init_entry_point_info, entry_point_address):..to
10706 * symfile.h (init_entry_point_info, entry_point_address): Remove
10708 * objfiles.h (init_entry_point_info, entry_point_address):Add
10710 * cris-tdep.c: Remove include of symfile.h. Add include of
10712 * infcall.c: Ditto.
10713 * mcore-tdep.c: Ditto.
10714 * mn10300-tdep.c: Ditto.
10715 * sh64-tdep.c: Ditto.
10716 * v850-tdep.c: Ditto.
10717 * arm-tdep.c: Remove include of symfile.h.
10718 * blockframe.c: Ditto.
10719 * coffread.c: Ditto.
10720 * dbxread.c: Ditto.
10721 * dwarf2read.c: Ditto.
10722 * dwarfread.c: Ditto.
10723 * frv-tdep.c: Ditto.
10724 * ia64-tdep.c: Ditto.
10725 * mdebugread.c: Ditto.
10726 * mipsread.c: Ditto.
10727 * rs6000-tdep.c: Ditto.
10728 * s390-tdep.c: Ditto.
10729 * sh-tdep.c: Ditto.
10730 * xstormy16-tdep.c: Ditto.
10731 * gdbarch.sh: Remove include of symfile.h.
10732 * gdbarch.c: Regenerate.
10733 * solib-irix.c (enable_break): Use entry_point_address().
10734 Add comment about include file.
10735 * xcoffread.c: Add comment about include file.
10736 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10737 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10738 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10739 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10740 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10742 2004-02-13 Andrew Cagney <cagney@redhat.com>
10744 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10745 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10747 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10749 2004-02-12 Fred Fish <fnf@redhat.com>
10751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10752 set_gdbarch_store_return_value.
10754 2004-02-12 Andrew Cagney <cagney@redhat.com>
10756 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10757 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10758 (interrupt_query): Ditto.
10759 (ofunc): Delete unused variable.
10760 * cris-tdep.c (cris_abi): Delete unused function.
10761 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10762 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10763 (cris_get_asr_quick_shift_steps): Ditto.
10764 (cris_skip_prologue_frameless_p): Ditto.
10765 * arm-tdep.c (arm_push_return_address): Delete unused function.
10766 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10767 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10768 * s390-tdep.c (s390_function_start): Delete unused function.
10770 2004-02-12 Andrew Cagney <cagney@redhat.com>
10772 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10773 gdbarch.h, gdbarch.c: Re-generate.
10774 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10775 to generic_prologue_frameless_p.
10776 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10777 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10779 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10781 * mips-linux-tdep.c: Include "frame.h".
10782 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10783 (mips_linux_skip_resolver): New functions.
10784 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10785 and set_gdbarch_in_solib_call_trampoline.
10786 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10787 to after set_gdbarch_in_solib_return_trampoline. Only set the
10788 solib hooks to mips16 functions if the OS ABI is unknown.
10789 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10790 including "config/tm-linux.h".
10791 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10792 * Makefile.in (mips-linux-tdep.o): Update.
10794 2004-02-11 David Carlton <carlton@kealia.com>
10796 * linespec.c (decode_compound): Only look for a class symbol when
10797 considering all but the rightmost component.
10799 2004-02-11 Andrew Cagney <cagney@redhat.com>
10801 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10802 abi code are are separatly grouped.
10804 2004-02-11 Andrew Cagney <cagney@redhat.com>
10806 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10807 * gdbarch.h, gdbarch.c: Re-generate.
10808 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10809 * v850-tdep.c (v850_gdbarch_init): Update.
10810 * sh64-tdep.c (sh64_gdbarch_init): Update.
10811 * sh-tdep.c (sh_gdbarch_init): Update.
10812 * s390-tdep.c (s390_gdbarch_init): Update.
10813 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10814 * mips-tdep.c (mips_gdbarch_init): Update.
10815 * mcore-tdep.c (mcore_gdbarch_init): Update.
10816 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10817 * m32r-tdep.c (m32r_gdbarch_init): Update.
10818 * ia64-tdep.c (ia64_gdbarch_init): Update.
10819 * hppa-tdep.c (hppa_gdbarch_init): Update.
10820 * h8300-tdep.c (h8300_gdbarch_init): Update.
10821 * frv-tdep.c (frv_gdbarch_init): Update.
10822 * d10v-tdep.c (d10v_gdbarch_init): Update.
10823 * cris-tdep.c (cris_gdbarch_init): Update.
10824 * avr-tdep.c (avr_gdbarch_init): Update.
10825 * arm-tdep.c (arm_gdbarch_init): Update.
10826 * alpha-tdep.c (alpha_gdbarch_init): Update.
10828 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10830 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10832 (sh_sh4al_dsp_register_name): Ditto.
10834 2004-02-10 Andrew Cagney <cagney@redhat.com>
10836 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10837 (mips_init_frame_pc_first): Delete function.
10838 (mips_frame_saved_pc): Delete function.
10839 (mips_frame_chain): Delete function.
10840 (mips_init_extra_frame_info): Delete function.
10841 (mips_xfer_register): Delete unused variable "reg".
10842 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10843 (mips_n32n64_return_value): Delete unused variable "reg".
10844 (mips_n32n64_return_value): Delete unused variable "pos".
10845 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10846 (mips_o32_return_value): Delete unused variable "pos".
10847 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10848 (mips_print_fp_register): Delete unused variable "namelen"
10849 (mips_print_fp_register): Delete unused variable "flt2"
10850 (get_frame_pointer): Delete function.
10851 (cached_proc_desc): Delete static variable.
10852 (mips_pop_frame): Delete function.
10853 (mips_find_saved_regs): Delete function.
10854 (mips_get_saved_register): Delete function.
10855 (mips_saved_pc_after_call): Delete function.
10856 (SIGFRAME_BASE): Delete macro.
10857 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10858 (SIGFRAME_PC_OFF): Delete macro.
10859 (SIGFRAME_REGSAVE_OFF): Delete macro.
10860 (mips_dump_tdep): Do not print deleted macro definitions.
10862 2004-02-10 Andrew Cagney <cagney@redhat.com>
10864 * Makefile.in (SFILES): Remove explictly listed tui files.
10865 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10867 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10869 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10870 to use paddr functions to format ia64 addresses and long values.
10871 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10872 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10873 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10874 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10875 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10877 2004-02-10 Andrew Cagney <cagney@redhat.com>
10879 * defs.h: Do not include "tui.h".
10880 * gdb_curses.h: New file.
10881 * tui/tui-hooks.h: New file.
10882 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10883 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10884 (tui_initialize_io): Delete declaration.
10885 (tui_initialize_readline: Delete redundant declaration.
10886 (struct tui_point): Delete definition.
10887 * tui/tui-data.h (struct tui_point): Define.
10888 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10889 * utils.c: Include "tui/tui.h".
10890 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10891 * printcmd.c [TUI]: Include "tui/tui.h".
10892 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10893 * tui/tui-command.c: Include "gdb_curses.h".
10894 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10895 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10896 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10897 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10898 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10899 * Makefile.in: Update all dependencies.
10900 (tui_hooks_h, gdb_curses_h): Define.
10901 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10903 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10905 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10906 auxf2. Add comments about some other rarely used fields.
10908 2004-02-10 Andrew Cagney <cagney@redhat.com>
10910 * Makefile.in (init.c): Fix script removing duplicates. Problem
10911 reported by Peter Schauer.
10913 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10915 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10916 obstack_specify_allocation.
10917 * objfiles.c (allocate_objfile): Ditto.
10918 * solib-sunos.c (solib_add_common_symbols)
10919 (allocate_rt_common_objfile): Ditto.
10920 * symfile.c (reread_symbols): Ditto.
10921 * gdb_obstack.h: Add comment.
10923 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10925 * linespec.c (decode_line_1, locate_first_half)
10926 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10927 commented out code.
10929 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10931 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10934 2004-02-09 Andrew Cagney <cagney@redhat.com>
10936 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10937 fails, try find_pc_section. Fix PR c++/1267.
10938 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10939 instead of find_pc_mapped_section.
10940 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10941 not default to the section containing PC. Fix PR symtab/1519.
10943 2004-02-09 Andrew Cagney <cagney@redhat.com>
10945 * Makefile.in (mips-tdep.o): Update dependencies.
10946 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10948 (mips_unwind_pc): Return the pseudo PC register.
10949 (mips_unwind_dummy_id): New function.
10950 (mips16_fetch_instruction): New function.
10951 (mips32_fetch_instruction): New function.
10952 (struct mips_frame_cache): Define.
10953 (mips_mdebug_frame_cache): New function.
10954 (mips_mdebug_frame_this_id): New function.
10955 (mips_mdebug_frame_prev_register): New function.
10956 (mips_mdebug_frame_unwind): Define.
10957 (mips_mdebug_frame_sniffer): New function.
10958 (mips_mdebug_frame_base_address): New function.
10959 (mips_mdebug_frame_base): Define.
10960 (mips_mdebug_frame_base_sniffer): New function.
10961 (mips_gdbarch_init): Append unwind and base sniffers. Set
10964 2004-02-08 Andrew Cagney <cagney@redhat.com>
10966 * frame.c: Print both the register number and name.
10968 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10969 and a sed into a single sed. Make .c and .o patterns more robust.
10971 (INIT_FILES): Replace OBS with COMMON_OBS.
10972 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10974 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10976 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10977 the PT_WCOOKIE request.
10979 2004-02-08 Andrew Cagney <cagney@redhat.com>
10981 * mips-tdep.c (mips_unwind_pc): New function.
10982 (mips_gdbarch_init): Set mips_unwind_pc.
10984 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10985 (get_frame_id): Allow the UNKNOWN_FRAME.
10986 (frame_register_unwind, get_frame_type): Ditto.
10988 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10989 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10990 unwind_dummy_id indicates a legacy frame.
10992 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10993 * configure: Re-generate.
10995 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10998 2004-02-08 Andrew Cagney <cagney@redhat.com>
11000 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11002 * configure: Re-generate.
11003 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11004 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11005 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11006 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11007 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11008 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11009 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11010 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11011 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11012 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11014 2004-02-07 Andrew Cagney <cagney@redhat.com>
11016 * Makefile.in: Update all dependencies.
11018 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11019 * configure: Re-generate.
11020 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11021 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11022 (COMMON_OBS): Add "main.o" and "annotate.o".
11023 (ANNOTATE_OBS): Delete.
11024 (OBS): Remove ANNOTATE_OBS.
11025 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11027 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11028 against CONFIG_OBS and "main.o".
11029 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11030 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11032 * tui/tui-command.c: Include "gdb_string.h", delete register
11033 attribute, use ISO-C function signatures.
11034 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11035 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11036 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11037 * tui/tui.c: Ditto.
11039 * tui/tui-command.c: Change variable and function names to lower
11041 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11042 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11043 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11044 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11045 * tui/tui-winsource.c, tui/tui.c: Ditto.
11047 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11049 * buildsym.c (free_pending_blocks, finish_block)
11050 (record_pending_block, make_blockvector, end_symtab): Replace
11051 symbol_obstack with objfile_obstack.
11052 * coffread.c (process_coff_symbol, coff_read_struct_type)
11053 (coff_read_enum_type): Ditto.
11054 * cp-namespace.c (initialize_namespace_symtab)
11055 (check_one_possible_namespace_symbol): Ditto.
11056 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11057 (dwarf2_symbol_mark_computed): Ditto.
11058 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11059 * elfread.c (elf_symtab_read): Ditto.
11060 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11061 (hpread_read_enum_type, hpread_read_function_type)
11062 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11064 * jv-lang.c (get_java_class_symtab, add_class_symbol)
11065 (java_link_class_type): Ditto.
11066 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11067 (new_symbol): Ditto.
11068 * minsyms.c (install_minimal_symbols): Ditto.
11069 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11070 (terminate_minimal_symbol_table): Replace symbol_obstack with
11072 (free_objfile): Remove freeing of symbol_obstack.
11073 * objfiles.h: Remove symbol_obstack field.
11074 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11076 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11078 (solib_add_common_symbols): Replace symbol_obstack with
11080 * somsolib.c (som_solib_add): Ditto.
11081 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11082 (common_block_start, common_block_end): Ditto.
11083 * symfile.c (reread_symbols): Remove freeing and init of
11085 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11086 * symfile.h: Update comment.
11087 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11089 * symtab.c (symbol_set_names): Replace symbol_obstack with
11091 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11093 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11094 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11097 2004-02-07 Andrew Cagney <cagney@redhat.com>
11099 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11100 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11101 fields and variables.
11102 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11103 (m_beInvisible): Delete macro.
11104 * tui/tui-data.h: Fix case case fields and variables.
11105 (m_genWinPtrIsNull): Delete macro.
11106 (tui_win_list): Rename winList.
11107 (TUI_SRC_WIN): Rename srcWin.
11108 (TUI_DISASM_WIN): Rename disassemWin.
11109 (TUI_DATA_WIN): Rename dataWin.
11110 (TUI_CMD_WIN): Rename cmdWin.
11111 (m_genWinPtrNotNull): Delete macro.
11112 (m_winPtrIsNull): Delete macro.
11113 (m_winPtrNotNull): Delete macro.
11114 (tui_win_is_source_type): Replace m_winIsSourceType
11115 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11116 (tui_win_has_locator): Replace m_hasLocator.
11117 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11118 m_setWinHighlightOff.
11119 * tui/tui-data.c: Update references.
11120 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11121 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11122 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11123 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11124 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11125 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11126 * tui/tui-winsource.c, tui/tui.c: Ditto.
11128 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11130 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11131 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11134 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11135 variable `i6' to `i7'.
11136 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11138 2004-02-07 Andrew Cagney <cagney@redhat.com>
11140 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11141 (TuiPoint, TuiPointPtr): Ditto.
11142 (TuiStatus, TuiStatusPtr): Ditto.
11143 (TuiWinType, TuiWinTypePtr): Ditto.
11144 (struct tui_point): Rename _TuiPoint.
11145 (tui_get_low_disassembly_address): Rename
11146 tuiGetLowDisassemblyAddress.
11147 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11148 (tuiFree): Delete declaration.
11149 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11150 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11151 * tui/tui.c (tuiFree): Delete function.
11152 * cli/cli-cmds.c (disassemble_command): Update references.
11153 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11154 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11155 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11156 * tui/tui-winsource.c: Ditto.
11158 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11160 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11161 coffstab_build_psymtabs, elfstab_build_psymtabs)
11162 (stabsect_build_psymtabs): Replace psymbol_obstack with
11164 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11165 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11167 * dwarfread.c (scan_compilation_units): Ditto.
11168 * elfread.c (elfstab_offset_sections): Ditto.
11169 * hppa-tdep.c (read_unwind_info): Ditto.
11170 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11171 (hpread_end_psymtab): Ditto.
11172 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11173 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11175 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11176 * objfiles.c (add_to_objfile_sections)
11177 (build_objfile_section_table): Ditto.
11178 (allocate_objfile): Remove init of psymbol_obstack.
11179 (free_objfile): Remove freeing of psymbol_obstack.
11180 * objfiles.h (struct objfile): Remove field
11181 psymbol_obstack. Update comments.
11182 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11183 psymbol_obstack with objfile_obstack.
11184 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11186 * somread.c (som_symfile_offsets, init_import_symbols)
11187 (init_export_symbols): Replace psymbol_obstack with
11189 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11190 * symfile.c (default_symfile_offsets, syms_from_objfile)
11191 (reread_symbols): Remove freeing and init of psymbol_obstack.
11192 (cashier_psymtab): Update comment.
11193 * symmisc.c (print_objfile_statistics): Don't report stats for
11195 * symtab.h (struct general_symbol_info, struct partial_symtab):
11197 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11198 (xcoff_symfile_offsets): Replace psymbol_obstack with
11201 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11203 * objfiles.h (struct objfile): Add objfile_obstack field.
11204 Remove type_obstack field.
11206 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11207 read_structure_scope read_enumeration, new_symbol): Replace
11208 type_obstack with objfile_obstack.
11209 * dwarfread.c (struct_type, enum_type): Ditto.
11210 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11211 (lookup_fundamental_type): Ditto.
11212 * gdbtypes.h (TYPE_ALLOC): Ditto.
11213 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11214 (hpread_read_doc_function_type, hpread_read_struct_type)
11215 (fix_static_member_physnames, hpread_read_array_type)
11216 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11217 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11218 (java_link_class_type): Ditto.
11219 * mdebugread.c (parse_type): Ditto.
11220 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11221 * solib-sunos.c (solib_add_common_symbols): Ditto.
11222 * stabsread.c (define_symbol, read_type, read_member_functions,
11223 read_cpp_abbrev, read_one_struct_field): Ditto.
11224 * symfile.c (reread_symbols): Ditto.
11225 * symmisc.c (print_objfile_statistics): Ditto.
11227 2004-02-07 Andrew Cagney <cagney@redhat.com>
11229 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11230 (tui_exec_info_content): Rename TuiExecInfoContent.
11231 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11232 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11233 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11234 (TuiList, TuiListPtr): Ditto.
11235 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11236 (TuiDataType, TuiDataTypePtr): Ditto.
11237 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11238 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11239 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11240 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11241 (TuiDataElement, TuiDataElementPtr): Ditto.
11242 (TuiWinElement, TuiWinElementPtr): Ditto.
11243 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11244 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11245 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11246 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11247 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11248 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11249 * tui/tui-command.c, tui/tui-data.c: Update references.
11250 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11251 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11252 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11253 * tui/tui-winsource.c, tui/tui.c: Ditto.
11255 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11257 * dwarf2-frame.h: Update copyright.
11258 (enum dwarf2_frame_reg_rule): New.
11259 (struct dwarf2_frame_state_reg): New.
11260 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11261 * dwarf2-frame.c: Update copyright.
11262 (enum dwarf2_reg_rule): Remove.
11263 (struct dwarf2_frame_state): Remove defenition of `struct
11264 dwarf2_frame_state_reg'.
11265 (read_reg): Call get_frame_arch to get the architecture instead of
11266 using CURRENT_GDBARCH.
11267 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11269 (dwarf2_frame_init_reg): New function.
11270 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11271 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11272 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11273 tags with DWARF2_FRAME_.
11274 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11275 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11276 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11278 2004-02-06 Andrew Cagney <cagney@redhat.com>
11280 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11281 (enum tui_data_type): Rename _TuiDataType.
11282 (struct tui_layout_def): Rename _TuiLayoutDef.
11283 (struct tui_source_element): Rename _TuiSourceElement.
11284 (struct tui_data_element): Rename _TuiDataElement.
11285 (struct tui_command_element): Rename _TuiCommandElement.
11286 (struct tui_locator_element): Rename _TuiLocatorElement.
11287 (union tui_which_element): Define.
11288 (struct tui_win_element): Rename _TuiWinElement.
11289 (struct tui_data_info): Rename _TuiDataInfo.
11290 (struct tui_source_info): Rename _TuiSourceInfo.
11291 (struct tui_command_info): Rename _TuiCommandInfo.
11292 (tui_initialize_static_data): Rename initializeStaticData.
11293 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11294 (tui_alloc_win_info): Rename allocWinInfo.
11295 (tui_init_generic_part): Rename initGenericPart.
11296 (tui_init_win_info): Rename initWinInfo.
11297 (tui_alloc_content): Rename allocContent.
11298 (tui_add_content_elements): Rename addContentElements.
11299 (tui_init_content_element): Rename initContentElement.
11300 (tui_free_window): Rename freeWindow.
11301 (tui_free_win_content): Rename freeWinContent.
11302 (tui_free_data_content): Rename freeDataContent.
11303 (tui_free_all_source_wins_content): Rename
11304 freeAllSourceWinsContent.
11305 (tui_del_window): Rename tuiDelWindow.
11306 (tui_del_data_windows): Rename tuiDelDataWindows.
11307 (tui_partial_win_by_name): Rename partialWinByName.
11308 (tui_win_name): Rename winName.
11309 (tui_current_layout): Rename currentLayout.
11310 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11311 (tui_term_height): Rename termHeight.
11312 (tui_set_term_height_to): Rename setTermHeightTo.
11313 (tui_term_width): Rename termWidth.
11314 (tui_set_term_width_to): Rename setTermWidthTo.
11315 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11316 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11317 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11318 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11319 (tui_source_windows): Rename sourceWindows.
11320 (tui_clear_source_windows): Rename clearSourceWindows.
11321 (tui_clear_source_windows_detail): Rename
11322 clearSourceWindowsDetail.
11323 (tui_clear_win_detail): Rename clearWinDetail.
11324 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11325 (tui_default_tab_len): Rename tuiDefaultTabLen.
11326 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11327 (tui_win_with_focus): Rename tuiWinWithFocus.
11328 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11329 (tui_layout_def): Rename tuiLayoutDef.
11330 (tui_win_resized): Rename tuiWinResized.
11331 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11332 (tui_next_win): Rename tuiNextWin.
11333 (tui_prev_win): Rename tuiPrevWin.
11334 (tui_add_to_source_windows): Rename addToSourceWindows.
11335 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11336 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11337 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11338 * tui/tui.c, tui/tui-data.c: Ditto.
11339 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11340 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11342 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11343 (struct symtab): Declare.
11344 (tui_set_source_content): Rename tuiSetSourceContent.
11345 (tui_show_symtab_source): Rename tuiShowSource.
11346 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11347 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11348 * tui/tui-source.c: Update copyright. Update references.
11349 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11350 * tui/tui-stack.c: Update references.
11352 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11353 (struct tui_win_info): Declare.
11354 (tui_scroll_forward): Rename tuiScrollForward.
11355 (tui_scroll_backward): Rename tuiScrollBackward.
11356 (tui_scroll_left): Rename tuiScrollLeft.
11357 (tui_scroll_right): Rename tuiScrollRight.
11358 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11359 (tui_resize_all): Rename tuiResizeAll.
11360 (tui_refresh_all_win): Rename tuiRefreshAll.
11361 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11362 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11363 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11364 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11366 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11367 (tui_erase_data_content): Rename tuiEraseDataContent.
11368 (tui_display_all_data): Rename tuiDisplayAllData.
11369 (tui_check_data_values): Rename tuiCheckDataValues.
11370 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11371 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11372 (tui_first_data_element_no_in_line): Rename
11373 tuiFirstDataElementNoInLine.
11374 (tui_delete_data_content_windows): Rename
11375 tuiDeleteDataContentWindows.
11376 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11377 (tui_display_data_from): Rename tuiDisplayDataFrom.
11378 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11379 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11380 * tui/tui-win.c, tui/tui-regs.c: Update references.
11381 * tui/tui-layout.c, tui/tui.c: Update references.
11383 * tui/tui-wingeneral.h: Update copyright.
11384 (m_allBeVisible): Delete macro.
11385 (m_allBeInvisible): Delete macro.
11386 (struct tui_gen_win_info): Declare.
11387 (struct tui_win_info): Declare.
11388 (tui_unhighlight_win): Rename unhighlightWin.
11389 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11390 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11391 (tui_make_window): Rename makeWindow.
11392 (tui_copy_win): Rename copyWin.
11393 (tui_box_win): Rename boxWin.
11394 (tui_highlight_win): Rename highlightWin.
11395 (tui_check_and_display_highlight_if_needed): Rename
11396 checkAndDisplayHighlightIfNeeded.
11397 (tui_refresh_all): Rename refreshAll.
11398 (tui_delete_win): Rename tuiDelwin.
11399 (tui_refresh_win): Rename tuiRefreshWin.
11400 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11401 (tui_make_visible, tui_make_invisible): New functions.
11402 (tui_make_all_visible, tui_make_all_invisible): New functions.
11403 (make_all_visible): Rename makeAllVisible.
11404 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11405 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11406 * tui/tui-windata.c, tui/tui-win.c: Update references.
11407 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11408 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11410 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11412 * proc-api.c (write_with_trace): Initialize local variable to
11413 silence compiler warning.
11415 2004-02-06 Andrew Cagney <cagney@redhat.com>
11417 * tui/tui-source.h: Do not include "defs.h".
11418 (struct tui_win_info): Declare.
11419 (tui_set_source_content_nil): Declare.
11420 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11421 (union tui_line_or_address): Rename _TuiLineOrAddress.
11422 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11423 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11424 (tui_update_source_window_as_is): Rename
11425 tuiUpdateSourceWindowAsIs.
11426 (tui_update_source_windows_with_addr): Rename
11427 tuiUpdateSourceWindowsWithAddr.
11428 (tui_update_source_windows_with_line): Rename
11429 tuiUpdateSourceWindowsWithLine.
11430 (tui_clear_source_content): Rename tuiClearSourceContent.
11431 (tui_erase_source_content): Rename tuiEraseSourceContent.
11432 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11433 (tui_show_source_content): Rename tuiShowSourceContent.
11434 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11435 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11436 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11437 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11438 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11439 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11440 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11441 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11442 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11443 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11444 (struct tui_win_info): Declare.
11445 * tui/tui-stack.c: Update references.
11446 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11447 * tui/tui-win.c, tui/tui-source.c: Ditto.
11448 * tui/tui.c, tui/tui-disasm.c: Ditto.
11450 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11452 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11453 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11455 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11457 * infrun.c (handle_inferior_event): Allow for breakpoint
11458 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11459 and SIGEMT. Update comments.
11460 * NEWS (Revised SPARC target): Mention support for non-executable
11463 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11465 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11466 * inftarg.c: Update copyright year.
11467 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11468 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11469 (sparc_xfer_wcookie): New function.
11470 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11471 * Makefile.in (sparc-nat.o): Update dependencies.
11472 * config/sparc/nm-nbsd.h: Include "target.h".
11473 (NATIVE_XFER_WCOOKIE): New define.
11474 (sparc_xfer_wcookie): New prototype.
11476 2004-02-04 Andrew Cagney <cagney@redhat.com>
11478 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11479 SYSCALL_TRAP function.
11480 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11482 2004-02-04 Andrew Cagney <cagney@redhat.com>
11483 Daniel Jacobowitz <drow@mvista.com>
11485 * objfiles.h: Delete comments refering to inside_entry_func and
11486 DEPRECATED_FRAME_CHAIN_VALID.
11487 * defs.h (inside_entry_func): Update prototype..
11488 * blockframe.c (inside_entry_func): Rename to
11489 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11490 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11492 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11494 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11495 outside of #ifdef SOLIB_ADD region.
11496 (do_restore_lang_radix_cleanup): Ditto.
11497 (resolve_pending_breakpoint): Ditto.
11499 2004-02-03 Andrew Cagney <cagney@redhat.com>
11501 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11502 (process_note_abi_tag_sections): Delete unused function.
11503 (ia64_read_fp): Delete unused function.
11504 (gdbarch_extract_struct_value_address): Delete declaration.
11506 2004-02-02 Andrew Cagney <cagney@redhat.com>
11508 * vax-tdep.c (vax_frame_chain): Delete call to
11509 deprecated_inside_entry_file.
11510 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11512 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11514 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11515 column that's "empty" or "same value" when eliminating REG_RA
11518 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11520 * NEWS: Add information about new pending breakpoint support.
11522 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11524 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11525 and pending fields for pending breakpoint support.
11526 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11527 (condition_command): Only parse condition if not a pending
11529 (print_one_breakpoint): Add support for pending breakpoints.
11530 (describe_other_breakpoints): Add checks to verify we are not
11531 dealing with pending breakpoints.
11532 (check_duplicates): Don't check pending breakpoints.
11533 (set_raw_breakpoint): Initialize pending flag.
11534 (do_restore_lang_radix_cleanup): New cleanup routine.
11535 (resolve_pending_breakpoint): New function.
11536 (re_enable_breakpoints_in_shlibs): Try and resolve any
11537 pending breakpoints via resolve_pending_breakpoint.
11538 (mention): Add pending breakpoint support.
11539 (parse_breakpoint_sals): Add new parameter to pass to
11540 decode_line_1 to indicate silent errors when files or functions
11541 are not found. Change all callers.
11542 (do_captured_parse_breakpoint): New function.
11543 (break_command_1): Change prototype to return an rc value and to
11544 take an optional pending breakpoint pointer. Support creating
11545 a pending breakpoint if a "not found" form of error occurs when
11546 parsing the breakpoint. Also support resolving an existing pending
11547 breakpoint and be silent if the resolution fails.
11548 (create_breakpoints): Change prototype to take pending breakpoint
11549 pointer. When resolving a pending breakpoint, use the new pointer
11550 to provide a conditional or commands added by the end-user.
11551 (delete_breakpoint): Add appropriate check for pending.
11552 (breakpoint_re_set_one): Ditto.
11553 (do_enable_breakpoint): Ditto.
11555 2004-02-02 David Carlton <carlton@kealia.com>
11557 * valops.c (enum oload_classification): New.
11558 (find_overload_match): Break implementation into separate
11559 functions; delete #if 0'd code; look for symbols within
11561 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11562 (find_oload_champ,oload_method_static,classify_oload_match): New.
11563 * cp-support.h: Add declaration for cp_func_name; update
11564 declaration for make_symbol_overload_list.
11565 * cp-support.c (cp_func_name): New.
11566 (overload_list_add_symbol): Fix comment, use
11567 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11568 (make_symbol_overload_list): Take a function name and a namespace
11569 instead of a symbol; change implementation.
11570 (make_symbol_overload_list_using): New.
11571 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11573 2004-02-02 Fred Fish <fnf@redhat.com>
11575 * main.c (gdb_stdtarg): Move definition to group with other
11576 gdb_stdtarg definitions and update copyright years.
11577 * remote-sim.c (gdb_os_write_stderr): Write output to
11578 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11579 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11580 gdb_stderr stream and update copyright years.
11582 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11584 * Makefile.in (mips-linux-nat.o): Update dependencies.
11585 * mips-linux-nat.c: Include mips-tdep.h.
11587 2004-02-01 Roland McGrath <roland@redhat.com>
11589 * sol-thread.c (sol_thread_xfer_partial): New function.
11590 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11591 (init_sol_core_ops): Likewise.
11593 * procfs.c (procfs_xfer_partial): New function.
11594 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11595 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11597 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11598 procfs_xfer_auxv function.
11600 * procfs.c (procfs_make_note_section): If we can read
11601 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11602 * linux-proc.c (linux_make_note_section): Likewise.
11604 * auxv.h: New file.
11605 * auxv.c: New file.
11606 * Makefile.in (auxv_h): New variable.
11607 (COMMON_OBS): Add auxv.o here.
11608 (auxv.o): New target.
11610 * corelow.c (core_xfer_partial): New function.
11611 (init_core_ops): Use it for core_ops.to_xfer_partial.
11613 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11614 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11615 macro if that is defined.
11617 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11619 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11620 and check the specified thread for each breakpoint.
11621 * breakpoint.h (bpstat_stop_status): Update prototype.
11622 * infrun.c (handle_inferior_event): Update calls to
11623 bpstat_stop_status.
11625 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11627 * Makefile.in (cli-cmds.o): Add $(readline_h).
11629 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11631 * cli/cli-cmds.c: Include readline.h.
11632 (complete_command): Pass the start of the last word to
11635 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11637 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11638 argument, and change first argument to a CORE_ADDR.
11639 * breakpoint.h (bpstat_stop_status): Update prototype.
11640 * infrun.c (adjust_pc_after_break): Add a new comment.
11641 (handle_inferior_event): Update calls to bpstat_stop_status.
11643 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11645 * breakpoint.h: Update copyright years.
11647 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11649 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11650 (bpstat_stop_status): Don't decrement PC.
11651 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11653 * infrun.c (adjust_pc_after_break): New function.
11654 (handle_inferior_event): Call it, early. Remove later references
11655 to DECR_PC_AFTER_BREAK.
11656 (normal_stop): Add commentary.
11658 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11660 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11661 2004-01-27 double-free fix.
11663 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11665 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11666 (sparc32_frame_prev_register): Handle StackGhost.
11667 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11669 2004-01-29 Roland McGrath <roland@redhat.com>
11671 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11672 * configure: Regenerated.
11674 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11675 * Makefile.in (procfs.o): Add dep.
11677 2004-01-28 Andrew Cagney <cagney@redhat.com>
11679 * tui/tui-stack.h: Update copyright.
11680 (struct frame_info): Add opaque declaration.
11681 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11682 (tui_show_locator_content): Rename tuiShowLocatorContent.
11683 (tui_show_frame_info): Rename tuiShowFrameInfo.
11684 * tui/tui-stack.c: Update copyright. Update references.
11685 * tui/tui-winsource.c: Update references.
11686 * tui/tui-win.c: Update references.
11687 * tui/tui-layout.c: Update references.
11688 * tui/tui-hooks.c: Update copyright, update references.
11689 * tui/tui.c: Update copyright, update references.
11690 * tui/tui-disasm.c: Update references.
11692 2004-01-28 David Carlton <carlton@kealia.com>
11694 * dwarf2read.c (add_partial_structure): Use demangled name if
11695 namespace equals "".
11697 2004-01-27 Jim Blandy <jimb@redhat.com>
11699 Clean up misapplied patch:
11700 * dwarf2read.c (determine_prefix): Change one of the two forward
11701 declarations for 'determine_prefix_aux' to a declaration for this.
11702 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11703 argument to 'die_specification'.
11705 * dwarf2read.c (read_func_scope): Re-indent comment.
11707 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11709 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11710 b->exp to NULL after freeing so that error during re-parsing or
11711 evaluation of expressions associated with breakpoint don't
11712 eventually lead to re-freeing of storage.
11713 Committed by Andrew Cagney.
11715 2004-01-27 Andrew Cagney <cagney@redhat.com>
11717 * source.c (ambiguous_line_spec): Delete undefined declaration.
11718 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11719 (m32r_set_server_address, m32r_set_download_path): Ditto.
11720 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11722 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11724 * dwarf2read.c: Update calls to changed and renamed functions, and
11725 references to moved variables.
11727 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11728 language, language_defn, list_in_scope, and ftypes members.
11729 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11730 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11731 (baseaddr): Remove globals.
11733 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11734 (set_cu_language, die_is_declaration, die_specification)
11735 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11736 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11737 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11738 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11740 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11741 cu.list_in_scope. Don't initialize cu_header_offset.
11742 (add_partial_symbol): Add local baseaddr.
11743 (psymtab_to_symtab_1): Add local baseaddr. Use
11744 objfile->section_offsets for consistency. Don't initialize
11745 cu_header_offset; do initialize cu.header.offset and
11747 (read_file_scope, read_func_scope, read_lexical_block_scope)
11748 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11750 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11752 * PROBLEMS: Add gdb/1516.
11754 2003-12-29 Robert Millan <robertmh@gnu.org>
11756 Patch committed by Andrw Cagney.
11757 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11758 * configure.tgt: Match knetbsd*-gnu.
11760 2004-01-26 Andrew Cagney <cagney@redhat.com>
11762 * breakpoint.c (catch_command_1): Delete #ifdef code.
11763 (catch_fork_command_1): Delete #ifdef wrapper.
11764 (catch_exec_command_1): Ditto.
11765 (catch_load_command_1): Ditto.
11766 (catch_unload_command_1): Ditto.
11768 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11769 (catch_breakpoint): Delete #if0ed function.
11770 (disable_catch_breakpoint): Ditto.
11771 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11772 (disable_catch, enable_catch, delete_catch): Ditto.
11774 2004-01-26 Andrew Cagney <cagney@redhat.com>
11776 * remote.c (echo_check, quit_flag): Delete variables.
11777 (cisco_kernel_mode): Delete variable.
11778 (minitelnet_return, tty_input, escape_count): Delete variables.
11779 (remote_cisco_mode): Delete variable.
11780 (remote_cisco_open, remote_cisco_close): Delete function.
11781 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11782 (init_remote_cisco_ops): Delete function.
11783 (_initialize_remote): Do not install "remote cisco" code.
11784 (read_frame): Delete cisco specific code.
11785 (remote_info_process): Delete function.
11786 (remote_wait): Delete cisco specific code.
11787 (remote_cisco_section_offsets): Delete function.
11788 (remote_cisco_objfile_relocate): Delete function.
11789 (remote_async_wait): Delete cisco specific code.
11790 (minitelnet, readtty, readsocket): Delete function.
11792 2004-01-26 Andrew Cagney <cagney@redhat.com>
11794 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11795 comments mentioning extract_returned_value_address.
11796 * infcmd.c (print_return_value): Update. Add comments on
11797 extract_returned_value_address.
11798 * stack.c (return_command): Add comments on
11799 extract_returned_value_address.
11800 * values.c: Update comment.
11801 * m32r-tdep.c: Update comment.
11802 * sparc-tdep.c: Update comment.
11803 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11805 * sh64-tdep.c (sh64_gdbarch_init): Update.
11806 * sh-tdep.c (sh_gdbarch_init): Update.
11807 * s390-tdep.c (s390_gdbarch_init): Update.
11808 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11809 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11810 * m68k-tdep.c (m68k_gdbarch_init): Update.
11811 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11812 * m32r-tdep.c (m32r_gdbarch_init): Update.
11813 * ia64-tdep.c (ia64_gdbarch_init): Update.
11814 * h8300-tdep.c (h8300_gdbarch_init): Update.
11815 * frv-tdep.c (frv_gdbarch_init): Update.
11816 * arm-tdep.c (arm_gdbarch_init): Update.
11817 * alpha-tdep.c (alpha_gdbarch_init): Update.
11819 2004-01-26 Andrew Cagney <cagney@redhat.com>
11821 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11822 SYMBOL_LOCATION_FUNCS
11823 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11824 "struct symbol_ops".
11825 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11826 type to "struct symbol_ops".
11827 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11828 (struct symbol): Replace ".aux_value.loc.funcs" and
11829 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11830 (SYMBOL_OBJFILE): Delete macro.
11831 (SYMBOL_LOCATION_FUNCS): Delete macro.
11832 (SYMBOL_LOCATION_BATON): Update.
11833 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11834 intead of SYMBOL_LOCATION_FUNCS.
11835 * ax-gdb.c (gen_var_ref): Ditto.
11836 * printcmd.c (address_info): Ditto.
11837 * findvar.c (read_var_value): Ditto.
11838 (symbol_read_needs_frame): Ditto.
11840 2004-01-26 Andrew Cagney <cagney@redhat.com>
11842 * dwarf2read.c (read_func_scope): Document frame-base hack.
11844 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11846 * infcmd.c (print_return_value): Plug memory leak; delete
11847 ui_stream object. Rename argument `structure_return' to
11850 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11852 * infcmd.c (print_return_value): Wrap long lines.
11853 (finish_command_continuation, finish_command): Remove unused
11854 variable `funcaddr'. Fix some coding-standards problems.
11856 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11857 SECT_SIZE is large enough, not whether it's exactly the right size.
11858 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11859 TDEP->fpregset to zero.
11861 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11862 floating-point registers for traditional NetBSD core files.
11863 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11864 TDEP->sizeof_fpregset here.
11866 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11868 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11869 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11870 function with code split out from
11871 sparc32nbsd_sigcontext_frame_cache.
11872 (sparc32nbsd_sigcontext_frame_cache): Use
11873 sparc32nbsd_sigcontext_saved_regs.
11874 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11876 * sparcobsd-tdep.c: New file.
11877 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11878 (sparcobsd-tdep.o): New dependency.
11879 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11880 * config/sparc/obsd.mt: New file.
11882 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11883 TDEP->fpregset to be initialized to enable core file register
11886 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11888 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11889 Add opaque declarations.
11890 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11891 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11892 function with code split out from
11893 sparc64nbsd_sigcontext_frame_cache.
11894 (sparc64nbsd_sigcontext_frame_cache): Use
11895 sparc64nbsd_sigcontext_saved_regs.
11896 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11898 * sparc64obsd-tdep.c: New file.
11899 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11900 (sparc64obsd-tdep.o): New dependency.
11901 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11902 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11903 * config/sparc/obsd64.mt: New file.
11905 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11906 read the instruction at PC.
11908 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11909 value of GDB_OSABI_DEFAULT.
11910 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11911 instead of GDB_OSABI_NETBSD_AOUT.
11913 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11915 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11918 2004-01-23 Andrew Cagney <cagney@redhat.com>
11920 * printcmd.c (display_command): Replace tui_set_display call with
11921 tui_set_layout_for_display_command.
11922 * tui/tui.h (enum tui_win_type): Define.
11923 (tui_set_layout): Delete declaration.
11924 (tui_set_layout_for_display_command): Rename set_tui_layout.
11925 * tui/tui-data.h (enum tui_layout_type): Define.
11926 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11928 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11929 (tui_default_win_height): Rename tuiDefaultWinHeight.
11930 (tui_default_win_viewport_height): Rename
11931 tuiDefaultWinViewportHeight.
11932 (tui_set_layout): RenametuiSetLayout.
11933 * tui/tui-layout.c: Update references.
11934 * tui/tui.c: Update references.
11935 * tui/tui-disasm.c: Update references.
11937 2004-01-23 David Carlton <carlton@kealia.com>
11939 Partial workaround for PR c++/1511:
11940 * cp-namespace.c: Include frame.h.
11941 (cp_lookup_transparent_type): New
11942 (cp_lookup_transparent_type_loop): New.
11943 * cp-support.h: Declare cp_lookup_transparent_type.
11944 * symtab.c (basic_lookup_transparent_type): Renamed from
11945 lookup_transparent_type.
11946 (lookup_transparent_type): Replace old body by a call to
11947 current_language->la_lookup_transparent_type.
11948 * symtab.h: Update copyright. Declare
11949 basic_lookup_transparent_type.
11950 * language.h: Update copyright.
11951 (struct language_defn): Add la_lookup_transparent_type.
11952 * language.c: Update copyright.
11953 (unknown_language_defn): Add basic_lookup_transparent_type.
11954 (auto_language_defn): Add basic_lookup_transparent_type.
11955 (local_language_defn): Add basic_lookup_transparent_type.
11956 * ada-lang.c: Update copyright.
11957 (ada_language_defn): Add basic_lookup_transparent_type.
11958 * c-lang.c: Update copyright.
11959 (c_language_defn): Add basic_lookup_transparent_type.
11960 (cplus_language_defn): Add basic_lookup_transparent_type.
11961 (asm_language_defn): Add basic_lookup_transparent_type.
11962 (minimal_language_defn): Add basic_lookup_transparent_type.
11963 * f-lang.c: Update copyright.
11964 (f_language_defn): Add basic_lookup_transparent_type.
11965 * jv-lang.c: Update copyright.
11966 (java_language_defn): Add basic_lookup_transparent_type.
11967 * m2-lang.c: Update copyright.
11968 (m2_language_defn): Add basic_lookup_transparent_type.
11969 * objc-lang.c: Update copyright.
11970 (objc_language_defn): Add basic_lookup_transparent_type.
11971 * p-lang.c: Update copyright.
11972 (p_language_defn): Add basic_lookup_transparent_type.
11973 * scm-lang.c: Update copyright.
11974 (scm_language_defn): Add basic_lookup_transparent_type.
11975 * Makefile.in (cp-namespace.o): Depend on frame.h.
11977 2004-01-23 David Carlton <carlton@kealia.com>
11979 Patch for PR c++/1520:
11980 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11981 properly if we have a specification die.
11982 (determine_prefix_aux): Rename from determine_prefix.
11983 (determine_prefix): Like the old determine_prefix, but never
11986 2004-01-23 Theodore A. Roth <troth@openavr.org>
11988 * avr-tdep.c: Update copyright.
11989 (avr_iaddr_p): Delete unused function.
11990 (avr_saddr_p): Delete unused function.
11992 2004-01-23 David Carlton <carlton@kealia.com>
11994 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11995 Fix for PR symtab/1534.
11997 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11999 * NEWS (New native configurations): Mention OpenBSD/sparc and
12001 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12002 * configure.host: Likewise.
12003 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12004 handler for OpenBSD.
12005 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12007 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12009 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12010 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12012 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12013 * cli/cli-cmds.c (shell_escape): Likewise.
12015 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12016 OpenBSD .note.openbsd.ident sections.
12018 2004-01-22 David Carlton <carlton@kealia.com>
12020 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12021 get_scope_pc_bounds.
12022 (read_file_scope): Ditto.
12023 (get_scope_pc_bounds): New function, produced by extracting code
12024 from the above two functions, consolidating it, and adding support
12025 for DW_TAG_namespace.
12027 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12029 * osabi.c (MAX_NOTESZ): New define.
12030 (check_note): New function.
12031 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12034 2004-01-21 Roland McGrath <roland@redhat.com>
12036 * MAINTAINERS (write after approval): Add myself.
12038 2004-01-21 Eli Zaretskii <eliz@gnu.org>
12040 * utils.c (init_page_info): Move declarations of `rows' and
12041 `cols' before the __GO32__-specific code. Move the closing brace
12042 outside the #ifdef __GO32__..#endif block.
12043 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12045 2004-01-21 Paul Brook <paul@codesourcery.com>
12047 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12048 BPSTAT_WHAT_CHECK_SHLIBS.
12050 2004-01-21 Paul Brook <paul@codesourcery.com>
12052 * MAINTAINERS: Add myself to write-after-approval.
12054 2004-01-20 Andrew Cagney <cagney@redhat.com>
12056 * ax-gdb.c (print_axs_value): Delete unused function.
12057 * jv-lang.c (java_lookup_type): Delete unused function.
12058 * cli/cli-dump.c (dump_filetype): Delete unused function.
12059 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12060 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12061 (mips_getstring): Delete unused function.
12062 (pmon_insert_breakpoint): Delete #if0ed function.
12063 (PMON_MAX_BP): Delete #if0ed MACRO.
12064 (mips_pmon_bp_info): Delete #if0ed variable.
12065 (pmon_remove_breakpoint): Delete #if0ed function.
12066 * monitor.c (monitor_write_even_block): Delete unused function.
12067 (monitor_write_memory_block): Delete #if0ed code.
12068 * dink32-rom.c (dink32_load): Delete unused function.
12069 (_initialize_dink32_rom): Delete #if0ed code.
12070 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12072 * tui/tui-command.c: Update references.
12073 * tui/tui-io.c: Update references.
12074 * tui/tui-command.h: Update copyright.
12075 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12077 * source.c (ambiguous_line_spec): Delete never-defined function.
12078 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12079 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12080 * cli/cli-cmds.c (validate_comname): Ditto.
12082 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12084 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12085 (tui_show_disassem): Rename tuiShowDisassem.
12086 (tui_show_disassem_and_update_source): Rename
12087 tuiVerticalDisassemScroll.
12088 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12089 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12090 * tui/tui.h: Update copyright.
12091 (enum tui_status): Define.
12092 * tui/tui-data.h (enum tui_scroll_direction): Define.
12093 * tui/tui-disasm.c: Update copyright. Update references.
12094 * tui/tui-winsource.c: Update copyright. Update references.
12095 * tui/tui-win.c: Update references.
12096 * tui/tui-layout.c: Update references.
12098 2004-01-20 Andrew Cagney <cagney@redhat.com>
12100 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12101 sym2 to start of block.
12103 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12105 * MAINTAINERS: Delete mmalloc.
12106 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12107 * NEWS: Mention removal of --with-malloc.
12108 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12109 * config.in: Regenerate.
12110 * configure: Regenerate.
12111 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12112 USE_MMALLOC, MMCHECK_FORCE.
12113 * gdbinit.in: Remove mmalloc.
12114 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12115 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12116 * config/i386/go32.mh: Likewise.
12117 * config/i386/interix.mh: Likewise.
12118 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12120 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12122 * linespec.c (decode_variable, symtab_from_filename): Call
12123 error_silent with error message instead of throwing an exception
12125 * defs.h (error_silent, error_output_message): Add prototypes.
12126 (catch_exceptions_with_msg): Ditto.
12127 * utils.c (error_silent, error_output_message): New functions.
12128 * top.c (catch_exceptions_with_msg): New function.
12130 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
12132 * mi/mi-cmds.h (enum print_values): Add definition.
12134 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12135 type and value for simple data types and just the name and type
12136 for complex ones, if required.
12138 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12139 children, if required.
12141 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12143 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12144 unused declarations.
12146 2004-01-19 Andrew Cagney <cagney@redhat.com>
12148 * top.h (mapped_symbol_files): Delete declaration.
12149 * main.c (captured_main): Delete option "m" and "mapped".
12150 * objfiles.c (mapped_symbol_files): Delete variable.
12151 * symfile.c (symbol_file_command): Delete mmap code.
12152 (symbol_file_add_with_addrs_or_offsets): Ditto.
12153 (add_symbol_file_command, reread_separate_symbols): Ditto.
12154 * objfiles.h (OBJF_MAPPED): Delete.
12155 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12156 (free_objfile) [USE_MMALLOC]: Ditto.
12157 (open_existing_mapped_file): Delete function.
12158 (open_mapped_file): Delete function.
12159 (map_to_file): Delete function.
12161 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12163 * infrun.c (step_into_function): Account for possible breakpoint
12164 adjustment when computing ``stop_func_start''.
12166 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12168 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12169 the region size against the size of a pointer, not the size of
12170 a register as given by DEPRECATED_REGISTER_SIZE.
12172 2004-01-19 Andrew Cagney <cagney@redhat.com>
12174 * tui/tui-regs.h: Include "tui-data.h".
12175 (tuiFirstRegElementNoInLine): Delete declaration.
12176 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12177 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12178 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12179 (tui_calculate_regs_column_count): Rename
12180 tuiCalculateRegsColumnCount.
12181 (tui_check_register_values): Rename tuiCheckRegisterValues.
12182 (tui_show_registers): Rename tuiShowRegisters.
12183 (tui_display_registers_from_line): Rename
12184 tuiDisplayRegistersFromLine.
12185 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12186 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12187 (tui_first_reg_element_no_inline): Rename
12188 tuiFirstRegElementNoInLine.
12189 * tui/tui-data.h: Update copyright.
12190 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12191 * tui/tui-windata.c: Update copyright, update references.
12192 * tui/tui-regs.c: Update copyright, update references.
12193 * tui/tui-win.c: Update copyright, update references.
12194 * tui/tui-layout.c: Update copyright, update references.
12196 2004-01-18 Andrew Cagney <cagney@redhat.com>
12198 * tui/tui-io.c: Update copyright.
12199 (key_is_end_sequence, key_is_backspace): New functions.
12200 (key_is_command_char, key_is_start_sequence): New function.
12201 (tui_getc): Update references.
12202 * tui/tui-io.h: Update copyright.
12203 (m_tuiStartNewLine): Delete macro.
12204 (m_isBackspace, m_isDeleteChar): Delete macros.
12205 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12206 (m_isNextPage, m_isPrevPage): Delete macros.
12207 (m_isLeftArrow, m_isRightArrow): Delete macros.
12208 (m_isXdbStyleCommandChar): Delete macro.
12209 (key_is_start_sequence): Declare, replace m_isStartSequence.
12210 (key_is_end_sequence): Declare, replace m_isEndSequence.
12211 (key_is_backspace): Declare ,replace m_isBackspace.
12212 (key_is_command_char): Declare, replace m_isCommandChar.
12213 * tui/tui-command.c: Update copyright.
12214 (tuiDispatchCtrlChar): Update references.
12216 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12219 * tui/tui-command.c: Rename tui/tuiCommand.c.
12220 * tui/tui-command.h: Rename tui/tuiCommand.h.
12221 * tui/tui-data.c: Rename tui/tuiData.c.
12222 * tui/tui-data.h: Rename tui/tuiData.h.
12223 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12224 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12225 * tui/tui-io.c: Rename tui/tuiIO.c.
12226 * tui/tui-io.h: Rename tui/tuiIO.h.
12227 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12228 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12229 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12230 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12231 * tui/tui-source.c: Rename tui/tuiSource.c.
12232 * tui/tui-source.h: Rename tui/tuiSource.h.
12233 * tui/tui-stack.c: Rename tui/tuiStack.c.
12234 * tui/tui-stack.h: Rename tui/tuiStack.h.
12235 * tui/tui-win.c: Rename tui/tuiWin.c.
12236 * tui/tui-win.h: Rename tui/tuiWin.h.
12237 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12238 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12239 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12240 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12241 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12242 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12243 * tui/tui-file.c: Update includes.
12244 * tui/tui-hooks.c: Update includes.
12245 * tui/tui-interp.c: Update includes.
12246 * tui/tui.c: Update includes.
12247 * Makefile.in: Update all tui/ dependencies.
12248 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12250 * Makefile.in: Update copyright. Update dependencies.
12252 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12255 2004-01-18 Andrew Cagney <cagney@redhat.com>
12257 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12258 instead of register_gdbarch_init.
12260 * remote-sds.c (tohex): Delete unused function. Update copyright.
12261 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12262 * v850-tdep.c (v850_register_virtual_size): Ditto.
12263 * target.c (normal_target_post_startup_inferior): Ditto.
12264 * source.c (ambiguous_line_spec): Ditto.
12265 * remote.c (adapt_remote_get_threadinfo): Ditto.
12266 * mi/mi-out.c (out_field_fmt): Ditto.
12267 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12268 (output_control_change_notification): Ditto.
12269 * m68k-tdep.c (m68k_register_byte): Ditto.
12270 (m68k_remote_breakpoint_from_pc): Ditto.
12271 * ui-out.c (init_ui_out_state): Delete unused declaration.
12272 * stabsread.c (search_value): Ditto.
12273 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12274 * maint.c (print_section_table): Ditto.
12275 * infrun.c (set_follow_fork_mode_command): Ditto.
12277 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12279 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12280 DW_CFA_def_cfa_exporession. Add support for
12281 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12282 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12284 2004-01-18 Andrew Cagney <cagney@redhat.com>
12286 * ocd.c: Update copyright.
12287 (bdm_read_register_command): Delete unused function.
12288 (_initialize_remote_ocd): Delete commented out reference.
12289 (get_quoted_char, reset_packet): Delete #if0ed function.
12290 (output_packet, put_quoted_char): Delete #if0ed function.
12291 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12292 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12293 (BDM_BREAKPOINT): Delete #if0ed macro.
12294 (remote_timeout): Delete #if0ed variable.
12296 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12298 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12299 (core-sol2.o): Remove dependency.
12300 * core-sol2.c: Remove file.
12302 2004-01-17 Andrew Cagney <cagney@redhat.com>
12304 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12305 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12308 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12310 * remote.c: Update copyright years.
12312 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12314 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12316 2004-01-17 Andrew Cagney <cagney@redhat.com>
12318 * mdebugread.c: Update copyright.
12319 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12320 (parse_type, parse_procedure): Ditto.
12321 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12323 * cris-tdep.c (cris_store_struct_return): Put back accidently
12326 * gdbarch.sh: Update copyright year.
12327 * gdbarch.h, gdbarch.c: Re-generate.
12329 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12331 Suggested by George Anzinger.
12332 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12333 correct stack offset. Include unknown opcode numbers in the error
12336 2004-01-17 Andrew Cagney <cagney@redhat.com>
12338 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12339 extract_struct_value_address, i386 does not set it.
12340 * sparc64-tdep.c (sparc64_init_abi): Do not set
12341 extract_struct_value_address, never called.
12342 (sparc64_extract_struct_value_address): Delete function.
12343 * m68hc11-tdep.c: Update copyright.
12344 (m68hc11_gdbarch_init): Delete redundant assignment of
12345 extract_struct_value_address.
12346 * i386-tdep.c: Update copyright.
12347 (i386_gdbarch_init): Do not set extract_struct_value_address,
12349 (i386_extract_struct_value_address): Delete function.
12350 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12351 extract_struct_value_address, never called.
12352 (sparc32_extract_struct_value_address): #if 0 function. Add
12353 comments explaining its future.
12355 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12357 * arm-tdep.c (arm_write_pc): New function.
12358 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12360 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12362 * breakpoint.c (must_shift_inst_regs): Delete.
12363 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12364 and SHIFT_INST_REGS.
12365 * infcmd.c (step_1, step_1_continuation): Delete references to
12367 * infrun.c (keep_going): Likewise.
12368 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12369 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12371 2004-01-17 Andrew Cagney <cagney@redhat.com>
12373 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12374 * gdbarch.h, gdbarch.c: Re-generate.
12375 * infcmd.c (print_return_value): Delete reference to
12376 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12378 * cris-tdep.c (cris_gdbarch_init): Do not set
12379 deprecated_extract_struct_value_address.
12381 * xstormy16-tdep.c: Update copyright.
12382 (xstormy16_extract_struct_value_address): Update to current
12383 extract struct value address interface.
12384 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12385 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12386 current extract struct value address interface.
12387 (sh64_gdbarch_init): Set extract_struct_value_address.
12389 * cris-tdep.c: Update copyright.
12390 (cris_extract_struct_value_address): Delete function.
12391 (struct_return_address): Delete variable.
12392 (cris_store_struct_return): Do not set struct_return_address.
12394 * mcore-tdep.c: Update copyright.
12395 (mcore_extract_struct_value_address): Delete function. Update
12397 (mcore_gdbarch_init): Update.
12398 * mn10300-tdep.c: Update copyright.
12399 (mn10300_extract_struct_value_address): Delete function.
12400 (mn10300_gdbarch_init): Update.
12401 * v850-tdep.c: Update copyright.
12402 (v850_extract_struct_value_address): Delete.
12403 (v850_gdbarch_init): Update.
12404 * ns32k-tdep.c: Update copyright.
12405 (ns32k_extract_struct_value_address): Delete.
12406 (ns32k_gdbarch_init): Update.
12407 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12408 (hppa_gdbarch_init): Update.
12409 * vax-tdep.c: Update copyright.
12410 (vax_extract_struct_value_address): Delete.
12411 (vax_gdbarch_init): Update.
12413 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12414 * gdbarch.h, gdbarch.c: Re-generate.
12415 * procfs.c (procfs_fetch_registers): Delete reference to
12416 DEPRECATED_NPC_REGNUM.
12417 (procfs_store_registers): Ditto.
12418 * regcache.c (generic_target_write_pc): Simplify.
12419 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12421 * core-sol2.c (fetch_core_registers): Replace
12422 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12424 * hppa-tdep.c: Update copyright year.
12425 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12427 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12429 * mips-tdep.c (mips_write_pc): New function.
12430 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12431 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12432 (mips_find_saved_regs, mips_software_single_step: Ditto.
12433 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12434 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12436 2004-01-17 Andrew Cagney <cagney@redhat.com>
12438 * mips-tdep.c: Re-indent. Group functions by ABI.
12440 2004-01-17 Andrew Cagney <cagney@redhat.com>
12442 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12443 * gdbarch.c: Re-generate.
12444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12445 DECR_PC_AFTER_BREAK to zero.
12446 * vax-tdep.c (vax_gdbarch_init): Ditto.
12447 * v850-tdep.c (v850_gdbarch_init): Ditto.
12448 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12449 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12450 * sh-tdep.c (sh_gdbarch_init): Ditto.
12451 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12452 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12453 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12454 * mips-tdep.c (mips_gdbarch_init): Ditto.
12455 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12457 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12458 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12459 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12460 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12461 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12462 * frv-tdep.c (frv_gdbarch_init): Ditto.
12463 * cris-tdep.c (cris_gdbarch_init): Ditto.
12464 * avr-tdep.c (avr_gdbarch_init): Ditto.
12465 * arm-tdep.c (arm_gdbarch_init): Ditto.
12466 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12468 2004-01-17 J. Brobecker <brobecker@gnat.com>
12470 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12471 Delete, no longer used.
12472 (read_subrange_type): New function, mostly extracted from
12474 (read_array_type): Replace extracted code by call to
12475 read_subrange_type().
12476 (dwarf2_get_attr_constant_value): New function.
12477 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12478 (add_partial_symbol): Likewise.
12479 (process_die): Likewise.
12480 (new_symbol): Likewise.
12481 (read_type_die): Likewise.
12483 2004-01-16 Andrew Cagney <cagney@redhat.com>
12485 * symfile.c: Update copyright year.
12486 (compare_symbols): Delete unused function.
12487 * stabsread.c: Update copyright year.
12488 (lrs_general_complaint): Delete unused function.
12489 (ref_search_value): Ditto.
12490 (get_substring): Delete declaration.
12491 * sh64-tdep.c: Update copyright year.
12492 (sh64_get_gdb_regnum): Delete unused function.
12493 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12494 Delete unused function.
12496 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12498 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12499 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12501 2004-01-16 Andrew Cagney <cagney@redhat.com>
12503 Changes from Peter Schauer.
12504 * rs6000-tdep.c: Update copyright year.
12505 (rs6000_push_dummy_call): Update the stack pointer before
12506 accessing the corresponding stack region.
12507 * rs6000-nat.c: Update copyright year.
12508 (set_host_arch): Set "info.abfd" to "exec_bfd".
12510 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12512 * blockframe.c: Update copyright year.
12513 (inside_entry_func): Don't treat a zero PC specially.
12515 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12517 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12519 (gcore_create_callback): Ditto. Skip any memory segment that has
12520 no permissions set.
12522 2004-01-14 David Carlton <carlton@kealia.com>
12524 Change symbols for C++ nested types to contain the fully qualified
12525 name, if possible. (At least in the DWARF-2 case.) Partial fix
12526 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12528 * c-exp.y (qualified_type): Handle types nested within classes.
12529 * cp-namespace.c: Update comments.
12530 (cp_set_block_scope): Delete #if 0.
12531 (cp_lookup_nested_type): Handle types nested within classes.
12532 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12534 (add_partial_symbol): Add the name of the enclosing namespace to
12536 (pdi_needs_namespace): New.
12537 (add_partial_namespace): Tweak comment.
12538 (add_partial_structure): New.
12539 (psymtab_to_symtab_1): Initialize processing_current_prefix
12541 (process_die): instead of here.
12542 (read_structure_scope): Try to figure out the name of the class or
12543 namespace that the structure might be defined within.
12544 (read_enumeration): Generate fully-qualified names, if possible.
12545 (read_namespace): Don't set name to NULL.
12546 (die_specification): New.
12547 (new_symbol): Generate fully-qualified names for types.
12548 (read_type_die): Determine appropriate prefix.
12549 (determine_prefix): New.
12550 (typename_concat): New.
12552 * valops.c (value_aggregate_elt): Pass NOSIDE to
12553 value_struct_elt_for_reference.
12554 (value_struct_elt_for_reference): Make static, add NOSIDE
12555 parameter, call value_maybe_namespace_elt as a last resort.
12556 (value_namespace_elt): Break out code into
12557 value_maybe_namespace_elt.
12558 (value_maybe_namespace_elt): New.
12560 2004-01-12 Andrew Cagney <cagney@redhat.com>
12562 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12563 cooked floating-point registers.
12564 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12565 and value_to_register.
12567 2004-01-13 Andrew Cagney <cagney@redhat.com>
12569 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12570 * gdbarch.c: Re-generate.
12571 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12572 FUNCTION_START_OFFSET.
12573 * v850-tdep.c (v850_gdbarch_init): Ditto.
12574 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12575 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12576 * sh-tdep.c (sh_gdbarch_init): Ditto.
12577 * s390-tdep.c (s390_gdbarch_init): Ditto.
12578 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12579 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12580 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12581 * mips-tdep.c (mips_gdbarch_init): Ditto.
12582 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12583 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12585 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12586 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12587 * i386-tdep.c (i386_gdbarch_init): Ditto.
12588 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12589 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12590 * frv-tdep.c (frv_gdbarch_init): Ditto.
12591 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12592 * cris-tdep.c (cris_gdbarch_init): Ditto.
12593 * avr-tdep.c (avr_gdbarch_init): Ditto.
12594 * arm-tdep.c (arm_gdbarch_init): Ditto.
12595 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12597 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12599 * infrun.c (follow_fork_mode_ask): Remove.
12600 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12601 (follow_fork): Simplify and remove internal error for
12602 follow_fork_mode_ask.
12603 (_initialize_infrun): Update "set follow-fork-mode" help text.
12605 2004-01-13 Andrew Cagney <cagney@redhat.com>
12607 * configure.in: Update copyright year.
12608 (build_warnings): Add -Wunused-label.
12609 * configure: Re-generate.
12611 2004-01-12 Andrew Cagney <cagney@redhat.com>
12613 * exec.h (exec_ops): Make "extern".
12615 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12616 the function is void.
12617 (mips_pseudo_register_write): Ditto.
12619 2004-01-12 Andrew Cagney <cagney@redhat.com>
12621 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12622 call. Never defined.
12623 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12624 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12625 (struct sparc_gregset, struct regcache): Ditto.
12626 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12628 2004-01-12 Andrew Cagney <cagney@redhat.com>
12630 * mi/ChangeLog: Delete file. Renamed to ...
12631 * mi/ChangeLog-1999-2003: New file.
12632 * tui/ChangeLog: Delete file. Renamed to ...
12633 * tui/ChangeLog-1998-2003: New file.
12635 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12637 * sparc64nbsd-tdep.c: Include "regset.h".
12638 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12640 (fetch_core_registers): Remove function.
12641 (sparc64nbsd_core_fns): Remove variable.
12642 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12644 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12645 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12646 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12648 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12649 sparc_extract_struct_value_address.
12650 (sparc32_gdbarch_init): Set extract_struct_value_address.
12651 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12653 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12654 return_value_on_stack.
12656 * NEWS: Mention that %cs and %ss have been added to the AMD64
12659 * frame.c: Update copyright year.
12660 (get_prev_frame): Improve comment.
12662 * sparc64fbsd-tdep.c: Include "regset.h".
12663 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12665 (fetch_core_registers): Remove function.
12666 (sparc64fbsd_core_fns): Remove variable.
12667 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12669 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12670 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12671 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12673 * sparcnbsd-tdep.c: Include "regset.h".
12674 (fetch_core_registers): Remove function.
12675 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12676 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12678 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12680 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12682 * sparc-tdep.h (struct regset): Provide opaque declaration.
12683 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12684 fpregset and sizeof_fpregset members.
12685 * sparc-tdep.c (struct regset): Provide opaque declaration.
12686 (sparc_regset_from_core_section): New function.
12687 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12688 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12689 Set regset_from_core_section when appropriate.
12691 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12693 * x86-64-tdep.c (amd64_non_pod_p): New function.
12694 (amd64_classify_aggregate): Return class memory for non-POD
12695 C++ structure types.
12697 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12698 argument. Use it to reserve a register if necessary.
12699 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12700 amd64_push_arguments.
12702 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12704 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12705 register numbers in comments.
12706 * x86-64-tdep.h: Update copyright year.
12707 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12708 Adjust for addition of %cs and %ss.
12709 * amd64fbsd-nat.c: Update copyright year.
12710 (reg_offset): Add register offsets for %cs and %ss.
12711 * amd64fbsd-tdep.c: Update copyright year.
12712 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12713 (amd64fbsd_sc_reg_offset): Likewise.
12714 * x86-64-linux-nat.c: Update copyright year.
12715 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12717 * amd64nbsd-nat.c: Update copyright year.
12718 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12719 * amd64nbsd-tdep.c: Update copyright year.
12720 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12721 * x86-64-linux-tdep.c: Update copyright year.
12722 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12723 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12724 * regformats/reg-x86-64.dat: Add %cs and %ss.
12726 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12727 variables to prevent long lines. Update comments to reflect
12730 2004-01-09 David Carlton <carlton@kealia.com>
12732 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12733 * dwarf2read.c (read_namespace): Pull out name-generating code
12734 into namespace_name. Rename previous_namespace to previous_prefix
12735 and processing_current_namespace to processing_current_prefix..
12736 (namespace_name): New function.
12737 (add_partial_symbol): Substitute uses of pdi->name with
12739 * cp-support.h: Rename processing_current_namespace to
12740 processing_current_prefix.
12741 Update copyright year.
12742 * cp-namespace.c: Rename processing_current_namespace to
12743 processing_current_prefix.
12744 Update copyright year.
12746 2004-01-09 Andrew Cagney <cagney@redhat.com>
12748 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12750 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12752 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12754 (process_one_symbol): Deal with N_PATCH stabs.
12756 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12758 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12760 Update copyright year.
12762 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12764 * config/pa/tm-hppa.h: Update extern declarations for
12765 hppa32_hpux_frame_saved_pc_in_sigtramp,
12766 hppa32_hpux_frame_base_before_sigtramp, and
12767 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12769 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12771 * config/pa/tm-hppah.h: Update copyright years.
12773 2004-01-08 Andrew Cagney <cagney@redhat.com>
12775 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12776 (mips_o32_reg_struct_has_addr): Delete function.
12777 (mips_gdbarch_init): Update.
12778 (mips_extract_struct_value_address): Delete function.
12780 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12782 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12785 2004-01-07 Andrew Cagney <cagney@redhat.com>
12787 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12788 architecture's elf flags (when available).
12790 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12791 FPU to the start, check the MIPS FPU when looking for an old
12793 (set_mipsfpu_single_command): Update the architecture.
12794 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12796 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12797 (mips_mask_address_p): Add "tdep" parameter.
12798 (show_mask_address, mips_addr_bits_remove): Update.
12799 (mips_dump_tdep): Update.
12800 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12801 (MIPS_STACK_ARGSIZE): Delete macro.
12802 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12803 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12804 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12805 (mips_dump_tdep): Update.
12806 (MIPS_SAVED_REGSIZE): Delete macro.
12807 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12808 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12809 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12810 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12811 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12812 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12813 (mips_pop_frame, return_value_location): Update.
12814 (mips_n32n64_return_value, mips_dump_tdep): Update.
12816 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12819 * mips-tdep.c: Update copyright.
12820 (mips_gdbarch_init): Merge two code blocks handling the register
12821 name and number layout.
12823 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12825 * tracepoint.c (validate_actionline): Fix segv at EOF
12827 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12829 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12830 properly for static fields.
12832 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12833 Jason Molenda <jmolenda@apple.com>
12835 * disasm.c: Update copyright to include 2004.
12836 (do_mixed_source_and_assembly): For uiout asm list
12837 and tuple cleanups, initialize to null_cleanup instead of
12838 NULL and do so prior to loop. Only reset when we close off
12839 the tuple/list. Move check for whether to close off the
12840 asm tuple/list to after dump_insns call where it will be run
12841 on each loop iteration.
12843 2004-01-05 Andrew Cagney <cagney@redhat.com>
12845 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12846 should be a switch case and not a label.
12847 * mips-tdep.c (mips32_next_pc): Delete unused labels
12848 "greater_equal_branch" and "less_zero_branch".
12849 * jv-valprint.c (java_print_value_fields): Delete unused label
12852 * target.c (unpush_target): Only close a target that is in the
12855 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12857 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12858 address from [sp + 64] instead of %o2.
12860 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12861 fixes PR backtrace/1476.
12863 2004-01-05 Andrew Cagney <cagney@redhat.com>
12865 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12866 move to start of file.
12867 * i386-tdep.h (struct regcache): Add opaque declaration.
12868 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12870 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12871 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12872 * win32-nat.c (fake_create_process): Use ISO C style definition.
12873 * stabsread.c (define_symbol): Delete #ifndef
12874 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12875 stabs_argument_has_addr call, macro never defined.
12877 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12879 * op50-rom.c: Delete.
12880 * w89k-rom.c: Delete.
12881 * Makefile.in: Remove references.
12883 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12885 * x86-64-tdep.c: Update copyright year.
12886 (struct amd64_register_info): Rename from x86_64_register_info.
12887 (amd64_register_info): Rename from x86_64_register_info.
12888 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12889 (amd64_register_name): Rename from x86_64_register_name.
12890 (amd64_register_type): Rename from x86_64_register_type.
12891 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12892 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12893 (amd64_dwarf_reg_to_regnum): Rename from
12894 x86_64_dwarf_reg_to_regnum.
12895 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12896 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12897 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12898 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12899 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12900 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12901 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12902 (amd64_frame_cache): Rename from x86_64_frame_cache.
12903 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12904 (amd64_frame_prev_register): Rename from
12905 x86_64_frame_prev_register.
12906 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12907 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12908 (amd64_sigtramp_frame_cache): Rename from
12909 x86_64_sigtramp_frame_cache.
12910 (amd64_sigtramp_frame_prev_register): Rename from
12911 x86_64_sigtramp_frame_prev_register.
12912 (amd64_sigtramp_frame_unwind): Rename from
12913 x86_64_sigtramp_frame_unwind.
12914 (amd64_sigtramp_frame_sniffer): Rename from
12915 x86_64_sigtramp_frame_sniffer.
12916 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12917 (amd64_frame_base): Rename from x86_64_frame_base.
12918 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12919 (amd64_frame_align): Rename from x86_64_frame_align.
12920 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12921 (amd64_regset_from_core_section): Rename from
12922 x86_64_regset_from_core_section.
12923 (x86_64_init_abi): Update comments.
12925 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12927 * MAINTAINERS (write after approval): Add myself.
12929 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12931 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12934 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12936 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12937 such that it mentions a specific version of GCC that exhibits this
12940 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12942 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12943 structure that has a single `float' member, store it in %f1 in
12946 * sparc-sol2-nat.c: Add missing '\'.
12948 * sparc-tdep.c (sparc32_return_value): New function.
12949 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12951 (sparc32_gdbarch_init): Set return_value, don't set
12952 extract_return_value, store_return_value, use_struct_convention
12953 and return_value_on_stack.
12955 * sparc-sol2-nat.c: Add missing ')'.
12957 2004-01-03 J. Brobecker <brobecker@gnat.com>
12959 * infrun.c (handle_step_into_function): New function.
12960 (handle_inferior_event): Extract out some code into the new
12963 2004-01-03 J. Brobecker <brobecker@gnat.com>
12965 * infrun.c (handle_inferior_event): Move the declaration of
12966 real_stop_pc inside the if blocks where it is used.
12968 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12970 * sparc64-tdep.c (sparc64_16_byte_align_p)
12971 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12972 Use check_typedef to get subtypes of structures and unions.
12973 (sparc64_store_return_value): Fix calculation of the appropriate
12974 offset into VALBUF when storing a structure or union.
12975 (sparc64_return_value): New function.
12976 (sparc64_use_struct_convention): Remove function.
12977 (sparc64_init_abi): Set return_value, don't set
12978 extract_return_value, store_return_value and
12979 use_struct_convention.
12981 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12983 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12984 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12985 gdb/config/alpha/xm-alphaosf.h,
12986 gdb/config/powerpc/tm-ppcle-eabi.h,
12987 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12988 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12989 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12990 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12991 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12992 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12993 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12994 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12995 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12996 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12997 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12998 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12999 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13000 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13001 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13002 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13003 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13004 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13005 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13006 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13007 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13008 Remove lines for .cvsignore files.
13010 2004-01-03 J. Brobecker <brobecker@gnat.com>
13012 * infrun.c: Back out the previous change.
13014 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13016 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13017 sparc-*-sunos4* to the list of REMOVED configurations.
13019 * configure.tgt: Add back sparc-*-vxworks*.
13020 * remote-vxsparc.c: Remove all includes except for "defs.h",
13021 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13022 Include "sparc-tdep.h".
13023 (SPARC_R_G1): New define.
13024 (vxsparc_gregset): New variable.
13025 (ext_format_sparc): Remove extern declaration.
13026 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13027 sparc32_supply_fpregset.
13028 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13029 sparc_collect_rwindow and sparc32_collect_fpregset.
13030 * config/sparc/tm-vxworks.h: New file, based on recently removed
13032 * config/sparc/vxworks.mt: New file, based on recently removed
13035 2004-01-03 J. Brobecker <brobecker@gnat.com>
13037 * infrun.c (handle_step_into_function): New function.
13038 (handle_inferior_event): Extract out some code into the new
13041 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13043 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13044 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13045 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13046 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13047 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13048 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13049 (sparc_nat_h): New variable.
13050 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13051 (tm-sun4os4.h): Remove dependency.
13052 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13053 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13054 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13055 sparc-tdep.o): Update dependencies.
13056 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13057 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13058 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13060 * configure.host: Remove existing sparc-*-lynxos*,
13061 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13062 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13063 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13064 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13066 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13067 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13068 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13069 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13070 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13071 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13072 sparc64-*-solaris2* and sparc64-*-* triplets.
13073 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13074 "symtab.h" and "objfiles.h".
13075 (BIAS): Remove define.
13076 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13077 (X_DISP19): Remove macros.
13078 (sparc_fetch_instruction): Remove function.
13079 (struct gdbarch_tdep): Remove definition.
13080 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13081 (sparc_breakpoint_from_pc): Remove function.
13082 (struct sparc64_frame_cache): Remove definition.
13083 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13084 sparc64_unwind_pc): Remove functions.
13085 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13086 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13087 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13088 (sparc64_frame_cache): Change return type to `struct
13089 sparc_frame_cache *'. Simply call sparc_frame_cache.
13090 (sparc64_frame_this_id, sparc64_frame_prev_register,
13091 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13092 instead of `struct sparc64_frame_cache.
13093 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13094 sparc_analyze_control_transfer, sparc_software_single_step,
13095 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13096 _initialize_sparc64_tdep): Remove functions.
13097 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13098 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13100 (sparc64_supply_gregset, sparc64_collect_gregset,
13101 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13102 (sparc64_init_abi): New function.
13103 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13104 inclusion guard. Include "sparc-tdep.h".
13106 (r_tstate_offset, r_fprs_offset): New defines.
13107 (enum sparc_regnum): Remove defenition.
13108 (enum sparc64_regnum): Reformat.
13109 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13110 (sparc64_init_abi, sparc64_supply_gregset,
13111 sparc64_collect_gregset, sparc64_supply_fpregset,
13112 sparc64_collect_fpregset): New prototypes.
13113 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13114 Add extern declarations.
13115 (sparc64_sol2_init_abi): New prototype.
13116 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13117 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13119 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13121 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13123 (_initialize_sparc64fbsd_nat): Remove initialization of
13124 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13125 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13126 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
13127 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13128 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13129 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13130 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13131 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13132 (sparc64fbsd_r_y_offset): Remove variables.
13133 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13134 Make static and const.
13135 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13136 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13138 (sparc64fbsd_gregset): New variable.
13139 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13140 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13141 and sparc64_supply_fpregset.
13142 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13143 (sparc64fbsd_sigtramp_frame_this_id)
13144 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13145 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13146 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13147 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13148 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13149 * sparcnbsd-tdep.c: Update copyright year. Include
13150 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13151 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13152 "value.h" and "sparcnbsd-tdep.h".
13153 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13154 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13155 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13156 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13158 (sparcnbsd_gregset): New variable.
13159 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13160 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13161 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13162 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13163 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13165 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13166 (sparc32nbsd_sigcontext_frame_this_id)
13167 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13168 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13169 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13170 (sparcnbsd_get_longjmp_target_32,
13171 sparcnbsd_get_longjmp_target_64): Remove functions.
13172 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13173 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13174 sparcnbsd_init_elf): Remove.
13175 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13176 (sparcnbsd_elf_init_abi): New functions.
13177 (_initialize_sparcnbsd_tdep): New prototype.
13178 (_initialize_sparnbsd_tdep): Update.
13179 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13180 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13181 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13182 * config/sparc/linux.mh: Update comment.
13183 (XM_FILE, HOST_IPC): Remove variables.
13184 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13186 * config/sparc/linux.mt: Update comment.
13187 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13188 * config/sparc/nbsd.mt: Reformat.
13189 * config/sparc/nbsd64.mh: Update comment.
13190 (NATDEPFILES): Add sparc-nat.o.
13191 * config/sparc/nbsd64.mt: Update comment.
13192 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13193 (TM_FILE): Set to tm-nbsd.h.
13194 * config/sparc/nbsdelf.mh: Update comment.
13195 (NATDEPFILES): Add sparc-nat.o.
13197 * config/sparc/nbsdaout.mh: Update comment.
13198 (NATDEPFILES): Add sparc-nat.o
13200 * config/sparc/nm-linux.h: Update copyright year. Don't include
13201 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13203 (KERNEL_U_SIZE): Remove define.
13204 (kernel_u_size): Remove prototype.
13205 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13206 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13208 (CHILD_PREPARE_TO_STORE): Remove define.
13209 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13210 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13211 sparcnbsd-nat.c: Rewrite files.
13212 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13213 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13214 sparcnbsd-tdep.h: Remove files.
13215 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13216 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13217 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13218 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13219 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13220 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13221 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13222 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13223 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13224 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13225 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13226 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13227 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13228 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13229 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13230 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13231 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13232 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13233 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13235 2004-01-02 Andrew Cagney <cagney@redhat.com>
13237 From 2003-12-18 Kazuhiro Inaoka:
13238 * configure.host: Add m32r-linux target.
13240 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13242 * top.c (print_gdb_version): Update year to 2004.
13244 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13246 * MAINTAINERS: Add myself to the write-after-approval category.
13248 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13250 From Bernardo Innocenti <bernie@develer.com>:
13251 * configure.tgt: Add uClinux target.
13253 2004-01-02 Andrew Cagney <cagney@redhat.com>
13255 * utils.c (do_my_cleanups): Make static, add forward declaration.
13256 * defs.h (do_my_cleanups): Delete declaration.
13258 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13260 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13261 bfd/ChangeLog-0203.
13263 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13265 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13266 in <machine/reg.h>.
13267 * configure, config.in: Regenerate.
13269 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13270 tui/ChangeLog-1998-2003.
13276 version-control: never