1 2004-10-13 Kevin Buettner <kevinb@redhat.com>
3 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
4 references to deprecated_registers[] with equivalent code.
6 2004-10-13 Kevin Buettner <kevinb@redhat.com>
8 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
9 ``deprecated_registers'' with equivalent code. Use gdb_assert()
10 instead of explicit test and print statement.
12 2004-10-12 Mark Kettenis <kettenis@gnu.org>
14 * sparc-nat.c: Include "inf-ptrace.h".
15 (sparc_target): New function.
16 * sparc-nat.h: Update copyright year.
17 (sparc_target): New prototype.
18 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
19 (_initialize_sparcnbsd_nat): Construct and add target vector.
20 * sparc64nbsd-nat.c: Include "target.h".
21 (_initialize_sparc64nbsd_nat): Construct and add target vector.
22 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
24 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
25 inftarg.o, add inf-ptrace.o.
26 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
27 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
28 (NAT_FILE): Set to nm-bsd.h.
29 (LOADLIBES): New variable.
30 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
31 infarg.o, add inf-ptrace.o.
32 * config/sparc/nm-nbsdaout.h: Remove file.
33 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
34 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
35 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
37 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
38 "fopen-same.h". Update comment.
40 2004-10-11 Mark Kettenis <kettenis@gnu.org>
42 * i386gnu-nat.c: Include "gdb_string.h".
43 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
44 registers when the floating-point state isn't initialized.
45 * Makefile.in (i386gnu-nat.o): Update dependencies.
47 2004-10-11 David Anderson <davea@sgi.com>
49 * regcache.c (regcache_raw_read): Comment was missing "to".
51 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
52 comment now describes use.
54 2004-10-11 Orjan Friberg <orjanf@axis.com>
56 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
57 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
58 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
59 (cris_sigtramp_frame_sniffer): New functions.
60 (cris_gdbarch_init): Hook in signal trampoline unwinder.
61 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
62 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
63 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
64 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
66 (cris_version_update): Remove, replace with ...
67 (set_cris_version): New function.
68 (struct gdbarch_tdep, cris_mode, cris_mode_update)
69 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
70 (_initialize_cris_tdep): Remove CRIS mode command.
71 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
72 cris-fpless-backtrace command.
73 (cris_scan_prologue): Fix prologue scanning limit.
74 (cris_register_type): Update to reflect actual registers.
75 (cris_register_bytes_ok) Remove.
76 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
77 Remove set_gdbarch_deprecated_register_size,
78 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
80 2004-10-10 Andrew Cagney <cagney@gnu.org>
82 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
85 2004-10-10 Joel Brobecker <brobecker@gnat.com>
87 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
89 2004-10-10 Joel Brobecker <brobecker@gnat.com>
91 * mips-tdep.c (mips16_scan_prologue): Renames
92 mips16_heuristic_proc_desc. Update comment.
93 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
94 (heuristic_proc_desc): Update calls to the 2 functions above.
96 2004-10-10 Joel Brobecker <brobecker@gnat.com>
98 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
99 Update comments. Also immediately return empty cache when the start
100 address of our function could not be found.
101 (mips_insn32_frame_cache): Likewise.
103 2004-10-10 Joel Brobecker <brobecker@gnat.com>
105 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
106 (mips_insn16_frame_cache): Pass frame cache in call to
107 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
108 Remove code that became redundant as a consequence.
109 (mips32_heuristic_proc_desc): No longer compute a fake
110 procedure descriptor. Compute the full frame cache instead.
111 Some minor comment reformatting.
113 2004-10-10 Jim Blandy <jimb@redhat.com>
115 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
116 reader, tracing bytecode stuff): Remove self.
118 2004-10-10 Mark Kettenis <kettenis@gnu.org>
120 * sparc64-linux-tdep.c: Update copyright year. Don't include
122 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
123 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
124 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
126 * sparc-linux-tdep.c: Update copyright year.
127 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
128 to struct frame_info *. Use safe_frame_unwind_memory instead of
129 deprecated_read_memory_nobpt.
130 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
131 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
132 changed signature of sparc_linux_sigtramp_start.
133 (sparc32_linux_pc_in_sigtramp): Remove function.
134 (sparc32_linux_sigtramp_p): New function.
135 (sparc32_linux_sigtramp_frame_sniffer): Use
136 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
138 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
140 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
142 * ada-lang.c (lim_warning): Re-implement as a varargs function.
143 (decode_packed_array_type, value_subscript_packed)
144 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
145 argument in call to lim_warning.
147 * configure.in: Really disable the TUI if an enhanced curses
149 * configure: Regenerate.
151 2004-10-09 Mark Kettenis <kettenis@gnu.org>
153 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
154 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
155 * config/i386/nm-nbsdaout.h: Remove file.
156 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
157 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
158 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
159 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
160 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
161 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
162 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
163 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
164 (ldd, ld_un, ld_2): Remove defines.
165 * config/i386/nm-obsd.h: Likewise.
167 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
169 * ada-lex.l: Remove useless rule whose right-context clause
170 causes unreferenced static function warning for yyrealloc.
171 (ada_flex_use): Remove the artificial reference to yyrealloc.
173 2004-10-08 Andrew Cagney <cagney@gnu.org>
175 * target.h (struct target_ops): Rename to_xfer_memory to
176 deprecated_xfer_memory.
178 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
180 * win32-nat.c: Update.
182 * uw-thread.c: Update.
183 * thread-db.c: Update.
184 * sol-thread.c: Update.
186 * remote-vx.c: Update.
187 * remote-st.c: Update.
188 * remote-sim.c: Update.
189 * remote-sds.c: Update.
190 * remote-rdp.c: Update.
191 * remote-rdi.c: Update.
192 * remote-mips.c: Update.
193 * remote-m32r-sdi.c: Update.
194 * remote-e7000.c: Update.
197 * nto-procfs.c: Update.
199 * linux-nat.c: Update.
201 * hpux-thread.c: Update.
202 * go32-nat.c: Update.
207 * aix-thread.c: Update.
209 2004-10-08 Andrew Cagney <cagney@gnu.org>
211 * target.c (debug_target): Move to near start of file.
212 (target_stopped_data_address_p): Re-org logic, add casts.
214 2004-10-02 Mark Kettenis <kettenis@gnu.org>
216 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
217 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
218 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
219 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
222 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
224 * target.h (to_stopped_data_address): Change prototype to
225 take a CORE_ADDR pointer and return an int.
226 * target.c (update_current_target): Change to_stopped_data_address
227 to match new prototype.
228 (debug_to_stopped_data_address): Change appropriately.
229 * breakpoint.c (bpstat_stop_status): Change call to
230 target_stopped_data_address to use new prototype.
231 * frv-tdep.c (frv_have_stopped_data_address): New function.
232 (frv_stopped_data_address): Change to new prototype and
234 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
235 prototype and functionality.
236 (ia64_stopped_by_watchpoint): New function.
237 * i386-nat.c (i386_stopped_data_address): Change to new
238 prototype and functionality.
239 (i386_stopped_by_watchpoint): New function.
240 * remote.c (remote_stopped_data_address): Change to new prototype
242 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
243 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
244 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
245 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
246 new i386_stopped_by_watchpoint function.
247 (i386_stopped_by_watchpoint): New prototype.
248 (i386_stoppped_data_address): Change to new prototype.
249 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
250 new ia64_stopped_by_watchpoint function.
251 (ia64_stopped_by_watchpoint): New prototype.
252 (ia64_stopped_data_address): Ditto.
254 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
256 * ada-typeprint.c (ada_print_type): Use int_string for printing
257 modulus of modular type.
258 * ada-lang.h (ada_modulus): Change return type to unsigned.
259 * ada-lang.c (ada_language_arch_info): Correct type of
261 (ada_modulus): Return unsigned result.
262 (ada_lookup_symbol): Remove user disambiguation and modify comment
265 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
267 Committed by Paul Hilfinger.
268 * ada-lang.c (decode_packed_array): On big-endian targets,
269 left-justify the value if it comes with a modular type.
271 2004-10-08 Joel Brobecker <brobecker@gnat.com>
273 Committed by Paul Hilfinger.
274 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
275 (is_name_suffix): Add support for "___JM" suffixes.
276 (ada_check_typedef): Renames ada_completed_type.
277 Update all users of CHECK_TYPEDEF, check_typedef, and
278 ada_complete_type to call ada_check_typedef.
279 * ada-typeprint.c: Likewise.
280 * ada-valprint.c: Likewise.
282 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
284 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
286 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
288 * MAINTAINERS: Update e-mail address.
290 2004-10-07 Daniel Jacobowitz <dan@debian.org>
292 From Maciej W. Rozycki <macro@mips.com>:
293 * mips-tdep.c (mips32_next_pc): Check the register's contents,
294 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
297 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
299 * m32r-tdep.c (decode_prologue): Support functions written
300 in assembler language. Recognize trap instructions as the
302 (m32r_frame_unwind_cache): Ditto.
303 (m32r_skip_prologue): Extend search limit. Quit analyzing
304 prologue if pc's location is not readable.
306 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
308 * Makefile.in (.l.c): Do conversions of names of alloc and free
309 functions that are done for .y.c files, plus special one
310 for yy_flex_realloc. Also, correct missing-file tests here.
311 * ada-lex.l (malloc, free): Remove macros.
312 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
314 (ada_flex_use): Dummy definition to remove warnings about unused
316 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
319 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
321 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
323 (sh_return_value_fpu): Ditto for CPUs with FPU.
324 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
325 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
326 Install sh_return_value_nofpu resp. sh_return_value_fpu as
327 RETURN_VALUE functions.
329 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
331 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
332 (sh_pseudo_register_write): Ditto.
334 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
336 * sh-tdep.c (IS_MACL_STS): New define.
338 (IS_MACL_LDS): Ditto.
339 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
340 instructions in prologue.
341 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
342 instructions in epilogue.
344 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
346 * sh-tdep.c (SH_NUM_REGS): Define as 67.
347 (sh_sh_register_name): Add eight empty register names.
348 (sh_sh3_register_name): Ditto.
349 (sh_sh3e_register_name): Ditto.
350 (sh_sh2e_register_name): Ditto.
351 (sh_sh2a_register_name): New function, defining SH2A register set.
352 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
354 (sh_sh_dsp_register_name): Add eight empty register names.
355 (sh_sh3_dsp_register_name): Ditto.
356 (sh_sh4_register_name): Ditto.
357 (sh_sh4_nofpu_register_name): Ditto.
358 (sh_sh4al_dsp_register_name): Ditto.
359 (sh2a_show_regs): New function.
360 (sh2a_nofpu_show_regs): New function.
361 (sh_sh2a_register_type): New function.
362 (do_bank_register_info): New function.
363 (sh_print_pseudo_register): Call do_bank_register_info.
364 Call sh_print_pseudo_register for valid "bank" register.
365 (sh_sh2a_register_sim_regno): New function.
366 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
367 Increment pseudo register count by one for all sh variants with
368 pseudo registers to accomodate pseudo bank register.
369 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
370 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
371 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
372 Increment pseudo register numbers.
374 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
376 * dwarf2read.c (read_subroutine_type): Call make_function_type
377 instead of lookup_function_type.
379 2004-10-05 Jim Blandy <jimb@redhat.com>
381 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
382 (Previous change missed some uses.)
384 2004-10-05 Andrew Cagney <cagney@gnu.org>
386 * target.h (deprecated_child_ops): Rename child_ops.
387 * wince.c: Update copyright. Rename child_ops.
388 * win32-nat.c: Rename child_ops.
389 * target.c: Rename child_ops.
390 * rs6000-nat.c: Rename child_ops.
391 * linux-nat.c: Rename child_ops.
392 * infttrace.c: Rename child_ops.
393 * inftarg.c: Rename child_ops.
394 * infptrace.c: Rename child_ops.
395 * hppah-nat.c: Update copyright. Rename child_ops.
396 * hpux-thread.c: Update copyright. Rename child_ops.
398 2004-10-05 Daniel Jacobowitz <dan@debian.org>
400 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
402 2004-10-05 Andrew Cagney <cagney@gnu.org>
404 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
406 2004-10-05 Daniel Jacobowitz <dan@debian.org>
408 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
409 (die_ref_table): Remove.
410 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
411 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
412 the usage of this type.
413 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
414 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
415 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
416 (dwarf2_create_include_psymtab): Update comment.
417 (find_partial_die): Remove third argument. Remove unreachable call
419 (dwarf2_find_containing_comp_unit): Update comments. Change one
420 assertion to an error. Remove an unreachable error.
421 (dwarf2_find_comp_unit): Update comments.
422 (type_at_offset): Remove dead code.
423 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
424 (store_in_ref_table): Add CU argument.
425 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
426 inter-compilation-unit references.
427 (load_full_comp_unit, process_full_comp_unit): New functions, based
428 on psymtab_to_symtab_1.
429 (psymtab_to_symtab_1): Use them.
430 (dwarf2_add_dependence): New function.
431 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
432 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
433 (partial_die_parent_scope, guess_structure_name): Update for changes
435 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
436 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
437 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
438 (read_die_and_children): Update call to store_in_ref_table.
439 (do_free_die_list_cleanup): Remove.
440 (fixup_partial_die): Update for changes to find_partial_die.
441 (read_full_die): Handle queueing absolute references.
442 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
443 (dwarf2_attr, die_specification, die_type)
444 (die_containing_type, dwarf2_extension): Update calls to
446 (dump_die): Update DW_FORM_ref* handling.
447 (dwarf2_get_ref_die_offset): Likewise.
448 (free_one_comp_unit): Release the dies list.
449 (dwarf2_mark_helper): New function.
450 (dwarf2_mark): Use it.
452 2004-10-05 Mark Kettenis <kettenis@jive.nl>
454 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
455 when writing to memory.
457 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
459 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
460 (m32r_extract_struct_value_address): Delete function.
461 (m32r_return_value): New function.
462 (m32r_gdbarch_init): Instead of store_return_value,
463 extract_return_value, deprecated_extract_struct_value_address
464 and deprecated_use_struct_convention, set return_value.
466 2004-10-03 Daniel Jacobowitz <dan@debian.org>
468 * dwarf2read.c (read_subrange_type): Add comment for variable
471 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
473 * Makefile.in (.l.c): Modify rule for compatibility with recent
474 versions of flex, and remove most command-line options.
475 * ada-lex.l: Add %options line in place of -I -i and -s command-line
478 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
480 Turn on initial Ada support (mainly expression evaluation).
482 * Makefile.in (SFILES): Remove ada-tasks.c.
483 (HFILES_NO_SRCDIR): Add ada-lang.h.
484 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
485 (YYOBJ): Add ada-exp.o.
486 (rule .l.c): Generalize to not mention ada.
487 * symtab.c: Include ada-lang.h.
488 (symbol_natural_name, symbol_demangled_name)
489 (symbol_search_name): Add Ada case.
491 2004-10-01 Andrew Cagney <cagney@gnu.org>
493 * Makefile.in (COMMON_OBS): Add inf-child.o.
494 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
495 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
496 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
497 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
498 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
499 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
500 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
501 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
502 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
503 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
504 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
505 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
506 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
508 * target.c (xfer_using_stratum): Change return type to LONGEST.
509 On each iteration offset, readbuf and writebuf.
510 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
511 partial_length, and read/modify/write predicate, update comments.
512 Pass buffer.word to ptrace write.
514 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
516 * symfile.c (init_filename_language_table): Add extensions for
518 * defs.h (enum language): Add language_ada.
519 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
520 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
521 (add_symbols_from_enclosing_procs): Make a no-op for now.
522 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
523 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
524 (find_line_in_linetable, find_next_line_in_linetable)
525 (read_all_symtabs, is_plausible_func_for_line)
526 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
527 (is_runtime_sym_defined, check_size): Remove declaration.
528 (function_name_from_pc, ada_translate_error_message)
529 (ada_lookup_minimal_symbol): Remove definition.
530 (ada_add_block_symbols): Remove useless label.
531 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
533 (ada_is_exception_sym): Likewise.
535 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
537 Add m32r-linux support.
538 * configure.tgt: Add m32r*-*-linux*.
539 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
540 and m32r-linux-tdep.c.
541 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
542 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
543 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
545 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
546 config/m32r/linux.mh, config/m32r/linux.mt,
547 config/m32r/nm-linux.h: New files.
549 2004-09-30 Joel Brobecker <brobecker@gnat.com>
551 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
552 (mips32_fetch_instruction): Remove, unused.
554 2004-09-30 Joel Brobecker <brobecker@gnat.com>
556 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
557 conditions that will always be true.
559 2004-09-30 Mark Kettenis <kettenis@gnu.org>
561 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
562 (vaxbsd_fetch_inferior_registers): Rename from
563 fetch_inferior_registers. Make static.
564 (vaxbsd_store_inferior_registers): Rename from
565 store_inferior_registers. Make static.
566 (_initialize_vaxbsd_nat): Construct and add target vector.
567 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
568 inftarg.o. Add inf-child.o and inf-ptrace.o.
569 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
570 inftarg.o. Add inf-child.o and inf-ptrace.o.
572 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
573 inftarg.o. Add inf-child.o and inf-ptrace.o.
575 * Makefile.in (vaxbsd-nat.o): Update dependencies.
577 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
578 (m88kbsd_fetch_inferior_registers): Rename from
579 fetch_inferior_registers. Make static.
580 (m88kbsd_store_inferior_registers): Rename from
581 store_inferior_registers. Make static.
582 (_initialize_m88kbsd_nat): New prototype and function.
583 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
584 inftarg.o. Add inf-child.o and inf-ptrace.o.
586 * Makefile.in (m88kbsd-nat.o): Update dependencies.
588 2004-09-30 Andrew Cagney <cagney@gnu.org>
590 * target.c (target_xfer_partial): New function.
591 (target_read_memory_partial, target_write_memory_partial)
592 (default_xfer_partial, target_read_partial, target_write_partial)
593 (xfer_using_stratum): Use.
594 (debug_to_xfer_partial): Delete function.
595 (setup_target_debug): Do not override to_xfer_partial.
597 2004-09-30 Mark Kettenis <kettenis@chello.nl>
599 * fork-child.c: Update copyright year. Fix coding style.
601 2004-09-29 Mark Kettenis <kettenis@gnu.org>
603 * defs.h (msavestring, mstrsave): Remove prototypes.
604 * utils.c (msavestring, mstrsave): Remove functions.
605 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
606 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
608 * source.c (find_and_open_source): Use xstrdup instead of
611 2004-09-30 Andrew Cagney <cagney@gnu.org>
613 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
614 (inf_ptrace_xfer_memory): Delete.
615 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
616 (target_read_memory, target_write_memory): Use xfer_using_stratum
617 when target_xfer_partial_p.
618 (debug_target): Move to start of file.
619 (target_read_memory_partial, target_write_memory_partial): Use
620 to_xfer_partial when target_xfer_partial_p.
622 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
623 inf_ptrace_xfer_memory with equivalent code.
624 * inftarg.c (child_xfer_partial): When performing a write, pass
625 writebuf to child_xfer_memory.
627 * target.c (target_read_string): Use target_read_memory instead of
630 2004-09-29 Andrew Cagney <cagney@gnu.org>
632 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
633 the address of status.
635 * infptrace.c (ptrace_wait): Mention problem with HPUX.
636 (kill_inferior): Inline ptrace_wait call.
637 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
638 * inftarg.c (child_wait): Inline ptrace_wait call.
640 * target.h (struct target_ops): Delete field to_post_wait.
641 (target_post_wait): Delete macro.
642 (child_post_wait): Delete declaration.
643 * target.c (update_current_target, update_current_target)
644 (debug_to_post_wait, setup_target_debug): Delete functions and
646 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
647 * inftarg.c (child_post_wait): Delete.
648 (init_child_ops): Do not set to_post_wait.
649 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
650 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
651 * inf-child.c (inf_child_post_wait): Delete.
652 (inf_child_target): Do not set to_post_wait.
653 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
654 (inf_ptrace_target): Do not set to_post_wait.
656 * wince.c (child_ops): Delete.
657 * win32-nat.c (child_ops): Delete.
659 * inftarg.c (inftarg_set_find_memory_regions)
660 (inftarg_set_make_corefile_notes): Delete functions.
661 (_initialize_linux_nat): Inline calls.
663 * target.h (child_ops): Declare.
664 * inftarg.c (child_ops): Move from here ...
665 * target.c (child_ops): ... to here.
666 * wince.c (child_ops): Delete extern declaration.
667 * win32-nat.c (child_ops): Delete extern declaration.
668 * linux-nat.c (child_ops): Delete extern declaration.
669 * hpux-thread.c (child_ops): Delete extern declaration.
671 2004-09-28 Mark Kettenis <kettenis@gnu.org>
673 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
675 2004-09-28 Mark Kettenis <kettenis@gnu.org>
677 * configure.in: Only set host_makefile_frag when building a native
679 * configure: Regenerate.
681 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
684 2004-09-28 Andrew Cagney <cagney@gnu.org>
686 Problem identified by Paul Hilfinger.
687 * Makefile.in (ada_lex_c): Define.
688 (ada-lex.o): Delete rule.
690 * linux-proc.c: Delete file.
691 * Makefile.in: Update.
692 * config/sparc/linux64.mh (NATDEPFILES):
693 * config/sparc/linux.mh (NATDEPFILES): Update.
694 * config/s390/s390.mh (NATDEPFILES): Update.
695 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
696 * config/powerpc/linux.mh (NATDEPFILES): Update.
697 * config/pa/linux.mh (NATDEPFILES): Update.
698 * config/mips/linux.mh (NATDEPFILES): Update.
699 * config/m68k/linux.mh (NATDEPFILES): Update.
700 * config/ia64/linux.mh (NATDEPFILES): Update.
701 * config/i386/linux64.mh (NATDEPFILES): Update.
702 * config/i386/linux.mh (NATDEPFILES): Update.
703 * config/arm/linux.mh (NATDEPFILES): Update.
704 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
705 * linux-nat.c: Update copyright. Include <sys/param.h>,
706 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
707 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
708 (O_LARGEFILE): Possibly define.
709 (_initialize_linux_nat, linux_proc_pending_signals)
710 (add_line_to_sigset, linux_proc_xfer_memory)
711 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
712 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
713 (struct linux_corefile_thread_data)
714 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
715 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
717 2004-09-16 Andrew Cagney <cagney@gnu.org>
719 * lin-lwp.c: Delete file.
720 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
721 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
722 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
723 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
724 (linux_nat_attach, detach_callback, linux_nat_detach)
725 (resume_callback, resume_clear_callback, linux_nat_resume)
726 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
727 (stop_wait_callback, linux_nat_has_pending, flush_callback)
728 (status_callback, running_callback, count_events_callback)
729 (select_singlestep_lwp_callback, select_event_lwp_callback)
730 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
731 (child_wait, stop_and_resume_callback, linux_nat_wait)
732 (kill_callback, kill_wait_callback, linux_nat_kill)
733 (linux_nat_create_inferior, linux_nat_mourn_inferior)
734 (linux_nat_xfer_memory, linux_nat_thread_alive)
735 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
736 (_initialize_linux_nat): New functions.
737 * Makefile.in: Update all dependencies.
738 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
739 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
740 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
741 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
742 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
743 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
744 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
745 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
746 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
747 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
748 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
749 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
750 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
752 2004-09-27 Mark Kettenis <kettenis@gnu.org>
754 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
755 config/i386/obsd64.mh (NAT_FILE): Remove variable.
757 * configure.in: Don't comment out NATDEPFILES in the generated
758 Makefile if NAT_FILE is unset.
759 * configure: Regenerate.
761 2004-09-27 Andrew Cagney <cagney@gnu.org>
763 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
764 (insert_step_resume_breakpoint): Delete.
765 (insert_step_resume_breakpoint_at_frame): New function.
766 (insert_step_resume_breakpoint_at_sal): New function.
767 (handle_inferior_event, step_into_function)
768 (insert_step_resume_breakpoint): Simplify by using same.
770 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
772 2004-09-26 Mark Kettenis <kettenis@gnu.org>
774 * fbsd-proc.c: Remove file.
775 * Makefile.in (fbsd-proc.o): Remove dependency.
777 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
780 * config/i386/nm-fbsd64.h: Remove file.
781 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
783 2004-09-26 Mark Kettenis <kettenis@gnu.org>
785 * amd64-nat.h: Update copyright year.
786 (amd64bsd_target): New prototype.
787 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
788 (amd64bsd_target): New function.
789 (amd64bsd_fetch_inferior_registers): Rename from
790 fetch_inferior_registers. Make static.
791 (amd64bsd_store_inferior_registers): Rename from
792 store_inferior_registers. Make static.
793 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
794 (_initialize_amd64fbsd_nat): Construct and add target vector.
795 * amd64nbsd-nat.o: Include "target.h".
796 (_initialize_amd64nbsd_nat): Construct and add target vector.
797 * amd64obsd-nat.c: Include "target.h".
798 (_initialize_amd64obsd_nat): Construct and add target vector.
799 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
800 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
801 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
803 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
804 Remove infptrace.o and inftarg.o. Add inf-child.o and
806 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
807 (amd64obsd-nat.o): Update dependencies.
809 2004-09-25 Mark Kettenis <kettenis@gnu.org>
811 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
812 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
813 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
814 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
815 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
817 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
819 (inf_ptrace_detach): Inline detach call.
821 * configure.in: Check for waddstr instead of mvwaddstr when
822 searching for curses library. Check for wborder.
823 * configure, config.in: Regenerate.
824 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
827 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
829 2004-09-24 Robert Picco <Robert.Picco@hp.com>
831 Committed by Andrew Cagney.
832 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
833 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
835 (fetch_register_using_p): Implement 'p' packet. Based on code by
837 (remote_fetch_registers): Call fetch_register_using_p.
838 (init_all_packet_configs, show_remote_cmd)
839 (_initialize_remote): Add p-packet.
841 2004-09-24 Mark Kettenis <kettenis@gnu.org>
843 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
844 instead of call_ptrace. Call wait directly instead of
846 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
847 (inf_ptrace_wait): Inline ptrace_wait call.
849 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
851 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
854 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
856 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
857 the new argument order.
859 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
861 * MAINTAINERS: Remove "broken" from XStormy16 entry.
862 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
863 (struct gdbarch_tdep): Remove.
864 (struct xstormy16_frame_cache): New frame cache structure.
865 (xstormy16_register_byte, xstormy16_register_raw_size)
866 (xstormy16_reg_virtual_type, xstormy16_register_type)
867 (xstormy16_push_arguments, xstormy16_push_return_address)
868 (xstormy16_pop_frame, xstormy16_store_struct_return)
869 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
870 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
871 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
872 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
873 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
874 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
875 (xstormy16_use_struct_convention): Drop gcc_p parameter.
876 (xstormy16_extract_return_value, xstormy16_store_return_value):
877 Regcachify. Drop useless struct convention handling.
878 (xstormy16_register_type, xstormy16_return_value)
879 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
880 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
881 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
882 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
883 (xstormy16_unwind_sp, xstormy16_unwind_pc)
884 (xstormy16_unwind_dummy_id) : New functions.
885 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
886 of xstormy16_scan_prologue.
887 (xstormy16_frame_unwind): New frame_unwind structure.
888 (xstormy16_frame_base): New frame_base structure.
889 (xstormy16_gdbarch_init): Accomodate all of the above changes.
890 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
892 2004-09-22 Mark Kettenis <kettenis@gnu.org>
894 * language.c (language_gdbarch_post_init): Fix off-by one error.
896 2004-09-21 Daniel Jacobowitz <dan@debian.org>
898 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
899 (struct dwarf2_offset_and_type): New.
900 (set_die_type, reset_die_and_siblings_types, get_die_type)
901 (offset_and_type_hash, offset_and_type_eq): New functions.
902 (read_structure_type, read_enumeration_type, read_array_type)
903 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
904 (read_tag_reference_type, read_tag_const_type)
905 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
906 (read_typedef, read_base_type, read_subrange_type): Use
909 2004-09-20 Daniel Jacobowitz <dan@debian.org>
911 * Makefile.in (dwarf2read.o): Update dependencies.
912 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
913 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
915 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
916 mark, and has_form_ref_addr.
917 (struct dwarf2_per_cu_data): New.
918 (dwarf2_max_cache_age): New.
919 (dwarf2_build_psymtabs_hard): Free cached compilation units
920 after loading. Create and manage the list of compilation units.
921 Remove unnecessary NULL initialization. Fix indentation.
922 (psymtab_to_symtab_1): Initialize all of CU.
923 (dwarf2_read_abbrevs): Set has_form_ref_addr.
924 (find_partial_die): Use dwarf2_find_containing_comp_unit
926 (free_stack_comp_unit): Update comments. Clear the per-cu
927 pointer. Handle aging.
928 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
929 (age_cached_comp_units, free_one_cached_comp_unit)
930 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
931 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
932 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
933 (show_dwarf2_cmd): New.
934 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
935 and "maint show dwarf2 max-cache-age".
936 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
938 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
941 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
943 * dwarf2read.c (typename_concat): Change prototype to accept obstack
944 and dwarf2_cu struct pointer as arguments. Change function to use
945 obstack if provided and use dwarf2_cu to determine language-specific
947 (partial_die_parent_scope): Change comment to include java. Use
948 new version of typename_concat instead of obconcat.
949 (partial_die_full_name): Use typename_concat.
950 (read_namespace): Ditto.
951 (read_enumeration_type): Use typename_concat instead of obconcat.
953 (add_partial_symbol): Enhance tests for C++ to also test for Java.
954 (guess_structure_name): Ditto.
955 (read_subroutine_type): Ditto.
956 (read_structure_type): Ditto.
957 (is_vtable_name): Add Java support.
958 (determine_class_name): Switch to new typename_concat call.
959 (determine_prefix): Switch to new typename_concat call.
960 * jv-exp.y (FuncStart): New pattern.
961 (MethodInvocation): Add support for simple function calls. Change
962 warning message for other forms of inferior call currently not
964 * valarith.c (value_subscript): Treat an array with upper-bound
965 of -1 as unknown size.
967 2004-09-20 Daniel Jacobowitz <dan@debian.org>
969 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
970 (lookup_partial_symtab): Use symtab_to_fullname.
972 2004-09-19 Jim Blandy <jimb@redhat.com>
974 * minsyms.c (lookup_minimal_symbol): Doc fix.
976 2004-09-20 Andrew Cagney <cagney@gnu.org>
978 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
980 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
981 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
983 * infptrace.c: Update.
985 2004-09-19 Daniel Jacobowitz <dan@debian.org>
987 * symtab.c (output_source_filename): Mark first argument as const.
988 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
989 for "info sources" output.
991 2004-09-20 Mark Kettenis <kettenis@gnu.org>
993 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
995 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
996 (register_u_addr): Remove prototype.
998 2004-09-19 Mark Kettenis <kettenis@gnu.org>
1000 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1001 (i386bsd_fetch_inferior_registers): Rename from
1002 fetch_inferior_registers. Make static.
1003 (i386bsd_store_inferior_registers): Rename from
1004 store_inferior_registers. Make static.
1005 (i386bsd_target): New function.
1006 * i386bsd-nat.h: New file.
1007 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1009 (i386fbsd_resume): Rename from child_resume. Make static.
1010 (_initialize_i386fbsd_nat): Construct and add target vector.
1011 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1012 (_initialize_i386nbsd_nat): Construct and add target vector.
1013 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1015 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1016 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1017 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1018 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1019 (LOADLIBES): New variable.
1020 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1021 inf-ptrace.o. Remove inftarg.o.
1022 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1023 inf-ptrace.o. Remove inftarg.o.
1024 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1025 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1026 (LOADLIBES): New variable.
1027 * Makefile.in (i386bsd_nat_h): New variable.
1028 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1031 * sparc64nbsd-tdep.c: Include "objfiles.h".
1032 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1033 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1034 svr4_lp64_fetch_link_map_offsets.
1035 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1037 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1038 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1039 svr4_lp64_fetch_link_map_offsets.
1040 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1043 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1044 * fbsd-nat.h: New file.
1045 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1046 (fbsd_nat_h): New variable.
1047 (fbsd-nat.o): New dependency.
1049 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1050 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1052 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1055 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1057 * ada-exp.y (type_int): New function to add layer of abstraction
1058 around references to expression types.
1060 (type_long_long): Ditto.
1061 (type_float): Ditto.
1062 (type_double): Ditto.
1063 (type_long_double): Ditto.
1065 (type_system_address): Ditto.
1066 (simple_exp): Use type_* functions in place of builtin_*
1069 (write_var_from_name): Ditto.
1070 (write_object_renaming): Ditto.
1071 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1073 (build_ada_types): Remove, replacing with...
1074 (ada_language_arch_info): New function to initialize primitive
1075 type vector in language_arch_info.
1076 (ada_array_length): Remove use of builtin_type_ada_int.
1077 (value_pos_atr): Ditto.
1078 (ada_evaluate_subexp): Ditto.
1079 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1080 builtin_type_ada_long_long, builtin_type_ada_char,
1081 builtin_type_ada_float, builtin_type_ada_double,
1082 builtin_type_ada_long_double, builtin_type_ada_natural,
1083 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1084 (ada_builtin_types): Remove.
1085 (ada_language_defn): Remove entries for la_builtin_type_vector and
1086 string_char_type and use ada_language_arch_info.
1087 (_initialize_ada_language): Do type-vector initialization along
1088 the lines of c-lang.c.
1089 (ada_create_fundamental_type): Break up line.
1090 (ada_dump_symtab): Remove unused function.
1091 (enum ada_primitive_types): Define.
1092 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1093 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1094 builtin_type_ada_float, builtin_type_ada_double,
1095 builtin_type_ada_long_double, builtin_type_ada_natural,
1096 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1097 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1098 (processInt): Ditto.
1099 (processReal): Ditto.
1100 (name_lookup): Ditto.
1101 * ada-typeprint.c (print_range): Use builtin_type_int, not
1102 builtin_type_ada_int.
1104 2004-09-18 Mark Kettenis <kettenis@gnu.org>
1106 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1108 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1109 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1110 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1111 * configure.in: Improve checks for curses library by checking for
1112 mvwaddstr instead of initscr. Drop HP curses in favour of
1113 standard curses on HP-UX.
1114 * configure: Regenerated.
1116 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1118 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1119 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1120 Minor formatting changes.
1121 (empty_array): Slight rewrite for formatting.
1122 (emit_char,parse,ada_language_defn,build_ada_types,
1123 ada_is_exception_sym, _initialize_ada_language): Move
1125 (ada_dump_symtab): Remove unused definition.
1126 (ada_maybe_exception_partial_symbol): Remove unused definition.
1128 2004-09-16 Andrew Cagney <cagney@gnu.org>
1130 * inf-child.c: Include "gdb_string.h".
1131 (inf_child_core_file_to_sym_file): Delete.
1132 (inf_child_target): Set to_fetch_registers and to_store_registers.
1133 * inf-ptrace.c: Include "gdb_string.h".
1134 * Makefile.in: Update all dependencies.
1136 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1139 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1141 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1142 call to heuristic_proc_desc. Remove code that became redundant
1144 (read_next_frame_reg): Remove special case for SP_REGNUM.
1145 (set_reg_offset): Fix small typo.
1146 (reset_saved_regs): New procedure.
1147 (mips32_heuristic_proc_desc): No longer compute a fake
1148 procedure descriptor. Compute the full frame cache instead.
1149 Some minor comment reformatting.
1151 2004-09-14 Andrew Cagney <cagney@gnu.org>
1153 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1156 * thread-db.c (thread_db_new_objfile): Assume that there is a
1159 2004-09-13 Jim Blandy <jimb@redhat.com>
1161 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1162 so that its storage isn't referenced after its lifetime ends.
1164 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1165 and never assigned to. Delete it, and the 'if (use_buffer)'
1166 clauses. Delete 'raw_buffer', since it is now unused.
1168 2004-09-13 Andrew Cagney <cagney@gnu.org>
1170 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1171 * configure: Re-generate.
1172 * nlm/Makefile.in (TAGS): Update.
1173 * Makefile.in (TAGS): Update.
1174 * config/vax/nbsd.mt (TM_FILE): Update.
1175 * config/sparc/vxworks.mt (TM_FILE): Update.
1176 * config/sparc/sol2.mt (TM_FILE): Update.
1177 * config/sparc/sol2-64.mt (TM_FILE): Update.
1178 * config/sparc/obsd64.mt (TM_FILE): Update.
1179 * config/sparc/obsd.mt (TM_FILE): Update.
1180 * config/sparc/nbsd64.mt (TM_FILE): Update.
1181 * config/sparc/nbsd.mt (TM_FILE): Update.
1182 * config/sparc/linux64.mt (TM_FILE): Update.
1183 * config/sparc/linux.mt (TM_FILE): Update.
1184 * config/sparc/fbsd.mt (TM_FILE): Update.
1185 * config/sh/wince.mt (TM_FILE): Update.
1186 * config/sh/nbsd.mt (TM_FILE): Update.
1187 * config/sh/linux.mt (TM_FILE): Update.
1188 * config/sh/embed.mt (TM_FILE): Update.
1189 * config/s390/s390.mt (TM_FILE): Update.
1190 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1191 * config/rs6000/rs6000.mt (TM_FILE): Update.
1192 * config/rs6000/aix4.mt (TM_FILE): Update.
1193 * config/powerpc/vxworks.mt (TM_FILE): Update.
1194 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1195 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1196 * config/powerpc/obsd.mt (TM_FILE): Update.
1197 * config/powerpc/nbsd.mt (TM_FILE): Update.
1198 * config/powerpc/linux.mt (TM_FILE): Update.
1199 * config/powerpc/aix.mt (TM_FILE): Update.
1200 * config/pa/obsd.mt (TM_FILE): Update.
1201 * config/pa/linux.mt (TM_FILE): Update.
1202 * config/pa/hppahpux.mt (TM_FILE): Update.
1203 * config/pa/hppa64.mt (TM_FILE): Update.
1204 * config/pa/hppa.mt (TM_FILE): Update.
1205 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1206 * config/mips/wince.mt (TM_FILE): Update.
1207 * config/mips/vxmips.mt (TM_FILE): Update.
1208 * config/mips/nbsd.mt (TM_FILE): Update.
1209 * config/mips/linux.mt (TM_FILE): Update.
1210 * config/mips/irix6.mt (TM_FILE): Update.
1211 * config/mips/irix5.mt (TM_FILE): Update.
1212 * config/mips/embed.mt (TM_FILE): Update.
1213 * config/m68k/vxworks68.mt (TM_FILE): Update.
1214 * config/m68k/st2000.mt (TM_FILE): Update.
1215 * config/m68k/os68k.mt (TM_FILE): Update.
1216 * config/m68k/obsd.mt (TM_FILE): Update.
1217 * config/m68k/nbsd.mt (TM_FILE): Update.
1218 * config/m68k/monitor.mt (TM_FILE): Update.
1219 * config/m68k/linux.mt (TM_FILE): Update.
1220 * config/m68k/cisco.mt (TM_FILE): Update.
1221 * config/ia64/linux.mt (TM_FILE): Update.
1222 * config/ia64/aix.mt (TM_FILE): Update.
1223 * config/ia64/ia64.mt (TM_FILE): Update.
1224 * config/i386/vxworks.mt (TM_FILE): Update.
1225 * config/i386/obsd64.mt (TM_FILE): Update.
1226 * config/i386/obsd.mt (TM_FILE): Update.
1227 * config/i386/nto.mt (TM_FILE): Update.
1228 * config/i386/nbsd64.mt (TM_FILE): Update.
1229 * config/i386/nbsd.mt (TM_FILE): Update.
1230 * config/i386/linux64.mt (TM_FILE): Update.
1231 * config/i386/linux.mt (TM_FILE): Update.
1232 * config/i386/i386sol2.mt (TM_FILE): Update.
1233 * config/i386/i386lynx.mt (TM_FILE): Update.
1234 * config/i386/fbsd64.mt (TM_FILE): Update.
1235 * config/i386/fbsd.mt (TM_FILE): Update.
1236 * config/i386/cygwin.mt (TM_FILE): Update.
1237 * config/h8300/h8300.mt (TM_FILE): Update.
1238 * config/frv/frv.mt (TM_FILE): Update.
1239 * config/cris/cris.mt (TM_FILE): Update.
1240 * config/arm/wince.mt (TM_FILE): Update.
1241 * config/arm/nbsd.mt (TM_FILE): Update.
1242 * config/arm/linux.mt (TM_FILE): Update.
1243 * config/arm/embed.mt (TM_FILE): Update.
1244 * config/alpha/nbsd.mt (TM_FILE): Update.
1245 * config/alpha/fbsd.mt (TM_FILE): Update.
1246 * config/alpha/alpha.mt (TM_FILE): Update.
1247 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1248 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1250 Eliminate event_loop_p, always has the value 1.
1251 * defs.h (event_loop_p): Delete macro.
1252 * breakpoint.c (until_break_command): Simplify.
1253 * utils.c (prompt_for_continue): Simplify.
1254 * tracepoint.c (read_actions): Simplify.
1255 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1256 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1257 (set_prompt, init_main): Simplify.
1258 (init_signals, disconnect): Delete, unused.
1259 * remote.c (remote_async_resume)
1260 (extended_remote_async_create_inferior): Simplify.
1261 * mi/mi-interp.c (mi_input): Delete, unused.
1262 (mi_interpreter_resume, mi_command_loop): Simplify.
1263 * interps.c (current_interp_command_loop): Simplify.
1264 * infrun.c (proceed): Simplify.
1265 * infcmd.c (run_command, continue_command, step_1, jump_command)
1266 (until_command, advance_command, finish_command)
1267 (interrupt_target_command): Simplify.
1268 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1270 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1271 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1272 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1273 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1274 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1275 * mips-tdep.c (mips_dump_tdep): Do not print same.
1277 2004-09-12 Andrew Cagney <cagney@gnu.org>
1279 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1281 * Makefile.in (valprint.o): Delete explict rule.
1283 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1284 reported by Dave Anderson.
1286 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1288 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1290 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1291 Andrew Cagney <cagney@gnu.org>
1293 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1294 (mi_cmd_data_list_register_values)
1295 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1296 the register number computation.
1298 2004-09-12 Andrew Cagney <cagney@gnu.org>
1300 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1301 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1302 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1303 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1305 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1306 inf-ptrace.o and inf-child.o.
1307 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1308 * Makefile.in: Update dependencies.
1310 2004-09-11 Andrew Cagney <cagney@gnu.org>
1312 * language.c (hex_string, hex_string_custom): Move from here ...
1313 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1314 (CELLSIZE): Increase to 50.
1315 * language.h (hex_string, hex_string_custom): Move from here ...
1316 * defs.h: ... to here.
1317 * Makefile.in: Update all dependencies.
1319 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1321 * language.c (local_hex_format_custom): Remove.
1322 (local_hex_string): Rename to hex_string, use C format, and move to
1324 (local_hex_string_custom): Rename to hex_string_custom and change
1325 interface. Now uses C format. Move to utils.c
1326 (local_octal_format_custom): Remove.
1327 (local_decimal_format_custom): Remove.
1328 (unknown_language_defn): Remove language-specific number
1330 (auto_language_defn): Ditto.
1331 (local_language_defn): Ditto.
1332 * language.h (struct language_format_info): Delete declaration.
1333 (struct language_defn): Remove language_format_info fields
1334 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1335 (local_binary_format): Remove macro.
1336 (local_binary_format_prefix): Remove macro.
1337 (local_binary_format_specifier): Remove macro.
1338 (local_binary_format_suffix): Remove macro.
1339 (local_octal_format): Remove macro.
1340 (local_octal_format_prefix): Remove macro.
1341 (local_octal_format_specifier): Remove macro.
1342 (local_octal_format_suffix): Remove macro.
1343 (local_decimal_format): Remove macro.
1344 (local_decimal_format_prefix): Remove macro.
1345 (local_decimal_format_specifier): Remove macro.
1346 (local_decimal_format_suffix): Remove macro.
1347 (local_hex_format): Remove macro.
1348 (local_hex_format_prefix): Remove macro.
1349 (local_hex_format_specifier): Remove macro.
1350 (local_hex_format_suffix): Remove macro.
1351 (local_decimal_format_custom): Remove.
1352 (local_octal_format_custom): Remove.
1353 (local_hex_format_custom): Remove.
1354 (local_hex_string): Rename to hex_string and move to defs.h.
1355 (local_hex_string_custom): Rename to hex_string_custom, change
1356 interface, and move to defs.h.
1357 * utils.c: (int_string): New function.
1358 (hex_string): New function (from language.c).
1359 (hex_string_custom): New function (from language.c).
1360 (octal2str): New function.
1361 (decimal2str): Add width parameter.
1362 (paddr_u): Use new decimal2str interface.
1364 * defs.h (hex_string): Declare.
1365 (hex_string_custom): Declare.
1366 (int_string): Declare.
1367 * printcmd.c (print_scalar_formatted): Remove localized binary
1369 * valprint.c (print_longest): Use int_string.
1370 (print_floating): Use C hex format.
1371 (print_hex_chars): Ditto.
1372 (print_binary_chars): Remove language-specific formatting.
1373 (print_octal_chars): Use C octal format.
1374 (print_decimal_chars): Delocalize format.
1375 (print_decimal): Remove.
1376 * ada-lang.c (ada_language_defn): Remove language-specific number
1378 * p-lang.c (pascal_language_defn): Ditto.
1379 * c-lang.c (c_language_defn): Ditto.
1380 (cplus_language_defn): Ditto.
1381 (asm_language_defn): Ditto.
1382 (minimal_language_defn): Ditto.
1383 * f-lang.c (f_language_defn): Ditto.
1384 * jv-lang.c (java_language_defn): Ditto.
1385 * m2-lang.c (m2_language_defn): Ditto.
1386 * scm-lang.c (scm_language_defn): Ditto.
1387 * objc-lang.c (objc_language_defn): Ditto.
1388 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1390 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1391 * ui-out.c (ui_out_field_core_addr): Ditto.
1392 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1393 * exec.c (print_section_info): Ditto.
1394 * i387-tdep.c (print_i387_status_word): Ditto.
1395 (print_i387_control_word): Ditto.
1396 (i387_print_float_info): Ditto.
1397 * maint.c (maint_print_section_info): Ditto.
1398 * solib.c (info_sharedlibrary_command): Ditto.
1399 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1400 * symtab.c (print_msymbol_info): Ditto.
1401 * tracepoint.c (tracepoints_info): Ditto.
1402 * solib-frv.c (lm_base): Ditto.
1403 (frv_current_sos): Ditto.
1404 (enable_break2): Ditto.
1405 (enable_break): Ditto.
1406 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1407 (process_one_symbol): Ditto.
1408 * infcmd.c (program_info): Ditto.
1409 * mdebugread.c (parse_partial_symbols): Ditto.
1410 * symfile.c (add_symbol_file_command): Ditto.
1411 * cli/cli-cmds.c (edit_command): Ditto.
1412 (list_command): Ditto.
1413 * infcall.c (call_function_by_hand): Ditto.
1414 * remote-vx.c (vx_run_files_info): Ditto.
1419 * aix-thread.c (pdc_symbol_addrs): Ditto.
1420 (pdc_read_regs): Ditto.
1421 (pdc_write_regs): Ditto.
1422 (pdc_read_data): Ditto.
1423 (pdc_write_data): Ditto.
1424 * d10v-tdep.c (display_trace): Ditto.
1425 * rs6000-nat.c (find_toc_address): Ditto.
1426 * aix-thread.c: Don't include language.h.
1427 * buildsym.c: Ditto.
1429 * mdebugread.c: Ditto.
1430 * rs6000-nat.c: Ditto.
1431 * buildsym.c (make_blockvector): Use renamed hex_string.
1433 2004-09-10 Jason Molenda (jmolenda@apple.com)
1435 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1436 chars after 'if' or 'while' commands in user-defined commands.
1438 2004-09-08 Jim Blandy <jimb@redhat.com>
1440 Fix bug reported and analyzed by Olivier Crete:
1441 * symfile.c (copy_section_addr_info): New function.
1442 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1443 original set of address arguments, instead of handwritten code
1444 that uses one length to allocate and a different length to
1445 initialize. Use make_cleanup_free_section_addr_info.
1446 * symfile.h (copy_section_addr_info): New declaration.
1447 * utils.c: #include "symfile.h".
1448 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1450 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1451 * Makefile.in (utils.o): Update dependencies.
1453 2004-09-08 Andrew Cagney <cagney@gnu.org>
1455 * thread-db.c (keep_thread_db): Delete.
1456 (thread_db_new_objfile, thread_db_create_inferior)
1457 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1459 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1461 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1462 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1463 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1464 (i386_frameless_signal_p): Remove prototype.
1465 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1466 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1468 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1469 instead of FP0_REGNUM.
1470 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1471 of FP0_REGNUM and FPC_REGNUM.
1473 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1474 (sunos_solib_create_inferior_hook): Don't call
1475 sunos_relocate_main_executable.
1477 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1478 solib_svr4_fetch_link_map_offsets to
1479 svr4_ilp32_fetch_link_map_offsets.
1480 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1481 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1482 svr4_ilp32_fetch_link_map_offsets.
1483 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1485 2004-09-07 Jim Blandy <jimb@redhat.com>
1487 * frame.h (frame_register): Doc fix.
1489 2004-09-07 Andrew Cagney <cagney@gnu.org>
1491 * vx-share/wait.h: Delete #ifdef USG.
1492 * utils.c (request_quit): Ditto.
1493 * tui/tui.c (tui_reset): Ditto.
1495 * remote-sds.c: Ditto.
1496 * remote-rdi.c: Ditto.
1497 * mdebugread.c: Ditto.
1498 * m68klinux-nat.c: Ditto.
1499 * infttrace.c: Ditto.
1500 * infptrace.c: Ditto.
1501 * i386v-nat.c: Ditto.
1504 * core-aout.c: Ditto.
1506 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1508 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1509 heuristic_proc_desc.
1510 (mips_insn32_frame_cache): Likewise.
1512 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1514 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1515 left behind by error.
1517 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1519 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1520 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1522 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1524 * config/rs6000/xm-aix4.h: Remove this file.
1525 * config/rs6000/aix4.mh (XM_FILE): Delete.
1527 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1529 * config/rs6000/xm-rs6000.h: Remove this file.
1530 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1532 2004-09-03 Andrew Cagney <cagney@gnu.org>
1534 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1535 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1538 * mips-tdep.c (temp_saved_regs): Delete.
1539 (set_reg_offset): Replace saved_regs parameter with this_cache.
1540 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1541 (mips32_heuristic_proc_desc): Add this_cache parameter.
1542 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1543 (after_prologue): Pass a NULL this_cache.
1545 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1546 non-kernel trap prologues.
1548 * mips-tdep.c (find_proc_desc): Delete function.
1549 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1551 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1552 mips_insn32_frame_cache.
1554 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1555 Simplify as NEXT_FRAME is NULL.
1556 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1558 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1560 (mips_skip_prologue): Update.
1562 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1563 "cur_frame" parameter.
1564 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1565 (mips_insn32_frame_cache, find_proc_desc): Update
1567 * config/vax/nm-obsd.h: Delete file.
1568 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1569 * config/vax/nm-nbsd.h: Delete file.
1570 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1571 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1572 * config/sh/nm-nbsd.h: Delete file.
1573 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1574 * config/rs6000/nm-rs6000ly.h: Delete file.
1575 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1576 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1577 * config/powerpc/nm-obsd.h: Delete file.
1578 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1579 * config/powerpc/nm-nbsd.h: Delete file.
1580 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1581 * config/pa/nm-obsd.h: Delete file.
1582 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1583 * config/mips/nm-nbsd.h: Delete file.
1584 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1585 * config/m88k/nm-obsd.h: Delete file.
1586 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1587 * config/m68k/nm-nbsd.h: Delete file.
1588 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1589 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1590 * config/i386/nm-nbsd.h: Delete file.
1591 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1592 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1593 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1594 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1595 * config/i386/nm-i386lynx.h: Delete file.
1596 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1597 * config/arm/nm-nbsd.h: Delete file.
1598 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1599 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1601 * config/i386/tm-fbsd.h: Delete file.
1602 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1603 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1605 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1606 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1607 * config/rs6000/aix4.mt (TM_FILE): Set to
1608 config/rs6000/tm-rs6000.h.
1609 * config/powerpc/tm-ppc-aix.h: Delete file.
1610 * config/powerpc/aix.mt (TM_FILE): Set to
1611 config/rs6000/tm-rs6000.h.
1612 * config/m68k/tm-linux.h: Delete file.
1613 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1614 * config/i386/tm-linux64.h: Delete file.
1615 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1616 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1618 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1619 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1620 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1621 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1622 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1623 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1624 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1625 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1626 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1628 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1631 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1633 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1634 Minor reformatting. Some code factoring.
1636 2004-09-02 Andrew Cagney <cagney@gnu.org>
1638 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1639 * config/vax/tm-nbsd.h: Delete file.
1640 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1641 * config/sparc/tm-vxworks.h: Delete file.
1642 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1643 * config/sparc/tm-nbsd.h: Delete file.
1644 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1645 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1646 * config/sparc/tm-linux.h: Delete file.
1647 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1648 * config/s390/tm-linux.h: Delete file.
1649 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1650 * config/pa/tm-bsd.h: Delete file.
1651 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1652 * config/m68k/tm-obsd.h: Delete file.
1653 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1654 * config/m68k/tm-nbsd.h: Delete file.
1655 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1656 * config/i386/tm-vxworks.h: Delete file.
1657 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1658 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1659 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1660 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1661 * config/i386/tm-nbsd.h: Delete file.
1662 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1663 * config/i386/tm-i386lynx.h: Delete file.
1664 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1665 * config/cris/tm-cris.h: Delete file.
1667 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1668 * configure: Re-generate.
1669 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1670 * config/arm/tm-nbsd.h: Delete file.
1672 * config/powerpc/tm-ppcle-sim.h: Delete.
1673 * config/powerpc/tm-ppcle-eabi.h: Delete.
1674 * config/powerpc/tm-nbsd.h: Delete.
1675 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1676 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1679 * config/i386/nto.mh (NAT_FILE): Delete.
1680 * config/i386/nm-nto.h: Delete.
1682 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1683 * config/m68k/tm-os68k.h: Ditto.
1684 * config/m68k/tm-monitor.h: Ditto.
1685 * config/m68k/tm-cisco.h: Ditto.
1686 * config/m68k/st2000.mt (TM_FILE): Delete.
1687 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1688 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1689 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1690 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1692 * config/m68k/tm-st2000.h: Delete.
1693 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1694 * config/sparc/fbsd.mt (TM_FILE): Delete.
1695 * config/sparc/tm-fbsd.h: Delete.
1697 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1698 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1699 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1701 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1702 GDB_TM_FILE and GDB_XM_FILE.
1703 * gdbarch.c: Re-generate.
1704 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1705 quotes in macro definition.
1706 * configure.in: Re-generate.
1708 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1709 validating architecture methods.
1710 * gdbarch.c: Re-generate.
1712 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1713 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1714 GDB_MULTI_ARCH_PARTIAL.
1715 * gdbarch.h: Re-generate.
1717 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1718 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1719 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1720 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1721 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1722 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1723 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1724 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1725 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1726 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1727 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1728 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1730 2004-09-01 Andrew Cagney <cagney@gnu.org>
1732 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1733 and main_func_highpc.
1734 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1735 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1736 * nlmread.c (nlm_symfile_read): Update.
1738 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1740 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1741 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1742 (find_proc_desc): Remove dead code.
1744 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1746 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1748 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1750 * observer.sh: Add struct so_list declaration.
1751 * Makefile.in: Add dependencies on observer.h for solib.c and
1753 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1755 (_initialize_breakpoint): Register
1756 disable_breakpoints_in_unloaded_shlib as an observer of the
1757 "solib unloaded" observation event.
1758 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1759 call decode_line_1 so unfound breakpoint errors are silent.
1760 * solib.c (update_solib_list): When a solib is discovered to have
1761 been unloaded by the program, notify all observers of the
1762 "solib unloaded" observation event.
1764 2004-09-01 Andrew Cagney <cagney@gnu.org>
1766 * frame.c: Include "objfiles.h".
1767 (inside_main_func): New function.
1768 (get_prev_frame): Use new inside_main_func.
1769 * Makefile.in (frame.o): Update dependencies.
1770 * defs.h (inside_main_func): Delete declaration.
1771 * blockframe.c (inside_main_func): Delete function.
1773 2004-08-31 Jim Blandy <jimb@redhat.com>
1775 * dwarf2read.c (is_vtable_name): New function, based on logic from
1776 read_structure_type, but passing the correct length to strncmp,
1777 and using 'sizeof' instead of 'strlen'.
1778 (read_structure_type): Call it.
1780 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1782 * config/powerpc/aix.mh: Add comment.
1784 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1786 * MAINTAINERS: Add self to Write-After-Approval.
1788 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1790 * MAINTAINERS: Add self to Write-After-Approval.
1792 2004-08-30 Andrew Cagney <cagney@gnu.org>
1794 Fix PR breakpoints/1757.
1795 * infrun.c (struct execution_control_state): Replace
1796 remove_breakpoints_on_following_step with
1797 step_after_step_resume_breakpoint.
1798 (init_execution_control_state): Update.
1799 (handle_inferior_event): For signals, when stepping off a
1800 breakpoint, set step_after_step_resume_breakpoint. When
1801 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1802 (keep_going): Delete code handling
1803 remove_breakpoints_on_following_step.
1805 2004-08-29 David Lecomber <david@streamline-computing.com>
1808 * language.h (enum array_ordering): New enum.
1809 * language.h (struct language_defn): New la_array_ordering
1811 * language.c (unknown_language_defn, auto_language_defn)
1812 (local_language_defn): Ditto.
1813 * ada-lang.c (ada_language_defn): Ditto.
1814 * c-lang.c (c_language_defn, cplus_language_defn)
1815 (asm_language_defn, minimal_language_defn): Ditto.
1816 * f-lang.c (f_language_defn): Ditto.
1817 * jv-lang.c (java_language_defn): Ditto.
1818 * m2-lang.c (f_language_defn): Ditto.
1819 * objc-lang.c (objc_language_defn): Ditto.
1820 * p-lang.c (pascal_language_defn): Ditto.
1821 * scm-lang.c (scm_language_defn): Ditto.
1822 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1823 oriented large to small in type structure.
1824 * dwarf2read.c (read_array_order): New function.
1825 (read_array_type): Use read_array_order to check row/column
1828 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1830 * target.c (target_resize_to_sections): Check
1831 current_target.to_sections for an old value when updating.
1833 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1835 * procfs.c (dbx_link_bpt_addr): New static global variable.
1836 (dbx_link_shadow_contents): New static global variable.
1837 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1838 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1840 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1841 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1843 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1844 after the inferior has been forked.
1845 (remove_dbx_link_breakpoint): New function.
1846 (dbx_link_addr): New function.
1847 (insert_dbx_link_bpt_in_file): New function.
1848 (insert_dbx_link_bpt_in_region): New function.
1849 (insert_dbx_link_breakpoint): New function.
1850 (proc_trace_syscalls_1): New function, extracted from
1851 proc_trace_syscalls.
1852 (proc_trace_syscalls): Replace extract code by call to
1853 proc_trace_syscalls_1.
1854 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1857 2004-08-25 Jim Blandy <jimb@redhat.com>
1859 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1861 2004-08-25 Andrew Cagney <cagney@gnu.org>
1863 * infrun.c (struct execution_control_state): Delete field
1864 "stepping_through_sigtramp".
1865 (init_execution_control_state): Do not set same.
1866 (context_switch): Do not pass same to save_infrun_state and
1868 * gdbthread.h (struct thread_info): Delete field
1869 stepping_through_sigtramp.
1870 (save_infrun_state, load_infrun_state): Delete parameter
1871 stepping_through_sigtramp.
1872 * thread.c (load_infrun_state, save_infrun_state): Update.
1874 * infrun.c: Re-indent. Move expression operators to the beginning
1875 of the line. Remove long disabled #if 0 code.
1877 2004-08-24 Andrew Cagney <cagney@gnu.org>
1879 * doublest.h (floatformat_ieee_quad): Rename
1880 floatformat_ia64_quad.
1881 * doublest.c (floatformat_ieee_quad): Rename
1882 floatformat_ia64_quad.
1883 (_initialize_doublest): Update.
1885 2004-08-24 Jim Blandy <jimb@redhat.com>
1887 * dwarf2expr.h (struct dwarf_expr_context): New members
1888 'num_pieces' and 'pieces', for returning the result of an
1889 expression that uses DW_OP_piece.
1890 (struct dwarf_expr_piece): New struct type.
1891 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1893 (free_dwarf_expr_context): Free pieces, if any.
1894 (add_piece): New function.
1895 (execute_stack_op): Implement DW_OP_piece.
1896 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1897 expression is a list of pieces, print an error message.
1898 (dwarf2_loc_desc_needs_frame): If the expression yields
1899 pieces, and any piece is in a register, then we need a frame.
1901 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1902 the stack until we've decided what sort of result the evaluation
1903 has produced. Use separate variables, with more specific names.
1905 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1907 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1908 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1909 (arm_netbsd_init_abi_common): Register them.
1911 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1913 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1915 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1916 safe_frame_unwind_memory instead of target_read_memory.
1918 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1920 (fetch_register, store_register): Remove prototypes.
1921 (child_resume): Reorganize code and comments such that it is
1922 grouped a bit more logically.
1923 (attach): Explicitly compare errno against 0.
1924 (detach): Likewise. Use perror_with_name instead of
1926 * Makefile.in (infptrace.o): Update dependencies.
1928 * ia64-linux-nat.c: Update copyright year.
1929 (fetch_debug_register, store_debug_register)
1930 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1932 * config/ia64/nm-linux.h: Update copyright year.
1933 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1935 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1936 from CORE_ADDR to struct frame_info *. Use
1937 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1938 (amd64_linux_sigtramp_p): Adjust for changed signature of
1939 and64_linux_sigtramp_start
1941 * gdb_ptrace.h: GNU/Linux.
1943 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1946 * infptrace.c: Include "gdb_assert.h".
1947 (PTRACE_XFER_TYPE): Remove define.
1948 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1949 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1951 (fetch_inferior_registers, store_inferior_registers): Remove
1952 redundant culry braces. Tweak comment. s/regno/regnum.
1953 * Makefile.in (infptrace.o): Update dependencies.
1955 * configure.in: Change test for return type of ptrace to default
1956 to `long' instead of `int'.
1957 * configure: Regenerate.
1959 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1961 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1963 * configure.in: Check for ttrace function.
1964 * configure, config.in: Regenerate.
1966 * gdb_ptrace.h: New file.
1967 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1969 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1970 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1971 (attach): Don't define PT_ATTACH.
1972 (detach): Don't define PT_DETACH.
1973 * Makefile.in (gdb_ptrace_h): New variable.
1974 (infptrace.o): Update dependencies.
1976 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1978 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1979 instead of `int' if not already defined.
1980 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1982 * infptrace.c (call_ptrace): Revert change that replaced
1983 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1985 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1987 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1990 * linux-nat.c (kill_inferior): Add missing third and fourth
1991 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1993 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1996 * proc-why.c (proc_prettyfprint_why): Fix format string.
1998 * solib-osf.c (osf_current_sos): Remove unsused label.
2000 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2002 * configure, config.in: Regenerate.
2003 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2004 <ncurses/ncurses.h>.
2006 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2007 * config/nm-nbsd.h: Update copyright year.
2008 (PTRACE_ARG3_TYPE): Remove define.
2010 * sparc-nat.c (fetch_inferior_registers)
2011 (store_inferior_registers, sparc_xfer_wcookie):
2012 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2014 * alphabsd-nat.c (fetch_inferior_registers):
2015 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2017 * amd64bsd-nat.c (fetch_inferior_registers)
2018 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2020 * armnbsd-nat.c: Update copyright year.
2021 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2022 (store_register, store_regs, store_fp_register, store_fp_regs):
2023 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2024 * hppabsd-nat.c (fetch_inferior_registers)
2025 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2027 * i386bsd-nat.c (fetch_inferior_registers)
2028 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2029 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2030 * m68kbsd-nat.c (fetch_inferior_registers)
2031 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2033 * m88kbsd-nat.c (fetch_inferior_registers)
2034 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2036 * mipsnbsd-nat.c: Update copyright year.
2037 (fetch_inferior_registers, store_inferior_registers):
2038 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2039 * ns32knbsd-nat.c: Update copyright year.
2040 (fetch_inferior_registers, store_inferior_registers):
2041 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2042 * ppcnbsd-nat.c (fetch_inferior_registers):
2043 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2045 * ppcobsd-nat.c (fetch_inferior_registers):
2046 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2048 * shnbsd-nat.c: Update copyright year.
2049 (fetch_inferior_registers, store_inferior_registers):
2050 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2051 * vaxbsd-nat.c (fetch_inferior_registers)
2052 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2055 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2057 * infptrace.c (call_ptrace, child_resume, attach, detach)
2058 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2059 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2060 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2063 2004-08-14 Mark Kettenis <kettenis@gnu.org>
2065 * defs.h: Remove out-of-date comment.
2066 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2067 [!GETENV_PROVIDED] (getenv): Remove prototype.
2069 * standalone.c: Remove file.
2070 * Makefile.in (standalone.o): Remove dependency.
2072 * i386-linux-nat.c (dummy_sse_values): Remove function and
2074 (i386_linux_dr_get): Fix typo in comment.
2075 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2077 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2079 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2081 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2084 2004-08-13 Mark Kettenis <kettenis@gnu.org>
2086 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2087 parenthesis in definition.
2088 * configure: Regenerated.
2090 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2092 * PROBLEMS: Mention build/1411.
2094 2004-08-09 Robert Millan <robertmh@gnu.org>
2096 Committed by Nathanael Nerode.
2097 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2098 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2100 2004-08-12 Andrew Cagney <cagney@gnu.org>
2102 * NEWS: Mention fixes in GDB 6.2.1.
2103 * PROBLEMS: Remove mention of mips-irix.
2105 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2107 * config/powerpc/xm-aix.h: Delete.
2108 * config/powerpc/aix.mh (MH_FILE): Remove.
2109 * config/powerpc/aix432.mh (MH_FILE): Remove.
2111 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2113 * config/powerpc/aix.mh: Remove obsolete comment.
2114 * config/powerpc/aix432.mh: Likewise.
2116 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2118 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2120 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2122 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2123 this file is now empty.
2124 * config/xm-aix4.h: Remove, this file is no longer included
2127 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2129 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2130 that file is now empty.
2131 (termdef): Remove prototype, function no longer used.
2133 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2135 * doc/gdbint.texinfo (Host Definition): Remove documentation
2136 for USE_O_NOCTTY, no longer used.
2137 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2138 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2140 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2142 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2143 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2144 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2146 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2148 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2149 instead of FIVE_ARG_PTRACE.
2151 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2152 (new_tty): Use O_NOCTTY unconditionally.
2154 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2156 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2157 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2160 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2162 * xcoff_symfile_finish: Replace last call to xmfree by call
2165 2004-08-10 Andrew Cagney <cagney@gnu.org>
2167 * main.c (captured_main): Delete call to init_malloc.
2168 * defs.h (init_malloc): Delete declaration.
2169 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2170 (init_malloc): Delete functions.
2172 * defs.h (xmfree): Delete.
2173 * utils.c (xmfree): Delete function.
2174 (xfree): Inline calls to xmfree and mfree.
2175 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2176 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2177 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2178 * somread.c (som_symfile_finish): Ditto.
2179 * objfiles.c (allocate_objfile, free_objfile):
2180 * nlmread.c (nlm_symfile_finish): Ditto.
2181 * hpread.c (hpread_symfile_finish): Ditto.
2182 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2183 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2184 * coffread.c (coff_symfile_finish): Ditto.
2186 * defs.h (xmcalloc): Delete declaration.
2187 * utils.c (xmcalloc): Delete.
2188 (xcalloc): Inline calls to xmcalloc and mcalloc.
2189 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2191 * symtab.c (create_demangled_names_hash): Ditto.
2193 * defs.h (xmrealloc): Delete.
2194 * utils.c (xmrealloc): Delete.
2195 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2196 * symmisc.c (extend_psymbol_list): Use xrealloc.
2197 * source.c (find_source_lines): Ditto.
2198 * hpread.c (hpread_lookup_type): Ditto.
2199 * dbxread.c (add_bincl_to_list): Ditto.
2201 * utils.c (xmmalloc): Delete.
2202 (xmalloc): Inline xmmalloc and mmalloc calls.
2203 (msavestring): Use xmalloc.
2204 * defs.h (xmmalloc): Delete declaration.
2205 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2207 * symmisc.c (extend_psymbol_list): Ditto.
2208 * symfile.c (init_psymbol_list): Ditto.
2209 * source.c (find_source_lines): Ditto.
2210 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2211 * elfread.c (elf_symtab_read): Ditto.
2212 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2213 * coffread.c (coff_symfile_init): Ditto.
2215 2004-08-10 David Carlton <carlton@bactrian.org>
2217 * MAINTAINERS: Remove David Carlton from c++ testsuite
2220 2004-08-10 Jerome Guitton <guitton@gnat.com>
2222 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2223 print a line feed before the prompt.
2225 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2227 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2229 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2231 General cleanup of the AIX xm include file:
2232 * config/xm-aix4.h (fd_set): Remove undefine.
2233 Remove include of <sys/select.h>.
2234 (HAVE_TERMIO): Remove define.
2236 (NULL): Remove redefine.
2237 (alloca): Remove #pragma.
2238 (vfork): Remove define.
2240 (SIGWINCH_HANDLER): Remove.
2241 (SIGWINCH_HANDLER_BODY): Remove.
2243 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2245 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2246 GDB_OSABI_OPENBSD_ELF.
2248 2004-08-07 Robert Millan <robertmh@gnu.org>
2250 * bsd-kvm.c: Check for nlist.h before including it.
2252 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2254 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2255 sigcontext' offset consistency checks for ancient BSD.
2257 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2259 * configure.in: Check for <sys/types.h>. Check return and
2260 argument types of ptrace.
2261 * configure, config.in: Regenerate.
2263 2004-08-09 Jim Blandy <jimb@redhat.com>
2265 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2266 rs6000_register_sim_regno): Doc fixes.
2268 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2270 * mips-tdep.c: Include "floatformat.h".
2271 (n32n64_floatformat_always_valid): New function.
2272 (floatformat_n32n64_long_double_big): New constant.
2273 (mips_gdbarch_init): Set size and format of long double
2274 for N32 and N64 ABIs.
2275 * Makefile.in (mips-tdep.o): Update dependencies.
2277 2004-08-08 Andrew Cagney <cagney@gnu.org>
2279 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2280 print. Improve script's error messages.
2281 * gdbarch.h: Re-generate.
2283 * gdbarch.sh (pformat): New function.
2284 (float_format, double_format, long_double_format): List with bit
2285 members. Use pformat when printing.
2286 * gdbarch.c, gdbarch.h: Re-generate.
2288 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2290 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2291 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2292 (ppcnbsd_supply_pcb): New function.
2293 (_initialize_ppcnbsd_nat): New prototype and function.
2294 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2295 (LOADLIBES): New variable.
2296 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2298 2004-08-08 Andrew Cagney <cagney@gnu.org>
2300 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2301 (builtin_type_ieee_double, builtin_type_ia64_quad)
2302 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2303 BE/LE floating-point types.
2304 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2305 (builtin_type_ieee_double, builtin_type_ia64_quad)
2306 (builtin_type_ia64_spill): Declare.
2307 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2308 (floatformat_ieee_double, floatformat_arm_ext)
2309 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2310 of LE/BE floatformats.
2311 * doublest.h: (struct floatformat, floatformat_ieee_single)
2312 (floatformat_ieee_double, floatformat_arm_ext)
2313 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2315 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2317 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2319 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2320 instead of regcache_raw_supply when storing the registers.
2322 * i386gnu-nat.c: Update copyright year.
2323 (gnu_store_registers): Don't use deprecated_registers and
2324 deprecated_registers_valid. Use regcache_valid_p and
2325 regcache_raw_supply instead.
2327 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2330 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2331 variables. Incapitalized "process".
2333 * configure.in: Add cursesX to the list of possible curses libs.
2334 Add cursesX.h to the list of possible curses headers.
2335 * configure, config.in: Regenerate.
2337 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2339 * configure.in: Test for struct lwp in <sys/lwp.h>.
2340 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2341 the offset of l_addr in struct lwp.
2343 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2345 * bsd-kvm.c: Include "gdbcore.h"
2346 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2348 2004-08-07 Andrew Cagney <cagney@gnu.org>
2350 * gdbtypes.c (build_flt, build_complex): New functions.
2351 (gdbtypes_post_init): Use.
2353 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2355 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2356 through to builtin_type_uint128.
2358 * c-exp.y: Use builtin_type function to obtain builtin types.
2360 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2362 * gdbtypes.c (gdbtypes_post_init): Update.
2363 (build_gdbtypes): Move initialization of builtin_type_int0
2364 through to builtin_type_uint128 from here ...
2365 (_initialize_gdbtypes): ... to here.
2366 * d10v-tdep.c (d10v_register_type): Update.
2368 * doublest.c: Update copyright.
2369 (floatformat_from_length): Call error when floatformat is NULL.
2370 (extract_floating_by_length): Remove NULL fmt check.
2371 (store_floating_by_length): Ditto.
2373 2004-08-07 Andrew Cagney <cagney@gnu.org>
2375 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2376 that the register is valid.
2378 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2380 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2381 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2382 struct frame_info *. Use safe_frame_unwind_memory instead of
2383 deprecated_read_memory_nobpt.
2384 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2385 changed signature of i386_linux_sigtramp_start and
2386 i386_linux_rt_sigtramp_start.
2388 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2389 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2390 instead of deprecated_read_memory_nobpt.
2391 (i386nbsd_sigtramp_p): Adjust for changed signature of
2392 i386nbsd_sigtramp_offset.
2394 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2395 safe_frame_unwind_memory instead of target_read_memory.
2397 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2399 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2400 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2401 (_initialize_kernel_u_addr): Remove prototype and function.
2402 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2404 * xcoffread.c: Likewise.
2406 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2408 * vax-nat.c: New file.
2409 * vaxbsd-nat.c: Tweak comment.
2410 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2412 (vax-nat.o): New dependency.
2413 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2414 (vax-*-ultrix2*): Remove.
2415 * config/vax/vax.mh: New file.
2416 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2417 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2418 (vax_register_u_addr): New prototype.
2419 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2420 * config/vax/vaxult2.mh: Remove file.
2421 * config/vax/vaxult.mh: Remove file.
2422 * config/vax/vaxbsd.mh: Remove file.
2423 * config/vax/vax.mt (TM_FILE): Remove.
2424 * config/vax/tm-vaxbsd.h: Remove file.
2426 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2428 * aix-thread.c (get_signaled_thread): New function.
2429 (iter_trap): Delete, no longer used.
2430 (iter_tid): New function.
2431 (pd_update): Find the thread that received the SIGTRAP signal
2432 by first locating the kernel thread, and then finding its
2435 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2437 * lin-lwp.c (child_wait): Continue inferior after processing
2438 PTRACE_EVENT_CLONE event.
2440 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2442 * MAINTAINERS: Add self to Write-After-Approval.
2444 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2446 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2447 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2449 2004-08-05 Andrew Cagney <cagney@gnu.org>
2451 * config/xm-sysv4.h: Delete file.
2452 * config/mips/xm-irix5.h: Delete file.
2453 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2454 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2455 * config/ia64/xm-aix.h: Delete file.
2456 * config/ia64/aix.mh (XM_FILE): Delete.
2457 * config/pa/xm-hppah.h: Delete file.
2458 * config/pa/hpux11w.mh (XM_FILE): Delete.
2459 * config/pa/hpux11.mh (XM_FILE): Delete.
2460 * config/pa/hpux1020.mh (XM_FILE): Delete.
2461 * config/pa/hppahpux.mh (XM_FILE): Delete.
2463 * config/alpha/xm-alphalinux.h: Delete file.
2464 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2465 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2466 * config/alpha/xm-alphaosf.h: Delete file.
2467 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2468 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2469 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2470 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2472 * config/i386/xm-i386v.h: Delete file.
2473 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2474 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2475 * config/i386/xm-i386sco.h: Delete file.
2476 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2477 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2478 * config/i386/xm-i386v4.h: Delete file.
2479 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2480 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2481 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2482 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2484 * config/vax/xm-vax.h: Delete file.
2485 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2486 * config/vax/xm-vaxult2.h: Delete file.
2487 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2488 * config/vax/vaxult2.mh (XM_FILE): Delete.
2489 * config/vax/xm-vaxult.h: Delete file.
2490 * config/vax/vaxult.mh (XM_FILE): Delete.
2491 * config/vax/xm-vaxbsd.h: Delete file.
2492 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2494 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2495 * gdbarch.h, gdbarch.c: Re-generate.
2496 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2497 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2498 * frame.h: Delete deprecated_read_fp from comments.
2499 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2500 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2502 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2504 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2505 trampoline in OpenBSD 3.5-current.
2507 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2510 * Makefile.in: Remove embedded page breaks.
2512 2004-08-04 Jim Blandy <jimb@redhat.com>
2514 * regcache.c (regcache_raw_read): Assert that, after calling
2515 target_fetch_registers, the register we're reading is cached.
2517 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2518 a call to 'internal_error', with a more helpful error message.
2519 * rs6000-tdep.c (e500_pseudo_register_read,
2520 e500_pseudo_register_write, rs6000_store_return_value): Same.
2522 2004-08-04 Andrew Cagney <cagney@gnu.org>
2524 * Makefile.in: Update dependencies.
2526 2004-08-04 Jim Blandy <jimb@redhat.com>
2528 Change the layout of the PowerPC E500 raw register cache to allow
2529 the lower 32-bit halves of the GPRS to be their own raw registers,
2530 not pseudoregisters.
2531 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2532 add ppc_ev0_upper_regnum flag.
2533 * rs6000-tdep.c: #include "reggroups.h".
2534 (spe_register_p): Recognize the ev upper half registers as SPE
2536 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2538 (e500_move_ev_register): New function.
2539 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2540 vector registers are the pseudo-registers now, formed by splicing
2541 together the gprs and the upper-half registers.
2542 (e500_register_reggroup_p): New function.
2544 (P8, A4): New macro.
2545 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2546 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2548 (registers_e500): Rearrange register set so that the raw register
2549 set contains 32-bit GPRs and upper-half registers, and the SPE
2550 vector registers become pseudo-registers.
2551 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2552 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2553 register numbers are now the same for the E500 as they are for
2554 other PowerPC variants. Register e500_register_reggroup_p as the
2555 register group function for the E500.
2556 * Makefile.in (rs6000-tdep.o): Update dependencies.
2558 Adapt PPC E500 native support to the new raw regcache layout.
2559 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2560 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2561 (fetch_spe_register, store_spe_register): Handle fetching/storing
2562 all the SPE registers at once, if regno == -1. These now take
2563 over the job of fetch_spe_registers and store_spe_registers.
2564 (fetch_spe_registers, store_spe_registers): Deleted.
2565 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2566 unconditionally; they're always raw. Fetch/store SPE upper half
2567 registers, if present, instead of ev registers.
2568 (fetch_register, store_register): Remove sanity checks: gprs are
2569 never pseudo-registers now, so we never need to even mention any
2570 registers that are ever pseudoregisters.
2572 Use a fixed register numbering when communicating with the PowerPC
2574 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2575 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2576 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2578 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2579 init_sim_regno_table.
2580 * Makefile.in (gdb_sim_ppc_h): New variable.
2581 (rs6000-tdep.o): Update dependencies.
2583 2004-08-02 Andrew Cagney <cagney@gnu.org>
2585 * cris-tdep.c (cris_register_size): Restore function, still used
2588 * gdbarch.sh (deprecated_target_read_fp)
2589 (deprecated_frame_locals_address, deprecated_frame_args_address)
2590 (deprecated_frame_chain_valid, deprecated_frame_chain)
2591 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2592 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2593 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2594 * gdbarch.h, gdbarch.c: Re-generate.
2595 * regcache.c (deprecated_read_fp): Do not call
2596 DEPRECATED_TARGET_READ_FP_P.
2597 * infcmd.c (default_print_registers_info): Do not call
2598 DEPRECATED_DO_REGISTERS_INFO.
2599 * frame-base.c (default_frame_locals_address): Do not call
2600 DEPRECATED_FRAME_LOCALS_ADDRESS.
2601 (default_frame_args_address): Do not call
2602 DEPRECATED_FRAME_ARGS_ADDRESS.
2604 * gdbarch.sh (deprecated_register_raw_size)
2605 (deprecated_register_virtual_size:int): Delete.
2606 * gdbarch.h, gdbarch.c: Re-generate.
2607 * cris-tdep.c (cris_register_size): Delete.
2608 (cris_gdbarch_init): Update.
2609 * alpha-tdep.c (alpha_register_raw_size)
2610 (alpha_register_virtual_size): Delete.
2611 (alpha_gdbarch_init): Update.
2613 * gdbarch.sh (deprecated_register_virtual_type)
2614 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2615 (deprecated_dummy_write_sp): Delete.
2616 * gdbarch.h, gdbarch.c: Re-generate.
2618 * gdbarch.sh (deprecated_register_bytes): Delete.
2619 * gdbarch.h, gdbarch.c: Re-generate.
2620 * regcache.c (deprecated_register_bytes): New function.
2621 * regcache.h (deprecated_register_bytes): Declare.
2622 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2623 * v850-tdep.c (v850_gdbarch_init): Update.
2624 * sh64-tdep.c (sh64_gdbarch_init): Update.
2625 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2626 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2627 * mcore-tdep.c (mcore_gdbarch_init): Update.
2628 * cris-tdep.c (cris_gdbarch_init): Update.
2629 * arm-tdep.c (arm_gdbarch_init): Update.
2630 * remote.c (init_remote_state): Update.
2631 * remote-vx.c (vx_prepare_to_store): Update.
2632 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2633 * irix5-nat.c (fetch_core_registers): Update.
2634 * cris-tdep.c (cris_register_bytes_ok): Update.
2635 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2637 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2638 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2639 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2640 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2641 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2642 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2643 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2644 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2645 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2646 with mips_insn16 and mips_insn32.
2648 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2649 * rs6000-tdep.c (rs6000_push_dummy_call)
2650 (rs6000_extract_return_value): Use register_size.
2651 * xstormy16-tdep.c (xstormy16_get_saved_register)
2652 (xstormy16_extract_return_value): Ditto.
2653 * valops.c (value_assign): Ditto.
2654 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2655 * v850-tdep.c (v850_extract_return_value): Ditto.
2656 * tracepoint.c (collect_symbol): Ditto.
2657 * target.c (debug_print_register): Ditto.
2658 * stack.c (frame_info): Ditto.
2659 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2660 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2661 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2662 (store_register_using_P): Ditto.
2663 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2664 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2665 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2666 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2667 * regcache.c (deprecated_read_register_bytes)
2668 (deprecated_write_register_bytes, read_register)
2669 (write_register): Ditto.
2670 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2671 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2672 * monitor.c (monitor_supply_register, monitor_fetch_register)
2673 (monitor_store_register): Ditto.
2674 * mn10300-tdep.c (mn10300_pop_frame_regular)
2675 (mn10300_print_register): Ditto.
2676 * mipsv4-nat.c (fill_fpregset): Ditto.
2677 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2678 (mips64_fill_fpregset): Ditto.
2679 * mi/mi-main.c (register_changed_p, get_register)
2680 (mi_cmd_data_write_register_values): Ditto.
2681 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2682 * irix5-nat.c (fill_gregset, fetch_core_registers):
2683 * infrun.c (write_inferior_status_register): Ditto.
2684 * infptrace.c (fetch_register, store_register): Ditto.
2685 * infcmd.c (default_print_registers_info): Ditto.
2686 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2687 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2688 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2689 * hpux-thread.c (hpux_thread_fetch_registers)
2690 (hpux_thread_store_registers): Ditto.
2691 * hppah-nat.c (store_inferior_registers, fetch_register):
2692 * findvar.c (value_from_register): Ditto.
2693 * dve3900-rom.c (fetch_bitmapped_register):
2694 * cris-tdep.c (cris_gdbarch_init): Ditto.
2695 * alpha-tdep.h: Ditto.
2696 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2698 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2699 DEPRECATED_REGISTER_RAW_SIZE from comments.
2700 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2701 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2702 DEPRECATED_REGISTER_RAW_SIZE.
2703 * findvar.c (value_of_register): Simplify by assuming that the
2704 registers raw and virtual sizes are identical.
2705 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2707 * arch-utils.c (generic_register_size): Simplify by assuming
2710 * regcache.c (legacy_read_register_gen, real_register)
2711 (legacy_write_register_gen): Delete, not used.
2713 * regcache.c (struct regcache_descr): Delete legacy_p.
2714 (init_legacy_regcache_descr): Delete function.
2715 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2716 Do not use deprecated register functions.
2717 (regcache_raw_read, deprecated_write_register_gen):
2718 (deprecated_read_register_gen, regcache_raw_write): Delete code
2719 predicated on legacy_p.
2720 (register_size): Delete check against register raw size.
2722 * cris-tdep.c (cris_register_type): Replace
2723 cris_register_virtual_type.
2724 (cris_gdbarch_init): Update, set register_type.
2726 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2727 * gdbarch.h, gdbarch.c: Re-generate.
2728 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2729 (arm_gdbarch_init) Do not set frameless function invocation.
2730 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2731 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2732 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2733 (frv_gdbarch_init): Do not set frameless function invocation.
2734 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2735 * sh-tdep.c (sh_gdbarch_init): Ditto.
2736 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2737 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2738 * avr-tdep.c (avr_gdbarch_init): Ditto.
2740 * blockframe.c (legacy_frame_chain_valid): Delete function.
2742 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2743 and pc. Update comments.
2744 (pc_in_dummy_frame): Delete function.
2745 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2747 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2748 call_hi, top and pc, use the id.
2749 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2751 * dummy-frame.c: Include "gdb_string.h".
2752 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2753 (generic_save_dummy_frame_tos): Delete.
2754 (dummy_frame_push): New function, replaces above.
2755 * dummy-frame.h: Update copyright.
2756 (dummy_frame_push): Declare.
2757 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2758 (generic_save_call_dummy_addr): Delete declarations.
2759 * infcall.c: Include "dummy-frame.h".
2760 (call_function_by_hand): Add locals caller_regcache,
2761 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2762 with call to frame_save_as_regcache plus cleanup. Delete calls to
2763 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2764 Move clear_proceed_status to just before the resume, add call to
2765 dummy_frame_push (discard cleanup).
2766 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2767 (dummy-frame.o): Add $(gdb_string_h).
2769 2004-08-01 Andrew Cagney <cagney@gnu.org>
2771 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2772 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2773 * dummy-frame.c (find_dummy_frame): Delete.
2774 (struct dummy_frame_cache, dummy_frame_sniffer)
2775 (dummy_frame_prev_register, dummy_frame_this_id)
2776 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2777 frame unwinder using a dummy_frame_cache.
2779 2004-08-01 Andrew Cagney <cagney@gnu.org>
2781 * frame.h (frame_save_as_regcache): Declare.
2782 * frame.c (frame_save_as_regcache): New function.
2783 (do_frame_read_register): Replace do_frame_unwind_register.
2784 (frame_pop): Use frame_save_as_regcache.
2785 * dummy-frame.c (generic_push_dummy_frame): Use
2786 frame_save_as_regcache.
2788 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2790 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2791 file as included until we record the first line in the linetable.
2793 2004-08-01 Andrew Cagney <cagney@gnu.org>
2795 * frame.h (deprecated_pop_dummy_frame)
2796 (deprecated_read_register_dummy)
2797 (deprecated_generic_find_dummy_frame): Delete.
2798 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2799 (deprecated_read_register_dummy)
2800 (deprecated_find_dummy_frame_regcache)
2801 (discard_innermost_dummy)
2802 (deprecated_pop_dummy_frame): Delete.
2803 (dummy_frame_this_id): Simplify.
2804 (struct dummy_frame): Delete "fp" and "sp".
2805 (find_dummy_frame): Simplify.
2806 (generic_push_dummy_frame): Do not set "fp" or "sp".
2807 (fprint_dummy_frames): Do not print "fp" and "sp"
2809 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2811 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2812 (struct i386_insn): New structure.
2813 (i386_match_insn): New function.
2814 (i386_frame_setup_skip_insns): New variable.
2815 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2816 array i386_frame_setup_insns of instructions that should be
2817 skipped inside the frame setup sequence.
2819 2004-08-01 Andrew Cagney <cagney@gnu.org>
2821 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2822 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2823 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2824 * stack.c (frame_info): Delete references to
2825 DEPRECATED_FRAME_INIT_SAVED_REGS and
2826 deprecated_get_frame_saved_regs.
2827 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2828 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2829 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2830 (frame_unwind_register_signed)
2831 (frame_unwind_register_unsigned)
2832 (frame_unwind_unsigned_register): Use register_size.
2833 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2834 (deprecated_frame_xmalloc_with_cleanup)
2835 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2836 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2838 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2839 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2840 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2841 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2843 * infcall.c (call_function_by_hand): Do not use
2844 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2845 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2846 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2847 DEPRECATED_STACK_ALIGN.
2849 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2851 Committed by Andrew Cagney.
2852 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2854 2004-08-01 Andrew Cagney <cagney@gnu.org>
2856 * mips-tdep.c (mips16_frame_cache)
2857 (mips16_frame_this_id, mips16_frame_prev_register)
2858 (mips16_frame_unwind, mips16_frame_sniffer)
2859 (mips16_frame_base_address, mips16_frame_base)
2860 (mips16_frame_base_sniffer, mips32_frame_cache)
2861 (mips32_frame_this_id, mips32_frame_prev_register)
2862 (mips32_frame_unwind, mips32_frame_sniffer)
2863 (mips32_frame_base_address, mips32_frame_base)
2864 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2865 separate heuristic mips16 and mips32 unwinders.
2866 (mips_stub_frame_cache, mips_stub_frame_this_id)
2867 (mips_stub_frame_prev_register)
2868 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2869 (mips_stub_frame_base_address, mips_stub_frame_base)
2870 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2871 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2872 match true mdebug frames.
2873 (non_heuristic_proc_desc): Add forward declaration.
2875 2004-08-01 Andrew Cagney <cagney@gnu.org>
2877 * config/mips/tm-irix6.h: Delete file.
2878 * config/mips/tm-irix5.h: Delete file.
2879 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2880 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2882 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2883 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2884 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2885 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2886 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2887 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2888 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2889 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2890 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2891 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2892 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2893 (TARGET_SIGNAL_RAW_VALUES): Delete.
2894 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2896 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2897 (TARGET_HW_WATCH_LIMIT): Delete.
2898 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2899 * minimon.h: Delete file.
2901 * trad-frame.c (trad_frame_get_this_base)
2902 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2904 * trad-frame.h (trad_frame_set_this_base)
2905 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2907 2004-07-31 Andrew Cagney <cagney@gnu.org>
2909 * trad-frame.c (trad_frame_get_prev_register): Rename
2910 trad_frame_get_prev_register.
2911 * vax-tdep.c (vax_frame_prev_register): Update.
2912 * trad-frame.h: Update.
2913 * trad-frame.c (trad_frame_get_register): Update.
2914 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2915 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2917 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2918 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2920 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2922 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2924 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2926 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2928 * s390-tdep.c (s390_frame_prev_register)
2929 (s390_stub_frame_prev_register)
2930 (s390_sigtramp_frame_prev_register): Update.
2931 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2932 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2933 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2934 * m88k-tdep.c (m88k_frame_prev_register)
2935 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2936 * m32r-tdep.c (m32r_frame_prev_register): Update.
2937 * hppa-tdep.c (hppa_frame_prev_register_helper)
2938 * frv-tdep.c (frv_frame_prev_register): Update.
2939 * d10v-tdep.c (d10v_frame_prev_register): Update.
2940 * cris-tdep.c (cris_frame_prev_register): Update.
2941 * avr-tdep.c (avr_frame_prev_register): Update.
2942 * arm-tdep.c (arm_prologue_prev_register)
2943 (arm_sigtramp_prev_register): Update.
2945 2004-07-31 Andrew Cagney <cagney@gnu.org>
2947 * frame.h (legacy_saved_regs_unwind)
2948 (legacy_frame_chain_valid, legacy_frame_p)
2949 (enum frame_type): Delete UNKNOWN_FRAME.
2950 * dummy-frame.c (dummy_frame_this_id): Simplify.
2951 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2952 * frame.c (struct frame_info): Delete the field "type".
2953 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2954 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2955 (legacy_saved_regs_unwind, legacy_frame_p)
2956 (frame_type_from_pc): Delete.
2957 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2958 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2960 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2962 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2965 * mips-nat.c: Remove file.
2966 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2967 (mips-nat.o): Remove dependency.
2969 * infptrace.c: Update copyright year.
2970 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2971 explicitly setting the buffer to all zeroes.
2973 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2974 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2976 2004-07-30 Andrew Cagney <cagney@gnu.org>
2978 * GDB 6.2 released from gdb_6_2-branch.
2980 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2982 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2984 * exec.c (exec_file_attach):
2985 * nto-tdep.c (nto_find_and_open_solib):
2986 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2987 * solib.c (solib_open):
2988 * somsolib.c (som_solib_sizeof_symbol_table):
2989 * source.c (is_regular_file, openp, open_source_file):
2990 * symfile.c (symfile_bfd_open):
2991 * wince.c (upload_to_device): Differentiate between the search for
2992 binary and source files.
2994 2004-07-30 Andrew Cagney <cagney@gnu.org>
2996 * complaints.c (_initialize_complaints): Pass NULL to
2997 add_setshow_zinteger_cmd for help_doc.
2998 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3000 2004-07-30 Andrew Cagney <cagney@gnu.org>
3003 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3004 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3005 $(PACKAGE).pot and update-po.
3006 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3007 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3008 (update-po): New rules.
3009 (localedir): Define using autoconf.
3010 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3011 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3012 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3013 * configure.in: Generate CATALOGS and LINGUAS from contents of
3014 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3015 * configure: Re-generate.
3016 * po/gdbtext: New file
3018 2004-07-30 Jerome Guitton <guitton@gnat.com>
3020 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3023 2004-07-30 David Lecomber <dsl@sources.redhat.com>
3025 * dwarf2read.c (read_file_scope): Set producer if attribute
3027 (struct dwarf2_cu): Added new member producer.
3029 2004-07-30 Jerome Guitton <guitton@gnat.com>
3031 * inflow.c (kill_command): release file handles in BFD.
3032 * exec.c (exec_file_attach): Ditto.
3033 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3035 2004-07-29 Andrew Cagney <cagney@gnu.org>
3037 * PROBLEMS (mips-irix): Note that it is broken.
3039 2004-07-29 Andrew Cagney <cagney@gnu.org>
3041 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3042 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3044 * config/xm-nbsd.h: Delete file.
3045 * config/arm/xm-nbsd.h: Delete file.
3046 * config/i386/xm-nbsd.h: Delete file.
3047 * config/ns32k/xm-nbsd.h: Delete file.
3048 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3049 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3050 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3051 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3052 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3054 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3055 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3056 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3057 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3058 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3059 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3061 * config/powerpc/xm-linux.h: Delete empty file.
3062 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3063 * config/powerpc/linux.mh (XM_FILE): Delete.
3064 * config/m68k/xm-linux.h: Delete empty file.
3065 * config/m68k/linux.mh (XM_FILE): Delete.
3066 * config/ia64/xm-linux.h: Delete empty file.
3067 * config/ia64/linux.mh (XM_FILE): Delete.
3068 * config/arm/xm-linux.h: Delete empty file.
3069 * config/arm/linux.mh (XM_FILE): Delete.
3071 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3072 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3073 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3074 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3075 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3076 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3077 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3078 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3080 * config/m68k/xm-m68k.h: Delete file.
3081 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3083 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3084 * config/pa/xm-linux.h: Delete empty file.
3085 * config/pa/linux.mh (XM_FILE): Delete.
3086 * config/i386/xm-i386.h: Delete empty file.
3087 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3089 * config/i386/obsdaout.mh (XM_FILE): Delete.
3090 * config/i386/obsd64.mh (XM_FILE): Delete.
3091 * config/i386/fbsd64.mh (XM_FILE): Delete.
3092 * config/i386/nto.mh (XM_FILE): Delete.
3093 * config/i386/obsd.mh (XM_FILE): Delete.
3094 * config/i386/linux64.mh (XM_FILE): Delete.
3095 * config/i386/linux.mh (XM_FILE): Delete.
3096 * config/i386/i386sol2.mh (XM_FILE): Delete.
3097 * config/i386/i386gnu.mh (XM_FILE): Delete.
3098 * config/i386/fbsd.mh (XM_FILE): Delete.
3099 * config/i386/nbsd64.mh (XM_FILE): Delete.
3101 2004-07-29 Andrew Cagney <cagney@gnu.org>
3103 * config/pa/xm-linux.h: Do not include "floatformat.h".
3104 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3105 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3106 * config/i386/xm-i386.h: Do not include "floatformat.h".
3107 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3108 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3109 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3110 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3111 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3112 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3113 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3114 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3115 * configure, config.in: Regenerate.
3116 * configure.host (gdb_host_float_format, gdb_host_double_format)
3117 (gdb_host_long_double_format): Set according to the host.
3119 2004-07-29 Andrew Cagney <cagney@gnu.org>
3121 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3123 2004-07-28 Andrew Cagney <cagney@gnu.org>
3125 * PROBLEMS: Mention threads/1650.
3126 * NEWS: Mention the NPTL fix.
3128 2004-07-28 Andrew Cagney <cagney@gnu.org>
3130 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3131 (add_setshow_cmd_full): Make static.
3132 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3133 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3134 * cli/cli-decode.c (add_setshow_filename_cmd)
3135 (add_setshow_string_cmd): New functions.
3136 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3137 * mips-tdep.c (_initialize_mips_tdep): Update.
3138 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3139 * cli/cli-logging.c (_initialize_cli_logging): Update.
3140 * complaints.c (_initialize_complaints): Update.
3141 * remote.c (_initialize_remote): Update.
3143 2004-07-28 Andrew Cagney <cagney@gnu.org>
3145 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3146 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3147 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3148 print parameters. Make string parameters constant.
3149 * command.h: Update. Update copyright.
3150 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3151 * observer.c (_initialize_observer): Ditto.
3152 * frame.c (_initialize_frame): Ditto.
3153 * complaints.c (_initialize_complaints): Ditto.
3154 * maint.c (_initialize_maint_cmds): Ditto.
3155 * target.c (initialize_targets): Ditto.
3156 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3157 * infcall.c (_initialize_infcall): Ditto.
3158 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3159 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3160 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3161 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3162 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3164 2004-07-28 Andrew Cagney <cagney@gnu.org>
3166 * gdbtypes.c (lookup_primitive_typename): Delete function.
3167 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3168 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3169 * gdbtypes.c (lookup_typename): Ditto.
3170 * f-exp.y (yylex): Ditto.
3171 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3173 * scm-lang.c (c_builtin_types): Delete extern declaration.
3174 (scm_language_defn): Replace
3175 string_char_type and primitive_type_vector with
3176 la_language_arch_info.
3177 * jv-lang.c (java_language_defn): Replace
3178 string_char_type and primitive_type_vector with
3179 la_language_arch_info.
3180 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3181 c_builtin_types in comment.
3182 * c-lang.h (struct language_arch_info): Declare opaque.
3183 (c_language_arch_info): Declare.
3184 (c_builtin_types): Delete declaration.
3185 * c-lang.c (c_language_arch_info): Set string_char_type to
3186 builtin_char, not builtin_true_char. Make global.
3187 (c_builtin_types): Delete array.
3188 (asm_language_defn, minimal_language_defn): Replace
3189 string_char_type and primitive_type_vector with
3190 la_language_arch_info.
3192 2004-07-28 Andrew Cagney <cagney@gnu.org>
3194 * gdbtypes.h (struct builtin_type): Rename true_char to
3196 * gdbtypes.c (gdbtypes_post_init): Update.
3197 * c-lang.c (arch_info): New function.
3198 (enum c_primitive_types): New enum.
3199 (c_language_defn): Instead of string_char_type and
3200 primitive_type_vector set la_language_arch_info.
3202 2004-07-28 Andrew Cagney <cagney@gnu.org>
3204 * language.h (struct language_arch_info): Fix typo
3205 s/primative/primitive/.
3206 * gdbtypes.c (lookup_primitive_typename): Ditto.
3207 * language.c (language_lookup_primitive_type_by_name)
3208 (unknown_language_arch_info): Ditto.
3210 2004-07-27 Andrew Cagney <cagney@gnu.org>
3212 * defs.h (enum language): Add nr_languages.
3213 * language.h (struct language_arch_info): Define.
3214 (struct language_defn): Add la_language_arch_info.
3215 (language_lookup_primative_type_by_name): Declare.
3216 (language_string_char_type): Declare.
3217 * language.c (_initialize_language, language_gdbarch_post_init)
3218 (struct language_gdbarch, language_gdbarch_data): Implement
3219 per-architecture language information.
3220 (unknown_language_arch_info, language_string_char_type)
3221 (language_lookup_primative_type_by_name): New functions.
3222 (unknown_language_defn, auto_language_defn)
3223 (local_language_defn): Set la_language_arch_info to
3224 unknown_language_arch_info.
3225 (unknown_builtin_types): Delete.
3226 * gdbtypes.c (lookup_primitive_typename): Use
3227 language_lookup_primative_type_by_name.
3228 (create_string_type): Use language_string_char_type.
3229 * values.c (value_from_string): Use language_string_char_type.
3230 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3231 * p-lang.c (pascal_language_defn): Ditto.
3232 * m2-lang.c (m2_language_defn): Ditto.
3233 * jv-lang.c (java_language_defn): Ditto.
3234 * objc-lang.c (objc_language_defn): Ditto.
3235 * f-lang.c (f_language_defn): Ditto.
3236 * c-lang.c (c_language_defn, cplus_language_defn)
3237 (asm_language_defn, minimal_language_defn): Ditto.
3239 2004-07-27 Andrew Cagney <cagney@gnu.org>
3241 * gdbtypes.h (struct builtin_type): Declare.
3242 (builtin_type): Declare.
3243 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3244 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3245 (gdbtypes_post_init): New function.
3246 (builtin_type): New function.
3248 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3250 * remote-m32r-sdi.c: Fix breakpoint bug.
3251 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3252 recv_char_data, recv_long_data): New functions to replace communication
3255 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3257 Document PR threads/1650.
3258 * PROBLEMS (Threads): Document problem with many threads
3260 2004-07-26 Andrew Cagney <cagney@gnu.org>
3262 * gdb-mi.el: Move from here ...
3263 * mi/gdb-mi.el: ... to here.
3265 2004-07-26 Andrew Cagney <cagney@gnu.org>
3267 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3268 * main.c (captured_main): When in batch mode always detach.
3270 2004-07-26 Andrew Cagney <cagney@gnu.org>
3272 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3273 and h8300 as broken.
3274 * NEWS: END-OF-LIFE frame compatibility module.
3275 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3278 2004-07-26 Andrew Cagney <cagney@gnu.org>
3280 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3281 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3282 * wince.c (_initialize_wince): Update.
3283 * win32-nat.c (_initialize_win32_nat): Update.
3284 * varobj.c (_initialize_varobj): Update.
3285 * valops.c (_initialize_valops): Update.
3286 * utils.c (initialize_utils, initialize_utils): Update.
3287 * tui/tui-win.c (_initialize_tui_win): Update.
3288 * top.c (init_main): Update.
3289 * symfile.c (_initialize_symfile): Update.
3290 * source.c (_initialize_source): Update.
3291 * somsolib.c (_initialize_som_solib): Update.
3292 * solib.c (_initialize_solib): Update.
3293 * solib-frv.c (_initialize_frv_solib): Update.
3294 * serial.c (_initialize_serial): Update.
3295 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3296 * remote.c (_initialize_remote, _initialize_remote): Update.
3297 * remote-vx.c (_initialize_vx): Update.
3298 * remote-utils.c (_initialize_sr_support): Update.
3299 * remote-sds.c (_initialize_remote_sds): Update.
3300 * remote-mips.c (_initialize_remote_mips): Update.
3301 * remote-e7000.c (_initialize_remote_e7000): Update.
3302 * proc-api.c (_initialize_proc_api): Update.
3303 * printcmd.c: Update.
3304 * parse.c (_initialize_parse): Update.
3305 * pa64solib.c (_initialize_pa64_solib): Update.
3306 * p-valprint.c (_initialize_pascal_valprint): Update.
3307 * monitor.c (_initialize_remote_monitors): Update.
3308 * mips-tdep.c (_initialize_mips_tdep): Update.
3309 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3310 * maint.c (_initialize_maint_cmds): Update.
3311 * lin-lwp.c (_initialize_lin_lwp): Update.
3312 * language.c (_initialize_language): Update.
3313 * kod.c (_initialize_kod): Update.
3314 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3315 * i386-tdep.c (_initialize_i386_tdep): Update.
3316 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3317 * gdbarch.sh: Update.
3318 * gdbarch.c: Re-generate.
3319 * gdb-events.sh: Update.
3320 * gdb-events.c: Re-generate.
3321 * frame.c (_initialize_frame): Update.
3323 * demangle.c (_initialize_demangler): Update.
3324 * dcache.c (_initialize_dcache): Update.
3325 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3326 * cp-valprint.c (_initialize_cp_valprint): Update.
3327 * corefile.c (_initialize_core): Update.
3328 * command.h: Update.
3329 * cli/cli-decode.h: Update.
3330 * cli/cli-cmds.c (init_cli_cmds): Update.
3331 * charset.c (_initialize_charset): Update.
3332 * breakpoint.c (_initialize_breakpoint): Update.
3333 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3334 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3335 * aix-thread.c (_initialize_aix_thread): Update.
3337 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3339 Partial fix for PR backtrace/1718.
3340 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3341 that GCC migrates into the prolugue. Don't handle any
3342 instructions that clobber %ebx.
3344 2004-07-23 Andrew Cagney <cagney@gnu.org>
3346 Use regcache_raw_collect instead of regcache_collect.
3347 * regcache.h (regcache_collect): Delete declaration.
3348 * regcache.c (regcache_colect): Delete function.
3349 * win32-nat.c (do_child_store_inferior_registers): Update.
3350 * sol-thread.c (sol_thread_store_registers): Update.
3351 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3352 * rs6000-nat.c (store_register): Update.
3353 * remote.c (store_register_using_P, remote_store_registers): Update.
3354 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3355 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3356 (fill_vrregset, store_spe_registers, fill_gregset)
3357 (fill_gregset): Update.
3358 * nto-procfs.c (procfs_store_registers): Update.
3359 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3360 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3361 * m68klinux-nat.c (store_register, fill_gregset): Update.
3362 * m68k-tdep.c (fill_gregset): Update.
3363 * infptrace.c (store_register): Update.
3364 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3365 * i386-linux-nat.c (store_register, fill_gregset): Update.
3366 * hppa-linux-nat.c (fill_gregset): Update.
3367 * go32-nat.c (store_register): Update.
3368 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3369 (store_fp_regs): Update.
3370 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3371 (store_nwfpe_extended, store_fpregister, store_fpregs)
3372 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3373 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3374 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3375 (store_regs_user_thread, store_regs_kernel_thread): Update.
3377 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3379 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3380 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3382 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3383 member of `struct comp_unit'.
3385 2004-07-23 Andrew Cagney <cagney@gnu.org>
3387 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3388 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3390 2004-07-23 Martin Hunt <hunt@redhat.com>
3391 Kevin Buettner <kevinb@redhat.com>
3393 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3394 alignment was being added to the offset instead of multiplied.
3396 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3398 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3399 changed signal trampoline in OpenBSD 3.5-current.
3401 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3402 <machine/pcb.h> and "bsd-kvm.h".
3403 (sparc64nbsd_supply_pcb): New function.
3404 (_initialize_sparc64nbsd_nat): Renamed from
3405 _initialize_sparcnbsd_nat. Enable libkvm interface.
3406 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3407 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3408 (LOADLIBES): New variable.
3410 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3412 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3414 2004-07-21 Andrew Cagney <cagney@gnu.org>
3416 Use regcache_raw_supply instead of supply_register.
3417 * regcache.h (supply_register): Delete declaration.
3418 * regcache.c (supply_register): Delete function.
3419 * wince.c (do_child_fetch_inferior_registers): Update.
3420 * win32-nat.c (do_child_fetch_inferior_registers)
3421 (fetch_elf_core_registers): Update.
3422 * v850ice.c (v850ice_fetch_registers): Update.
3423 * thread-db.c (thread_db_store_registers): Update.
3424 * sol-thread.c (sol_thread_store_registers): Update.
3425 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3426 * rs6000-nat.c (fetch_register): Update.
3427 * rom68k-rom.c (rom68k_supply_one_register): Update.
3428 * remote.c (remote_wait, remote_async_wait): Update.
3429 * remote-st.c (get_hex_regs): Update.
3430 * remote-sim.c (gdbsim_fetch_register): Update.
3431 * remote-sds.c (sds_fetch_registers): Update.
3432 * remote-rdp.c (remote_rdp_fetch_register): Update.
3433 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3434 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3435 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3436 * remote-hms.c (init_hms_cmds): Update.
3437 * remote-est.c (init_est_cmds): Update.
3438 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3439 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3440 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3441 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3442 (fetch_register, supply_vrregset, supply_vrregset)
3443 (fetch_spe_registers): Update.
3444 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3445 * monitor.c (monitor_supply_register): Update.
3446 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3447 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3448 (mipsnbsd_supply_fpreg): Update.
3449 * mips-nat.c (fetch_inferior_registers)
3450 (fetch_core_registers): Update.
3451 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3452 (supply_fpregset, mips64_supply_gregset)
3453 (mips64_supply_fpregset): Update.
3454 * m68klinux-nat.c (fetch_register, supply_gregset)
3455 (supply_fpregset): Update.
3456 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3457 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3458 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3459 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3460 * infptrace.c (fetch_register): Update.
3461 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3462 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3463 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3464 (gnu_fetch_registers, gnu_store_registers): Update.
3465 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3466 * i386-linux-nat.c (fetch_register, supply_gregset)
3467 (dummy_sse_values): Update.
3468 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3469 * hppah-nat.c (fetch_register): Update.
3470 * hppa-linux-nat.c (fetch_register, supply_gregset)
3471 (supply_fpregset): Update.
3472 * go32-nat.c (fetch_register): Update.
3473 * dve3900-rom.c (fetch_bitmapped_register)
3474 (_initialize_r3900_rom): Update.
3475 * cris-tdep.c (supply_gregset): Update.
3476 * abug-rom.c (init_abug_cmds): Update.
3477 * core-aout.c (fetch_core_registers): Update.
3478 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3479 (fetch_register, fetch_fp_register): Update.
3480 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3481 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3482 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3483 * alphanbsd-tdep.c (fetch_core_registers): Update.
3484 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3485 * alpha-nat.c (fetch_osf_core_registers)
3486 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3487 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3488 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3490 2004-07-21 Andrew Cagney <cagney@gnu.org>
3492 * PROBLEMS: Mention breakpoints/1702.
3493 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3494 that is known to work.
3496 2004-07-21 Andrew Cagney <cagney@gnu.org>
3498 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3499 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3500 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3501 (handle_inferior_event): Wrap call to deprecated
3502 IGNORE_HELPER_CALL in #ifdef.
3503 * config/mips/tm-nbsd.h: Update.
3505 2004-07-20 Jim Blandy <jimb@redhat.com>
3507 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3508 bfd_mach_ppc has no segment registers.
3510 Include PowerPC SPR numbers for special-purpose registers.
3511 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3512 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3513 new member in initializer.
3514 (S, S4, SN4, S64): New macros for defining special-purpose
3516 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3517 registers_403, registers_403GC, registers_505, registers_860,
3518 registers_601, registers_602, registers_603, registers_604,
3519 registers_750, registers_e500): Use them.
3521 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3522 replace references with expression used to initialize variable.
3524 2004-07-20 Andrew Cagney <cagney@gnu.org>
3526 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3528 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3529 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3530 (s390_sigtramp_frame_sniffer): Update.
3531 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3532 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3533 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3534 (mips32_fetch_instruction): Update.
3535 * mcore-tdep.c (get_insn): Update.
3536 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3537 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3538 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3539 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3540 (i386_linux_rt_sigtramp_start): Update.
3541 * i386-linux-nat.c (child_resume): Update.
3542 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3543 * hppa-linux-tdep.c (insns_match_pattern): Update.
3544 * gdbcore.h: Update.
3545 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3546 * frame.c (safe_frame_unwind_memory): Update.
3547 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3548 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3549 * alpha-tdep.c (alpha_read_insn): Update.
3551 2004-07-20 Andrew Cagney <cagney@gnu.org>
3553 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3554 containing both bytes and mask. Add "frame_type".
3555 * tramp-frame.c (tramp_frame_start): Update.
3556 (tramp_frame_prepend_unwinder): Update.
3557 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3558 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3559 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3560 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3562 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3564 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3565 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3566 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3567 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3569 2004-07-17 Andrew Cagney <cagney@gnu.org>
3571 * NEWS, PROBLEMS: Update for 6.2.
3573 * README: Update to 6.2.
3575 * utils.c (xvasprintf): Call xstrvprintf.
3577 * parse.c: Update copyright.
3578 (null_post_parser): Eliminate ARGSUSED.
3580 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3581 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3582 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3584 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3585 * ppc-linux-nat.c: Use "Linux kernel".
3586 * hppa-linux-tdep.c: Use GNU/Linux.
3587 * hppa-linux-nat.c: Use GNU/Linux.
3588 * dwarfread.c: Add [sic] to use of Linux.
3590 * hppa-linux-nat.c: Do not include <string.h>.
3591 (supply_fpregset): Remove "register" attribute.
3593 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3595 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3597 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3598 * configure, config.in: Regenerated.
3600 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3602 (vaxbsd_supply_pcb): New function.
3603 (_initialize_vaxbsd_nat): New prototype and function.
3604 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3606 (LOADLIBES): New variable.
3607 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3608 (LOADLIBES): New variable.
3609 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3610 (LOADLIBES): New variable.
3611 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3613 2004-07-16 Andrew Cagney <cagney@gnu.org>
3615 * defs.h (event_loop_p): Replace variable declaration with macro,
3617 * main.c (captured_main): Delete options "-async" and "-noasync".
3618 (event_loop_p): Delete variable.
3619 * NEWS: Mention that "-async" and "-noasync" were removed.
3621 2004-07-16 Andrew Cagney <cagney@gnu.org>
3623 * remote-m32r-sdi.c: Re-indent.
3625 2004-07-16 Jim Blandy <jimb@redhat.com>
3627 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3628 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3629 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3630 missing MPC823 SPRs.
3631 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3632 incorrect. (This was corrected in GDB's register name tables on
3635 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3636 should be "esasrr" ("ESA Save and Restore Register").
3638 2004-07-16 Andrew Cagney <cagney@gnu.org>
3640 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3641 calls, no longer applicable. Update comments and rename parameter
3642 "step_frame" to "return_frame".
3644 2004-07-16 Andrew Cagney <cagney@gnu.org>
3646 * frame.c (fprint_field): New function.
3647 (fprint_frame_id): Use fprint_field.
3649 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3651 * ada-lang.c (ada_language_defn): Remove commented out code.
3653 2004-07-15 Jim Blandy <jimb@redhat.com>
3655 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3656 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3658 2004-07-14 Jim Blandy <jimb@redhat.com>
3660 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3662 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3664 * ppc-tdep.h (ppc_num_srs): New enum constant.
3666 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3667 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3668 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3669 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3670 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3671 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3672 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3673 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3674 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3675 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3676 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3677 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3678 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3679 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3680 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3681 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3682 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3683 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3684 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3685 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3686 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3687 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3688 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3689 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3690 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3691 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3692 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3693 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3694 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3695 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3696 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3697 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3698 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3699 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3700 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3701 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3702 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3703 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3704 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3705 special-purpose register numbers.
3707 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3708 manual mentions 'md_twb', but many mention 'm_twb', and at that
3709 point in the register list.)
3711 2004-07-14 Andrew Cagney <cagney@gnu.org>
3713 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3714 instead of "internal-error".
3716 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3718 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3719 that was inserted inside a comment.
3721 2004-07-10 Randolph Chung <tausq@debian.org>
3723 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3725 (hppa_hpux_push_dummy_code): New function.
3726 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3727 Set find_global_pointer method.
3729 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3731 * NEWS: Mention BSD libkvm interface.
3733 2004-07-10 Michael Snyder <msnyder@redhat.com>
3735 * symfile.c (generic_load): Comment typo.
3736 * stack.c (get_selected_block): Ditto.
3737 * regcache.c (regcache_cooked_read): Ditto.
3738 * monitor.c (monitor_debug): Ditto.
3739 * mips-tdep.c (mips_read_pc): Ditto.
3740 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3741 * gdb_mbuild.sh: Ditto.
3742 * gdbarch.sh: Ditto.
3745 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3747 * ada-tasks.c: Remove file.
3749 Remove ARI problems:
3751 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3754 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3756 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3757 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3758 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3759 (UMIN_OF_SIZE): Remove.
3760 (max_of_type): New function to replace orphan macro in gdbtypes.h
3761 (min_of_type): Ditto.
3762 (discrete_type_high_bound): Use max_of_type.
3763 (discrete_type_low_bound): Use min_of_type.
3764 (possible_user_operator_p): Move operator to beginning of line.
3765 (ada_is_variant_part): Ditto.
3766 (ensure_lval): Rewrite to avoid deprecated operations.
3767 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3768 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3769 (ada_enum_name): Remove assignments in 'if' statements.
3770 (build_ada_types): Add gdbarch parameter.
3771 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3772 with gdbarch_data_register_post_init.
3773 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3776 * ada-valprint.c (inspect_it): Remove declaration.
3777 (repeat_count_threshold): Remove declaration.
3778 (ada_print_floating): Remove assignments in 'if' statements.
3779 (print_str): Move operator to beginning of line.
3781 2004-07-08 Jim Blandy <jimb@redhat.com>
3783 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3785 2004-07-08 Bob Rossi <bob@brasko.net>
3787 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3789 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3791 * language.h (struct_language_defn): Add new function pointer:
3792 la_class_name_from_physname. Also add new prototype for
3793 language_class_name_from_physname.
3794 * language.c (language_class_name_from_physname): New function.
3795 (unk_lang_class_name): Ditto.
3796 (unknown_language_defn, auto_language_defn): Change
3797 to add unk_lang_class_name function pointer for
3798 la_class_name_from_physname.
3799 (local_language_defn): Ditto.
3800 * dwarf2read.c (guess_structure_name): Change to call
3801 language_class_name_from_physname.
3802 (determine_class_name): Ditto.
3803 * cp-support.c (class_name_from_physname): Renamed.
3804 (cp_class_name_from_physname): New name of function.
3805 * cp-support.h: Ditto.
3806 * c-lang.c (c_language_defn): Change to add NULL
3807 for class_name_from_physname function pointer.
3808 (cplus_language_defn): Change to add cp_class_name_from_physname.
3809 * jv-lang.c (java_class_name_physname): New function.
3810 (java_find_last_component): New static routine.
3811 (java_language_defn): Add java_class_name_from_physname pointer.
3812 * ada-lang.c (ada_language_defn): Change to add NULL
3813 for class_name_from_physname function pointer.
3814 * f-lang.c (f_language_defn): Ditto.
3815 * m2-lang.c (m2_language_defn): Ditto.
3816 * objc-lang.c (objc_language_defn): Ditto.
3817 * p-lang.c (pascal_language_defn): Ditto.
3818 * scm-lang.c (scm_language_defn): Ditto.
3820 2004-07-06 Andrew Cagney <cagney@gnu.org>
3822 Patch from Bart Robinson.
3823 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3824 (O_LARGEFILE): Define to 0, if not defined.
3826 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3828 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3829 <machine/pcb.h> and "bsd-kvm.h".
3830 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3831 (m68kbsd_supply_pcb): New function.
3832 (_initialize_m68kbsd_nat): New prototype and function.
3833 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3834 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3835 (LOADLIBES): New variable.
3836 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3837 (LOADLIBES): New variable.
3839 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3841 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3843 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3845 (bsd_kvm_cmdlist): New variable.
3846 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3847 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3848 command and "kvm proc" command.
3849 * Makefile.in (bsd-kvm.o): Update dependencies.
3851 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3853 * osabi.c: Update copyright year.
3854 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3855 notes if EI_OSABI is set to ELFOSABI_HPUX.
3857 2004-07-01 Michael Snyder <msnyder@redhat.com>
3859 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3860 that seems to have gotten whacked out of line.
3862 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3864 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3867 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3869 * ada-lang.c (decode_packed_array): Minor change to comment.
3870 (ada_value_slice_ptr): New function.
3871 (ada_value_slice): New function.
3872 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3873 test. Don't know why it is there.
3874 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3875 to avoid dereferencing huge arrays from which one is slicing.
3876 (empty_array): Correct to return an array rather than
3878 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3879 on empty arrays (let'em use 'FIRST instead).
3881 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3883 Address complaints from gdb_ari.sh:
3885 * ada-exp.y: Include gdb_string.h rather than string.h.
3886 (convert_char_literal): Reformat declaration.
3887 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3888 * ada-lex.l: Change use of free to xfree (the macro would do so
3889 anyway, but this is harmless).
3890 Include gdb_string.h rather than string.h.
3891 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3893 * ada-lang.c (parse): Remove K&Rism in parameter list.
3894 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3896 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3898 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3901 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3903 * alphabsd-nat.c: Update copyright year.
3904 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3906 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3908 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3909 (i386_cygwin_in_solib_call_trampoline): New function.
3910 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3911 and skip_trampoline_code gdbarch methods.
3913 2004-06-29 Jim Blandy <jimb@redhat.com>
3915 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3916 name actually used in the dependency lists.
3918 2004-06-29 Randolph Chung <tausq@debian.org>
3920 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3922 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3924 * win32-nat.c (child_pid_to_exec_file): New function.
3925 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3928 2004-06-28 Andrew Cagney <cagney@gnu.org>
3930 * defs.h (xstrvprintf): Declare.
3931 * utils.c (xstrvprintf): New function.
3932 (internal_vproblem, xstrprintf, xasprintf)
3933 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3934 * serial.c (serial_printf): Ditto.
3935 * complaints.c (vcomplaint): Ditto.
3937 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3939 * infcmd.c (attach_command): Move call to target_terminal_inferior
3940 behind loading symbol table.
3942 2004-06-28 Andrew Cagney <cagney@gnu.org>
3944 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3945 change - add back extern deprecated_ui_loop_hook declaration.
3947 2004-06-28 Andrew Cagney <cagney@gnu.org>
3949 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3951 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3952 (c_value_of_variable): Ditto.
3953 * utils.c (internal_vproblem): Ditto.
3954 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3955 * remote.c (add_packet_config_cmd): Ditto.
3956 * remote-rdp.c (rdp_set_command_line): Ditto.
3957 * regcache.c (regcache_dump): Ditto.
3958 * frv-tdep.c (new_variant, new_variant): Ditto.
3959 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3960 (fbsd_find_memory_regions): Ditto.
3961 * breakpoint.c (create_thread_event_breakpoint)
3962 (create_breakpoints): Ditto.
3963 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3964 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3966 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3968 * ada-lang.c: Re-indent file, with some massaging to help indent
3969 a bit when the result is otherwise really too ugly.
3971 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3973 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3974 code_addr_p and special_addr_p to 'unsigned int'.
3976 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3978 * i386v4-nat.c: Update copyright year and tweak comment.
3979 (regmap): Remove trailing comma.
3980 (supply_gregset): Rename local variable i to regnum. Call
3981 regcache_raw_supply instead of supply_register.
3982 (fill_gregset): Rename argument regno to regnum. Call
3983 regcache_raw_collect instead of regcache_collect.
3985 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3987 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3989 (frame_id_build, frame_id_build_special): Update comments.
3990 (frame_id_build_wild): New prototype.
3991 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3992 struct frame_id fields.
3993 (frame_id_build_wild): New function.
3994 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3996 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3998 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4001 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4003 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4005 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4007 * ada-lang.c: Re-indent file.
4009 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4011 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4012 (no_symtab_msg): Likewise.
4014 2004-06-27 Andreas Schwab <schwab@suse.de>
4016 * source.c: Fix whitespace.
4018 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4020 * configure.in: Include <sys/param.h> for td_pcb test.
4021 * configure: Regenerated.
4023 * i386nbsd-nat.c: New file.
4024 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4025 i386obsd-nat.c and i386obsd-tdep.c.
4026 (i386nbsd-nat.o): New dependency.
4027 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4029 (LOADLIBES): New variable.
4030 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4032 (LOADLIBES): New variable.
4034 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4035 (LOADLIBES): New variable.
4037 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4038 fetching from BSD_KVM_PADDR. Correctly lookup address for
4041 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4043 (amd64fbsd_supply_pcb): New funcion.
4044 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4046 2004-06-27 <david@streamline-computing.com>
4048 Partial fix for PR cli/1056.
4049 * valarith.c: Check for zero in division and remainder
4052 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4054 * i387-tdep.c: Remove excessive whitespace.
4056 2004-06-26 Andrew Cagney <cagney@gnu.org>
4058 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4059 * gdb-events.h, gdb-events.c: Re-generate.
4060 * tui/tui-hooks.c (tui_install_hooks): Update.
4061 (tui_remove_hooks): Update.
4062 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4064 2004-06-26 Mark Kettenis <kettenis@gnu.org>
4066 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4067 (gregset_t, fpregset_t): Remove typedefs.
4068 (REG_OFFSET): Rename argument.
4069 (amd64bsd_r_reg_offset): Rename from reg_offset.
4070 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4072 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4074 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4076 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4078 * vax-tdep.c: Tweak comment.
4080 Add OpenBSD/hppa support.
4081 * NEWS (New native configurations): Mention OpenBSD/hppa.
4082 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4083 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4085 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4086 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4087 * configure.host: Add hppa*-*-openbsd*.
4088 * configure.tgt: Add hppa*-*-openbsd*.
4090 2004-06-25 Andrew Cagney <cagney@gnu.org>
4092 * defs.h (deprecated_ui_loop_hook): Deprecated.
4093 * wince.c (child_wait): Update.
4094 * win32-nat.c (child_wait): Update.
4095 * v850ice.c (v850ice_wait): Update.
4096 * top.c (deprecated_ui_loop_hook): Update.
4098 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4099 (do_unix_readchar): Update.
4100 * ser-tcp.c (net_open): Update.
4101 * remote-sim.c (gdb_os_poll_quit): Update.
4102 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4104 2004-06-24 Andrew Cagney <cagney@gnu.org>
4106 * defs.h (deprecated_pre_add_symbol_hook)
4107 (deprecated_post_add_symbol_hook): Deprecated.
4108 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4109 (symbol_file_add_with_addrs_or_offsets): Update references.
4111 2004-06-24 Andrew Cagney <cagney@gnu.org>
4113 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4114 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4115 * wince.c (ui_loop_hook): Delete extern declaration.
4116 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4117 * v850ice.c (ui_loop_hook): Delete extern declaration..
4118 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4119 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4120 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4121 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4122 ui_loop_hook declaration.
4124 2004-06-24 Andrew Cagney <cagney@gnu.org>
4126 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4127 entry_func_highpc fields.
4128 * objfiles.c (init_entry_point_info): Do not clear
4129 entry_func_lowpc and entry_func_highpc.
4130 (objfile_relocate): Do not relocate entry_func_lowpc and
4132 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4134 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4136 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4137 entry_func_lowpc and entry_func_highpc with call to
4140 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4142 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4143 quad-precision floating point arguments in registers.
4145 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4147 From Michael Mueller <m.mueller99@kay-mueller.de>:
4148 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4151 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4153 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4155 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4156 untriggered watchpoints to a separate if clause. Update function
4157 comment regarding STOPPED_BY_WATCHPOINT argument.
4159 2004-06-22 Jim Blandy <jimb@redhat.com>
4161 * gdbarch.sh: Doc fix.
4163 2004-06-21 Martin Hunt <hunt@redhat.com>
4164 Kevin Buettner <kevinb@redhat.com>
4166 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4167 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4168 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4169 to set_gdbarch_sp_regnum(). Use cooked register number.
4170 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4172 2004-06-21 Andrew Cagney <cagney@gnu.org>
4174 * gdbarch.sh: When the macro field is empty, do not generate a
4175 macro definition. When the macro field is "=", generate the macro
4176 name from the upper-case function name.
4177 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4178 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4179 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4180 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4181 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4182 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4183 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4184 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4185 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4186 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4187 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4188 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4189 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4190 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4191 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4192 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4193 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4194 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4195 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4196 (DEPRECATED_USE_STRUCT_CONVENTION)
4197 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4198 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4199 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4200 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4201 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4202 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4203 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4204 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4205 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4206 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4207 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4208 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4209 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4210 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4211 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4212 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4213 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4214 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4216 2004-06-21 Andrew Cagney <cagney@gnu.org>
4218 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4219 macro name, and the function rather than macro value. Only wrap
4220 macro print statements in #ifdef. Move format logic to where it
4222 * gdbarch.c: Re-generate.
4224 * gdbarch.sh (read): Delete "print_p" and "description", add
4225 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4226 Delete references to print_p.
4227 (TARGET_ARCHITECTURE): Delete print predicate.
4228 * gdbarch.c: Re-generate.
4230 * gdbarch.sh: Check that multi-arch methods do not provide a
4232 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4233 (print_registers_info, print_float_info, print_vector_info)
4234 (adjust_breakpoint_address, remote_translate_xfer_address)
4235 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4236 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4237 name from the multi-arch definition.
4239 2004-06-20 Andrew Cagney <cagney@gnu.org>
4241 * gdbarch.sh: Sort by the function, instead of macro name.
4242 * gdbarch.c: Re-generate.
4244 2004-06-20 Andrew Cagney <cagney@gnu.org>
4246 * gdbarch.sh: Use the function, instead of macro name in
4247 errors and the log file.
4248 (return_value): Remove stray ":" in spec.
4250 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4251 * gdbarch.h, gdbarch.c: Re-generate.
4252 * Makefile.in (arch-utils.o): Update dependencies.
4253 * values.c (using_struct_return): Move code calling
4254 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4255 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4256 to legacy_return_value, simplify.
4257 * infcmd.c (print_return_value): Move code calling
4258 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4259 to legacy_return_value, simplify.
4260 * infcall.c (call_function_by_hand): Move code calling
4261 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4262 * arch-utils.c: Update copyright. Include "gdbcore.h".
4263 (legacy_return_value): New function.
4264 * arch-utils.h: Update copyright.
4265 (legacy_return_value): Declare.
4267 2004-06-20 Andrew Cagney <cagney@gnu.org>
4269 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4270 * gdbarch.h, gdbarch.c: Re-generate.
4271 * values.c (using_struct_return): Update call.
4272 * mcore-tdep.c: Update comment.
4273 * infcall.c (call_function_by_hand): Update comment.
4274 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4275 * arch-utils.h (always_use_struct_convention): Update.
4276 * v850-tdep.c (v850_gdbarch_init): Update.
4277 * sh64-tdep.c (sh64_gdbarch_init): Update.
4278 * sh-tdep.c (sh_gdbarch_init): Update.
4279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4280 * mips-tdep.c (mips_gdbarch_init): Update.
4281 * mcore-tdep.c (mcore_gdbarch_init): Update.
4282 * m32r-tdep.c (m32r_gdbarch_init): Update.
4283 * ia64-tdep.c (ia64_gdbarch_init): Update.
4284 * h8300-tdep.c (h8300_gdbarch_init): Update.
4285 * frv-tdep.c (frv_gdbarch_init): Update.
4286 * cris-tdep.c (cris_gdbarch_init): Update.
4287 * arm-tdep.c (arm_gdbarch_init): Update.
4288 * alpha-tdep.c (alpha_gdbarch_init): Update.
4290 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4292 * PROBLEMS: Add more specific information, and a work-around,
4295 2004-06-18 Andrew Cagney <cagney@gnu.org>
4297 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4298 * gdbarch.h, gdbarch.c: Re-generate.
4299 * ada-lang.c (ada_finish_decode_line_1): Update.
4300 * infrun.c (handle_inferior_event): Update.
4301 * infcall.c (find_function_addr): Update.
4302 * linespec.c (minsym_found): Update.
4303 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4305 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4306 * cli/cli-cmds.c (disassemble_command): Update.
4307 * vax-tdep.c (vax_gdbarch_init): Update.
4309 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4311 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4313 2004-06-17 Andrew Cagney <cagney@gnu.org>
4315 GDB 6.1.1 released from the GDB 6.1 branch.
4316 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4319 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4322 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4323 operation as a uleb128. Found by Michael Coulter.
4325 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4327 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4329 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4330 to ada-lang.h; this is needed to be able to implement the kill command
4333 (task_entry): Ditto.
4335 (ada_build_task_list): Ditto.
4337 * ada-lang.c: Conditionalize routines and data structures related
4338 to breakpoints, exceptions, completion, and symbol caching on
4339 GNAT_GDB, since these are not yet used in the submitted public sources.
4340 (ada_main_name): Editorial: Move definition out of exception-related
4343 2004-06-15 Andrew Cagney <cagney@gnu.org>
4345 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4346 deprecated_pc_in_call_dummy.
4348 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4350 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4351 bfd_get_section_size_before_reloc or _raw_size.
4352 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4353 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4354 (dwarf2_read_section): Likewise.
4355 * elfread.c (elf_locate_sections): Likewise.
4356 * gcore.c (derive_heap_segment): Likewise.
4357 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4358 * remote-e7000.c (e7000_load): Likewise.
4359 * remote-m32r-sdi.c (m32r_load): Likewise.
4360 * remote-mips.c (mips_load_srec): Likewise.
4361 (pmon_load_fast): Likewise.
4362 * remote.c (compare_sections_command): Likewise.
4363 * symfile.c (add_section_size_callback): Likewise.
4364 (load_section_callback): Likewise.
4365 (pc_in_unmapped_range): Likewise.
4366 (pc_in_mapped_range): Likewise.
4367 (sections_overlap): Likewise.
4368 (list_overlays_command): Likewise.
4369 (simple_overlay_update_1): Likewise.
4370 (simple_overlay_update): Likewise.
4371 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4372 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4374 2004-06-14 Randolph Chung <tausq@debian.org>
4376 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4377 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4379 (hppa_hpux_inferior_created): New function.
4380 (hppa_hpux_init_abi): Register observer.
4381 * symfile.c (hp_cxx_exception_support_initialized)
4382 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4383 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4385 2004-06-14 Randolph Chung <tausq@debian.org>
4387 * MAINTAINERS (Write After Approval): Alphabetize my entry
4390 2004-06-14 Andrew Cagney <cagney@gnu.org>
4392 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4393 testsuite maintainer.
4395 2004-06-13 Andrew Cagney <cagney@gnu.org>
4397 * infcmd.c (print_return_value): Fix logic, allow
4398 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4400 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4401 defining any macros.
4402 * gdbarch.h: Re-generate.
4404 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4405 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4406 * gdbarch.h: Re-generate.
4408 * values.c (generic_use_struct_convention): Don't check gcc_p.
4410 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4411 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4412 * gdbarch.h, gdbarch.c: Regenerate.
4413 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4414 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4416 deprecated_max_register_raw_size and
4417 deprecated_max_register_virtual_size.
4418 * v850-tdep.c (v850_gdbarch_init): Ditto.
4419 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4420 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4421 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4422 * cris-tdep.c (cris_gdbarch_init): Ditto.
4424 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4425 * gdbarch.h, gdbarch.c: Re-generate.
4426 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4427 (m68hc11_use_struct_convention): Delete function.
4428 (m68hc11_extract_struct_value_address): Delete function.
4429 (m68hc11_return_value): New function.
4430 (m68hc11_gdbarch_init): Instead of store_return_value,
4431 extract_return_value, return_value_on_stack,
4432 deprecated_extract_struct_value_address and use_struct_convention,
4434 * values.c (using_struct_return): Do not call
4435 RETURN_VALUE_ON_STACK.
4436 * arch-utils.h (generic_return_value_on_stack_not): Delete
4438 * arch-utils.c (generic_return_value_on_stack_not): Delete
4441 2004-06-12 Andrew Cagney <cagney@gnu.org>
4443 * values.c (register_value_being_returned): Delete function.
4444 * infcmd.c (legacy_return_value): Delete function.
4445 * infcall.c (call_function_by_hand): Inline
4446 "register_value_being_returned", simplify.
4447 * values.c (using_struct_return): Update comment, refer to
4448 print_return_value instead of register_value_being_returned.
4449 * infcmd.c (print_return_value): Inline calls to
4450 register_value_being_returned and legacy_return_value. Simplify.
4452 2004-06-11 Randolph Chung <tausq@debian.org>
4454 * somread.c (som_symtab_read): Exclude gcc local symbols.
4456 2004-06-11 Randolph Chung <tausq@debian.org>
4458 * infrun.c (handle_inferior_event): Handle the case when a
4459 trampoline ends up in the runtime resolver, and if the trampoline
4460 has no name. Rearrange the code so that all the trampoline
4461 processing happens before other step-out-of-range handling.
4463 2004-06-11 Martin Hunt <hunt@redhat.com>
4465 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4468 2004-06-10 Andrew Cagney <cagney@gnu.org>
4470 * blockframe.c (legacy_inside_entry_func): Delete.
4471 (legacy_frame_chain_valid): Inline call to
4472 legacy_inside_entry_func, simplify.
4474 2004-06-10 Bob Rossi <bob@brasko.net>
4476 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4477 * dwarf2read.c (partial_die_info): Add dirname field.
4478 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4479 (read_partial_die): Save away DW_AT_comp_dir.
4480 * defs.h (symtab_to_filename): Removed.
4481 * source.c (find_and_open_source): Added.
4482 (open_source_file): Just calls find_and_open_source.
4483 (symtab_to_filename): Removed.
4484 (symtab_to_fullname, psymtab_to_fullname): Added.
4485 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4486 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4488 * symtab.h (partial_symtab): Add dirname field.
4489 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4490 (mi_cmd_file_list_exec_source_file): Call new function
4491 symtab_to_fullname to find fullname.
4492 (mi_cmd_file_list_exec_source_files): Added.
4493 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4494 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4496 2004-06-10 Andrew Cagney <cagney@gnu.org>
4498 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4499 to generic_use_struct_convention, the default value.
4501 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4504 * ns32k-tdep.c (ns32k_push_arguments): New function.
4505 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4506 * infcall.c (call_function_by_hand): Call error instead of
4507 legacy_push_arguments.
4508 * value.h (legacy_push_arguments): Delete declaration.
4509 * valops.c (legacy_push_arguments): Delete function.
4510 (value_push): Delete function.
4512 2004-06-10 Brian Ford <ford@vss.fsi.com>
4514 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4515 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4517 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4519 2004-06-10 Andrew Cagney <cagney@gnu.org>
4521 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4522 * gdbarch.h, gdbarch.c: Re-generate.
4523 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4525 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4526 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4527 deprecated_pc_in_call_dummy instead of
4528 DEPRECATED_PC_IN_CALL_DUMMY.
4529 (arm_skip_prologue): Ditto.
4530 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4531 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4532 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4533 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4535 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4536 (sh64_init_extra_frame_info, sh64_get_saved_register)
4537 (sh64_pop_frame): Ditto.
4538 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4539 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4540 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4541 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4542 (h8300_pop_frame): Ditto.
4543 * blockframe.c (legacy_inside_entry_func)
4544 (legacy_frame_chain_valid): Ditto.
4545 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4546 to deprecated_pc_in_call_dummy.
4548 2004-06-09 Andrew Cagney <cagney@gnu.org>
4550 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4551 provide a default value.
4552 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4553 * gdbarch.h, gdbarch.c: Re-generate.
4554 * arch-utils.c (generic_convert_register_p): Rename
4555 legacy_convert_register_p
4556 (legacy_register_to_value, legacy_value_to_register): Delete
4558 * arch-utils.h (generic_convert_register_p): Rename
4559 legacy_convert_register_p.
4560 (legacy_register_to_value, legacy_value_to_register): Delete
4563 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4564 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4565 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4566 * gdbarch.h, gdbarch.c: Re-generate.
4567 * infcmd.c (default_print_registers_info): Simplify.
4568 * findvar.c (value_of_register): Simplify.
4569 * mi/mi-main.c (get_register): Simplify.
4570 * arch-utils.c (legacy_convert_register_p): Always return 0.
4571 (legacy_register_to_value, legacy_value_to_register): Always call
4574 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4575 #ifdef CLEAR_INSN_CACHE code.
4576 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4577 Delete #ifdef CLEAR_DEFERRED_STORES code.
4579 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4581 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4583 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4585 * config/mips/mipsv4.mh: Delete file.
4587 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4589 (hpread_adjust_stack_address): Delete declaration.
4591 2004-06-08 Andrew Cagney <cagney@gnu.org>
4593 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4594 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4595 PTRACE_ATTACH / PTRACE_DETACH available call error.
4596 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4597 * infttrace.c (update_thread_state_after_attach, attach, detach):
4598 Remove #ifdef wrappers.
4599 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4600 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4601 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4602 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4603 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4604 * config/nm-linux.h (ATTACH_DETACH): Delete.
4605 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4606 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4607 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4608 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4609 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4611 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4613 * configure.in: Set $configdir to the right OS specific value.
4614 Use value when setting $tcldir and $tkdir.
4615 * configure: Regenerate.
4617 2004-06-06 Paul Brook <paul@codesourcery.com>
4619 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4622 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4624 * ada-lang.c (lookup_symbol_in_language): New function to allow
4625 re-use of another language's symbol lookup code. (Placed here
4626 temporarily while Ada support is being integrated into the public
4628 (restore_language): New auxiliary function for
4629 lookup_symbol_in_language.
4630 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4631 temporarily while Ada support is being integrated into the public
4634 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4636 * Makefile.in (check//%): New.
4638 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4639 (mn10300_store_return_value): Rewrite.
4640 (mn10300_type_align): New.
4641 (mn10300_use_struct_convention): Rewrite.
4642 (mn10300_return_value): New, using all of the above.
4643 (mn10300_pop_frame_regular): Add saved_regs_size.
4644 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4646 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4647 regs if PC is on movm.
4649 2004-06-07 Jim Blandy <jimb@redhat.com>
4651 Add native Linux support for the PowerPC E500.
4652 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4653 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4654 all architectures except the E500.
4655 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4657 (struct gdb_evrregset_t): New type.
4658 (have_ptrace_getsetevrregs): New variable.
4659 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4660 fetch_spe_registers): New functions.
4661 (fetch_register): Call fetch_spe_register as appropriate.
4662 Assert that we're only passed raw register numbers.
4663 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4664 Don't fetch gprs if they're pseudoregisters.
4665 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4666 store_spe_registers): New functions.
4667 (store_register): Call store_spe_register as appropriate.
4668 Assert that we're only passed raw register numbers.
4669 (store_ppc_registers): Call store_spe_registers as appropriate.
4670 Don't store gprs if they're pseudoregisters.
4672 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4674 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4675 struct if one exists, even if we are dealing with a zombie thread.
4677 2004-06-07 Andrew Cagney <cagney@gnu.org>
4679 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4680 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4681 Rename PC_REQUIRES_RUN_BEFORE_USE.
4682 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4685 2004-06-07 Randolph Chung <tausq@debian.org>
4687 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4688 unwinding after sp has been saved to the stack but before the end
4689 of the prologue, and after the fp has been modified but before it has
4690 been saved to the stack.
4691 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4692 Remove superfluous definitions.
4693 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4695 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4697 Committed by Randolph Chung.
4698 * hppa-linux-nat.c: Include the correct version of the header file
4699 depending on the kernel version.
4701 2004-06-06 Randolph Chung <tausq@debian.org>
4703 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4704 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4706 2004-06-06 Randolph Chung <tausq@debian.org>
4708 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4709 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4710 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4711 * hppa-tdep.c (hppa_symbol_address): New function definition.
4712 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4714 2004-06-06 Randolph Chung <tausq@debian.org>
4716 * hppa-tdep.h (struct value): Forward declaration.
4717 (gdbarch_tdep): Define tdep find_global_pointer method.
4718 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4719 associated with the function we are trying to call, and write it
4721 (hppa32_convert_from_funct_ptr_addr): New function.
4722 (hppa_find_global_pointer): New function.
4723 (hppa_gdbarch_init): Set default find_global_pointer method; set
4724 convert_from_func_ptr_addr method.
4725 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4726 (hppa_linux_init_abi): Set find_global_pointer method.
4727 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4729 2004-06-06 Randolph Chung <tausq@debian.org>
4731 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4732 to struct value *function.
4733 * gdbarch.c: Regenerate.
4734 * gdbarch.h: Likewise.
4735 * infcall.c (call_function_by_hand): Pass entire function value
4738 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4739 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4740 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4741 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4742 * arm-tdep.c (arm_push_dummy_call): Likewise.
4743 * avr-tdep.c (avr_push_dummy_call): Likewise.
4744 * cris-tdep.c (cris_push_dummy_call): Likewise.
4745 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4746 * frv-tdep.c (frv_push_dummy_call): Likewise.
4747 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4748 * hppa-tdep.c (hppa32_push_dummy_call)
4749 (hppa64_push_dummy_call): Likewise.
4750 * i386-tdep.c (i386_push_dummy_call): Likewise.
4751 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4752 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4753 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4754 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4755 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4756 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4757 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4758 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4759 (ppc64_sysv_abi_push_dummy_call): Likewise.
4760 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4761 (ppc64_sysv_abi_push_dummy_call): Likewise.
4762 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4763 * s390-tdep.c (s390_push_dummy_call): Likewise.
4764 * sh-tdep.c (sh_push_dummy_call_fpu)
4765 (sh_push_dummy_call_nofpu): Likewise.
4766 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4767 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4768 * vax-tdep.c (vax_push_dummy_call): Likewise.
4770 2004-06-04 Jim Blandy <jimb@redhat.com>
4772 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4773 gdbarch argument to register_size.
4775 * rs6000-tdep.c (rs6000_store_return_value): Use
4776 regcache_cooked_write_part instead of
4777 deprecated_write_register_bytes.
4778 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4779 not gdbarch_deprecated_store_return_value.
4781 * ppc-linux-nat.c (store_register, fetch_register): Remove
4782 incorrect assertions. Simplify and generalize handling of
4783 transfers whose sizes are not multiples of, or less than, sizeof
4786 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4788 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4789 as a new thread event.
4790 * thread-db.c (thread_get_info_callback): If the thread is a
4791 zombie, return TD_THR_ZOMBIE.
4792 (thread_from_lwp): If thread_get_info_callback returns
4793 TD_THR_ZOMBIE, check if the thread is still on the thread list
4794 and return a -1 ptid if not found.
4795 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4796 change the status to TARGET_WAITKIND_SPURIOUS.
4798 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4800 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4801 double values in little endian mode.
4803 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4805 Committed by Andrew Cagney.
4806 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4807 after last enum constant to avoid error from IBM C
4810 2004-06-02 Jim Blandy <jimb@redhat.com>
4812 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4813 to 'message', and make it local to the lone block that uses it.
4815 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4817 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4819 * ada-exp.y: Update copyright notice.
4822 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4823 SPECIAL_VARIABLE and unify the treatment of these cases.
4825 (write_attribute_call0): Remove.
4826 (write_attribute_call1): Remove.
4827 (write_attribute_calln): Remove.
4828 (save_qualifier): Add missing semicolon.
4830 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4831 temporarily disabled to allow compilation with FSF head version.
4833 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4834 use individual operators (OP_*) for all attributes.
4835 (exp syntax): Use write_int.
4836 Handle STRING literals with OP_STRING.
4837 (variable syntax): Add limit parameter to calls to
4838 write_object_renaming.
4840 (temp_parse_space): New definition to hold entities that need
4841 only live until the next call to ada_parse.
4842 (string_to_operator): Rename fields of ada_opname_table entries.
4844 (write_var_from_sym): Record block.
4845 (write_var_from_name): Minor reformatting.
4846 Make sure saved name is properly encoded in the case of multiple
4847 matches, and set its language to Ada.
4849 Modify to indicate unresolved name as symbol in the UNRESOLVED
4850 namespace, allocated in temp_parse_space.
4851 (write_int): New function.
4853 (write_object_renaming): Add max_depth parameter to limit
4854 chains of object renamings.
4855 Handle case where root of renaming expression is itself a renaming.
4856 Use temp_parse_space for temporary name buffer.
4857 Handle renamings to dereferenced pointers (___XEXA suffices).
4859 (ada_parse, yyerror, string_to_operator,
4860 write_var_from_sym, write_var_from_name, write_attribute_call0,
4861 write_attribute_call1, write_attribute_calln,
4862 write_object_renaming): Protoize.
4864 (_initialize_ada_exp): New function.
4866 * ada-lang.c: Update copyright notice.
4867 General terminology change to conform to GNAT compiler usage:
4868 mangle => encode, demangle => decode
4869 Include gdb_obstack.h.
4878 (ADA_RETAIN_DOTS): Make sure this is defined.
4879 (TRUNCATION_TOWARDS_ZERO): Define.
4880 (struct string_vector): Define.
4881 (unresolved_names): Remove definition.
4882 (xnew_string_vector): New function.
4883 (string_vector_append): New function.
4884 (extract_string): Make static.
4885 (ada_unqualified_name): New function.
4886 (add_angle_brackets): New function.
4887 (function_name_from_pc): New function.
4888 (place_on_stack): Rename to ensure_lval.
4890 (ensure_lval): Renamed from place_on_stack.
4891 Make identity on lvals.
4893 (is_nonfunction): New interface.
4894 Only symbols in LOC_CONST class can be enumerals.
4895 (fill_in_ada_prototype): Remove; now independent of language.
4896 (add_defn_to_vec): Add obstack and symtab arguments.
4897 Use obstack to hold collected definitions.
4898 (num_defns_collected): New function.
4899 (defns_collected): New function.
4900 (ada_resolve_subexp): Rename to resolve_subexp.
4901 (resolve_subexp): Renamed from ada_resolve_subexp.
4902 (ada_op_name): Return non-const result.
4903 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4906 (to_fixed_array_type): Add declaration.
4907 (coerce_unspec_val_to_type): Remove offset parameter.
4908 (find_sal_from_funcs_and_line): New interface.
4909 (find_line_in_linetable): Ditto.
4911 (all_sals_for_line): Rename to ada_sals_for_line and make
4913 Add new parameter. When set, do not ask the user to choose the
4914 instance, but use the first one found instead.
4915 Use given line number in returned sals.
4917 Skip the prologue if funfirstline is set.
4918 Correct for memory leak when 0 lines found.
4920 (value_pos_atr): Use pos_atr.
4921 (pos_atr): New function.
4922 (standard_lookup): Add block parameter.
4924 (makeTimeStart): Remove declaration and uses.
4925 (makeTimeStop): Remove declaration and uses.
4927 (ada_completer_word_break_characters): Allow for VMS.
4928 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4929 (raise_sym_name): New constant.
4930 (raise_unhandled_sym_name): New constant.
4931 (raise_assert_sym_name): New constant.
4932 (process_raise_exception_name): New constant.
4933 (longest_exception_template): New constant.
4934 (warning_limit): New variable to limit warnings during expression
4936 (warnings_issued): New variable to keep track of warnings issued.
4937 (known_runtime_file_name_patterns): New constant.
4938 (known_auxiliary_function_name_patterns): New constant.
4939 (symbol_list_obstack): New variable.
4941 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4942 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4943 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4944 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4945 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4946 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4947 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4948 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4951 (ada_get_field_index): New function.
4952 (lim_warning): New function.
4953 (ada_translate_error_message): New function.
4954 (MAX_OF_SIZE): New function.
4955 (MIN_OF_SIZE): New function.
4956 (UMAX_OF_SIZE): New function.
4957 (UMIN_OF_SIZE): New function.
4958 (discrete_type_high_bound): New function.
4959 (discrete_type_low_bound): New function.
4960 (base_type): New function.
4961 (do_command): Remove.
4963 (ada_update_initial_language): Use language_ada, not language_unknown.
4964 (ada_encode): Renamed from ada_mangle.
4965 Obey ADA_RETAIN_DOTS.
4966 (ada_decode): Renamed from ada_demangle.
4967 Update coding conventions.
4968 (decoded_names_store): New hash table.
4969 (ada_decode_symbol): New function.
4970 (ada_la_decode): New function.
4972 (modify_general_field): Correct computations of offset and bit
4974 (desc_base_type): Handle ref types, too.
4975 (ada_is_direct_array_type): New function.
4977 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4978 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4979 (ada_is_bogus_array_descriptor,ada_type_of_array,
4980 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4981 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4982 ada_is_array_descriptor_type.
4984 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4985 (ada_is_packed_array_type): Handle pointers or
4986 references to packed arrays as well.
4987 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4988 (decode_packed_array_type): Search for the packed array type
4989 symbol in the currently selected block and associated
4991 Use lookup_symbol again.
4993 (decode_packed_array): Handle pointers and references.
4994 Update call to coerce_unspec_val_to_type.
4995 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4996 (ada_value_primitive_packed_val): Improve comment.
4998 (ada_index_type): Substitute int type for "undefined".
4999 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5000 ada_array_langth, ada_is_string_type): Use renamed
5001 ada_is_simple_array_type.
5002 (empty_array): New function.
5004 (ada_resolve): Rename to resolve.
5005 (resolve): Make static.
5006 Call renamed resolve_subexp.
5008 (ada_resolve_subexp): Rename to resolve_subexp.
5009 (resolve_subexp): Update comment.
5010 Decomment disabled code.
5011 Add LOC_COMPUTED* cases.
5012 Modify to use temporary struct symbols (marked as being in
5013 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5014 OP_UNRESOLVED_VALUE.
5015 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5018 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5019 Use new ada_lookup_symbol_list interface.
5020 Use new ada_resolve_function interface.
5021 Remove OP_TYPE case.
5023 (ada_args_match): Idiot proof against null actuals.
5024 Use intermediate variables to clarify.
5025 (ada_resolve_function): Update comment and interface.
5026 (mangled_ordered_before): Rename to encoded_ordered_before and
5028 (sort_choices): Update comment and interface.
5029 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5030 (user_select_syms): New interface.
5031 Use new sort_choices interface.
5032 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5033 (possible_user_operator_p): Idiot-proof against null values.
5034 (ada_simple_renamed_entity): Don't make cleanup; rely on
5035 caller to free result string.
5036 Remove const from return type.
5037 (make_array_descriptor): Rename uses of place_on_stack to
5039 Make sure that arrays are on stack.
5041 (HASH_SIZE): Define.
5042 (struct cache_entry): Define.
5043 (cache_space): Define.
5045 (clear_ada_sym_cache): New function.
5046 (find_entry): New function.
5047 (lookup_cached_symbol): New function.
5048 (defn_vector_size): Define.
5049 (cache_symbol): New function.
5050 (defn_symbols): Remove.
5052 (standard_lookup): Use lookup_symbol_in_language to get effect of
5056 (symbol_completion_match): New function.
5057 (symbol_completion_add): New function.
5058 (ada_make_symbol_completion_list): New function.
5060 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5061 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5062 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5063 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5065 (ada_lookup_simple_minsym): New function.
5066 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5068 (add_symbols_from_enclosing_procs): New interface.
5069 Conditionalize more helpfully.
5070 Don't bother if program isn't running.
5071 Use new interface to get_frame_block.
5072 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5074 (remove_extra_symbols): New interface.
5075 (xget_renaming_scope): New function.
5076 (is_package_name): New function.
5077 (renaming_is_visible): New function.
5078 (remove_out_of_scope_renamings): New function.
5080 (ada_lookup_symbol_list): New interface.
5081 Properly reinitialize the symbol list obstack.
5082 Don't call add_symbols_from_enclosing_procs if we start from a
5083 static or global block.
5084 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5085 add_symbols_from_enclosing_procs.
5086 Add symtab data to cached entries.
5087 Handle symbols prefixed with
5088 "standard__" specially; strip prefix and don't look in local symbols.
5089 Do not include out of scope renaming symbols in list of
5091 Add const to block parameter.
5092 Move check for non-local, non-global symbols earlier.
5093 Remove timing stuff.
5094 (ada_lookup_symbol): New interface.
5095 Find symtab as well.
5096 (ada_lookup_symbol_nonlocal): New function.
5098 (is_name_suffix): Enhance suffix detection to recognize
5099 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5100 (is_dot_digits_suffix): New function.
5101 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5103 (ada_add_block_symbols): New interface. Use obstack to return results
5104 in a vector of struct ada_symbol_infos. Add symtab argument.
5105 Use new interface to add_defn_to_vec.
5106 Remove calls to fill_in_ada_prototype.
5107 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5109 (ada_finish_decode_line_1): Add const qualification to local to fix
5111 Start looking in static block for functions to avoid attempts
5112 to search frame chain for up-level variables.
5113 Adapt to new ada_sals_for_line interface.
5114 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5115 Handle quoting of the function name inside the spec string.
5116 Skip prologue when funfirstline is set and update the
5117 function documentation to that effect.
5119 (debug_print_lines, debug_print_block, debug_print_blocks,
5120 debug_print_symtab): Remove.
5122 (ada_main_name): New function.
5123 (ada_exception_breakpoint_type): New function.
5124 (is_known_support_routine): New function.
5125 (ada_find_printable_frame): Renamed from find_printable_frame and made
5127 Remove level parameter.
5128 Use new interface to select_frame.
5130 (begin_command): Remove.
5131 (ada_adjust_exception_stop): New function.
5132 (ada_print_exception_stop): New function.
5133 (exception_name_from_cond): New function.
5134 (ada_report_exception_break): Replace disabled code with
5135 conditionalization on GNAT_GDB.
5136 Get the exception name from the condition string.
5137 Remove and move functionality into new functions
5138 ada_print_exception_breakpoint_task and
5139 ada_print_exception_breakpoint_nontask.
5140 (error_breakpoint_runtime_sym_not_found): New function.
5141 (is_runtime_sym_defined): New function.
5142 (ada_breakpoint_rewrite): Uncomment suppressed code.
5143 Use symbolic error-message and runtime-symbol names.
5144 Surround runtime symbol names in quotes.
5145 Allow non-specific breakpoints on exceptions and assertions before
5148 (ada_is_tagged_type): Add parameter.
5149 (ada_is_tag_type): New function.
5150 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5151 (ada_variant_discrim_type): Ditto.
5152 (value_tag_from_contents_and_address): New function.
5153 (type_from_tag): New function.
5154 (struct tag_args): New structure used to communicate with
5156 (ada_tag_name_1): New function.
5157 (ada_tag_name): New function.
5159 (ada_scan_number): Update comment.
5160 (find_struct_field): New function.
5161 (ada_search_struct_field): Make static.
5162 (ada_value_struct_elt): New version that returns references when
5163 given pointers or references to structs.
5164 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5165 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5167 (ada_value_ind): Use new ada_to_fixed_value interface.
5168 (ada_coerce_ref): Ditto.
5169 (field_offset): Remove.
5171 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5172 (ada_find_renaming_symbol): New function.
5173 (ada_prefer_type): Prefer named types over unnamed ones.
5174 (variant_field_index): New function.
5175 (contains_variant_part): Removed: subsumed by variant_field_index.
5176 (ada_template_to_fixed_record_type): New function, mostly from
5177 template_to_fixed_record_type.
5178 (template_to_fixed_record_type):
5179 Do not scan the type fields beyond the last one; prevents a
5181 Handle case where variant field is listed BEFORE discriminant it
5183 Fix calculation of record length when bit length is
5184 not evenly divisible by char length.
5185 Move code to ada_template_to_fixed_record_type and call it.
5187 (template_to_static_fixed_type): Revise comment.
5188 Modify to work on ordinary record types as well as templates,
5189 so as to handle fields that use ___XVE or ___XVU encodings.
5190 (to_record_with_fixed_variant_part): Fill out comment.
5191 Initialize C++ stuff in right type.
5192 Allow case where DVAL is null.
5193 Handle case where variant field is not last.
5194 Fix typo concerning record length.
5195 (to_fixed_record_type): Decomment disabled code.
5196 (to_fixed_record_type): Use variant_field_index instead of
5197 contains_variant_part.
5198 (to_fixed_variant_branch_type): Ditto.
5199 (to_fixed_array_type): Decomment disabled code.
5200 (ada_to_fixed_type): Convert tagged types to the specific type.
5201 Deactivate the size-check for array types in order to avoid
5202 some false size alarms.
5203 (to_static_fixed_type): Decomment disabled code.
5204 Modify to call template_to_static_fixed_type
5205 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5206 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5207 Remove valaddr argument, as it is never really used.
5208 (ada_to_fixed_value): Change interface to act on single struct value*
5210 (adjust_pc_past_prologue): New function.
5211 (ada_attribute_name): Modify to take enum exp_opcode argument.
5213 (ada_enum_name): Recognize new homonym-distinguishing convention.
5214 Adjust local variable's type to remove compiler warning.
5215 Fix a small problem in the part that unqualifies the enumeration name.
5216 (ada_value_binop): New function.
5217 (ada_value_equal): New function.
5219 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5220 Don't give error message when not doing normal evaluation
5221 and a tagged type doesn't seem to contain a structure member.
5222 Give error message for packed arrays.
5223 For indexing arrays, handle pointers to packed arrays correctly.
5224 Handle case of 'first and 'last attributes of bare integral type
5225 without encoded subtype info.
5226 Remove some unnecessary casts.
5227 Fix uninitialized value of type in computing 'first, 'last, or 'length
5229 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5230 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5232 Attributes are now exp_opcode values.
5233 Correct treatment of 'modulus.
5234 Better error message for taking 'length of wrong kind of type;
5236 Change EVAL_NORMAL to noside for consistency.
5237 Use ada_value_binop for DIV, MOD, REM.
5238 Make special case out of array of length 0, since an argument
5239 of 0 upsets some platforms' malloc.
5240 Use OP_STRING instead of OP_ARRAY.
5241 For slice, add check that we have an array type before extracting
5242 a slice out of it. Avoids a SEGV.
5243 When evaluating an array slice, if the array type is a reference to
5244 an aligner type, then replace the aligner type by the actual type.
5245 Decomment disabled code.
5246 Remove some dead code.
5247 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5248 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5249 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5250 and UNOP_MBR to UNOP_IN_RANGE.
5251 If an array type has a parallel ___XVE type, then use it.
5252 Turn arrays into pointers for lvalue arrays.
5253 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5254 bounds error and handle 0-length slices.
5256 When selecting fields, apply ada_to_fixed_value (because the fields
5257 might have ___XVU or ___XVE encodings even if not dynamic.)
5258 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5259 (ada_is_system_address_type): New function.
5261 (get_var_value): Use new interface to ada_lookup_symbol_list.
5262 (get_int_var_value): New interface.
5263 (to_fixed_range_type): Allow unknown bound, with warning.
5264 (ada_is_modular_type): Decomment disabled code.
5265 (ADA_OPERATORS): New definition.
5266 (ada_operator_length): New function.
5267 (ada_expr_op_name): New function.
5268 (ada_forward_operator_length): New function.
5269 (ada_dump_subexp_body): New function.
5270 (ada_print_subexp): New function.
5271 (ada_exp_descriptor): New constant.
5272 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5273 (ada_language_defn): Add ada_exp_descriptor entry.
5274 Change ada_parse => parse.
5275 Add post-parser entry.
5276 Use ada-specific non-local symbol lookup.
5277 Don't use C-style arrays.
5278 String lower-bound is 1.
5279 Decomment disabled code.
5280 (parse): New function.
5281 New fields ada_translate_error_message, ada_lookup_symbol,
5282 ada_lookup_minimal_symbol.
5284 * ada-lang.h: Update copyright dates.
5285 Replace the mangle/demangle terminology throughout by the
5286 more appropriate encode/decode one.
5287 Include breakpoint.h.
5288 Forward declare struct partial_symbol, struct block.
5289 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5290 (EXTRACT_ADDRESS): Remove.
5291 (EXTRACT_INT): Remove.
5292 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5293 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5294 (MAX_RENAMING_CHAIN_LENGTH): Define.
5295 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5297 (enum task_states): Remove.
5298 ada_task_states: Remove.
5299 (fat_string): Remove.
5300 (struct entry_call): Remove.
5301 (struct task_fields): Remove.
5302 (struct task_entry): Remove.
5304 (struct ada_symbol_info): Define.
5305 (enum ada_attribute): Remove.
5306 (enum ada_operator): Define.
5308 (ada_get_field_index): Declare.
5309 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5310 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5311 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5312 (ada_lookup_symbol_list): New interface.
5313 (ada_decode_symbol): Declare.
5314 (ada_decode): Declare.
5315 (ada_lookup_symbol): New interface.
5316 (ada_update_initial_language): Declare.
5317 (ada_lookup_simple_minsym): Declare.
5318 (user_select_syms): New interface.
5319 (ada_sals_for_line): Declare.
5320 (ada_is_tagged_type): New interface.
5321 (ada_tag_name): Declare.
5322 (ada_lookup_struct_elt_type): Remove declaration.
5323 (ada_search_struct_field): Remove declaration.
5324 (ada_attribute_name): New interface.
5325 (ada_is_system_address_type): Declare.
5326 (ada_to_fixed_value): Remove declaration.
5327 (ada_template_to_fixed_record_type_1): Declare.
5328 (get_int_var_value): New interface.
5329 (ada_find_any_symbol): Declare.
5330 (ada_find_renaming_symbol): Declare.
5331 (ada_mangle): Rename to ada_encode.
5332 (ada_simple_renamed_entity): Remove const.
5333 (ada_main_name): Declare.
5334 (get_current_task): Rename to ada_get_current_task.
5335 (get_entry_number): Remove declaration.
5336 (ada_report_exception_break): Remove declaration.
5337 (ada_print_exception_breakpoint_nontask): Declare.
5338 (ada_print_exception_breakpoint_task): Declare.
5339 (ada_find_printable_frame): Declare.
5341 * ada-lex.l: Update copyright notices.
5342 Use xmalloc and xfree instead of malloc and free.
5343 Use new interface to name_lookup.
5344 Use new interface to
5345 ada_mangle=>ada_encode.
5346 Redo handling of '$...' variable to parallel current treatment
5348 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5349 digit_to_int, strtoulst, processInt, processReal, processId,
5350 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5353 (processInt): Use cast to remove harmless warning.
5354 (processReal): Modify to get rid of compiler warning on scan formats.
5356 (processId): Replace xmalloc with obstack_alloc for name and remove
5357 call to ada_name_string_cleanup.
5358 Remove obsolete disabled code.
5359 (name_lookup): Ditto.
5361 Use obsavestring on temp_parse_space instead of savestring
5362 on name, and remove call to ada_name_string_cleanup.
5363 Free string returned from ada_simple_renamed_entity.
5364 Use new interface to ada_lookup_symbol_list.
5365 Decomment disabled code.
5366 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5368 When a type name lookup succeeds as a result of
5369 lookup_primitive_typename, check for regular type entry that has not
5371 Limit length of chain of renamed symbols we are willing to follow.
5372 Do not break names beginning with "standard__" into segments.
5373 (block_lookup): Use new interface to ada_lookup_symbol_list.
5375 * ada-typeprint.c: Update copyright notice.
5376 (demangled_type_name): Rename to decoded_type_name.
5377 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5378 (print_range_bound): Correct handling of negative
5379 bounds that make the index type looked unsigned under STABS.
5380 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5381 (print_range_type_named): Use the builtin int type if no type
5382 corresponding to the given type name could be found.
5383 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5384 Add some bullet-proofing.
5385 (print_variant_clauses): Allow for variant branches with ___XVU
5386 encodings that are not dynamic fields.
5387 Use new interface to ada_is_tagged_type.
5388 (print_record_type): Allow for fields with ___XVE encodings that
5389 are not dynamic fields.
5390 Use new interface to ada_is_tagged_type.
5391 (ada_print_type): ada_is_array_descriptor =>
5392 ada_is_array_descriptor_type.
5394 * ada-valprint.c: Update copyright notice.
5395 Include gdb_string.h
5397 (ui_memcpy): New function.
5398 (ada_print_floating): New function.
5399 (ada_print_str): Order arguments correctly.
5400 Correct handling of empty arrays and arrays of 0-length items.
5401 ada_is_array_descriptor => ada_is_array_descriptor_type
5402 Print values of type System.Address in hexadecimal format.
5403 Use ada_print_floating to print floating-point numbers in Ada format.
5404 Print class tag values with type names.
5405 No longer print the address of reference values. Avoids
5406 a potential confusion.
5407 (ada_value_print): Stop printing the object type for reference
5408 values, but preserve that behavior for access types. Avoids
5409 a potential confusion.
5410 Simplify one conditional expression, as the first part is now
5412 ada_is_array_descriptor => ada_is_array_descriptor_type
5413 Add check for arrays for null records, and print them by hand.
5415 2004-06-01 Jim Blandy <jimb@redhat.com>
5417 * ppc-tdep.h: Delete unused 'regoff' member.
5418 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5420 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5423 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5424 (hpread_read_struct_type): Likewise.
5426 2004-06-01 Andrew Cagney <cagney@gnu.org>
5428 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5429 instead of xasprintf.
5430 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5431 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5432 (mi_cmd_data_list_register_names)
5433 (mi_cmd_data_list_changed_registers)
5434 (mi_cmd_data_list_register_values)
5435 (get_register, mi_cmd_data_write_register_values)
5436 (mi_cmd_data_write_register_values)
5437 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5438 (mi_cmd_target_download, mi_cmd_target_select)
5439 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5440 (mi_execute_cli_command, mi_execute_async_cli_command)
5441 (mi_execute_async_cli_command): Ditto.
5442 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5443 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5445 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5446 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5447 error_last_message instead of mi_error_last_message.
5448 * mi/mi-main.c (mi_error_last_message): Delete function.
5450 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5451 "invalid number of columns" error. Delete redundant "out of
5454 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5456 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5457 (gregset_t, fpregset_t): Remove typedefs.
5458 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5459 (REG_OFFSET): Rename argument.
5460 (i386bsd_r_reg_offset): Rename from reg_offset.
5461 (REG_ADDR): Remove macro.
5462 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5464 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5465 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5466 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5467 instead of supply_gregset.
5468 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5469 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5470 instead of fill_gregset.
5471 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5473 * i386bsd-nat.c: Don't include "gregset.h".
5474 (supply_gregset, fill_gregset): Make static.
5475 (supply_fpregset, fill_fpregset): Remove.
5476 * Makefile.in (i386bsd-nat.o): Update dependencies.
5478 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5480 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5481 "gdb_assert.h". Con't include "gregset.h".
5482 (fbsd_make_corefile_notes): Use regset-based core file support
5483 instead off fill_gregset and fill_fpregset.
5484 * Makefile.in (fbsd-proc.o): Update dependencies.
5486 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5488 (m88k_frame_prev_register): Simplify code a bit.
5490 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5491 (amd64_collect_fpregset): New function.
5492 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5494 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5496 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5497 (i386_collect_gregset): New function.
5498 (i386_supply_fpregset): Adjust comment.
5499 (i386_collect_fpregset): New function.
5500 (i386_regset_from_core_section): Use i386_collect_gregset and
5501 i386_collect_fpregset.
5503 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5504 handle VALUEP being null.
5506 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5508 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5510 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5512 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5513 assembler in OpenBSD 3.5-current.
5514 (amd64obsd_sigcontext_addr): Likewise.
5516 2004-05-28 Jim Blandy <jimb@redhat.com>
5518 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5519 register set, so our regcache isn't declared "legacy" and our E500
5520 pseudoregister read and write functions aren't ignored.
5521 (rs6000_register_byte, rs6000_register_raw_size,
5522 rs6000_register_virtual_type, rs6000_register_convertible,
5523 rs6000_register_convert_to_virtual,
5524 rs6000_register_convert_to_raw): Deleted.
5525 (rs6000_register_type, rs6000_convert_register_p,
5526 rs6000_register_to_value, rs6000_value_to_register): New
5528 (rs6000_gdbarch_init): Don't register
5529 gdbarch_deprecated_register_size,
5530 gdbarch_deprecated_register_bytes,
5531 gdbarch_deprecated_register_byte,
5532 gdbarch_deprecated_register_raw_size,
5533 gdbarch_deprecated_register_virtual_type,
5534 gdbarch_deprecated_register_convertible,
5535 gdbarch_deprecated_register_convert_to_virtual, or
5536 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5537 register gdbarch_register_type, gdbarch_convert_register_p,
5538 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5540 2004-05-26 Jim Blandy <jimb@redhat.com>
5542 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5543 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5544 functions, updated to match the register numberings used in GCC.
5545 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5546 rs6000_dwarf2_reg_to_regnum as register number conversions
5547 functions for STABS and Dwarf2.
5549 2004-05-26 Randolph Chung <tausq@debian.org>
5551 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5554 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5556 * NEWS: Document new "start" command.
5558 2004-05-25 Randolph Chung <tausq@debian.org>
5560 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5563 2004-05-25 Randolph Chung <tausq@debian.org>
5565 * hppa-hpux-tdep.c (offsetof): Define.
5566 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5567 (hppa32_hpux_frame_base_before_sigtramp)
5568 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5569 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5570 (hppa64_hpux_frame_base_before_sigtramp)
5571 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5573 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5574 (hppa_hpux_sigtramp_frame_unwind_cache)
5575 (hppa_hpux_sigtramp_frame_this_id)
5576 (hppa_hpux_sigtramp_frame_prev_register)
5577 (hppa_hpux_sigtramp_frame_unwind)
5578 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5579 (hppa_hpux_init_abi): Register sigtramp unwinder.
5580 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5582 2004-05-25 Randolph Chung <tausq@debian.org>
5584 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5585 and multiple stack unwinds.
5586 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5588 2004-05-25 Andrew Cagney <cagney@gnu.org>
5590 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5591 * symfile-mem.h: Delete file.
5592 * symfile-mem.c: Do not include "symfile-mem.h".
5593 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5594 "struct bfd_section". When an error do not bother returning NULL.
5595 (add_symbol_file_from_memory_command): Use "struct bfd" and
5596 "struct bfd_section".
5597 * Makefile.in (symfile_mem_h): Delete.
5598 (symfile-mem.o): Update dependencies.
5600 2004-05-25 Nick Roberts <nickrob@gnu.org>
5602 * gdb-mi.el: New file.
5604 2004-05-25 Andrew Cagney <cagney@gnu.org>
5606 * inftarg.c: Include "observer.h".
5607 (child_attach, child_create_inferior): Notify inferior_created.
5608 * corelow.c: Include "observer.h".
5609 (core_open): Notify inferior_created.
5610 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5612 2004-05-25 Andrew Cagney <cagney@gnu.org>
5614 * target.h (struct target_ops): Add from_tty to
5616 (target_create_inferior, find_default_create_inferior): Update.
5617 * infcmd.c (run_command): Update.
5618 * wince.c (child_create_inferior): Update.
5619 * win32-nat.c (child_create_inferior): Update.
5620 * uw-thread.c (uw_thread_create_inferior): Update.
5621 * thread-db.c (thread_db_create_inferior): Update.
5622 * target.c (debug_to_create_inferior)
5623 (find_default_create_inferior): Update.
5624 (maybe_kill_then_create_inferior): Update.
5625 * sol-thread.c (sol_thread_create_inferior): Update.
5626 * remote.c (extended_remote_async_create_inferior)
5627 (extended_remote_create_inferior): Update.
5628 * remote-vx.c (vx_create_inferior): Update.
5629 * remote-st.c (st2000_create_inferior): Update.
5630 * remote-sim.c (gdbsim_create_inferior): Update.
5631 * remote-sds.c (sds_create_inferior): Update.
5632 * remote-rdp.c (remote_rdp_create_inferior): Update.
5633 * remote-rdi.c (arm_rdi_create_inferior): Update.
5634 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5635 * remote-e7000.c (e7000_create_inferior): Update.
5636 * procfs.c (procfs_create_inferior): Update.
5637 * ocd.c (ocd_create_inferior): Update.
5638 * ocd.h (ocd_create_inferior): Update.
5639 * nto-procfs.c (procfs_create_inferior): Update.
5640 * monitor.c (monitor_create_inferior): Update.
5641 * lin-lwp.c (lin_lwp_create_inferior): Update.
5642 * inftarg.c (child_create_inferior): Update.
5643 * hpux-thread.c (hpux_thread_create_inferior): Update.
5644 * gnu-nat.c (gnu_create_inferior): Update.
5646 2004-05-25 Andrew Cagney <cagney@gnu.com>
5648 * MAINTAINERS: Update e-mail address.
5650 2004-05-24 Randolph Chung <tausq@debian.org>
5652 * thread.c (info_threads_command, thread_apply_all_command)
5653 (thread_apply_command, thread_command, do_captured_thread_select):
5654 Remove HPUXHPPA-specific code.
5656 2004-05-24 Randolph Chung <tausq@debian.org>
5658 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5660 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5663 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5665 * infcmd.c (kill_if_already_running): New function, extracted
5667 (run_command): Replace extracted code by call to
5668 kill_if_already_running().
5669 (start_command): New function.
5670 (_initialize_infcmd): Add "start" command.
5672 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5674 Add OpenBSD/m88k support.
5675 * NEWS (New native configurations): Mention OpenBSD/m88k.
5676 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5677 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5678 * Makefile.in (m88k_tdep_h): New variable.
5679 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5680 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5681 * configure.host: Add m88*-*-openbsd*.
5682 * configure.tgt: Add m88*-*-openbsd*.
5684 2004-05-24 Jim Blandy <jimb@redhat.com>
5686 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5689 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5691 * symtab.c (fixup_section): Search section table when lookup by
5694 2004-05-24 Randolph Chung <tausq@debian.org>
5696 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5699 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5701 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5702 register number in regcache_raw_collect call.
5703 (m68kbsd_collect_fpregset): Likewise.
5704 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5706 * regset.h (struct regset): Add back `regset' member.
5708 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5710 * configure.in: Check for td_pcb in `struct thread'.
5711 * configure, config.in: Regenerated.
5713 * dpx2-nat.c: Remove file.
5714 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5715 (dpx2-nat.o): Remove dependencies.
5717 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5718 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5719 (amd64obsd_supply_pcb): New function.
5720 (_initialize_amd64obsd_nat): Enable libkvm interface.
5721 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5722 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5723 (LOADLIBES): New variable.
5725 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5726 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5727 (sparc32nbsd_supply_pcb): New function.
5728 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5729 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5730 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5731 (LOADLIBES): New variable.
5733 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5735 * bsd-kvm.c, bsd-kvm.h: New files.
5736 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5738 (i386fbsd_supply_pcb): New function.
5739 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5740 (i386fbsd-nat.o): Update dependencies.
5741 (bsd_kvm_h): New variable.
5742 (bsd-kvm.o): New dependency.
5743 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5744 (LOADLIBES): New variable.
5746 * regset.c: Tweak comment.
5747 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5749 * regset.h: Update copyright year.
5750 (struct regset): Remove `descr' member, add `gdbarch' member.
5751 (regset_alloc): Adjust prototype and comment.
5752 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5753 (i386_supply_fpregset): Likewise.
5754 (i386_regset_from_core_section): Update call to regset_alloc.
5755 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5757 (i386obsd_aout_regset_from_core_section): Update call to
5759 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5761 (i386nbsd_aout_regset_from_core_section): Update call to
5763 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5765 (amd64_regset_from_core_section): Update call to regset_alloc.
5766 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5768 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5769 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5770 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5771 (sparc32nbsd_init_abi): Update call to regset_alloc.
5772 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5773 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5774 (sparc64obsd_init_abi): Update call to regset_alloc.
5775 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5776 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5777 (sparc64nbsd_init_abi): Update call to regset_alloc.
5778 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5779 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5780 (sparc64fbsd_init_abi): Update call to regset_alloc.
5782 2004-05-22 Jim Blandy <jimb@redhat.com>
5784 * ppc-tdep.h (spe_register_p): New declaration.
5785 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5787 * rs6000-tdep.c (spe_register_p): New function.
5788 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5790 (rs6000_gdbarch_init): Initialize the new members of the tdep
5793 2004-05-21 Jim Blandy <jimb@redhat.com>
5795 * ppc-linux-nat.c (fetch_register): Move code back to be next
5796 to the comment that describes it. (Moved code, instead of
5797 comment, for symmetry with store_register.)
5799 Allocate regset structures in the gdbarch's obstack, not using
5801 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5802 Add 'arch' argument. Allocate the regset on arch's obstack, not
5804 * regset.h (regset_alloc): Update declaration.
5805 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5807 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5808 * i386-tdep.c (i386_regset_from_core_section): Same.
5809 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5810 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5811 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5812 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5813 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5814 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5816 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5818 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5820 2004-05-21 Jim Blandy <jimb@redhat.com>
5822 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5823 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5825 2004-05-20 Jim Blandy <jimb@redhat.com>
5827 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5829 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5831 * regset.h: Make prototype const-correct.
5832 * regset.c (regset_xmalloc): Make const-correct.
5834 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5836 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5837 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5838 (symbol_search_name): Declare.
5840 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5841 (iter_name_next_hashed): Ditto.
5842 (iter_name_next_linear): Ditto.
5843 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5845 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5846 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5847 (symbol_search_name): New function.
5849 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5851 * minsyms.c (build_minimal_symbol_hash_tables): Change
5852 test for adding to demangled hash table to check for difference
5853 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5855 2004-05-19 Jim Blandy <jimb@redhat.com>
5857 Use a constructor function to create regset structures.
5858 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5859 (struct regset): Use supply_regset_ftype. Add new
5860 'collect_regset' member.
5861 (regset_xmalloc): New declaration.
5862 * regset.c: New file.
5863 * am64-tdep.c (amd64_regset_from_core_section): Use
5864 regset_xmalloc to construct regset structures.
5865 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5866 * i386-tdep.c (i386_regset_from_core_section): Same.
5867 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5868 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5869 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5870 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5871 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5872 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5873 * Makefile.in (COMMON_OBS): Add regset.o.
5874 (regset.o): New rule.
5876 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5878 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5879 and pthread_cond_wait.c.
5881 2004-05-18 Jim Blandy <jimb@redhat.com>
5883 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5884 before the mach-specific switch, and then let the individual cases
5885 override the defaults, rather than leaving them uninitialized
5886 until the switch and then setting them in each case.
5888 2004-05-18 Randolph Chung <tausq@debian.org>
5890 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5891 millicode functions.
5893 2004-05-18 Randolph Chung <tausq@debian.org>
5895 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5896 references to dld_flags_buffer consistent.
5898 2004-05-18 Randolph Chung <tausq@debian.org>
5900 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5901 it for unwinding the stack.
5903 2004-05-18 Randolph Chung <tausq@debian.org>
5905 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5906 Undefine these so we can overide them using gdbarch.
5908 2004-05-18 Randolph Chung <tausq@debian.org>
5910 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5911 handling for 64-bit HPUX (elf).
5913 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5915 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5917 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5918 * ia64-tdep.c (examine_prologue): Likewise.
5919 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5920 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5922 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5924 * vax-tdep.c (vax_return_value): Implement
5925 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5927 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5929 * vax-tdep.c (vax_return_value): Fix typo.
5931 2004-05-17 Andrew Cagney <cagney@redhat.com>
5933 * MAINTAINERS: Mark Salter was also responsible for
5936 * NEWS: Mention signal fixes.
5938 2004-05-17 Randolph Chung <tausq@debian.org>
5940 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5941 check to see if we are unwinding an export stub. Export stubs clobber
5942 the %rp in the call path and stores the original rp in a stack slot.
5944 2004-05-17 Jim Blandy <jimb@redhat.com>
5946 * MAINTAINERS: Update address for J.T. Conklin.
5948 2004-05-17 Randolph Chung <tausq@debian.org>
5950 * hppa-tdep.c: Remove superfluous #include's.
5951 * Makefile.in (hppa-tdep.o): Update dependencies.
5953 2004-05-17 Randolph Chung <tausq@debian.org>
5955 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5956 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5957 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5958 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5959 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5960 Remove static function declarations.
5962 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5964 * alphabsd-nat.c: Update copyright year.
5965 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5967 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5970 * m68k-tdep.c (m68k_svr4_return_value): Implement
5971 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5973 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5975 * sol-thread.c Update copyright year. Fix various coding
5976 standards violations. Tweak a few comments.
5977 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5980 2004-05-15 Randolph Chung <tausq@debian.org>
5982 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5983 as pointer instead of array reference since HPUX compiler does
5984 not accept unsized array arguments.
5985 * somsolib.c (dld_flags_buffer): Use constant array size.
5987 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5989 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5990 offset with decimal offset.
5991 (amd64obsd_sigcontext_addr): Return correct address for entire
5994 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5995 instead of get_frame_base.
5997 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5998 (fill_gregset): Use regcache_raw_collect.
6000 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6003 * config/sparc/tm-nbsd64.h: Remove file.
6004 * config/tm-sunos.h: Remove file.
6006 2004-05-15 Joel Brobecker <brobecker@gnat.com>
6008 * rs6000-tdep.c (store_param_on_stack_p): New function,
6009 an improved version of some code extracted from skip_prologue().
6010 (skip_prologue): Use store_param_on_stack_p() to detect
6011 instructions saving a parameter on the stack. Detect when r0
6012 is used to save a parameter.
6013 Do not mark "li rx, SIMM" instructions as part of the prologue,
6014 unless the following instruction is also part of the prologue.
6016 2004-05-14 Andrew Cagney <cagney@redhat.com>
6018 * infrun.c (handle_inferior_event): Simplify
6019 STEP_OVER_UNDEBUGGABLE.
6021 * infrun.c (handle_step_into_function): Delete function.
6022 (handle_inferior_event): Inline calls to
6023 handle_step_into_function.
6025 2004-05-14 Jerome Guitton <guitton@gnat.com>
6027 * rs6000-nat.c: Fix a comment.
6029 2004-05-12 David Anderson <davea@sgi.com>
6031 Committed by Jim Blandy <jimb@redhat.com>:
6032 * regcache.c (struct regcache_descr): fix comment spelling.
6034 2004-05-13 J. Brobecker <brobecker@gnat.com>
6036 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6037 Fixes a link link failure.
6039 2004-05-13 J. Brobecker <brobecker@gnat.com>
6041 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6042 error that was causing the build to fail.
6044 2004-05-13 J. Brobecker <brobecker@gnat.com>
6046 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6047 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6049 2004-05-13 Andrew Cagney <cagney@redhat.com>
6051 * infrun.c (handle_inferior_event): Check for
6052 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6053 calls. Update comments.
6055 2004-05-13 Jim Blandy <jimb@redhat.com>
6057 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6058 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6059 (store_regs_user_thread, store_regs_kernel_thread): Use
6060 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6061 * ppc-linux-nat.c (fill_gregset): Same.
6062 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6063 (ppc_linux_sigtramp_cache): Same.
6064 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6065 (ppcnbsd_sigtramp_cache_init): Same.
6066 * rs6000-nat.c (fetch_core_registers): Same.
6067 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6068 (rs6000_frame_cache): Same.
6070 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6071 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6072 of assuming that the gprs are numbered starting with zero.
6073 * ppc-linux-nat.c (fill_gregset): Same.
6074 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6075 * ppcnbsd-nat.c (getregs_supplies): Same.
6076 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6077 * rs6000-nat.c (fetch_core_registers): Same.
6078 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6080 2004-05-07 Michael Snyder <msnyder@redhat.com>
6082 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6083 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6085 2004-05-13 Andrew Cagney <cagney@redhat.com>
6087 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6089 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6091 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6092 base_address for shared libraries.
6094 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6096 * MAINTAINERS (write after approval): Add myself.
6098 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6100 * breakpoint.c (bpstat_stop_status): Add new argument
6101 STOPPED_BY_WATCHPOINT. Use it instead of testing
6102 target_stopped_data_address agaist 0 to check whether
6103 or not we stopped due to a hardware watchpoint.
6104 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6105 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6108 2004-05-12 Jim Blandy <jimb@redhat.com>
6110 * configure.in: When checking whether we should use the -bbigtoc
6111 option, don't forget to restore the original value of LDFLAGS.
6112 * configure: Regenerated.
6114 2004-05-12 Andrew Cagney <cagney@redhat.com>
6116 * thread.c (load_infrun_state): Delete step_sp.
6117 * infrun.c (context_switch): Ditto.
6118 * inferior.h (step_sp): Ditto.
6119 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6120 * gdbthread.h (struct thread_info, save_infrun_state)
6121 (restore_infrun_state): Ditto.
6123 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6125 * MAINTAINERS (write after approval): Add myself.
6127 2004-05-12 Andrew Cagney <cagney@redhat.com>
6129 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6130 eliminate reference to step_sp.
6131 (struct execution_control_state, init_execution_control_state)
6132 (handle_inferior_event, keep_going): Delete update_step_sp and
6134 * infcmd.c (step_sp): Note that variable is unused.
6136 2004-05-11 Andrew Cagney <cagney@redhat.com>
6138 * infrun.c (step_over_function): Delete function.
6139 (handle_step_into_function): Use insert_step_resume_breakpoint.
6140 (insert_step_resume_breakpoint): Fix assertion.
6142 2004-05-11 Nick Roberts <nickrob@gnu.org>
6144 * utils.c (defaulted_query): Just use the normal query input type
6145 when printing the annotations.
6147 2004-05-11 Andrew Cagney <cagney@redhat.com>
6149 * infrun.c (handle_inferior_event): Simplify code handling
6150 step-into or return-from a signal trampoline.
6152 2004-05-11 Andrew Cagney <cagney@redhat.com>
6154 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6155 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6157 2004-05-10 Jim Blandy <jimb@redhat.com>
6159 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6160 with a call to internal_error.
6162 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6163 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6164 processor variant lacks those registers.
6165 (ppc_floating_point_unit_p): Change description to make it clear
6166 that this returns info about the ISA, not the ABI.
6167 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6168 return true or false by checking tdep->ppc_fp0_regnum and
6169 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6170 arch/mach switching done in rs6000_gdbarch_init; it's better to
6171 keep that logic there, and just check the results here.
6172 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6173 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6174 floating-point registers.
6175 (ppc_supply_fpregset, ppc_collect_fpregset)
6176 (rs6000_push_dummy_call, rs6000_extract_return_value)
6177 (rs6000_store_return_value): Assert that we have floating-point
6179 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6180 (rs6000_frame_cache): Don't note the locations at which
6181 floating-point registers were saved if we have no fprs.
6182 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6184 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6185 (store_regs_user_thread, store_regs_kernel_thread): Only call
6186 supply_fprs / fill_fprs if we actually have floating-point
6188 (special_register_p): Check ppc_fpscr_regnum before matching
6190 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6191 supply / collect fpscr if we don't have it.
6192 * ppc-bdm.c: #include "gdb_assert.h".
6193 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6194 have floating-point registers, since I can't test this code on
6195 FP-free systems to adapt it.
6196 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6197 fpscr and floating point register numbers if they don't exist.
6198 (fetch_register): Assert that we have floating-point registers
6199 before we reach the code that handles them.
6200 (store_register): Same. And use tdep instead of calling
6202 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6204 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6205 fprs and fpscr if we don't have them.
6206 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6208 * ppcnbsd-nat.c: #include "gdb_assert.h".
6209 (getfpregs_supplies): Assert that we have floating-point registers.
6210 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6211 * ppcobsd-tdep.c: #include "gdb_assert.h".
6212 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6213 have floating-point registers.
6214 * rs6000-nat.c (regmap): Don't match against the fpscr and
6215 floating point register numbers if they don't exist.
6216 (fetch_inferior_registers, store_inferior_registers,
6217 fetch_core_registers): Only fetch / store / supply the
6218 floating-point registers and the fpscr if we have them.
6219 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6220 (ppcobsd-tdep.o): Update dependencies.
6222 2004-05-10 Andrew Cagney <cagney@redhat.com>
6224 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6225 (context_switch): Do not switch through_sigtramp_breakpoint.
6226 * gdbthread.h (save_infrun_state, load_infrun_state)
6227 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6228 and structure member.
6229 * thread.c (load_infrun_state, save_infrun_state): Update.
6231 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6233 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6235 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6237 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6239 * aclocal.m4: Regenerate.
6241 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6243 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6245 2004-05-10 Andrew Cagney <cagney@redhat.com>
6247 * infrun.c (check_sigtramp2): Delete function.
6248 (handle_inferior_event): When single stepping, and taking a
6249 signal, set a breakpoint at the signal return address. Delete
6250 redundant calls to check_sigtramp2.
6251 (insert_step_resume_breakpoint): New function.
6252 (through_sigtramp_breakpoint, handle_inferior_event)
6253 (follow_exec, wait_for_inferior, fetch_inferior_event)
6254 (currently_stepping, keep_going): Delete most uses of
6255 through_sigtramp_breakpoint, not that it should be deleted.
6256 (delete_breakpoint_current_contents): Delete function.
6258 2004-05-10 Randolph Chung <tausq@debian.org>
6260 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6262 * config/pa/tm-linux.h: New file.
6264 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6266 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6267 of prefixes. Don't print the prefix twice in the CLI.
6269 2004-05-10 Jim Blandy <jimb@redhat.com>
6271 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6272 collect all the gprs.
6274 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6275 loop collecting gprs.
6277 2004-05-09 Andrew Cagney <cagney@redhat.com>
6279 * remote-vx.c (net_step): Delete step-range code.
6280 * remote.c (remote_resume, init_all_packet_configs)
6281 (set_remote_protocol_E_packet_cmd)
6282 (show_remote_protocol_E_packet_cmd)
6283 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6284 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6285 (show_remote_protocol_e_packet_cmd): Ditto.
6287 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6289 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6291 * hppa-tdep.h: Update copyright year.
6292 (struct trad_frame_saved_reg): Add opaque declaration.
6294 * amd64-tdep.c (amd64_return_value): Implement
6295 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6297 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6298 (m68k_value_to_register): New functions.
6299 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6302 * defs.h (enum return_value_convention): Add
6303 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6304 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6305 * infcmd.c (legacy_return_value): New function.
6306 (print_return_value): Rwerite to implement
6307 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6308 * values.c (using_struct_return): Check for inequality to
6309 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6310 RETURN_VALUE_STRUCT_CONVENTION.
6311 * i386-tdep.c (i386_return_value): Implement
6312 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6314 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6315 include "symtab.h", "opcode/vax.h" and "inferior.h".
6316 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6317 to read_memory_unsigned_integer.
6318 (vax_gdbarch_init): Reorder.
6319 (_initialize_vax_tdep): Spell out prototype.
6320 * Makefile.in (vax-tdep.o): Update dependencies.
6322 2004-05-08 Andrew Cagney <cagney@redhat.com>
6324 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6325 * target.c (target_detach, target_disconnect): Ditto.
6327 * infcall.c (call_function_by_hand): When no
6328 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6329 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6330 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6331 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6332 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6334 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6335 * gdbarch.h, gdbarch.c: Re-generate.
6336 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6337 deprecated_fix_call_dummy.
6338 * v850-tdep.c (v850_gdbarch_init): Ditto.
6339 * infcall.c (call_function_by_hand): Do not call
6340 DEPRECATED_FIX_CALL_DUMMY.
6342 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6343 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6344 * gdbarch.h, gdbarch.c: Re-generate.
6345 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6346 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6347 deprecated_sizeof_call_dummy_words.
6348 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6349 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6350 * v850-tdep.c (v850_gdbarch_init): Ditto.
6351 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6352 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6353 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6354 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6355 * arch-utils.h (legacy_call_dummy_words)
6356 (legacy_sizeof_call_dummy_words): Delete declarations.
6357 * arch-utils.c (legacy_call_dummy_words)
6358 (legacy_sizeof_call_dummy_words): Delete variables.
6360 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6361 * gdbarch.h, gdbarch.c: Re-generate.
6362 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6363 * infcall.c (call_function_by_hand): Eliminate call to
6364 DEPRECATED_PUSH_DUMMY_FRAME.
6365 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6367 (ns32k_push_dummy_frame): Delete function.
6369 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6370 deprecated_call_dummy_breakpoint_offset or
6371 deprecated_call_dummy_start_offset.
6372 * dummy-frame.c, arm-tdep.c: Update comments.
6373 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6374 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6375 * gdbarch.h, gdbarch.c: Re-generate.
6377 * infcall.c (legacy_push_dummy_code): Delete function.
6378 (push_dummy_code): Delete call.
6380 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6381 * gdbarch.h, gdbarch.c: Re-generate.
6382 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6383 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6384 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6385 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6387 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6388 (struct frame_info): Delete opaque declaration.
6389 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6390 * frame.c (get_frame_type): Delete call.
6392 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6394 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6395 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6397 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6399 * alphanbsd-tdep.c: Include "gdb_string.h".
6400 * armnbsd-tdep.c: Update copyright year.
6401 Include "gdb_string.h".
6402 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6405 * delta68-nat.c: Remove file.
6406 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6407 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6408 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6409 (delta68-nat.o): Remove dependency.
6411 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6413 (m68k_gdbarch_init): Don't set
6414 deprecated_frameless_function_invocation.
6416 2004-05-07 Randolph Chung <tausq@debian.org>
6418 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6419 read_memory_nobpt for code reading when doing frame unwinding.
6420 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6422 2004-05-07 Randolph Chung <tausq@debian.org>
6424 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6425 instead of sp, handle sigaltstack case.
6426 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6427 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6428 signal handler and not that of the caller.
6429 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6430 hppa_linux_sigtramp_find_sigcontext.
6432 2004-05-07 Randolph Chung <tausq@debian.org>
6434 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6436 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6437 * hppa-linux-nat.c (fetch_register, store_register): Define.
6438 (fetch_inferior_registers, store_inferior_registers): Define.
6439 (supply_gregset): Add comment and clean up some unneeded code.
6440 (fill_gregset): Add comment and fix so that it saves registers in
6441 the right place in the gregset.
6442 (fill_fpregset): Fix buffer overrun problem.
6443 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6445 2004-05-07 Randolph Chung <tausq@debian.org>
6447 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6448 do common handling of the pcoqt register.
6449 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6450 to use helper function.
6451 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6452 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6453 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6454 generic fallback unwinder when all else fails.
6455 (hppa_gdbarch_init): Add fallback sniffer.
6456 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6457 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6458 to use helper function.
6460 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6462 * config/djgpp/fnchange.lst: Add translation rules for
6463 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6465 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6467 * frame.c (get_prev_frame_1): Work around GCC bug.
6468 * frame.h: Add comment about GCC bug.
6470 2004-05-07 Andrew Cagney <cagney@redhat.com>
6472 * observer.c: Include "commands.h" and "gdbcmd.h".
6473 (observer_debug, _initialize_observer): Add the
6474 command "set/show debug observer".
6475 * observer.sh: When observer debugging, log notify calls.
6476 * Makefile.in (observer.o): Update dependencies.
6478 2004-05-07 Jason Molenda (jmolenda@apple.com)
6480 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6482 2004-05-07 Jim Blandy <jimb@redhat.com>
6484 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6485 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6486 to recognize gpr regnums, instead of assuming that
6487 tdep->ppc_fp0_regnum marks the end of the general-purpose
6490 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6491 the given architecture has floating-point registers.
6493 2004-05-07 Andrew Cagney <cagney@redhat.com>
6495 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6497 * gdbarch.h, gdbarch.c: Re-generate.
6498 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6499 deprecated_use_generic_dummy_frames.
6501 2004-05-07 Brian Ford <ford@vss.fsi.com>
6503 * NEWS: Mention Cygwin DWARF 2 support.
6505 2004-05-07 Andrew Cagney <cagney@redhat.com>
6507 * objfiles.h (struct entry_info): Delete unused fields
6508 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6509 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6510 * mipsread.c (mipscoff_symfile_read): Update.
6511 * mdebugread.c (parse_partial_symbols): Update.
6512 * dwarfread.c (read_file_scope): Update.
6513 * dwarf2read.c (read_file_scope): Update.
6514 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6515 * coffread.c (complete_symtab): Update.
6517 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6519 * infcall.c (_initialize_infcall): Fix typo.
6521 2004-05-07 Andrew Cagney <cagney@redhat.com>
6523 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6524 * command.h (add_setshow_zinteger_cmd): Declare.
6526 2004-05-06 Randolph Chung <tausq@debian.org>
6528 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6529 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6530 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6531 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6532 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6533 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6534 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6536 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6537 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6538 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6539 (hppa64_hpux_frame_find_saved_regs_in_sig)
6540 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6541 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6542 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6543 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6544 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6545 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6546 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6547 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6548 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6549 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6550 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6551 (hppa32_register_type, hppa_cannot_store_register)
6552 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6553 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6554 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6555 * pa64solib.c (pa64_solib_have_load_event)
6556 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6557 (pa64_solib_unloaded_library_pathname): Likewise.
6558 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6559 (som_solib_library_pathname): Likewise.
6561 2004-05-05 Jim Ingham <jingham@apple.com>
6563 * breakpoint.c (create_breakpoints): Copy the ignore count and
6564 thread id over from the pended breakpoint to the actual
6567 2004-05-05 Andrew Cagney <cagney@redhat.com>
6569 * gdbarch.sh (PARM_BOUNDARY): Delete.
6570 gdbarch.h, gdbarch.c: Re-generate.
6571 * valops.c (PARM_BOUNDARY): Delete macro.
6572 (value_push): Delete PARM_BOUNDARY code.
6573 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6575 2004-05-04 Jim Blandy <jimb@redhat.com>
6577 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6578 Don't assume that the gprs, fprs, and UISA sprs are
6579 contiguous, start at register number zero, and end with fpscr.
6580 Instead, use the numbers from the tdep structure.
6582 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6583 should no longer be used in code specific to the RS6000 and its
6585 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6586 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6587 tdep->ppc_fp0_regnum.
6588 (ppc_supply_fpregset, ppc_collect_fpregset)
6589 (rs6000_push_dummy_call, rs6000_extract_return_value)
6590 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6591 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6593 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6594 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6596 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6597 bdm_ppc_store_registers): Same.
6598 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6599 (store_register, fill_fpregset): Same.
6600 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6601 (ppc_linux_supply_fpregset): Same.
6602 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6603 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6605 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6606 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6607 ppc64_sysv_abi_return_value): Same.
6608 * rs6000-nat.c (regmap, fetch_inferior_registers)
6609 (store_inferior_registers, fetch_core_registers): Same.
6611 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6613 * m68knbsd-nat.c: Remove file.
6614 * m68knbsd-tdep.c: Remove file.
6615 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6617 * configure.host: Add m68k-*-netbsdelf*.
6618 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6619 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6620 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6622 * config/m68k/nbsdelf.mh: New file.
6623 * config/m68k/nbsd.mt: New file.
6624 * config/m68k/nbsdaout.mt: Remove file.
6625 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6626 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6627 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6628 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6629 (use_struct_convention): Remove prototype.
6630 (USE_STRUCT_CONVENTION): Remove define.
6631 * config/m68k/xm-nbsd.h: Remove file.
6633 2004-05-04 Michael Snyder <msnyder@redhat.com>
6635 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6636 reg_struct_return method (as gcc usually does for cross targets).
6638 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6640 Committed by Andrew Cagney.
6641 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6642 alignment padding when accessing ucontext struct members.
6644 2004-05-04 Jim Blandy <jimb@redhat.com>
6646 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6647 'ppc_gplast_regnum' member.
6648 (ppc_num_gprs): New enum constant.
6649 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6650 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6651 * rs6000-nat.c (regmap, fetch_inferior_registers,
6652 store_inferior_registers): Same.
6653 * rs6000-tdep.c (e500_pseudo_register_read)
6654 (e500_pseudo_register_write): Same.
6655 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6657 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6658 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6659 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6660 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6662 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6664 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6665 * rs6000-nat.c (regmap, fetch_inferior_registers)
6666 (store_inferior_registers): Same.
6668 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6671 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6673 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6674 failure detected by recent versions of GCC.
6675 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6676 to be consistent with the usage in dwarf2_create_include_psymtab.
6678 2004-05-03 Michael Snyder <msnyder@redhat.com>
6680 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6681 (heuristic_proc_start): Whitespace cleanup.
6683 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6685 * sun3-nat.c: Remove file.
6686 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6688 (ALLDEPFILES): Remove sun3-nat.c.
6689 (sun3-nat.o): Remove dependencies.
6691 * i386-interix-nat.c, i386-interix-tdep.c,
6692 config/i386/nm-interix.h, config/i386/interix.mh,
6693 config/i386/interix.mt: Remove files.
6694 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6697 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6699 * m68k-tdep.h (struct gdbarch_tdep): Add member
6700 struct_value_regnum.
6701 (m68k_svr4_init_abi): New prototype.
6702 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6703 different calling conventions.
6704 (m68k_extract_return_value): Remove code dealing with single-field
6706 (m68k_store_return_value): Remove code dealing with single-field
6707 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6708 (m68k_extract_struct_value_address): Remove function.
6709 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6710 (m68k_reg_struct_return_p, m68k_return_value)
6711 (m68k_svr4_return_value): New functions.
6712 (m68k_use_struct_convention): Remove function.
6713 (m68k_push_dummy_call): Use new struct_value_regnum member of
6714 `struct gdbarch_tdep' instead of hardcoded register number to
6716 (m68k_svr4_init_abi): New function.
6717 (m68k_gdbarch_init): Don't set extract_return_value,
6718 store_return_values, deprecated_extract_struct_value_address and
6719 use_struct_convention. Set return_value instead. Initialize new
6720 struct_value_regnum member of `struct gdbarch_tdep'.
6721 * m68klinux-tdep.c: Update copyright year.
6722 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6723 (m68k_linux_extract_struct_value_address): Remove function.
6724 (m68k_linux_init_abi): Don't set extract_return_value,
6725 store_return_values, deprecated_extract_struct_value_address and
6726 use_struct_convention. Call m68k_svr4_init_abi but override the
6727 new struct_value_regnum member of `struct gdbarch_tdep'.
6728 * Makefile.in (m68k-tdep.o): Update dependencies.
6730 2004-05-03 J. Brobecker <brobecker@gnat.com>
6732 * dwarf2read.c (line_header): Add new included_p field in
6734 (partial_die_info): New field has_stmt_list. New field line_offset.
6735 (dwarf2_create_include_psymtab): New function.
6736 (dwarf2_build_include_psymtabs): New function.
6737 (add_file_name): Add forward declaration. Initialize new field.
6738 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6739 to be able to determine the list of files included by the
6740 given unit, and build their associated psymtabs.
6741 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6743 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6744 (read_file_scope): Update call to dwarf_decode_lines.
6745 (read_partial_die): Handle DW_AT_stmt_list attributes.
6747 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6750 * configure.in: Revert special case for osf5.*.
6751 * configure: Regenerate.
6753 2004-05-02 Jim Blandy <jimb@redhat.com>
6755 Move the symbol-file-from-memory functions into their own file.
6756 * symfile-mem.c, symfile-mem.h: New files.
6757 * symfile.c (symbol_file_add_from_bfd): New function.
6758 (symbol_file_add): Call symbol_file_add_from_bfd.
6759 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6760 Moved to symfile-mem.c.
6761 (_initialize_symfile): Move definition of
6762 add-symbol-file-from-memory command to symfile-mem.c.
6763 * symfile.h (symbol_file_add_from_bfd): New declaration.
6764 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6765 * config/powerpc/linux.mt (TDEPFILES): Same.
6766 * Makefile.in (SFILES): Add symfile-mem.c.
6767 (symfile_mem_h): New variable.
6768 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6769 (symfile-mem.o): New rule.
6771 2004-05-01 Andrew Cagney <cagney@redhat.com>
6773 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6774 frame_find_by_id instead of frame_relative_level.
6775 (do_enable_breakpoint): Ditto.
6776 * thread.c: Update copyright.
6777 (info_threads_command): Ditto, simplify.
6779 * frame.c (deprecated_generic_get_saved_register): Delete
6780 function, moved to "xstormy16-tdep.c".
6781 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6782 deprecated_generic_get_saved_register from "frame.c".
6783 (xstormy16_frame_saved_register): Call
6784 xstormy16_get_saved_register.
6785 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6787 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6788 * frame.h (deprecated_generic_get_saved_register): Delete.
6790 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6792 * dwarfread.c: Update documentation on the state of dwarf-1.
6794 2004-05-01 Andrew Cagney <cagney@redhat.com>
6796 * stack.c (select_frame_command): Delete call to
6797 frame_relative_level.
6798 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6800 (frame_info): Do not print FRAMELESS.
6801 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6802 (catch_info): Delete #if0 code.
6804 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6805 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6806 of frame_relative_level.
6807 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6809 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6810 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6811 frame_relative_level.
6813 * frame.h (deprecated_set_frame_type): Delete declaration.
6814 * frame.c (deprecated_set_frame_type): Delete function, update
6817 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6818 * gdbarch.h, gdbarch.c: Re-generate.
6819 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6820 (shnbsd_pc_in_sigtramp): Delete.
6821 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6823 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6825 * frame.h: Update comments.
6826 * ppc-linux-tdep.c: Update comments.
6827 * breakpoint.c (bpstat_what): Update comments.
6829 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6830 m68klinux-tdep.o's dependencies, were previously added to
6833 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6834 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6835 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6836 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6837 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6839 * Makefile.in (m68klinux-nat.o): Update dependencies.
6840 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6841 (m68k_linux_sigtramp_frame_cache)
6842 (m68k_linux_sigtramp_frame_this_id)
6843 (m68k_linux_sigtramp_frame_prev_register)
6844 (m68k_linux_sigtramp_frame_unwind)
6845 (m68k_linux_sigtramp_frame_sniffer)
6846 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6847 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6848 names, use trad-frame.h.
6849 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6850 (struct m68k_sigtramp_info): Delete.
6851 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6852 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6853 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6854 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6857 * infrun.c (check_sigtramp2): Delete check for
6858 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6860 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6862 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6864 2004-05-01 Andrew Cagney <cagney@redhat.com>
6866 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6867 (frv_linux_sigtramp_frame_cache)
6868 (frv_linux_sigtramp_frame_this_id)
6869 (frv_linux_sigtramp_frame_prev_register)
6870 (frv_linux_sigtramp_frame_unwind)
6871 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6872 include "linux" in function and variable names, directly call
6873 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6874 the latest trad-frame code.
6875 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6876 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6877 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6878 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6879 * frv-tdep.c (frv_sigtramp_frame_cache)
6880 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6881 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6883 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6884 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6885 (frv_set_sigcontext_reg_addr): Delete function.
6887 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6888 (DEPRECATED_SIGTRAMP_END): Delete.
6889 * gdbarch.h, gdbarch.c: Re-generate.
6890 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6891 * config/vax/tm-vaxbsd.h: Update copyright.
6892 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6893 (DEPRECATED_IN_SIGTRAMP): Define.
6894 * config/m68k/tm-nbsd.h: Update copyright.
6895 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6896 (DEPRECATED_IN_SIGTRAMP): Define.
6898 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6900 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6901 encondings. Fixes PR gdb/1628.
6903 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6904 DW_CFA_restore state without a matching DW_CFA_remember_state
6905 instead of aborting. Fixes PR backtrace/1589.
6907 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6909 * MAINTAINERS: Add self as AIX maintainer.
6910 Update my e-mail address in write-after-approval section.
6912 2004-04-30 Andrew Cagney <cagney@redhat.com>
6914 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6915 (legacy_get_prev_frame): Ditto.
6917 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6918 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6919 * mipsread.c (sigtramp_address): Delete extern variable.
6920 (mipscoff_new_init): Delete reference.
6921 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6922 (fixup_sigtramp): Delete function.
6923 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6924 (fixup_sigtramp): Delete declarations.
6926 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6927 deprecated_pc_in_sigtramp.
6928 (ppcnbsd_pc_in_sigtramp): Delete function.
6930 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6932 * config/m68k/nm-nbsd.h: Tweak comments.
6933 * config/m68k/nm-nbsdaout.h: Likewise.
6935 2004-04-30 Andrew Cagney <cagney@redhat.com>
6937 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6938 legacy_pc_in_sigtramp.
6939 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6941 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6943 Add OpenBSD/m68k support.
6944 * NEWS (New native configurations): Mention OpenBSD/m68k.
6945 * m68kbsd-tdep.c: New file.
6946 * m68kbsd-nat.c: New file.
6947 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6948 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6949 * configure.host: Add m68k-*-openbsd.
6950 * configure.tgt: Add m68k-*-openbsd.
6951 * config/m68k/tm-obsd.h: New file.
6952 * config/m68k/obsd.mt: New file.
6953 * config/m68k/obsd.mh: New file.
6954 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6957 2004-04-30 Andrew Cagney <cagney@redhat.com>
6959 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6960 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6962 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6964 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6965 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6967 2004-04-30 Brian Ford <ford@vss.fsi.com>
6969 Revert 2004-04-16 change.
6970 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6971 (i386_coff_init_abi): Remove.
6972 * i386-tdep.h (i386_coff_init_abi): Remove.
6973 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6975 2004-04-30 Andrew Cagney <cagney@redhat.com>
6977 * blockframe.c (find_pc_partial_function): Delete use of
6978 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6979 DEPRECATED_SIGTRAMP_END.
6981 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6982 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6983 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6984 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6985 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6987 * defs.h (deprecated_inside_entry_file): Delete declaration.
6988 * blockframe.c (deprecated_inside_entry_file): Delete function.
6989 (legacy_frame_chain_valid): Delete call.
6990 * sh64-tdep.c (sh64_frame_chain): Delete call.
6991 * objfiles.h: Update comments.
6992 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6994 * frame.c (get_prev_frame): Delete call, update comments.
6996 2004-04-30 Brian Ford <ford@vss.fsi.com>
6998 * MAINTAINERS (Write After Approval): Add myself.
7000 2004-04-30 Andrew Cagney <cagney@redhat.com>
7002 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7003 * gdbarch.h, gdbarch.c: Re-generate.
7004 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7007 2004-04-30 Andrew Cagney <cagney@redhat.com>
7009 * gdb-events.sh (selected_thread_changed)
7010 (selected_frame_level_changed, target_changed): Delete.
7011 * gdb-events.h, gdb-events.c: Re-generate.
7012 * valops.c (value_assign): Update.
7013 * stack.c (select_frame_command, up_silently_base)
7014 (down_silently_base): Update.
7016 2004-04-29 Andrew Cagney <cagney@redhat.com>
7018 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7019 registers correctly.
7020 (print_gp_register_row, mips32_heuristic_proc_desc)
7021 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7022 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7023 references to mips_isa_regsize.
7025 2004-04-29 Andrew Cagney <cagney@redhat.com>
7027 * mips-tdep.c (struct gdbarch_tdep): Delete
7028 mips_fp_register_double.
7029 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7031 (mips_gdbarch_init): Do not set mips_fp_register_double.
7032 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7034 2004-04-29 Joel Brobecker <brobecker@gnat.com>
7036 Committed by Andrew Cagney.
7037 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7040 2004-04-29 Andrew Cagney <cagney@redhat.com>
7042 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7043 gdbarch, use mips_abi, update callers.
7044 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7045 mips_abi_regsize, update callers.
7046 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7047 mips_default_abi_regsize.
7048 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7049 mips_default_abi_regsize.
7051 2004-04-29 Andrew Cagney <cagney@redhat.com>
7053 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7054 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7055 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7056 mips_default_abi_regsize.
7057 (mips_isa_regsize): Rename mips_regisze.
7058 * mipsnbsd-tdep.c: Update.
7059 * mips-linux-tdep.c: Update.
7060 * irix5-nat.c: Update.
7061 * mips-tdep.h (mips_isa_regsize): Update.
7063 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7064 Delete all disabled code.
7065 * gdb-events.h, gdb-events.c: Re-generate.
7067 2004-04-19 Jerome Guitton <guitton@gnat.com>
7068 Mark Kettenis <kettenis@gnu.org>
7070 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7071 the function begins with a branch instruction.
7073 2004-04-29 Mark Kettenis <kettenis@gnu.org>
7075 * i386-tdep.c: Fix spelling mistakes.
7077 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7078 Andrew Cagney <cagney@redhat.com>
7080 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7082 * acconfig.h: Provide default _KMEMUSER value.
7083 * config.in, configure: Re-generate.
7084 * NEWS: Mention fix.
7086 2004-04-24 Randolph Chung <tausq@debian.org>
7088 * configure.host (hppa*-*-linux*): New target.
7089 * configure.tgt (hppa*-*-linux*): Likewise.
7090 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7091 gdbarch_init_osabi() call earlier so that osabi-specific frame
7092 unwinders can be registered first.
7093 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7095 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7096 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7097 * config/pa/linux.mh: New file.
7098 * config/pa/linux.mt: New file.
7099 * config/pa/nm-linux.h: New file.
7100 * config/pa/xm-linux.h: New file.
7101 * hppa-linux-nat.c: New file.
7102 * hppa-linux-tdep.c: New file.
7104 2004-04-28 Randolph Chung <tausq@debian.org>
7106 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7108 (hppa32_push_dummy_call): Fix small struct and floating point argument
7109 passing, and make sure the stack frame is properly aligned.
7111 2004-04-28 Andrew Cagney <cagney@redhat.com>
7113 * stack.c (print_stack_frame): Fix description.
7115 * NEWS: Mention gdb/gdbserver/configure execute permission
7116 changed. PR server/519.
7118 2004-04-28 Andrew Cagney <cagney@redhat.com>
7120 * stack.c (print_stack_frame_stub): Delete declaration.
7121 (struct print_stack_frame_args, print_stack_frame)
7122 (print_frame_info, print_frame): Replace "source" with print what.
7123 Replace "print" with "print_level". Replace "args" with
7125 * frame.h (show_and_print_stack_frame, print_stack_frame)
7126 (print_frame_info): Update declarations.
7127 * stack.c (select_and_print_frame, frame_command)
7128 (current_frame_command, up_command, down_command): Update calls -
7129 use get_selected_frame, pass "enum print_what" for source, do not
7130 call frame_relative_level.
7131 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7132 * remote-rdp.c (remote_rdp_open): Ditto.
7133 * remote-mips.c (common_open): Ditto.
7134 * remote-e7000.c (e7000_start_remote): Ditto.
7135 * ocd.c (ocd_start_remote): Ditto.
7136 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7137 * infrun.c (normal_stop): Ditto.
7138 * inflow.c (kill_command): Ditto.
7139 * infcmd.c (finish_command): Ditto.
7140 * corelow.c (core_open): Ditto.
7141 * tracepoint.c (finish_tfind_command): Ditto.
7142 * thread.c (info_threads_command, info_threads_command)
7143 (restore_current_thread, do_captured_thread_select): Ditto.
7144 * ada-tasks.c (task_command): Ditto.
7146 2004-04-26 Orjan Friberg <orjanf@axis.com>
7148 * frame.c: Include "observer.h".
7149 (frame_observer_target_changed): New function.
7150 (_initialize_frame): Attach target_changed observer.
7151 * regcache.c: Include "observer.h".
7152 (regcache_observer_target_changed): New function.
7153 (_initialize_regcache): Attach target_changed observer.
7154 * valops.c: Include "observer.h".
7155 (value_assign): Notify target_changed event when modifying register.
7156 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7158 2004-04-26 Orjan Friberg <orjanf@axis.com>
7160 From Paul Koning <pkoning@equallogic.com>:
7161 * breakpoint.c (free_valchain): New function.
7162 (insert_bp_location, delete_breakpoint): Use free_valchain.
7163 (remove_breakpoint): Do not remove the valchain.
7164 (bpstat_stop_status): If not stopped by watchpoint, skip
7165 watchpoints when generating stop status list.
7166 * infrun.c (handle_inferior_event): Make
7167 stepped_after_stopped_by_watchpoint a global variable.
7168 * remote.c (remote_stopped_data_address): Return watch data
7169 address rather than zero if stepped_after_stopped_by_watchpoint is
7172 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7175 * configure.in: Check for curses after termcap.
7176 On osf5.*, do not check for ncurses.
7177 * configure: Regenerate.
7179 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7181 * ppcobsd-nat.c: Include "ppc-tdep.h".
7182 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7184 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7185 Fixes PR tdep/1623 and PR tdep/1624.
7187 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7189 * xmodem.h, xmodem.c: Remove files.
7190 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7192 2004-04-23 Randolph Chung <tausq@debian.org>
7194 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7195 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7196 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7197 for handling stackless frames.
7198 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7200 2004-04-23 Randolph Chung <tausq@debian.org>
7202 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7203 starts at a pc before the frame is created.
7205 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7207 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7209 2004-04-23 Jerome Guitton <guitton@gnat.com>
7211 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7212 use convert_typed_floating to get the appropriate format.
7214 2004-04-22 Randolph Chung <tausq@debian.org>
7216 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7217 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7218 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7219 (hppa_sign_extend): Add prototype.
7220 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7221 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7222 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7223 hppa targets will also use these functions.
7224 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7225 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7226 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7227 (hppa_gdbarch_init): Remove gdbarch setting of
7228 skip_trampoline_code, in_solib_call_trampoline and
7229 in_solib_return_trampoline.
7230 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7231 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7232 hppa_in_solib_call_trampoline.
7233 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7234 Moved from hppa-tdep.c.
7235 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7236 in_solib_call_trampoline and in_solib_return_trampoline.
7238 2004-04-22 Randolph Chung <tausq@debian.org>
7240 * hppa-tdep.c (hppa_debug): New variable.
7241 (find_unwind_entry, hppa_frame_cache): Add debug output.
7242 (_initialize_hppa_tdep): Add command to set debug flag.
7244 2004-04-22 Andrew Cagney <cagney@redhat.com>
7246 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7248 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7249 signal trampoline unwinder.
7250 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7252 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7254 Add OpenBSD/powerpc support.
7255 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7256 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7257 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7258 (ppc_collect_fpregset): New prototypes.
7259 * ppcobsd-nat.c: New file.
7260 * ppcobsd-tdep.c: New file.
7261 * ppcobsd-tdep.h: New file.
7262 * rs6000-tdep.c: Include "regset.h".
7263 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7264 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7266 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7267 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7268 (rs6000-tdep.o): Update dependencies.
7269 * configure.host: Add powerpc-*-openbsd.
7270 * configure.tgt: Add powerpc-*-openbsd.
7271 * config/powerpc/obsd.mh: New file.
7272 * config/powerpc/nm-obsd.h: New file.
7273 * config/powerpc/obsd.mt: New file.
7275 2004-04-22 Andrew Cagney <cagney@redhat.com>
7277 * frame.h (show_frame_info): Delete declaration.
7279 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7280 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7281 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7282 * frv-tdep.c (frv_frame_this_id): Ditto.
7283 * avr-tdep.c (avr_frame_this_id): Ditto.
7285 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7287 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7289 2004-04-22 Jim Blandy <jimb@redhat.com>
7291 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7292 register number zero.
7294 2004-04-21 Michael Snyder <msnyder@redhat.com>
7296 * mips-tdep.c (heuristic_proc_start):
7297 Warning() already prefixes "Warning: ".
7299 2004-04-21 Andrew Cagney <cagney@redhat.com>
7301 * annotate.h (deprecated_annotate_starting_hook)
7302 (deprecated_annotate_stopped_hook)
7303 (deprecated_annotate_exited_hook)
7304 (deprecated_annotate_signal_hook)
7305 (deprecated_annotate_signalled_hook): Deprecate.
7306 * tracepoint.h (deprecated_create_tracepoint_hook)
7307 (deprecated_delete_tracepoint_hook)
7308 (deprecated_modify_tracepoint_hook)
7309 (deprecated_trace_find_hook)
7310 (deprecated_trace_start_stop_hook): Deprecate.
7311 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7312 * remote.h (deprecated_target_resume_hook)
7313 (deprecated_target_wait_loop_hook): Deprecate.
7314 * gdbcore.h (deprecated_exec_file_display_hook)
7315 (deprecated_file_changed_hook): Deprecate.
7316 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7317 * defs.h (deprecated_modify_breakpoint_hook)
7318 (deprecated_command_loop_hook, deprecated_show_load_progress)
7319 (deprecated_print_frame_info_listing_hook)
7320 (deprecated_query_hook, deprecated_warning_hook)
7321 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7322 (deprecated_delete_breakpoint_hook)
7323 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7324 (deprecated_readline_begin_hook, deprecated_readline_hook)
7325 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7326 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7327 (deprecated_context_hook, deprecated_target_wait_hook)
7328 (deprecated_attach_hook, deprecated_detach_hook)
7329 (deprecated_call_command_hook, deprecated_set_hook)
7330 (deprecated_error_hook, deprecated_error_begin_hook)
7331 (deprecated_ui_load_progress_hook): Deprecate.
7332 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7333 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7334 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7335 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7336 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7337 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7338 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7339 * annotate.c, aix-thread.c: Update.
7341 2004-04-21 Andrew Cagney <cagney@redhat.com>
7343 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7344 * vaxnbsd-tdep.c: Include "gdb_string.h".
7346 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7347 (add_symbol_file_from_memory_command): #if 0 function body, call
7350 2004-04-21 Andrew Cagney <cagney@redhat.com>
7352 * gdbcore.h: Update copyright.
7353 (deprecated_add_core_fns): Rename add_core_fns.
7354 * win32-nat.c (_initialize_core_win32): Update.
7355 * sun3-nat.c (_initialize_core_sun3): Update.
7356 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7357 * rs6000-nat.c (_initialize_core_rs6000): Update.
7358 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7359 * nto-tdep.c (_initialize_nto_tdep): Update.
7360 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7361 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7362 * mips-nat.c (_initialize_core_mips): Update.
7363 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7364 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7365 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7366 * lynx-nat.c (_initialize_core_lynx): Update.
7367 * irix5-nat.c (_initialize_core_irix5): Update.
7368 * i386-interix-nat.c (_initialize_core_interix): Update.
7369 * cris-tdep.c (_initialize_cris_tdep): Update.
7370 * corelow.c (deprecated_add_core_fns): Update.
7371 * core-regset.c (_initialize_core_regset): Update.
7372 * core-aout.c (_initialize_core_aout): Update.
7373 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7374 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7375 * alpha-nat.c (_initialize_core_alpha): Update.
7377 2004-04-21 Jim Blandy <jimb@redhat.com>
7379 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7381 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7383 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7385 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7386 (read_attribute_value): Update calls to dwarf_alloc_block.
7387 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7389 (psymtab_to_symtab_1): Likewise. Clean up using
7390 free_stack_comp_unit.
7391 (add_to_cu_func_list): Use the comp_unit_obstack.
7393 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7395 * dwarf2read.c (dwarf2_flag_true_p): New function.
7396 (die_is_declaration): Use the function above. Add some comments.
7398 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7400 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7401 architecture when registering sparcnbsd_core_osabi_sniffer.
7404 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7406 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7409 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7410 * i386-tdep.c: Correct register numbering scheme comments
7412 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7413 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7414 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7415 (i386_gdb_arch_init): Likewise.
7417 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7418 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7421 * m68k-tdep.h: Tweak comments.
7422 * m68k-tdep.c: Tweak comment.
7424 2004-04-17 Randolph Chung <tausq@debian.org>
7426 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7427 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7428 (hppa_hpux_som_init_abi): Set is_elf to 0.
7429 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7430 * hppa-tdep.c (low_text_segment_address): Remove global.
7431 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7432 section offset to calculate segment address.
7433 (internalize_unwinds): Define low_text_segment_address as local and
7434 pass to record_text_segment_lowaddr for ELF targets.
7435 (hppa_gdbarch_init): Zero fill tdep structure.
7436 (hppa_dump_tdep): Print tdep structure.
7437 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7439 2004-04-17 Randolph Chung <tausq@debian.org>
7441 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7442 (hppa_gdbarch_init): Set pseudo_register_read.
7443 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7444 * regcache.c (supply_register): Remove check for
7445 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7447 2004-04-17 Randolph Chung <tausq@debian.org>
7449 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7450 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7451 (hpread_adjust_stack_address): Move to hpread.c.
7452 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7453 obj_private_struct): Move from tm-hppa.h.
7454 * hpread.c (hppa-tdep.h): Include.
7455 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7456 (hpread_read_function_type, hpread_read_doc_function_type)
7457 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7459 * pa64solib.c (hppa-tdep.h): Include.
7460 * somsolib.c (hppa-tdep.h): Include.
7461 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7462 inferior_status): Remove unused forward declarations.
7463 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7464 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7465 obj_private_struct): Move to hppa-tdep.h.
7466 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7468 2004-04-17 Randolph Chung <tausq@debian.org>
7470 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7471 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7472 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7473 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7474 Remove forward declaration and make static.
7475 (hppa_reg_struct_has_addr): Remove.
7477 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7479 * observer.sh: Move comments in sed command to first column.
7481 2004-04-16 Jason Molenda (jmolenda@apple.com)
7483 * frame.c: Minor typeo corrections in comments.
7485 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7487 * observer.c (observer_test_first_notification_function): Update
7489 (observer_test_second_notification_function): Likewise.
7490 (observer_test_third_notification_function): Likewise.
7492 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7494 From Brian Ford <ford@vss.fsi.com>:
7495 * i386-tdep.c (i386_coff_init_abi): New function.
7496 * i386-tdep.h (i386_coff_init_abi): New prototype.
7497 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7498 register number translation functions for DWARF and DWARF 2.
7500 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7502 * dwarf2read.c: Back out my previous change, it was incorrect.
7504 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7506 * dwarf2read.c: Include "hashtab.h".
7507 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7509 (struct partial_die_info): Add comments. Use bitfields to reduce
7510 memory footprint. Add scope, scope_set, has_specification,
7511 spec_offset, die_parent, die_child, and die_sibling.
7512 (peek_die_abbrev): Add prototype.
7513 (partial_read_comp_unit_head): New function, broken out from
7514 dwarf2_build_psymtabs_hard.
7515 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7516 Use partial_read_comp_unit_head. Initialize the CU and
7517 comp_unit_obstack. Update calls to read_partial_die and
7518 scan_partial_symbols. Use free_stack_comp_unit and
7520 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7521 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7522 Update calls to helper functions. Remove NAMESPACE argument.
7524 (partial_die_parent_scope, partial_die_full_name): New functions.
7525 (add_partial_symbol): Remove namespace argument. Update call to
7526 pdi_needs_namespace. Use partial_die_full_name. Handle
7527 DW_TAG_namespace. Check has_namespace_info flag.
7528 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7529 tag. Handle namespaces.
7530 (add_partial_namespace, add_partial_enumeration): Simplify.
7531 (guess_structure_name): New function, derived from
7532 add_partial_structure.
7533 (add_partial_structure): Remove.
7534 (determine_class_name): Update comment.
7535 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7536 (is_type_tag_for_partial, load_partial_dies): New functions.
7537 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7538 Record specifications instead of following them immediately.
7539 (find_partial_die_in_comp_unit, find_partial_die)
7540 (fixup_partial_die, free_stack_comp_unit)
7541 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7542 (partial_die_hash, partial_die_eq): New functions.
7543 * Makefile.in (hashtab_h): Define.
7544 (dwarf2read.o): Update dependencies.
7545 (observer_inc, observer_h): Move to the correct section.
7547 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7549 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7550 (die_is_declaration): Use the function above. Add comment.
7552 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7554 * dwarf2read.c (read_structure_scope): Identify stub types
7555 using die_is_declaration() only.
7557 2004-04-15 Roland McGrath <roland@redhat.com>
7559 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7560 argument instead of NAME.
7561 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7562 in call to symbol_file_add_with_addrs_or_offsets.
7563 (build_addr_info): New function, helper for ...
7564 (symbol_file_add_from_memory): New function.
7565 (add_symbol_file_from_memory_command): New function using that.
7566 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7567 (pre_add_symbol_hook): Add const to argument type.
7568 * symfile.h (symbol_file_add_from_memory): Declare it.
7570 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7572 * NEWS (New native configurations): Mention OpenBSD/vax.
7573 * configure.host: Add vax-*-openbsd*.
7574 * config/vax/obsd.mh: New file.
7575 * config/vax/nm-obsd.h: New file.
7577 * vax-tdep.c: Include "regset.h".
7578 (vax_supply_gregset): New function.
7579 (vax_gregset): New variable.
7580 (vax_regset_from_core_section): New function.
7581 (vax_gdbarch_init): Set regset_from_core_section.
7582 * Makefile.in (vax-tdep.o): Update dependencies.
7584 2004-04-15 Andrew Cagney <cagney@redhat.com>
7586 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7587 (observer_normal_stop_notification_stub)
7588 (observer_attach_normal_stop, observer_detach_normal_stop):
7589 Delete, replaced by #include "observer.inc".
7590 * infrun.c (normal_stop): Pass "stop_bpstat" to
7591 observer_notify_normal_stop.
7592 * Makefile.in (observer_inc): Define.
7593 (observer.o): Update dependencies.
7594 (observer.h, observer.inc): New rules.
7595 * observer.h: Delete file.
7596 * observer.sh: New file.
7598 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7600 * vax-tdep.c (vax_frame_cache): Fix typo.
7602 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7604 * NEWS (New native configurations): Mention NetBSD/vax.
7605 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7606 * config/vax/nbsdelf.mh: New file.
7607 * config/vax/nbsdaout.mh: New file.
7608 * config/vax/nm-nbsd.h: New file.
7609 * config/vax/nm-nbsdaout.h: New file.
7611 * vaxnbsd-tdep.c: New file.
7612 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7613 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7614 * config/vax/nbsd.mt: New file.
7615 * config/vax/tm-nbsd.h: New file.
7617 * Makefile.in (vaxbsd-nat.o): New dependency.
7619 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7620 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7621 struct_addr arguments. Don't push return value address.
7622 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7623 arguments to vax_store_arguments. Store return value address in
7625 (vax_store_struct_return, vax_extract_return_value)
7626 (vax_store_return_value): Remove functions.
7627 (vax_return_value): New function.
7628 (vax_gdbarch_init): Set return value. Don't set
7629 deprecated_store_struct_return, deprecated_extract_struct_return
7630 and deprecated_store_return_value.
7632 2004-04-14 Andreas Schwab <schwab@suse.de>
7634 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7636 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7638 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7640 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7641 (vax_unwind_dummy_id): New functions.
7642 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7643 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7645 (vax_fix_call_dummy): Remove function.
7646 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7647 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7648 call_dummy_location, deprecated_call_dummy_words,
7649 deprecated_sizeof_call_dummy_words,
7650 deprecated_call_dummy_breakpoint_offset,
7651 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7652 and deprecated_dummy_write_sp.
7654 2004-04-13 David Carlton <carlton@kealia.com>
7656 * MAINTAINERS: Move myself to "paper trail" section.
7658 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7660 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7662 (vax_frame_init_saved_regs): Remove function.
7663 (vax_sigtramp_saved_pc): Remove function.
7664 (vax_frame_saved_pc): Remove function.
7665 (vax_frame_args_address): Remove function.
7666 (vax_frame_num_args): Rewrite.
7667 (vax_frame_chain): Remove function.
7668 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7670 (vax_pop_frame): Likewise.
7671 (vax_saved_pc_after_call): Remove function.
7672 (struct vax_frame_cache): New structure.
7673 (vax_frame_cache): New function.
7674 (vax_frame_this_id): New function.
7675 (vax_frame_prev_register): New function.
7676 (vax_frame_unwind): New variable.
7677 (vax_frame_sniffer): New function.
7678 (vax_frame_base_address): New function.
7679 (vax_frame_args_address): New function.
7680 (vax_frame_base): New variable.
7681 (vax_unwind_pc): New function.
7682 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7683 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7684 deprecated_frame_chain, deprecated_frame_saved_pc,
7685 deprecated_frame_args_address and
7686 deprecated_frame_init_saved_regs.
7687 * Makefile.in (vax-tdep.o): Update dependencies.
7689 * vaxbsd-nat.c: New file.
7691 * vax-tdep.h: Update copyright year. Adjust comments.
7692 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7693 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7694 (vax_regnum): New enum. Replacing...
7695 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7696 (VAX_PS_REGNUM): ... these removed macros.
7697 * vax-tdep.c (vax_register_name): Remove prototype.
7698 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7699 (vax_register_byte, vax_register_raw_size,
7700 vax_register_virtual_size, vax_register_virtual_type): Remove
7702 (vax_register_type): New function.
7703 (vax_breakpoint_from_pc): Reorganize.
7704 (vax_gdbarch_init): Set register_type. Don't set
7705 deprecated_register_size, deprecated_register_bytes,
7706 deprecated_register_byte, deprecated_register_raw_size,
7707 deprecated_max_register_raw_size,
7708 deprecated_register_virtual_size,
7709 deprecated_max_register_virtual_size and
7710 deprecated_register_virtual_type. Add comment on stack direction.
7712 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7714 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7715 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7716 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7718 2004-04-10 Randolph Chung <tausq@debian.org>
7720 * MAINTAINERS (write after approval): Add myself.
7722 2004-04-07 Randolph Chung <tausq@debian.org>
7724 * hppa-tdep.c (hppa_inner_than): Remove.
7725 (is_pa_2): Remove unused static variable.
7726 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7728 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7730 * language.h (language_defn): Add new la_post_parser field.
7731 * parser-defs.h (null_post_parser): New declaration (default for
7734 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7735 insert call to that function.
7736 (parse_exp_in_context): New function, including code formerly in
7737 parse_exp_1. Calls language-dependent post-parser after
7739 (parse_expression_in_context): New exported function.
7740 (null_post_parser): New definition.
7741 * expression.h (parse_expression_in_context): Add declaration.
7743 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7744 * c-lang.c (c_language_defn): Ditto.
7745 (cplus_language_defn): Ditto.
7746 (asm_language_defn): Ditto.
7747 (minimal_language_defn): Ditto.
7748 * f-lang.c (f_language_defn): Ditto.
7749 * jv-lang.c (java_language_defn): Ditto.
7750 * language.c (unknown_language_defn): Ditto.
7751 (auto_language_defn): Ditto.
7752 (local_language_defn): Ditto.
7753 * m2-lang.c (m2_language_defn): Ditto.
7754 * scm-lang.c (scm_language_defn): Ditto.
7755 * obj-lang.c (objc_language_defn): Ditto.
7757 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7759 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7760 (amd64nbsd_mcontext_addr): New function.
7761 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7762 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7763 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7765 * corelow.c (core_xfer_partial): Fix coding standards violation.
7766 Add support for TARGET_OBJECT_WCOOKIE.
7768 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7769 deprecated_pc_in_sigtramp.
7770 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7771 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7772 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7773 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7774 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7775 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7776 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7778 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7779 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7782 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7783 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7784 (amd64_collect_fxsave): Likewise.
7786 * i386-sol2-tdep.c: Include "gdb_string.h".
7787 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7789 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7791 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7793 * i386-sol2-tdep.c: Include "solib-svr4.h".
7794 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7795 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7796 * config/i386/tm-i386sol2.h: Include :solib.h".
7797 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7798 solib-svr4.o and solib-legacy.o.
7799 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7802 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7804 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7805 whether a register is supplied by PTRACE_GETFPREGS.
7806 (store_inferior_registers): Likewise.
7807 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7808 whether a register is supplied by PT_GETFPREGS.
7809 (store_inferior_registers): Likewise.
7811 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7812 * config/i386/linux64.mt (TDEPFILES): Likewise.
7814 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7816 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7817 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7818 the program counter is in the range specified by `struct
7820 * amd64-linux-tdep.c: Include "symtab.h".
7821 (amd64_linux_pc_in_sigtramp): Remove function.
7822 (amd64_linux_sigtramp_p): New function.
7823 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7824 deprecated_pc_in_sigtramp.
7825 * amd64nbsd-tdep.c: Include "symtab.h".
7826 (amd64nbsd_sigtramp_p): New function.
7827 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7828 deprecated_pc_in_sigtramp.
7829 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7831 (amd64obsd_pc_in_sigtramp): Remove function.
7832 (amd64obsd_sigtramp_p): New function.
7833 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7834 deprecated_pc_in_sigtramp.
7835 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7836 (i386bsd_pc_ins_sigtramp): Remove prototype.
7837 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7838 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7839 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7840 the program counter is in the range specified by `struct
7842 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7843 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7844 (i386_go32_pc_in_sigtramp): Remove function.
7845 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7846 Initialize TDEP->sigtramp_p.
7847 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7848 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7849 deprecated_pc_in_sigtramp.
7850 * i386-linux-tdep.c: Adjust comments.
7851 (i386_linux_pc_in_sigtramp): Remove function.
7852 (i386_linux_sigtramp_p): New function.
7853 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7854 deprecated_pc_in_sigtramp.
7855 * i386-nto-tdep.c: Update copyright year.
7856 (i386nto_pc_in_sigtramp): Remove function.
7857 (i386nto_sigtramp_p): New function.
7858 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7860 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7861 deprecated_pc_in_sigtramp.
7862 * i386-sol2-tdep.c: Update copyright year.
7863 (i386_sol2_pc_in_sigtramp): Remove function.
7864 (i386_sol2_sigtramp_p): New function.
7865 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7866 deprecated_pc_in_sigtramp.
7867 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7868 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7869 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7870 deprecated_sigtramp_start and deprecated_sigtramp_end.
7871 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7872 (i386nbsd_pc_in_sigtramp): Remove function.
7873 (i386nbsd_sigtramp_p): New function.
7874 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7875 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7876 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7877 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7878 (i386obsd_pc_in_sigtramp): Remove function.
7879 (i386obsd_sigtramp_p): New function.
7880 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7882 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7883 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7885 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7886 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7889 * config/i386/i386aout.mt: Remove file.
7891 * configure.tgt: Remove i[34567]86-*-go32*,
7892 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7893 and i[34567]86-*-isc*. Set gdb_target to i386 for
7894 i[34567]86-*-netware* and i[34567]86-*-*.
7895 * config/i386/i386.mt: New file.
7896 * config/i386/embed.mt: Remove file.
7897 * config/i386/go32.mt: Remove file.
7898 * config/i386/i386nw.mt: Remove file.
7899 * config/i386/i386v.mt: Remove file.
7900 * config/i386/tm-go32.h: Remove file.
7902 * tui/tui-hooks.c: Include "readline/readline.h" after
7903 "gdb_curses.h" instead of before.
7904 * tui/tui-io.c: Likewise.
7906 * tui/tui.c: Fix typo in comment.
7908 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7910 2004-04-08 Andrew Cagney <cagney@redhat.com>
7912 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7913 (deprecated_exception_support_initialized): Declare.
7914 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7915 (initialize_hp_cxx_exception_support)
7916 (child_enable_exception_callback): Update.
7917 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7918 (deprecated_exception_support_initialized): Rename
7919 deprecated_exception_catchpoints_are_fragile and
7920 deprecated_exception_support_initialized.
7921 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7923 * symtab.c (deprecated_hp_som_som_object_present): Rename
7924 hp_som_som_object_present.
7925 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7926 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7927 Update. Delete extern declaration.
7928 * valops.c (hp_som_som_object_present): Ditto.
7929 * parse.c (deprecated_hp_som_som_object_present)
7930 (parse_nested_classes_for_hpacc): Ditto.
7931 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7932 * hppa-hpux-tdep.c (hp_som_som_object_present)
7933 (initialize_hp_cxx_exception_support): Ditto.
7934 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7935 * cp-valprint.c (hp_som_som_object_present)
7936 (cp_print_class_method): Ditto.
7937 * c-typeprint.c (hp_som_som_object_present):
7938 (c_type_print_base): Ditto.
7939 * c-exp.y (hp_som_som_object_present): Ditto.
7941 2004-04-08 Andrew Cagney <cagney@redhat.com>
7943 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7944 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7945 (frame_unwind_find_by_frame): Re-implement the unwind code so
7946 that it can both prepend and append sniffers. Replace
7947 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7948 * tramp-frame.c (tramp_frame_append): Use
7949 frame_unwind_prepend_unwinder.
7950 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7951 frame_unwind_register_unwinder.
7952 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7954 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7955 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7956 (mips_linux_init_abi): Update.
7958 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7960 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7961 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7964 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7966 * ia64-tdep.c (elf.h): Don't include.
7967 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7969 2004-04-07 Jason Molenda (jmolenda@apple.com)
7971 * frame.h: Typeo corrections in comments.
7973 2004-04-07 Jim Blandy <jimb@redhat.com>
7975 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7978 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7980 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7981 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7982 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7983 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7985 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7987 * config/sparc/tm-sol2.h: Update copyright year. Include
7990 * sparc-sol2-tdep.c: Update copyright year. Include
7992 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7993 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7994 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7995 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7998 2004-04-06 Andrew Cagney <cagney@redhat.com>
8000 * infttrace.c: Include "infttrace.h".
8001 * infttrace.h: Include "target.h".
8002 * Makefile.in (infttrace_h): Update.
8003 (infttrace.o): Update.
8005 2004-04-06 Andrew Cagney <cagney@redhat.com>
8007 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8008 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8009 move extern declarations from here ...
8010 * infttrace.h: ... to here.
8011 * Makefile.in (hppah-nat.o): Update dependencies.
8013 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8014 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8015 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8016 (hppa_breakpoint_from_pc): Delete.
8018 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8020 2004-04-05 Andrew Cagney <cagney@redhat.com>
8022 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8023 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8026 2004-04-06 Randolph Chung <tausq@debian.org>
8028 Committed by Andrew Cagney (mechanical change).
8029 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8030 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8031 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8032 child_enable_exception_callback, current_ex_event,
8033 null_symtab_and_line, child_get_current_exception_event,
8034 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8035 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8036 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8037 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8038 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8039 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8040 Move hpux-specific definitions ...
8041 * hppa-hpux-tdep.c: ... to here.
8043 2004-04-05 Andrew Cagney <cagney@redhat.com>
8045 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8046 skip_prologue_using_sal.
8048 2004-04-05 Andrew Cagney <cagney@redhat.com>
8050 * config/i386/tm-i386.h: Delete file.
8051 * config/i386/tm-vxworks.h: Update copyright, do not include
8053 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8054 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8055 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8056 * config/i386/ncr3000.mt (TM_FILE): Delete.
8057 * config/i386/interix.mt (TM_FILE): Delete.
8058 * config/i386/i386v.mt (TM_FILE): Delete.
8059 * config/i386/i386nw.mt (TM_FILE): Delete.
8060 * config/i386/i386gnu.mt (TM_FILE): Delete.
8061 * config/i386/i386aout.mt (TM_FILE): Delete.
8062 * config/i386/embed.mt (TM_FILE): Delete.
8064 2004-04-05 Kevin Buettner <kevinb@redhat.com>
8066 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8067 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8068 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8069 (accg7_regnum): New constants.
8070 (last_spr_regnum, last_pseudo_regnum): Update.
8071 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8072 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8073 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8075 (frv_register_sim_regno): Update spr_map[].
8077 2004-04-04 Andrew Cagney <cagney@redhat.com>
8079 * config/mips/xm-riscos.h: Delete.
8080 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8081 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8082 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8083 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8084 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8085 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8086 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8087 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8088 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8089 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8090 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8091 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8092 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8093 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8094 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8095 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8096 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8097 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8098 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8099 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8100 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8101 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8102 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8103 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8104 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8105 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8107 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8108 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8109 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8110 * configure.host: Remove m680[01]0-sun-sunos3*,
8111 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8112 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8113 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8114 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8116 * NEWS: Mention removed systems.
8118 2004-04-04 Andrew Cagney <cagney@redhat.com>
8120 GDB 6.1 release created from 6.1 branch.
8122 2004-04-04 Andrew Cagney <cagney@redhat.com>
8124 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8125 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8126 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8128 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8129 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8130 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8132 2004-04-03 Jim Blandy <jimb@redhat.com>
8134 * MAINTAINERS: Chris Faylor has changed employers; add him to
8135 "paper trail" section, and update his E-mail address.
8137 2004-04-03 Andrew Cagney <cagney@redhat.com>
8139 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8140 generic dummy frames.
8141 * dummy-frame.c: Update copyright.
8142 (dummy_frame_sniffer): Delete check for generic dummy frames.
8144 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8145 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8146 (REG_PARM_STACK_SPACE): Delete.
8147 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8148 Inline reference to REG_PARM_STACK_SPACE.
8150 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8151 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8152 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8153 (FRAME_BASE_BEFORE_SIGTRAMP)
8154 (hppa32_hpux_frame_base_before_sigtramp)
8155 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8156 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8157 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8158 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8159 (FRAME_BASE_BEFORE_SIGTRAMP)
8160 (hppa64_hpux_frame_base_before_sigtramp)
8161 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8163 2004-04-03 Andrew Cagney <cagney@redhat.com>
8165 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8167 2004-04-02 Andrew Cagney <cagney@redhat.com>
8169 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8170 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8171 * dummy-frame.h: Delete out-of-date comments.
8172 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8173 * gdbarch.h, gdbarch.c: Re-generate.
8175 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8177 Committed by Andrew Cagney <cagney@redhat.com>.
8178 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8179 into account an instruction saving a register if we have already
8180 seen an earlier instruction saving that same register.
8182 2004-04-02 Andrew Cagney <cagney@redhat.com>
8184 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8185 * gdbarch.h, gdbarch.c: Re-generate.
8186 * frame.c (legacy_get_prev_frame): Delete references to
8187 DEPRECATED_INIT_FRAME_PC_FIRST.
8189 * infrun.c (pc_in_sigtramp): Delete function.
8190 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8193 2004-04-02 Andrew Cagney <cagney@redhat.com>
8195 * infrun.c (handle_step_into_function): Delete code conditional on
8197 (handle_inferior_event, step_over_function): Ditto.
8199 2004-04-02 Andrew Cagney <cagney@redhat.com>
8201 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8202 "previous frame inner to this frame" test.
8204 2004-04-02 Andrew Cagney <cagney@redhat.com>
8206 * frame.c (safe_frame_unwind_memory): New function.
8207 * frame.h (safe_frame_unwind_memory): Declare. Update description
8209 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8210 "next_frame". Use safe_frame_unwind_memory.
8211 (tramp_frame_sniffer): Update call to tramp_frame_start.
8213 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8215 * dwarf2read.c (dwarf2_objfile_data_key): New.
8216 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8217 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8218 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8219 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8220 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8221 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8222 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8224 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8225 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8226 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8227 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8228 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8229 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8231 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8233 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8234 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8235 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8236 (read_partial_die, read_full_die, read_indirect_string)
8237 (dwarf_decode_line_header, dwarf_decode_macros)
8238 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8239 Update uses of removed variables.
8240 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8242 (_initialize_dwarf2_read): New function.
8243 * symfile.h (dwarf2_has_info): Update prototype.
8244 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8245 * elfread.c (elf_symfile_read): Likewise.
8247 2004-04-01 Jim Blandy <jimb@redhat.com>
8249 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8250 function for register numbers on all the rs6000-derived targets.
8251 (rs6000_gdbarch_init): Don't register a separate
8252 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8253 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8256 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8259 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8261 * valarith.c: Update copyright notice.
8262 (value_add): Handle range types.
8264 (value_equal): Ditto.
8265 (value_less): Ditto.
8267 (value_complement): Ditto.
8268 (value_binop): Simplify slightly by using is_integral_type and
8269 eliminiating unnecessary COERCE_ENUMs.
8271 2004-03-31 Andrew Cagney <cagney@redhat.com>
8273 * frame.h (frame_unwind_id): Declare.
8274 * frame.c (frame_unwind_id): New function.
8275 (get_prev_frame_1): New function.
8276 (frame_debug_got_null_frame): New function.
8277 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8278 code proper to prev_frame, update description.
8279 * infrun.c (step_over_function): Use frame_unwind_id.
8281 2004-04-31 J. Brobecker <brobecker@gnat.com>
8283 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8284 (hppa64_push_dummy_call): Likewise.
8286 2004-03-30 Jim Blandy <jimb@redhat.com>
8288 From Ulrich Weigand:
8289 * utils.c (query): Do not use a va_list variable multiple times.
8291 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8293 * Makefile.in (linux_nat_h): Update dependencies.
8294 * configure.in: Check for <gnu/libc-version.h>.
8295 * configure: Regenerate.
8296 * config.in: Regenerate.
8297 * linux-nat.h: Include "target.h". Add waitstatus field to
8299 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8300 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8302 (lin_lwp_handle_extended): New function. Handle clone events.
8303 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8305 (child_wait): Handle clone events.
8306 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8307 * linux-nat.c (linux_enable_event_reporting): Turn on
8308 PTRACE_O_TRACECLONE.
8309 (linux_handle_extended_wait): Handle clone events.
8310 * thread-db.c: Include <gnu/libc-version.h>.
8311 (struct private_thread_info): Add dying flag.
8312 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8314 (attach_thread): Update comments. Handle dying threads.
8315 (detach_thread): Set the dying flag.
8316 (check_event): Always call attach_thread.
8318 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8320 * mips-tdep.c (mips_pdr_data): New.
8321 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8322 (_initialize_mips_tdep): Initialize mips_pdr_data.
8324 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8326 * minsyms.c (install_minimal_symbols): Move dropping leading
8327 char from linkage name from here...
8328 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8329 test for "__gnu_compiled*" symbols.
8331 2004-03-28 Jim Blandy <jimb@redhat.com>
8333 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8334 registers to temp register r0 and byte stores as prologue
8337 2004-03-28 Andrew Cagney <cagney@redhat.com>
8339 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8342 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8344 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8345 and switch the layout to force a display of register window.
8347 2004-02-26 J. Brobecker <brobecker@gnat.com>
8349 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8350 of the INTEGER class.
8352 2004-03-26 Jim Blandy <jimb@redhat.com>
8354 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8355 bytes long on PPC GNU/Linux.
8357 2004-03-26 David Carlton <carlton@kealia.com>
8359 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8361 2004-03-25 Andrew Cagney <cagney@redhat.com>
8363 * PROBLEMS: Add general section titles, remove references to
8366 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8368 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8370 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8371 FP_REGISTER_VIRTUAL_SIZE.
8372 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8373 of DEPRECATED_REGISTER_RAW_SIZE.
8374 (arm_register_type): Add gdbarch argument.
8375 (arm_register_raw_size, arm_register_virtual_size): Delete.
8376 (arm_register_byte, arm_extract_return_value)
8377 (arm_store_return_value, arm_get_longjmp_target): Update references
8378 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8379 (arm_gdbarch_init): Likewise. Don't set
8380 deprecated_register_raw_size, deprecated_register_virtual_size,
8381 deprecated_max_register_raw_size,
8382 deprecated_max_register_virtual_size, or
8383 deprecated_max_register_virtual_type. Do set register_type.
8384 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8385 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8386 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8387 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8388 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8389 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8391 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8392 (remote_rdp_store_register): Likewise.
8394 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8396 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8397 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8398 to after osabi initialization.
8399 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8400 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8402 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8403 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8405 (mips_linux_init_abi): Append signal trampoline unwinders.
8407 2004-03-24 Andrew Cagney <cagney@redhat.com>
8409 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8410 * tramp-frame.c: Include "gdb_assert.h".
8411 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8413 (tramp_frame_append): Validate the tramp frame's instructions.
8414 * Makefile.in (tramp-frame.o): Update dependencies.
8416 2004-03-23 Andrew Cagney <cagney@redhat.com>
8418 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8420 2004-03-23 Andrew Cagney <cagney@redhat.com>
8422 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8423 Nasser as past testsuite/lib/ (and other) maintainers.
8425 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8427 * infcmd.c (attach_command): Reread symbols if we already have
8430 2004-03-23 Andrew Cagney <cagney@redhat.com>
8432 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8434 2004-03-23 Andrew Cagney <cagney@redhat.com>
8436 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8437 * gdbarch.h, gdbarch.c: Re-generate.
8438 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8439 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8440 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8441 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8442 (DEPRECATED_SIGTRAMP_START): Update.
8443 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8444 (DEPRECATED_SIGTRAMP_START): Update.
8445 * blockframe.c (find_pc_sect_partial_function): Update.
8446 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8448 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8450 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8453 2004-03-23 Andrew Cagney <cagney@redhat.com>
8455 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8456 predicate, deprecate.
8457 * gdbarch.h, gdbarch.c: Re-generate.
8458 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8459 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8460 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8461 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8462 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8463 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8464 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8465 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8466 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8467 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8468 * blockframe.c (find_pc_partial_function): Update.
8469 * breakpoint.c (bpstat_what): Update.
8470 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8471 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8472 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8473 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8474 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8475 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8476 * i386-nto-tdep.c (i386nto_init_abi): Update.
8477 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8478 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8479 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8480 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8481 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8482 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8483 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8484 * infrun.c (pc_in_sigtramp): Update.
8485 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8486 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8487 * mips-tdep.c (mips_gdbarch_init): Update.
8488 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8489 * ppc-linux-tdep.c: Update comment.
8490 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8491 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8492 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8493 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8494 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8495 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8496 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8497 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8498 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8499 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8501 2004-03-23 Andrew Cagney <cagney@redhat.com>
8503 * tramp-frame.h, tramp-frame.h: New files.
8504 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8505 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8507 * Makefile.in: Update all dependencies.
8509 2004-03-23 Andrew Cagney <cagney@redhat.com>
8511 * Makefile.in (trad_frame_h): Add $(frame_h).
8512 * trad-frame.h: Update copyright. Include "frame.h".
8513 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8514 (trad_frame_set_id, trad_frame_get_id): Declare.
8515 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8516 * trad-frame.c: Update copyright.
8517 (struct trad_frame_cache): Define.
8518 (trad_frame_cache_zalloc): New function.
8519 (trad_frame_set_id, trad_frame_get_id): New functions.
8520 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8522 2004-03-22 Andrew Cagney <cagney@redhat.com>
8524 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8525 s390_pltstub_unwind_cache.
8526 (s390_stub_frame_unwind_cache): Rename
8527 s390_pltstub_frame_unwind_cache.
8528 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8529 (s390_stub_frame_prev_register): Rename
8530 s390_pltstub_frame_prev_register.
8531 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8532 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8534 From Ulrich Weigand:
8535 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8536 pointer calls like PLT calls.
8538 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8540 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8541 PC rather than the partial function start address. Use the start
8542 address to sanity check the found PDR.
8544 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8546 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8547 linux_handle_extended_wait.
8549 2004-03-22 Andrew Cagney <cagney@redhat.com>
8551 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8554 * frame.h (generic_pop_current_frame): Delete declaration.
8555 (deprecate_pop_dummy_frame): Deprecate
8556 generic_pop_dummy_frame.
8557 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8558 (generic_pop_current_frame): Delete function.
8559 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8560 generic_pop_current_frame.
8561 * v850-tdep.c (v850_pop_frame): Update.
8562 * mcore-tdep.c (mcore_pop_frame): Update.
8563 * sh64-tdep.c (sh64_pop_frame): Update.
8564 * h8300-tdep.c (h8300_pop_frame): Update.
8566 2004-03-22 Andrew Cagney <cagney@redhat.com>
8568 * frame.h (deprecated_pc_in_call_dummy): Rename
8569 generic_pc_in_call_dummy.
8570 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8571 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8572 generic_pc_in_call_dummy.
8573 (pc_in_dummy_frame): Make static.
8574 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8575 * gdbarch.h, gdbarch.c: Re-generate.
8576 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8577 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8578 (legacy_get_prev_frame): Ditto.
8579 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8582 2004-03-21 Andrew Cagney <cagney@redhat.com>
8584 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8585 declaration and out-of-date comment.
8586 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8588 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8589 deprecated_pc_in_call_dummy.
8591 * infrun.c (handle_inferior_event): For non legacy frames, use the
8592 frame ID and frame type to identify a signal trampoline. Update
8595 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8597 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8598 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8600 2004-03-21 Andrew Cagney <cagney@redhat.com>
8602 * frame-unwind.h: Update copyright.
8603 (struct frame_data): Add opaque declaration.
8604 (frame_sniffer_ftype): Declare.
8605 (struct frame_unwind): Add "unwind_data" and "sniffer".
8606 (frame_unwind_register_unwinder): Declare.
8607 (frame_unwind_find_by_frame): Add parameter "this_cache".
8608 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8609 (legacy_get_prev_frame, legacy_get_prev_frame)
8610 (get_frame_type): Pass the prologue_cache to
8611 frame_unwind_find_by_frame.
8612 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8614 (frame_unwind_register_unwinder): New function.
8615 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8617 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8619 * bcache.c (print_percentage): Use floating point to avoid
8620 incorrect results when portion*100 overflows.
8622 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8624 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8625 (ppc_linux_init_extra_frame_info)
8626 (ppc_linux_frameless_function_invocation)
8627 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8628 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8629 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8630 (rs6000_frame_chain): Delete declarations.
8631 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8632 (ppc_linux_init_extra_frame_info)
8633 (ppc_linux_frameless_function_invocation)
8634 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8635 (ppc_linux_init_abi): Remove registration of above deleted functions.
8636 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8637 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8638 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8639 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8640 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8641 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8642 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8643 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8644 frame management for all OSABIs.
8646 2004-03-19 Andrew Cagney <cagney@redhat.com>
8648 Committed by Kevin Buettner <kevinb@redhat.com>.
8650 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8652 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8653 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8654 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8655 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8656 unwinders. #ifdef legacy frame code.
8657 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8659 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8660 (struct rs6000_frame_cache, rs6000_frame_cache)
8661 (rs6000_frame_this_id, rs6000_frame_prev_register)
8662 (rs6000_frame_sniffer, rs6000_frame_unwind)
8663 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8664 (rs6000_frame_base): Implement a traditional frame unwinder.
8665 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8668 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8670 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8671 breakpoint address for watchpoints or the catch eventpoints.
8672 Add new paramter ``bptype''. Adjust all callers.
8674 2004-03-19 Andrew Cagney <cagney@redhat.com>
8676 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8678 * PROBLEMS: Delete note that ARM does not use frame code, problem
8681 2004-03-18 Andrew Cagney <cagney@redhat.com>
8683 * stack.c (return_command): Delete code wrapped in #ifdef
8684 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8686 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8688 2004-03-18 Andrew Cagney <cagney@redhat.com>
8690 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8691 DEPRECATED_IN_SIGTRAMP.
8692 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8693 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8694 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8695 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8696 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8697 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8698 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8699 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8700 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8701 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8703 2004-03-18 Andrew Cagney <cagney@redhat.com>
8705 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8706 (struct frame_base_table_entry): Define.
8707 (struct frame_base_table): Re-implement as a linked list.
8708 (frame_base_init): Re-implement.
8709 (frame_base_table): Delete function.
8710 (append_predicate): Delete function.
8711 (frame_base_append_sniffer): Update.
8712 (frame_base_set_default): Update.
8713 (frame_base_find_by_frame): Update.
8714 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8715 * Makefile.in (frame-base.o): Update dependencies.
8717 2004-03-17 Andrew Cagney <cagney@redhat.com>
8719 * frame.c (legacy_get_prev_frame): Pass correct frame to
8720 frame_unwind_find_by_frame.
8722 2004-03-17 David Carlton <carlton@kealia.com>
8724 * NEWS: Mention C++ nested types and namespaces
8726 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8728 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8729 and "Regressions since gdb 5.3.". Add known regressions since
8732 2004-03-16 David Carlton <carlton@kealia.com>
8734 * dwarf2read.c (process_structure_scope): Process children even
8735 when we're a declaration.
8737 2004-03-16 Andrew Cagney <cagney@redhat.com>
8739 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8740 * blockframe.c (find_pc_partial_function)
8741 (find_pc_sect_partial_function): Merge into a single
8742 find_pc_partial_function.
8744 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8746 * i386bsd-nat.c: s/regno/regnum/g.
8747 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8749 (store_inferior_registers): Likewise.
8751 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8753 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8755 (store_inferior_registers): Call i387_collect_fsave and
8756 i387_collect_fxsave instead of i387_fill_fsave and
8759 2004-03-15 Andrew Cagney <cagney@redhat.com>
8761 * Makefile.in (frame-unwind.o): Update dependencies.
8762 * frame-unwind.c: Include "gdb_obstack.h".
8763 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8765 (append_predicate): Delete function.
8766 (struct frame_unwind_table_entry): New structure.
8767 (struct frame_unwind_table): Replace "sniffer" with "head" and
8769 (frame_unwind_append_sniffer): Update.
8770 (frame_unwind_find_by_frame): Update.
8771 (_initialize_frame_unwind): Registe frame_unwind_init using
8772 gdbarch_data_register_pre_init.
8774 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8776 * i386bsd-nat.c: Update copyright year.
8777 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8778 define unconditionally.
8780 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8782 * i387-tdep.h (i387_collect_fsave): New prototype.
8783 * i387-tdep.c (i387_collect_fsave): New function containing most
8784 of the code from i387_fill_fsave.
8785 (i387_fill_fsave): Call i387_collect_fsave.
8787 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8789 * i386-linux-tdep.c: Update copyright year.
8790 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8791 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8792 svr4_ilp32_link_map_offsets instead of
8793 i386_linux_svr4_fetch_link_map_offsets.
8795 2004-03-15 David Carlton <carlton@kealia.com>
8797 Fix for PR c++/1553:
8798 * dwarf2read.c (read_structure_type): Determine type name by
8799 calling determine_class_name.
8800 (determine_class_name): New.
8801 (determine_prefix): Look at TYPE_TAG_NAME and call
8802 determine_class_name when appropriate.
8803 (determine_prefix_aux, class_name): Delete.
8804 (read_namespace): Set die->type.
8806 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8808 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8809 unused macro definition. The definition in target.h (or perhaps
8810 elsewhere) takes precedence.
8812 2004-03-15 Andrew Cagney <cagney@redhat.com>
8814 * ppc-tdep.h: Update copyright.
8815 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8816 function signatures to match "regsets.h".
8817 * ppc-linux-tdep.c: Include "regset.h".
8818 (ELF_GREGSET_SIZE): Delete.
8819 (right_supply_register): New function.
8820 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8821 using right_supply_register.
8822 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8824 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8825 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8826 (_initialize_ppc_linux_tdep): Do not register
8827 ppc_linux_regset_core_fns.
8828 (ppc_linux_regset_from_core_section): Replace
8829 fetch_core_registers.
8830 (ppc_linux_regset_core_fns): Delete.
8831 * ppc-linux-nat.c: (right_fill_reg): New function.
8832 (supply_gregset): Update call to ppc_linux_supply_gregset.
8833 (fill_gregset): Clear the register set, use right_fill_reg.
8834 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8835 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8837 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8840 2004-03-15 Andrew Cagney <cagney@redhat.com>
8842 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8843 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8844 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8845 and register_gdbarch_data.
8846 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8847 (struct gdbarch_data): Replace "init" by "pre_init" and
8849 * gdbarch.h, gdbarch.c: Re-generate.
8850 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8851 with"obstack", use OBSTACK_ZALLOC.
8852 (dwarf2_frame_ops): Delete.
8853 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8854 (dwarf2_frame_init_reg): Use gdbarch_data.
8855 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8856 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8857 (_initialize_svr4_solib): Update.
8858 * user-regs.c (_initialize_user_regs): Update.
8859 * reggroups.c (_initialize_reggroup): Update.
8860 * regcache.c (_initialize_regcache): Update.
8861 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8862 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8863 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8864 * frame-unwind.c (_initialize_frame_unwind): Update.
8865 * frame-base.c (_initialize_frame_base): Update.
8866 * user-regs.c (user_reg_add): Update.
8867 * reggroups.c (reggroup_add): Update.
8868 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8869 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8870 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8871 * frame-base.c (frame_base_table): Update.
8872 * remote.c (_initialize_remote): Update.
8873 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8875 2004-03-15 Andrew Cagney <cagney@redhat.com>
8877 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8879 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8881 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8882 * frv-linux-tdep.c: New file.
8883 * frv-tdep.c (struct gdbarch_tdep): Add new field
8884 ``sigcontext_reg_addr''.
8885 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8886 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8887 (frv_sigramp_frame_sniffer): New functions.
8888 (frv_sigtramp_frame_unwind): New static global.
8889 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8891 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8892 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8894 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8896 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8897 but not via a call to error(), when unable to read memory.
8899 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8901 * frv-tdep.c (frv_call_dummy_words): Delete.
8902 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8904 2004-03-15 Andrew Cagney <cagney@redhat.com>
8906 * infrun.c (handle_step_into_function, step_over_function): Only
8907 update and use STEP_FRAME_ID when the system is using legacy
8908 frames. Update comments.
8910 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8912 * amd64-linux-tdep.h: Remove file.
8913 * amd64-linux-tdep.c: Don't include "inferior.h" and
8914 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8915 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8916 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8917 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8918 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8920 (user_to_gdb_regmap): Remove variable.
8921 (amd64_linux_gregset_reg_offset): New variable.
8922 (amd64_core_fns): Remove variable.
8923 (fetch_core_registers): Remove function.
8924 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8926 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8927 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8928 * Makefile.in (amd64_linux_tdep_h): Remove.
8929 (amd64-linux-nat.o): Update dependencies.
8930 (amd64-linux-tdep.o): Update dependencies.
8932 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8933 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8935 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8937 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8938 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8940 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8942 * dwarf2read.c (read_structure_type): Rename from
8943 read_structure_scope. Don't create a symbol or call process_die.
8944 Return immediately if die->type is set. Call read_type_die before
8945 dwarf2_add_member_fn.
8946 (process_structure_scope): New function.
8947 (read_enumeration_type, process_enumeration_scope): New functions,
8948 broken out from read_enumeration. Don't create the enumeration
8949 type if it has already been created.
8950 (read_enumeration): Removed.
8951 (process_die): Call read_structure_type, process_structure_scope,
8952 read_enumeration_type, and process_enumeration_scope. Just call
8953 new_symbol for base and subrange types. Add a comment about other
8955 (read_type_die): Call read_enumeration_type.
8956 (add_partial_structure, new_symbol): Update comments.
8958 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8960 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8962 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8964 * tui/tui-win.h (tui_get_cmd_list): Declare.
8965 * tui/tui-win.c (tui_command): New function.
8966 (tui_get_cmd_list): New function.
8967 (_initialize_tui_win): Moved initialization of tui command in
8970 * tui/tui-data.c (init_content_element): Setup new data members.
8971 (init_win_info): Likewise.
8972 (free_content_elements): Free it.
8973 * tui/tui-data.h (struct tui_data_element): Store the register
8975 (struct tui_data_info): Keep the current register group.
8977 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8979 * tui/tui-regs.h (tui_show_registers): Update prototype.
8980 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8981 (tui_resize_all): No need to calculate anything for register window.
8982 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8983 (tui_set_register_element, tui_set_general_regs_content): Remove.
8984 (tui_set_special_regs_content): Remove.
8985 (tui_set_general_and_special_regs_content): Remove.
8986 (tui_set_float_regs_content): Remove.
8987 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8988 (tui_set_regs_content): Remove.
8989 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8990 (tui_v_show_registers_command_support): Remove.
8991 (tui_show_registers): Use a reggroup to specify the registers to show.
8992 (tui_show_register_group): New function.
8993 (tui_display_registers_from): Compute the layout of register window
8994 and refresh with new API; be sure to delete old register windows.
8995 (tui_check_register_values): Update to use tui_get_register and
8997 (tui_display_register): Just refresh the register window part.
8998 (tui_register_format): Format registers and save in tui_data_element.
8999 (tui_get_register): New to combine tui_reg_value_has_changed and
9000 tui_get_register_raw_value; fix to use the new gdb API.
9001 (tui_show_float_command): Renamed tui_reg_float_command.
9002 (tui_show_general_command): Renamed tui_reg_general_command.
9003 (tui_show_special_command): Renamed tui_reg_system_command.
9004 (_initialize_tui_regs): Remove unused commands.
9006 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9008 * NEWS (New native configurations): Mention OpenBSD/amd64.
9010 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9011 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9013 * config/i386/nm-fbsd64.h: Likewise.
9014 * config/i386/nm-obsd.h: Likewise.
9015 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9016 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9018 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9020 * frv-tdep.c (set_variant_scratch_registers): New function.
9021 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9024 From Richard Sandiford <rsandifo@redhat.com>:
9025 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9027 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9029 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9030 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9031 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9032 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9033 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9034 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9035 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9036 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9037 definitions from frv-tdep.c to frv-tdep.h.
9039 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9041 Add shared library support for FR-V FDPIC ABI:
9042 * Makefile.in (solib-frv.o): Add dependencies.
9043 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9045 (frv_push_dummy_call): Add support for FDPIC ABI.
9046 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9048 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9049 (frv_fdpic_find_canonical_descriptor): Declare.
9050 * solib-frv.c: New file.
9051 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9052 * config/frv/tm-frv.h (solib.h): Include.
9054 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9056 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9057 (frv-tdep.o): Update dependencies.
9058 * frv-tdep.h: New file.
9059 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9060 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9062 (struct gdbarch_tdep): Add new member ``frv_abi''.
9063 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9065 (new_variant): Set ``frv_abi'' field.
9066 (gdb_arch_init): Detect FDPIC executables.
9068 2004-03-12 Mark Kettenis <kettenis@gnu.org>
9070 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9073 2004-03-11 Andrew Cagney <cagney@redhat.com>
9075 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9077 2004-03-11 Kevin Buettner <kevinb@redhat.com>
9079 * solist.h (master_so_list): New function.
9080 * solib.c (master_so_list): Likewise.
9081 * solib-svr4.c (enable_break): Iterate over so_list entries
9082 obtained from master list instead of entries obtained directly
9083 via svr4_current_sos().
9085 2004-03-10 Ben Elliston <bje@gnu.org>
9087 * MAINTAINERS: Update my mail address.
9089 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9091 * remote-m32r-sdi.c: Support hardware watchpoint.
9093 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9095 * user-regs.c: Update copyright years.
9096 (struct user_regs): Rename to gdb_user_regs.
9097 (append_user_reg, builtin_user_regs, user_regs_init)
9098 (user_reg_add, user_reg_map_name_to_regnum)
9099 (usernum_to_user_reg): Update.
9101 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9103 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9104 (skip_children): New functions.
9105 (locate_pdi_sibling): Call skip_children.
9107 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9109 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9110 * gdbtypes.c (check_typedef): Update comments.
9112 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9114 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9115 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9116 pointer. Update comment about comp_unit_head.
9117 (struct abbrev_info): Shorten two int flags.
9118 (dwarf_alloc_abbrev): Take a CU argument.
9119 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9120 each time through the loop. Update cleanup argument.
9121 (psymtab_to_symtab_1): Update cleanup call.
9122 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9124 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9125 Just call obstack_free and clear the pointer.
9127 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9129 * infrun.c (handle_inferior_event): Remove short-circuit code for
9130 events in a different thread.
9132 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9134 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9135 print the whole transfer.
9136 (initialize_targets): Update description of "set debug target".
9138 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9140 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9142 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9144 * MAINTAINERS (write after approval): Add myself.
9146 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9148 * sh-tdep.c (sh_print_registers_info): Use for loop.
9149 Don't skip multiple registers when a float register is encountered.
9151 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9154 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9155 to official SH documentation.
9157 2004-03-07 Andrew Cagney <cagney@redhat.com>
9159 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9162 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9164 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9165 (arm_get_next_pc): Handle BX and BLX.
9167 2004-03-07 Andrew Cagney <cagney@redhat.com>
9169 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9170 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9172 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9173 (hppa_target_read_fp): Delete.
9174 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9175 register_virtual_size, max_register_raw_size,
9176 max_register_virtual_size, register_byte, register_size,
9177 target_read_fp, fp_regnum, and register_bytes. Set register_type
9178 instead of register_virtual_type.
9179 (hppa32_register_type, hppa64_register_type): Replace
9180 hppa32_register_virtual_type and hppa64_register_virtual_type.
9181 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9182 (HPPA_FP_REGNUM): Define.
9184 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9186 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9187 (pa_do_registers_info): Delete.
9188 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9189 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9190 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9192 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9193 GDB_TARGET_IS_HPPA code.
9194 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9195 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9196 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9197 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9198 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9199 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9200 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9201 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9202 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9203 (hppa_frameless_function_invocation, hppa64_store_return_value)
9204 (hppa_store_struct_return, hppa64_extract_return_value)
9205 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9206 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9207 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9208 (find_proc_framesize, deposit_21, restore_pc_queue)
9209 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9210 (rp_saved, pc_in_linker_stub): Delete.
9212 Unconditionally enable 64-bit frame and ABI code.
9213 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9214 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9215 push_dummy_frame, fix_call_dummy, push_arguments,
9216 call_dummy_location, extract_return_value, use_struct_convention,
9217 store_return_value, store_struct_return, saved_pc_after_call,
9218 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9219 frame_chain, frame_chain_valid, frameless_function_invocation,
9220 frame_saved_pc, and pop_frame.
9222 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9223 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9224 (hppa_gdbarch_init): Do not set PC_REGNUM.
9226 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9228 * config/alpha/tm-fbsd.h: Remove file.
9229 * config/alpha/fbsd.mt: Tweak comment.
9230 (TM_FILE): Set to tm-alpha.h.
9232 2004-03-05 Andrew Cagney <cagney@redhat.com>
9234 * infrun.c (step_over_function): When non-legacy code, and no
9235 step_frame_id, use the unwinder to get the caller's frame ID.
9237 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9239 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9240 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9241 bfd_arch_unknown. Adjust comment.
9243 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9244 * i386obsd-tdep.c: Correct spelling in comment.
9245 * i386nbsd-tdep.c: Correct spelling in comment.
9246 * sparc-tdep.c: Correct spelling in comments.
9248 2004-03-05 David Carlton <carlton@kealia.com>
9250 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9253 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9255 * sparc-tdep.c: Fix typo in comment.
9257 2004-03-04 J. Brobecker <brobecker@gnat.com>
9259 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9261 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9263 * dwarf2read.c: Add comment describing memory lifetimes.
9264 (struct dwarf2_pinfo): Update comment.
9265 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9266 (read_enumeration, new_symbol): Don't use obsavestring.
9268 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9270 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9271 instead of amd64_fill_fxsave.
9272 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9273 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9275 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9276 Reorganize code a bit.
9278 2004-03-04 Orjan Friberg <orjanf@axis.com>
9280 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9281 when the frame pointer is pushed. Don't set the frame pointer's
9282 address on the stack unless it's actually located there.
9283 Set the SRP's address on the stack correctly when the PC is still in
9285 (cris_return_value): New function.
9286 (cris_gdbarch_init): Clear deprecated store_return_value,
9287 extract_return_value.
9289 2004-03-02 Jim Blandy <jimb@redhat.com>
9291 * stabsread.c (reg_value_complaint): The maximum register number
9292 is one less than the number of registers.
9294 2004-03-02 Andrew Cagney <cagney@redhat.com>
9296 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9297 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9298 trailing comma and redundant assignment of I386_ST0_REGNUM.
9299 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9300 32-bit segment registers.
9302 2004-03-01 Andrew Cagney <cagney@redhat.com>
9304 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9305 use frame_relative_level and get_next_frame.
9307 2004-02-29 Andrew Cagney <cagney@redhat.com>
9309 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9310 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9311 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9314 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9316 * inflow.c (terminal_inferior): Don't give up the terminal if we
9317 previously couldn't get the inferior's terminal state.
9319 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9321 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9324 2004-02-28 Andrew Cagney <cagney@redhat.com>
9326 * NEWS: Refer to GDB 6.1.
9327 * README: Refer to GDB 6.1.
9328 * PROBLEMS: Refer to GDB 6.1.
9330 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9332 * thread-db.c (disable_thread_signals): Remove unused function.
9334 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9336 * amd64-nat.c: Include "gdb_string.h".
9337 (amd64_collect_native_gregset): Zero-extend the 32-bit
9338 general-purpose registers and %eip.
9340 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9341 * amd64-tdep.c (amd64_collect_fxsave): New function.
9342 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9344 * i387-tdep.h: Update copyright year.
9345 (i387_collect_fxsave): New prototype.
9346 * i387-tdep.c: Update copyright year.
9347 (i387_collect_fxsave): New function containing most of the code
9348 from i387_fill_fxsave.
9349 (i387_fill_fxsave): Call i387_collect_fxsave.
9351 2004-02-28 Andrew Cagney <cagney@redhat.com>
9353 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9354 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9356 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9358 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9360 2004-02-28 Andrew Cagney <cagney@redhat.com>
9362 * utils.c: Use "", instead of <>, to include readline.
9363 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9364 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9365 * source.c, solib.c, exec.c, event-top.c: Ditto.
9366 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9367 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9368 * Makefile.in: Update all dependencies.
9369 (readline_tilde_h, readline_history_h): Define.
9370 (readline_headers): Delete.
9372 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9374 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9375 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9376 "config/i386/tm-lx64.h".
9378 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9379 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9380 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9382 2004-02-28 Andrew Cagney <cagney@redhat.com>
9384 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9386 * breakpoint.c (_initialize_breakpoint): Use
9387 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9388 Add help to show command.
9390 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9392 * i386-nat.c: Reformat to be closer to coding standards.
9393 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9394 `retval'. Make variables `align' and `size' local to while-loop.
9395 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9396 (_initialize_i386_nat): New prototype.
9398 * tui/tui.c: Include <readline/readline.h> instead of
9399 "readline/readline.h". Include it after <term.h> and
9402 2004-02-27 Andrew Cagney <cagney@redhat.com>
9404 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9405 the new frame unwind code.
9406 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9407 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9410 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9411 "return_value" and "push_dummy_call".
9412 (hppa32_use_struct_convention): Delete unused function.
9413 (hppa32_store_return_value): Delete unused function.
9414 (hppa32_extract_return_value): Delete unused function.
9415 (hppa32_stack_align): Delete function.
9417 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9419 * coffread.c (enter_linenos): Don't let rawptr reference memory
9420 outside linetab[]'s limits.
9422 2004-02-27 Andrew Cagney <cagney@redhat.com>
9424 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9425 inferior stack space - the stack needs to grow upwards.
9426 (hppa32_frame_align): New function.
9427 (hppa64_frame_align): Replace hppa_frame_align.
9428 (hppa_gdbarch_init): Update.
9430 2004-02-26 Orjan Friberg <orjanf@axis.com>
9432 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9433 (dwarf2-frame.h): Include.
9434 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9435 Remove static variables related to ABI setting.
9436 (struct gdbarch_tdep): Remove cris_abi member.
9437 (struct frame_extra_info): Remove.
9438 (cris_unwind_cache, stack_item): New structs.
9439 (cris_frame_unwind, cris_frame_base): New variables.
9440 (push_stack_item, pop_stack_item)
9441 (cris_frame_unwind_cache, cris_frame_this_id)
9442 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9443 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9444 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9445 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9446 (cris_reg_struct_has_addr): New functions.
9447 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9448 (cris_frame_saved_pc, cris_saved_pc_after_call,
9449 (cris_store_struct_return, cris_frameless_function_invocation)
9450 (cris_pop_frame, cris_skip_prologue_main)
9451 (cris_abi_original_store_return_value)
9452 (cris_abi_v2_store_return_value)
9453 (cris_abi_original_extract_return_value)
9454 (cris_abi_v2_extract_return_value)
9455 (cris_abi_original_reg_struct_has_addr)
9456 (cris_abi_v2_reg_struct_has_addr)
9457 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9458 (cris_push_return_address, cris_abi_update): Remove.
9459 (_initialize_cris_tdep): Remove ABI command.
9460 (cris_dump_tdep): Ditto.
9461 (cris_gdbarch_init): Remove ABI command.
9462 Set store_return_value, extract_return_value, push_dummy_code,
9463 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9464 frame_unwind_append_sniffer, frame_base_set_default.
9465 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9466 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9467 sizeof_call_dummy_words, get_saved_register, push_return_address,
9468 pop_frame, store_struct_return, frame_init_saved_regs,
9469 init_extra_frame_info, frameless_function_invocation, frame_chain,
9470 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9473 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9475 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9476 * valprint.c (print_hex_chars): Change from static to external.
9477 (print_char_chars): New function.
9478 * printcmd.c (print_scalar_formatted): For integer and enum types
9479 that are longer than LONGEST, perform processing via appropriate
9480 print_*_chars routines.
9482 2004-02-26 Andrew Cagney <cagney@redhat.com>
9484 * Makefile.in: Update dependencies.
9485 Changes from Ulrich Weigand,
9486 * s390-tdep.c: Include "dwarf2-frame.h".
9487 (s390_dwarf2_frame_init_reg): New function.
9488 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9489 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9491 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9493 * breakpoint.c (pending_break_support): New setting variable.
9494 (break_command_1): Account for pending_break_support setting
9495 when creating pending breakpoints.
9496 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9497 (_initialize_breakpoint): Add "set breakpoint pending" and
9498 "show breakpoint pending" commands.
9500 2004-02-26 Andrew Cagney <cagney@redhat.com>
9503 * charset.c (backslashable, backslashed, represented): Remove 'e'
9504 from list of escaped characters, not part of ISO-C.
9506 2004-02-25 J. Brobecker <brobecker@gnat.com>
9508 From Peter Schauer <schauer@pdf.de>:
9509 * tui/tui.c: Move system header includes after local includes.
9510 Fixes a build failure on solaris systems.
9512 2004-02-25 J. Brobecker <brobecker@gnat.com>
9514 * configure.in: Refine the previous change.
9515 * configure: Regenerate.
9517 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9519 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9520 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9521 "amd64-tdep.h" instead of "x86-64-tdep.h".
9522 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9523 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9524 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9525 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9526 and "x86-64-tdep.c".
9527 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9528 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9529 and "x86-64-tdep.c".
9530 * amd64bsd-nat.c: Update copyright year.
9531 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9532 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9534 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9536 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9538 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9540 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9542 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9544 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9545 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9546 * Makefile.in (amd64_linux_tdep_h): Renamed from
9547 x86_64_linux_tdep_h.
9548 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9549 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9550 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9551 (amd64obsd-tdep.o): Update dependencies.
9552 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9554 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9556 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9557 amd64-linux-nat.c amd64-linux-tdep.c.
9558 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9559 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9560 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9561 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9562 amd64-tdep.o and amd64-linux-tdep.o.
9563 (TM_FILE): Set to tm-linux64.h.
9564 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9565 (NAT_FILE): Set to nm-linux64.h.
9566 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9567 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9569 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9571 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9574 2004-02-25 Roland McGrath <roland@redhat.com>
9576 * remote.c (remote_protocol_qPart_auxv): New variable.
9577 (init_all_packet_configs): Initialize it.
9578 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9579 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9580 (show_remote_cmd): Call it.
9581 (_initialize_remote): Initialize commands.
9582 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9583 service TARGET_OBJECT_AUXV requests.
9585 2004-02-25 J. Brobecker <brobecker@gnat.com>
9587 * configure.in: Make sure that the wborder function is available.
9588 Otherwise, search for it in the cur_colr library.
9589 * configure: Regenerate.
9591 2004-02-25 Andrew Cagney <cagney@redhat.com>
9593 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9595 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9597 * config/i386/tm-x86-64linux.h: Tweak comments.
9599 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9601 * MAINTAINERS: Add self to write-after-approval list.
9603 2004-02-25 Andrew Cagney <cagney@redhat.com>
9605 PR cli/1566. Problem found, and fix suggested by David Allan.
9606 * cli/cli-script.c (execute_control_command): Unconditionally
9607 install a cleanup. Default "ret" to "invalid_control". Use
9608 "break" instead of "return" to escape from the switch.
9610 2004-02-24 J. Brobecker <brobecker@gnat.com>
9612 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9613 with the lines macro defined in term.h on AiX.
9614 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9615 a collision with the label_width macro defined in term.h on AiX.
9617 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9619 Committed by Kevin Buettner <kevinb@redhat.com>.
9621 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9622 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9623 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9624 instead of ia64_write_pc().
9625 * ia64-linux-tdep.c (regcache.h): Include.
9626 (ia64_linux_write_pc): New function.
9628 2004-02-23 Roland McGrath <roland@redhat.com>
9630 * auxv.c (info_auxv_command): Fix typos in error messages.
9632 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9634 * x86-64-tdep.h: Tweak comment.
9635 (enum amd64_regnum): New.
9636 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9637 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9638 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9639 (X86_64_XMM1_REGNUM): Removed.
9640 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9641 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9642 prototypes for renamed functions.
9643 * x86-64-tdep.c: Fix typo.
9644 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9646 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9647 Use constants from `enum amd64_regnum' for register numbers.
9648 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9649 (amd64_analyze_prologue, amd64_frame_cache,
9650 amd64_sigtramp_frame_cache): Use constants from `enum
9651 amd64_regnum' for register numbers.
9652 (amd64_supply_fpregset): Adjust for renamed functions.
9653 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9654 `enum amd64_regnum' for register numbers.
9655 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9656 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9657 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9658 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9659 (amd64_linux_fill_gregset): Adjust for renamed macros.
9660 (fetch_core_registers): Adjust for renamed functions.
9661 (amd64_linux_init_abi): Adjust for renamed functions.
9662 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9664 * amd64-nat.c: Adjust for renamed macros.
9665 * amd64bsd-nat.c (fetch_inferior_registers)
9666 (store_inferior_registers): Use constants from `enum amd64_regnum'
9667 for register numbers. Adjust for renamed variables.
9668 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9670 (_initialize_amd64fbsd_nat): Use constants from `enum
9671 amd64_regnum' for register numbers.
9672 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9673 `enum amd64_regnum' for register numbers.
9674 (amd64fbsd_init_abi): Adjust for renamed functions.
9675 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9676 `enum amd64_regnum' for register numbers.
9677 (amd64nbsd_init_abi): Adjust for renamed functions.
9678 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9679 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9680 `enum amd64_regnum' for register numbers.
9681 (amd64obsd_init_abi): Adjust for renamed functions.
9682 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9684 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9686 * breakpoint.c (print_one_breakpoint): Do not output spaces
9687 after printing <PENDING> for a pending breakpoint.
9689 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9691 * printcmd.c (print_scalar_formatted): Initialize val_long
9692 to remove compiler warning message.
9694 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9696 * defs.h (nquery, yquery): New prototypes.
9697 * breakpoint.c (break_command_1): Use new nquery interface.
9698 * utils.c (defaulted_query, nquery, yquery): New functions.
9700 2004-02-23 Andrew Cagney <cagney@redhat.com>
9702 * hppa-tdep.c (hppa_frame_align): New function.
9703 (hppa32_push_dummy_call): New function.
9704 (hppa64_push_dummy_call): New function.
9705 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9708 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9709 FIX_CALL_DUMMY when push_dummy_call is available.
9710 (call_function_by_hand, push_dummy_code): Ditto.
9712 2004-02-22 Andrew Cagney <cagney@redhat.com>
9714 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9715 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9716 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9717 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9718 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9719 call_dummy_location to ON_STACK.
9721 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9723 * x86-64-linux-tdep.c: Tweak comment.
9724 (amd64_linux_supply_gregset): Renamed from
9725 x86_64_linux_supply_gresget.
9726 (amd64_linux_fill_gregset): Renamed from
9727 x86_64_linux_fill_gregset.
9728 (fetch_core_registers): Adjust for renamed functions.
9729 (amd64_core_fns): Renamed from x86_64_core_fns.
9730 (amd64_linux_sigtramp_start): Renamed from
9731 x86_64_linux_sigtramp_start.
9732 (amd64_linux_pc_in_sigtramp): Renamed from
9733 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9734 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9735 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9736 (amd64_linux_sigcontext_addr): Renamed from
9737 x86_64_linux_sigcontext_addr.
9738 (amd64_linux_sc_reg_offset): Renamed from
9739 x86_64_linux_sc_reg_offset.
9740 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9741 Adjust for renamed functions and variables.
9742 (_initialize_amd64_linux_tdep): Renamed from
9743 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9745 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9746 Adjust for renamed functions.
9748 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9749 from x86_64_linux_gregset64_reg_offset.
9750 (amd64_linux_gregset32_reg_offset): Rename from
9751 x86_64_linux_gregset64_reg_offset.
9752 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9753 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9754 (amd64_linux_dr_set_control): Renamed from
9755 x86_64_linux_dr_set_control. Adjust for renamed functions.
9756 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9757 Adjust for renamed functions.
9758 (amd64_linux_dr_reset_addr): Renamed from
9759 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9760 (amd64_linux_dr_get_status): Renamed from
9761 x86_64_linux_dr_get_status. Adjust for renamed functions.
9762 (_initialize_amd64_linux_nat): Renamed from
9763 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9765 * config/i386/nm-x86-64linux.h: Update copyright year.
9766 Adjust for renamed functions.
9768 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9769 amd64fbsd_sigtramp_start.
9770 (amd64fbsd_sigtramp_end_addr): Renamed from
9771 amd64fbsd_sigtramp_end.
9772 (amd64fbsd_init_abi): Adjust for renamed variables.
9773 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9775 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9776 amd64fbsd_sigtramp_start.
9777 (amd64fbsd_sigtramp_end_addr): Renamed from
9778 amd64fbsd_sigtramp_end.
9780 2004-02-22 Andrew Cagney <cagney@redhat.com>
9782 * hppa-tdep.c (hppa32_return_value): New function.
9783 (hppa64_return_value): New function.
9784 (hppa_gdbarch_init): Set return_value; keep disabled.
9786 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9787 struct-return and inferior function call methods.
9789 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9791 (struct hppa_frame_cache): Define.
9792 (hppa_frame_cache, hppa_frame_this_id): New functions.
9793 (hppa_frame_prev_register): New function.
9794 (hppa_frame_unwind, hppa_frame_base): New variables.
9795 (hppa_frame_unwind_sniffer): New function.
9796 (hppa_frame_base_address, hppa_unwind_pc): New function.
9797 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9798 sniffer, and frame base sniffer; keep disabled.
9799 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9800 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9802 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9803 to predicates for "seriously old code".
9805 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9808 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9810 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9812 * config/pa/tm-hppa.h: Update copyright.
9813 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9814 (deprecated_init_frame_pc_default): Delete declaration.
9815 (hppa_frame_init_saved_regs): Delete declaration.
9816 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9817 * hppa-tdep.c: Include "arch-utils.h".
9818 (hppa_gdbarch_init): Set deprecated init_frame_pc
9819 and deprecated frame_init_saved_regs.
9820 (hppa_frame_init_saved_regs): Make static.
9822 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9824 Remove old 386BSD support.
9825 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9826 * configure.host: Remove i[34567]86-*-bsd*.
9827 * configure.tgt: Remove i[34567]86-*-bsd*.
9828 * i386b-nat.c: Removed.
9829 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9830 (i386b-nat.o): Remove dependencies.
9832 * config/i386/i386bsd.mh: Removed.
9833 * config/i386/i386bsd.mt: Removed.
9834 * config/i386/nm-i386bsd.h: Removed.
9835 * config/i386/tm-i386bsd.h: Removed.
9836 * config/i386/xm-i386bsd.h: Removed.
9838 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9840 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9841 (amd64fbsd_init_abi): Set link map offsets.
9842 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9843 (amd64nbsd_init_abi): Set link map offsets.
9844 * amd64obsd-tdep.c: Include "solib-svr4.h".
9845 (amd64obsd_init_abi): Set link map offsets.
9846 * i386fbsd-tdep.c: Include "solib-svr4.h".
9847 (i386fbsd_init_abi): Set link map offsets.
9848 * i386nbsd-tdep.c: Include "solib-svr4.h".
9849 (i386nbsdelf_init_abi): Set link map offsets.
9850 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9851 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9852 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9853 solib-legacy.o and core-aout.o. Reformat.
9854 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9855 solib-svr4.o, solib-legacy.o. Reformat.
9856 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9857 * config/i386/nbsdelf.mh: Reformat.
9858 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9859 solib-svr4.o, solib-legacy.o and corelow.o.
9860 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9861 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9862 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9863 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9864 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9865 (TM_FILE): Set to tm-fbsd.h.
9866 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9867 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9869 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9871 (TM_FILE): Set to nm-nbsd.h.
9872 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9873 Simplify shared library support. Don't include "elf/common.h".
9874 (SVR4_SHARED_LIBS): Don't define.
9875 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9877 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9878 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9879 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9880 Don't include "i386/tm-i386.h". Include "solib.h".
9881 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9882 Don't include "i386/tm-i386.h".
9883 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9884 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9885 Include "i386/xm-i386.h".
9886 (HOST_LONG_DOUBLE_FORMAT): Remove.
9888 Fix OpenBSD/i386 sigtramp recognition.
9889 * i386-tdep.h: Update copyright year.
9890 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9891 (i386bsd_sigtramp_end): New prototypes.
9892 (i386fbsd_sigtramp_start_addr): Renamed from
9893 i386fbsd_sigtramp_start.
9894 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9895 (i386obsd_sigtramp_start_addr): Renamed from
9896 i386obsd_sigtramp_start.
9897 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9898 * i386bsd-tdep.c: Update copyright year.
9899 (i386bsd_pc_in_sigtramp): Make public.
9900 * i386fbsd-nat.c: Update copyright year.
9901 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9902 * i386fbsd-tdep.c: Update copyright year.
9903 (i386fbsd_sigtramp_start_addr): Renamed from
9904 i386fbsd_sigtramp_start.
9905 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9906 (i386fbsdaout_init_abi): Adjust for renamed variables.
9907 * i386obsd-nat.c: Update copyright year.
9908 (_initialize_i386obsd_nat): Adjust for renamed variables.
9909 * i386obsd-tdep.c: Include "target.h".
9910 (i386obsd_page_size): New variable.
9911 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9912 (i386obsd_sigtramp_end): New functions.
9913 (i386obsd_sigtramp_start_addr): Renamed from
9914 i386obsd_sigtramp_start.
9915 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9916 (i386obsd_init_abi): Adjust for renamed variables. Set
9917 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9918 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9920 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9921 trampoline change in OpenBSD kernel.
9923 * amd64-nat.c: Update copyright year.
9924 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9925 architecture from REGCACHE.
9927 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9928 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9930 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9932 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9933 i[34567]86-*-openbsd3.[0-3].
9934 * config/i386/obsdaout.mh: New file.
9936 * config/i386/obsd.mh (MH_FLAGS): Remove.
9939 * i386obsd-tdep.c: Update copyright years. Include
9941 (i386obsd_init_abi): Don't set regset_from_core_section here.
9942 (i386obsd_aout_init_abi): New function. Set
9943 regset_from_core_section here.
9944 (i386obsd_elf_init_abi): New function.
9945 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9946 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9947 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9948 (TM_FILE): Set to tm-nbsd.h.
9950 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9953 * solib-svr4.h: Update copyright year.
9954 (svr4_ilp32_fetch_link_map_offsets)
9955 (svr4_lp64_fetch_link_map_offsets): New prototype.
9956 * solib-svr4.c: Update copyright year.
9957 (svr4_ilp32_fetch_link_map_offsets)
9958 (svr4_lp64_fetch_link_map_offsets): New function.
9960 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9962 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9963 to the partial symbol table.
9965 2004-02-20 J. brobecker <brobecker@gnat.com>
9967 * PROBLEMS: Add description of problem documented under gdb/1560.
9969 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9971 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9973 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9975 (amd64obsd_init_abi): Reorder initializations. Use
9976 amd64obsd_r_reg_offset to initialize the general-purpose register
9977 set details. Set regset_from_core_section.
9978 (_initialize_amd64obsd_tdep): Rename from
9979 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9980 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9981 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9983 * NEWS (New native configurations): Mention OpenBSD/alpha.
9984 * configure.tgt: Add alpha*-*-openbsd*.
9985 * configure.host: Add alpha*-*-openbsd*.
9986 * alphanbsd-tdep.c: Update copyright year.
9987 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9989 2004-02-20 Andrew Cagney <cagney@redhat.com>
9992 * configure.tgt: Delete target "none-*-*".
9993 * configure.host: Delete host "none-*-*".
9994 * config/none/none.mh: Delete file.
9995 * config/none/none.mt: Delete file.
9996 * config/none/xm-none.h: Delete file.
9997 * config/none/tm-none.h: Delete file.
9998 * config/none/nm-none.h: Delete file.
10000 2004-02-19 Fred Fish <fnf@redhat.com>
10002 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10003 cache->uses_fp prior to setting it.
10005 2004-02-19 Fred Fish <fnf@redhat.com>
10007 Fix for PR breakpoint/1558.
10008 * sh-tdep.c (IS_JSR): New macro.
10009 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10011 2004-02-19 Jim Blandy <jimb@redhat.com>
10013 * findvar.c (value_from_register): Doc fix.
10015 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10017 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10018 type being greater than sizeof of host's LONGEST. Always use
10019 unpack_long() unless format 'f' chosen.
10021 2004-02-19 Joel Brobecker <brobecker@gnat.com>
10023 Committed by Elena Zannoni <ezannoni@redhat.com>
10025 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10026 contains a symbol wich is the best, non-exact match for the given
10027 pc. Update comments.
10029 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
10031 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10032 macro, which was part of the now removed Mach 3 port.
10033 * utils.c (request_quit): Ditto.
10035 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10037 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10038 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10040 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10042 Committed by Mark Kettenis <kettenis@gnu.org>.
10044 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10047 2004-02-18 Andrew Cagney <cagney@redhat.com>
10049 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10050 CONFIG_INSTALL and CONFIG_UNINSTALL.
10051 * configure: Re-generate.
10052 * interps.h (INTERP_TUI): Define.
10053 * Makefile.in: Update dependencies.
10055 (tui-main.o): Specify dependencies.
10056 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10057 * tui/tui-main.c: New file.
10059 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10061 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10062 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10064 * configure.host: Add x86_64-*-openbsd*.
10065 * configure.tgt: Add x86_64-*-openbsd*.
10066 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10068 * tui/tui.c: Don't include <malloc.h>.
10070 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10071 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10074 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10075 static. Remove extraneous whitespace.
10076 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10079 2004-02-17 Jim Blandy <jimb@redhat.com>
10081 * findvar.c (value_from_register): Doc fix.
10083 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10085 Committed by Jim Blandy <jimb@redhat.com>.
10087 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10088 CORE_ADDR as type for selectors. Correct types for GNU run time
10089 message lookup function to use double indirection.
10090 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10091 * objc-lang.h (lookup_child_selector): Adapt prototype.
10093 * s390-nat.c (SUBOFF): New macro.
10094 (supply_gregset, fill_gregset): Use it to handle debugging
10095 of 32-bit exectuables running under a 64-bit kernel.
10096 * s390-tdep.c: Include "solib-svr4.h".
10097 (s390_svr4_fetch_link_map_offset): New function.
10098 (s390x_svr_fetch_link_map_offset): Likewise.
10099 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10100 * Makefile.in (s390-tdep.o): Update dependencies.
10102 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10104 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10105 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10106 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10107 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10108 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10109 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10110 S390_SIGNAL_FRAMESIZE,
10111 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10112 (struct frame_extra_info): Remove.
10113 (s390_memset_extra_info): Remove.
10114 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10115 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10116 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10117 (is_rse): Renamed to ...
10118 (is_rsy): ... this. Support long displacements.
10119 (is_rxe): Renamed to ...
10120 (is_rxy): ... this. Support long displacements.
10121 (compute_x_addr): Support long displacements.
10122 (struct s390_prologue_data): New data type.
10123 (s390_on_stack): Change API to use struct s390_prologue_data.
10124 (s390_store): Reimplement.
10125 (s390_load): New function.
10126 (s390_get_signal_frame_info): Remove.
10127 (s390_get_frame_info): Remove, replace by ...
10128 (s390_analyze_prolog): ... this new function.
10129 (s390_check_function_end): Remove.
10130 (s390_function_start): Remove.
10131 (s390_frameless_function_invokation): Remove.
10132 (s390_is_sigreturn): Remove.
10133 (s390_init_frame_pc_first): Remove.
10134 (s390_init_frame_extra_info): Remove.
10135 (s390_frame_init_saved_regs): Remove.
10136 (s390_frame_saved_pc_nofix): Remove.
10137 (s390_frame_saved_pc): Remove.
10138 (s390_frame_chain): Remove.
10139 (s390_fp_regnum, s390_read_fp): Remove.
10140 (s390_pop_frame_regular, s390_pop_frame): Remove.
10141 (s390_saved_pc_after_call): Remove.
10142 (s390_skip_prologue): Reimplement.
10143 (s390_in_function_epilogue_p): Support long displacements.
10144 (struct s390_unwind_cache): New data structure.
10145 (s390_frame_unwind_cache): New function.
10146 (s390_prologue_frame_unwind_cache): Likewise.
10147 (s390_backchain_frame_unwind_cache): Likewise.
10148 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10149 (s390_frame_unwind): Define.
10150 (s390_frame_sniffer): New function.
10151 (struct s390_pltstub_unwind_cache): New data structure.
10152 (s390_pltstub_frame_unwind_cache): New function.
10153 (s390_pltstub_frame_this_id): Likewise.
10154 (s390_pltstub_frame_prev_register): Likewise.
10155 (s390_pltstub_frame_unwind): Define.
10156 (s390_pltstub_frame_sniffer): New function.
10157 (struct s390_sigtramp_unwind_cache): New data structure.
10158 (s390_sigtramp_frame_unwind_cache): New function.
10159 (s390_sigtramp_frame_this_id): Likewise.
10160 (s390_sigtramp_frame_prev_register): Likewise.
10161 (s390_sigtramp_frame_unwind): Define.
10162 (s390_sigtramp_frame_sniffer): New function.
10163 (s390_frame_base_address, s390_local_base_address): New functions.
10164 (s390_frame_base): Define.
10165 (s390_unwind_pc, s390_unwind_sp): New function.
10166 (s390_push_dummy_call): Use new frame base location.
10167 (s390_unwind_dummy_id): Likewise.
10168 (s390_gdbarch_init): Remove calls to:
10169 set_gdbarch_frameless_function_invocation,
10170 set_gdbarch_deprecated_init_frame_pc,
10171 set_gdbarch_deprecated_frame_chain,
10172 set_gdbarch_deprecated_frame_init_saved_regs,
10173 set_gdbarch_deprecated_pop_frame,
10174 set_gdbarch_deprecated_init_extra_frame_info,
10175 set_gdbarch_deprecated_init_frame_pc_first,
10176 set_gdbarch_deprecated_target_read_fp,
10177 set_gdbarch_deprecated_frame_saved_pc,
10178 set_gdbarch_deprecated_saved_pc_after_call,
10179 set_gdbarch_deprecated_fp_regnum.
10181 set_gdbarch_in_solib_call_trampoline,
10182 frame_unwind_append_sniffer,
10183 frame_base_set_default,
10184 set_gdbarch_unwind_pc,
10185 set_gdbarch_unwind_sp.
10186 * Makefile.in (s390-tdep.o): Update dependencies.
10188 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10189 (S390_STACK_FRAME_OVERHEAD): Remove.
10190 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10191 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10192 (s390_promote_integer_argument): Remove.
10193 (s390_cannot_extract_struct_value_address): Remove.
10194 (s390_use_struct_convention, s390_store_struct_return): Remove.
10195 (s390_extract_return_value, s390_store_return_value): Remove.
10196 (s390_return_value_convention, s390_return_value): New functions.
10197 (is_float_singleton): Handle typedefs.
10198 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10199 Remove, replace by ...
10200 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10201 s390_function_arg_integer): ... these new functions.
10202 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10203 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10204 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10207 set_gdbarch_deprecated_store_struct_return,
10208 set_gdbarch_deprecated_extract_return_value,
10209 set_gdbarch_deprecated_store_return_value,
10210 set_gdbarch_use_struct_convention,
10211 set_gdbarch_extract_struct_value_address,
10212 set_gdbarch_deprecated_pc_in_call_dummy,
10213 set_gdbarch_deprecated_push_arguments,
10214 set_gdbarch_deprecated_save_dummy_frame_tos,
10215 set_gdbarch_deprecated_push_return_address,
10216 set_gdbarch_deprecated_sizeof_call_dummy_words,
10217 set_gdbarch_deprecated_call_dummy_words,
10218 set_gdbarch_deprecated_dummy_write_sp.
10220 set_gdbarch_push_dummy_call,
10221 set_gdbarch_unwind_dummy_id,
10222 set_gdbarch_return_value.
10224 * config/s390/nm-linux.h: Update comments.
10225 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10226 (STOPPED_BY_WATCHPOINT): Redefine.
10227 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10228 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10229 (s390_stopped_by_watchpoint): Likewise.
10230 (watch_area_cnt): Remove.
10231 * s390-nat.c: Update comments.
10232 (watch_area): Remove typedef.
10233 Global replace watch_area by struct watch_area.
10234 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10235 (s390_stopped_by_watchpoint): Remove pid argument,
10236 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10237 (s390_fix_watch_points): Remove pid argument,
10238 use s390_inferior_tid. Recompute area spanned by watchpoints.
10239 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10240 argument. Reimplement.
10242 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10243 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10244 (FETCH_INFERIOR_REGISTERS): Define.
10245 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10247 * config/s390/s390x.mt: Remove.
10248 * config/s390/tm-s390.h: Remove.
10249 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10250 (TARGET_ELF64): Remove.
10251 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10252 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10253 s390*-*-* case; always set gdb_target to s390.
10254 * regformats/reg-s390.dat: Remove control registers.
10255 * regformats/reg-s390x.dat: Likewise.
10256 * s390-tdep.h: New file.
10257 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10258 Include "inferior.h" and "s390-tdep.h".
10259 Remove private definition of offsetof.
10260 (s390_register_u_addr): Remove.
10261 (regmap_gregset, regmap_fpregset): Define.
10262 (supply_gregset, fill_gregset): Reimplement.
10263 (supply_fpregset, fill_fpregset): Likewise.
10264 (s390_inferior_tid): New function.
10265 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10266 (fetch_inferior_registers, store_inferior_registers): Likewise.
10267 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10268 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10269 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10270 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10271 (struct gdbarch_tdep): Define.
10272 (struct s390_register_info): Define.
10273 (s390_register_info): New variable.
10274 (s390_register_name): Reimplement.
10275 (s390_register_type): New function.
10276 (s390_register_raw_size, s390x_register_raw_size): Remove.
10277 (s390_cannot_fetch_register): Remove.
10278 (s390_register_byte): Remove.
10279 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10280 (s390_dwarf_regmap): New variable.
10281 (s390_dwarf_reg_to_regnum): New function.
10282 (s390_stab_reg_to_regnum): Remove.
10283 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10284 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10285 (s390_convert_register_p): Likewise.
10286 (s390_register_to_value, s390_value_to_register): Likewise.
10287 (s390_register_reggroup_p): Likewise.
10288 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10289 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10290 (s390_supply_regset, s390_regset_from_core_section): New functions.
10291 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10292 (S390_FPR_SIZE): Likewise.
10293 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10294 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10295 (S390_NUM_GPRS): Move here from tm-s390.h.
10296 (S390_NUM_FPRS): Likewise.
10297 (s390_in_function_epilogue_p): New function.
10298 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10299 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10300 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10301 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10302 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10304 set_gdbarch_deprecated_max_register_raw_size,
10305 set_gdbarch_deprecated_max_register_virtual_size,
10306 set_gdbarch_deprecated_register_byte,
10307 set_gdbarch_cannot_fetch_register,
10308 set_gdbarch_cannot_store_register,
10309 set_gdbarch_deprecated_register_size,
10310 set_gdbarch_deprecated_register_raw_size,
10311 set_gdbarch_deprecated_register_virtual_size,
10312 set_gdbarch_deprecated_register_virtual_type,
10313 set_gdbarch_deprecated_register_bytes.
10315 set_gdbarch_num_pseudo_regs,
10316 set_gdbarch_register_type,
10317 set_gdbarch_convert_register_p,
10318 set_gdbarch_register_to_value,
10319 set_gdbarch_value_to_register,
10320 set_gdbarch_register_reggroup_p,
10321 set_gdbarch_regset_from_core_section,
10322 set_gdbarch_pseudo_register_read,
10323 set_gdbarch_pseudo_register_write,
10324 set_gdbarch_in_function_epilogue_p.
10325 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10326 (s390_tdep_h): New variable.
10328 2004-02-17 Jim Blandy <jimb@redhat.com>
10330 * findvar.c (value_from_register): If the type has no length, just
10331 return an acceptable value --- don't report an internal error.
10333 * stabsread.c (read_type): If we find any type numbers that are
10334 forward references, complain if the references aren't resolved by
10335 the time we're finished reading.
10336 (cleanup_undefined_types): Make error message more appropriate for
10339 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10341 * Makefile.in (defs_h): Remove dependency on progress_h.
10342 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10344 * main.c (captured_main): Delete use of START_PROGRESS and
10347 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10349 * objfiles.c (terminate_minimal_symbol_table): Add back
10350 initialization of MSYMBOL_TYPE.
10352 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10354 Committed by Andrew Cagney.
10355 * Makefile.in (ia64_tdep_h): New macro.
10356 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10357 (ia64-tdep.o): Likewise.
10358 * ia64-tdep.h: New file.
10359 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10360 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10361 (ia64_aix_sigcontext_register_address): Likewise.
10362 (ia64_linux_getunwind_table): Delete declaration.
10363 * ia64-linux-tdep.c: Likewise.
10365 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10367 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10368 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10369 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10371 2004-02-17 Andrew Cagney <cagney@redhat.com>
10373 * symtab.c (skip_prologue_using_sal): New function.
10374 * symtab.h (skip_prologue_using_sal): Declare.
10375 * frv-tdep.c: Include "symtab.h".
10376 (skip_prologue_using_sal): Delete function.
10377 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10378 * rs6000-tdep.c (refine_prologue_limit): Mention
10379 skip_prologue_using_sal.
10380 * ia64-tdep.c (refine_prologue_limit): Ditto.
10381 * Makefile.in: Update dependencies.
10383 2004-02-16 Andrew Cagney <cagney@redhat.com>
10385 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10386 START_INFERIOR_TRAPS_EXPECTED.
10387 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10388 START_INFERIOR_TRAPS_EXPECTED.
10389 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10391 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10392 macro, moved to "nm-osf.h". Update copyright.
10393 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10396 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10397 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10398 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10399 frameless_look_for_prologue.
10400 * frame.h (legacy_frameless_look_for_prologue): Rename
10401 frameless_look_for_prologue.
10402 * gdbarch.h, gdbarch.c: Re-generate.
10403 * sh64-tdep.c (sh64_gdbarch_init): Update.
10404 * sh-tdep.c (sh_gdbarch_init): Update.
10405 * s390-tdep.c (s390_gdbarch_init): Update.
10406 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10407 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10408 * m68k-tdep.c (m68k_gdbarch_init): Update.
10409 (delta68_frame_args_address): Update.
10410 * m32r-tdep.c (m32r_gdbarch_init): Update.
10411 * hppa-tdep.c (hppa_gdbarch_init): Update.
10412 * h8300-tdep.c (h8300_gdbarch_init): Update.
10413 * frv-tdep.c (frv_gdbarch_init): Update.
10414 (frv_frameless_function_invocation): Update.
10415 * cris-tdep.c (cris_gdbarch_init): Update.
10416 (cris_frameless_function_invocation): Update.
10417 * avr-tdep.c (avr_gdbarch_init): Update.
10418 * arm-tdep.c (arm_gdbarch_init): Update.
10419 * stack.c (frame_info): Update, call predicate.
10420 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10421 * frame.c (legacy_get_prev_frame): Update, call predicate..
10422 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10423 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10424 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10426 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10427 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10428 * vax-tdep.c (vax_gdbarch_init): Ditto.
10430 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10433 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10435 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10438 2004-02-16 Andrew Cagney <cagney@redhat.com>
10440 * tui/tui-windata.c: Include "gdb_string.h".
10441 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10442 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10443 * Makefile.in: Update dependencies.
10445 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10447 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10448 * infrun.c: Include "gdb_assert.h".
10449 (singlestep_ptid, saved_singlestep_ptid)
10450 (stepping_past_singlestep_breakpoint): New variables.
10451 (resume): Set singlestep_ptid. Check for singlestep thread
10453 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10454 (handle_inferior_event): Handle singlestep thread hop.
10456 2004-02-16 Andrew Cagney <cagney@redhat.com>
10458 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10459 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10460 (dwarf2_frame_init_reg): Ditto.
10462 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10463 suggested by Joshua Neuheisel
10465 * configure.in: Always check for curses, including pdcurses.
10466 Warn, instead of error, when no curses are found. Enable TUI when
10467 curses is available.
10468 * configure: Re-generate.
10470 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10472 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10473 sh_sh4_register_convert_to_virtual.
10474 (sh_register_convert_to_raw): Rename from
10475 sh_sh4_register_convert_to_raw.
10476 (sh_pseudo_register_read): Accomodate above name change.
10477 (sh_pseudo_register_write): Ditto.
10479 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10481 * sh-tdep.c (sh_generic_register_name): Remove.
10482 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10484 2004-02-15 Andrew Cagney <cagney@redhat.com>
10486 * configure.in (build_warnings): Add -Wunused-function.
10487 * configure: Re-generate.
10489 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10490 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10492 * procfs.c (procfs_init_inferior): Assume that
10493 START_INFERIOR_TRAPS_EXPECTED is defined.
10494 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10495 * config/ns32k/tm-nbsd.h: Delete file,
10496 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10498 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10499 * config/vax/tm-vax.h: Delete file.
10501 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10502 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10503 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10504 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10505 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10506 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10507 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10509 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10511 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10512 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10513 (struct dwarf2_frame_ops): New.
10514 (dwarf2_frame_default_init_reg): New function, based on
10515 dwarf2_frame_init_reg.
10516 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10517 (dwarf2_frame_init_reg): Call architecture-specific function.
10518 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10519 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10520 instead of dwarf2_frame_data.
10521 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10522 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10524 2004-02-15 Andrew Cagney <cagney@redhat.com>
10526 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10527 register_gdbarch_swap.
10528 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10529 * f-lang.c (_initialize_f_language): Update, use
10530 DEPRECATED_REGISTER_GDBARCH_SWAP.
10531 * remote.c (_initialize_remote): Ditto.
10532 * regcache.c (_initialize_regcache): Ditto.
10533 * parse.c (_initialize_parse): Ditto.
10534 * infrun.c (_initialize_infrun): Ditto.
10535 * mi/mi-main.c (_initialize_mi_main): Ditto.
10536 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10538 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10539 poking .cacheable directly.
10540 * symfile.c (symfile_bfd_open): Ditto.
10542 * Makefile.in: Update all dependencies.
10544 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10545 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10546 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10547 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10548 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10550 2004-02-14 Andrew Cagney <cagney@redhat.com>
10552 * arch-utils.c (legacy_convert_register_p): Check
10553 DEPRECATED_REGISTER_CONVERTIBLE_P.
10554 * findvar.c (value_of_register): Ditto.
10556 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10557 * gdbarch.h, gdbarch.c: Re-generate.
10558 * arch-utils.c (deprecated_register_convertible_not): Delete.
10559 * arch-utils.h (deprecated_register_convertible_not): Delete.
10560 * mi/mi-main.c (get_register): Update. Update copyright.
10561 * infcmd.c (default_print_registers_info): Update.
10563 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10564 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10565 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10566 * gdbarch.h, gdbarch.c: Re-generate.
10567 * frame.c (deprecated_get_next_frame_hack): Delete function.
10568 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10569 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10571 * infcall.c (call_function_by_hand): Update.
10573 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10575 * symfile.c (init_entry_point_info, entry_point_address): Move
10577 * objfiles.c (init_entry_point_info, entry_point_address):..to
10579 * symfile.h (init_entry_point_info, entry_point_address): Remove
10581 * objfiles.h (init_entry_point_info, entry_point_address):Add
10583 * cris-tdep.c: Remove include of symfile.h. Add include of
10585 * infcall.c: Ditto.
10586 * mcore-tdep.c: Ditto.
10587 * mn10300-tdep.c: Ditto.
10588 * sh64-tdep.c: Ditto.
10589 * v850-tdep.c: Ditto.
10590 * arm-tdep.c: Remove include of symfile.h.
10591 * blockframe.c: Ditto.
10592 * coffread.c: Ditto.
10593 * dbxread.c: Ditto.
10594 * dwarf2read.c: Ditto.
10595 * dwarfread.c: Ditto.
10596 * frv-tdep.c: Ditto.
10597 * ia64-tdep.c: Ditto.
10598 * mdebugread.c: Ditto.
10599 * mipsread.c: Ditto.
10600 * rs6000-tdep.c: Ditto.
10601 * s390-tdep.c: Ditto.
10602 * sh-tdep.c: Ditto.
10603 * xstormy16-tdep.c: Ditto.
10604 * gdbarch.sh: Remove include of symfile.h.
10605 * gdbarch.c: Regenerate.
10606 * solib-irix.c (enable_break): Use entry_point_address().
10607 Add comment about include file.
10608 * xcoffread.c: Add comment about include file.
10609 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10610 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10611 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10612 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10613 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10615 2004-02-13 Andrew Cagney <cagney@redhat.com>
10617 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10618 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10620 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10622 2004-02-12 Fred Fish <fnf@redhat.com>
10624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10625 set_gdbarch_store_return_value.
10627 2004-02-12 Andrew Cagney <cagney@redhat.com>
10629 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10630 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10631 (interrupt_query): Ditto.
10632 (ofunc): Delete unused variable.
10633 * cris-tdep.c (cris_abi): Delete unused function.
10634 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10635 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10636 (cris_get_asr_quick_shift_steps): Ditto.
10637 (cris_skip_prologue_frameless_p): Ditto.
10638 * arm-tdep.c (arm_push_return_address): Delete unused function.
10639 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10640 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10641 * s390-tdep.c (s390_function_start): Delete unused function.
10643 2004-02-12 Andrew Cagney <cagney@redhat.com>
10645 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10646 gdbarch.h, gdbarch.c: Re-generate.
10647 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10648 to generic_prologue_frameless_p.
10649 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10650 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10652 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10654 * mips-linux-tdep.c: Include "frame.h".
10655 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10656 (mips_linux_skip_resolver): New functions.
10657 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10658 and set_gdbarch_in_solib_call_trampoline.
10659 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10660 to after set_gdbarch_in_solib_return_trampoline. Only set the
10661 solib hooks to mips16 functions if the OS ABI is unknown.
10662 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10663 including "config/tm-linux.h".
10664 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10665 * Makefile.in (mips-linux-tdep.o): Update.
10667 2004-02-11 David Carlton <carlton@kealia.com>
10669 * linespec.c (decode_compound): Only look for a class symbol when
10670 considering all but the rightmost component.
10672 2004-02-11 Andrew Cagney <cagney@redhat.com>
10674 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10675 abi code are are separatly grouped.
10677 2004-02-11 Andrew Cagney <cagney@redhat.com>
10679 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10680 * gdbarch.h, gdbarch.c: Re-generate.
10681 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10682 * v850-tdep.c (v850_gdbarch_init): Update.
10683 * sh64-tdep.c (sh64_gdbarch_init): Update.
10684 * sh-tdep.c (sh_gdbarch_init): Update.
10685 * s390-tdep.c (s390_gdbarch_init): Update.
10686 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10687 * mips-tdep.c (mips_gdbarch_init): Update.
10688 * mcore-tdep.c (mcore_gdbarch_init): Update.
10689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10690 * m32r-tdep.c (m32r_gdbarch_init): Update.
10691 * ia64-tdep.c (ia64_gdbarch_init): Update.
10692 * hppa-tdep.c (hppa_gdbarch_init): Update.
10693 * h8300-tdep.c (h8300_gdbarch_init): Update.
10694 * frv-tdep.c (frv_gdbarch_init): Update.
10695 * d10v-tdep.c (d10v_gdbarch_init): Update.
10696 * cris-tdep.c (cris_gdbarch_init): Update.
10697 * avr-tdep.c (avr_gdbarch_init): Update.
10698 * arm-tdep.c (arm_gdbarch_init): Update.
10699 * alpha-tdep.c (alpha_gdbarch_init): Update.
10701 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10703 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10705 (sh_sh4al_dsp_register_name): Ditto.
10707 2004-02-10 Andrew Cagney <cagney@redhat.com>
10709 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10710 (mips_init_frame_pc_first): Delete function.
10711 (mips_frame_saved_pc): Delete function.
10712 (mips_frame_chain): Delete function.
10713 (mips_init_extra_frame_info): Delete function.
10714 (mips_xfer_register): Delete unused variable "reg".
10715 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10716 (mips_n32n64_return_value): Delete unused variable "reg".
10717 (mips_n32n64_return_value): Delete unused variable "pos".
10718 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10719 (mips_o32_return_value): Delete unused variable "pos".
10720 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10721 (mips_print_fp_register): Delete unused variable "namelen"
10722 (mips_print_fp_register): Delete unused variable "flt2"
10723 (get_frame_pointer): Delete function.
10724 (cached_proc_desc): Delete static variable.
10725 (mips_pop_frame): Delete function.
10726 (mips_find_saved_regs): Delete function.
10727 (mips_get_saved_register): Delete function.
10728 (mips_saved_pc_after_call): Delete function.
10729 (SIGFRAME_BASE): Delete macro.
10730 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10731 (SIGFRAME_PC_OFF): Delete macro.
10732 (SIGFRAME_REGSAVE_OFF): Delete macro.
10733 (mips_dump_tdep): Do not print deleted macro definitions.
10735 2004-02-10 Andrew Cagney <cagney@redhat.com>
10737 * Makefile.in (SFILES): Remove explictly listed tui files.
10738 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10740 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10742 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10743 to use paddr functions to format ia64 addresses and long values.
10744 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10745 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10746 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10747 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10748 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10750 2004-02-10 Andrew Cagney <cagney@redhat.com>
10752 * defs.h: Do not include "tui.h".
10753 * gdb_curses.h: New file.
10754 * tui/tui-hooks.h: New file.
10755 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10756 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10757 (tui_initialize_io): Delete declaration.
10758 (tui_initialize_readline: Delete redundant declaration.
10759 (struct tui_point): Delete definition.
10760 * tui/tui-data.h (struct tui_point): Define.
10761 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10762 * utils.c: Include "tui/tui.h".
10763 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10764 * printcmd.c [TUI]: Include "tui/tui.h".
10765 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10766 * tui/tui-command.c: Include "gdb_curses.h".
10767 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10768 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10769 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10770 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10771 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10772 * Makefile.in: Update all dependencies.
10773 (tui_hooks_h, gdb_curses_h): Define.
10774 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10776 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10778 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10779 auxf2. Add comments about some other rarely used fields.
10781 2004-02-10 Andrew Cagney <cagney@redhat.com>
10783 * Makefile.in (init.c): Fix script removing duplicates. Problem
10784 reported by Peter Schauer.
10786 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10788 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10789 obstack_specify_allocation.
10790 * objfiles.c (allocate_objfile): Ditto.
10791 * solib-sunos.c (solib_add_common_symbols)
10792 (allocate_rt_common_objfile): Ditto.
10793 * symfile.c (reread_symbols): Ditto.
10794 * gdb_obstack.h: Add comment.
10796 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10798 * linespec.c (decode_line_1, locate_first_half)
10799 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10800 commented out code.
10802 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10804 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10807 2004-02-09 Andrew Cagney <cagney@redhat.com>
10809 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10810 fails, try find_pc_section. Fix PR c++/1267.
10811 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10812 instead of find_pc_mapped_section.
10813 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10814 not default to the section containing PC. Fix PR symtab/1519.
10816 2004-02-09 Andrew Cagney <cagney@redhat.com>
10818 * Makefile.in (mips-tdep.o): Update dependencies.
10819 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10821 (mips_unwind_pc): Return the pseudo PC register.
10822 (mips_unwind_dummy_id): New function.
10823 (mips16_fetch_instruction): New function.
10824 (mips32_fetch_instruction): New function.
10825 (struct mips_frame_cache): Define.
10826 (mips_mdebug_frame_cache): New function.
10827 (mips_mdebug_frame_this_id): New function.
10828 (mips_mdebug_frame_prev_register): New function.
10829 (mips_mdebug_frame_unwind): Define.
10830 (mips_mdebug_frame_sniffer): New function.
10831 (mips_mdebug_frame_base_address): New function.
10832 (mips_mdebug_frame_base): Define.
10833 (mips_mdebug_frame_base_sniffer): New function.
10834 (mips_gdbarch_init): Append unwind and base sniffers. Set
10837 2004-02-08 Andrew Cagney <cagney@redhat.com>
10839 * frame.c: Print both the register number and name.
10841 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10842 and a sed into a single sed. Make .c and .o patterns more robust.
10844 (INIT_FILES): Replace OBS with COMMON_OBS.
10845 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10847 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10849 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10850 the PT_WCOOKIE request.
10852 2004-02-08 Andrew Cagney <cagney@redhat.com>
10854 * mips-tdep.c (mips_unwind_pc): New function.
10855 (mips_gdbarch_init): Set mips_unwind_pc.
10857 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10858 (get_frame_id): Allow the UNKNOWN_FRAME.
10859 (frame_register_unwind, get_frame_type): Ditto.
10861 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10862 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10863 unwind_dummy_id indicates a legacy frame.
10865 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10866 * configure: Re-generate.
10868 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10871 2004-02-08 Andrew Cagney <cagney@redhat.com>
10873 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10875 * configure: Re-generate.
10876 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10877 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10878 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10879 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10880 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10881 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10882 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10883 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10884 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10885 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10887 2004-02-07 Andrew Cagney <cagney@redhat.com>
10889 * Makefile.in: Update all dependencies.
10891 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10892 * configure: Re-generate.
10893 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10894 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10895 (COMMON_OBS): Add "main.o" and "annotate.o".
10896 (ANNOTATE_OBS): Delete.
10897 (OBS): Remove ANNOTATE_OBS.
10898 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10900 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10901 against CONFIG_OBS and "main.o".
10902 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10903 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10905 * tui/tui-command.c: Include "gdb_string.h", delete register
10906 attribute, use ISO-C function signatures.
10907 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10908 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10909 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10910 * tui/tui.c: Ditto.
10912 * tui/tui-command.c: Change variable and function names to lower
10914 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10915 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10916 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10917 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10918 * tui/tui-winsource.c, tui/tui.c: Ditto.
10920 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10922 * buildsym.c (free_pending_blocks, finish_block)
10923 (record_pending_block, make_blockvector, end_symtab): Replace
10924 symbol_obstack with objfile_obstack.
10925 * coffread.c (process_coff_symbol, coff_read_struct_type)
10926 (coff_read_enum_type): Ditto.
10927 * cp-namespace.c (initialize_namespace_symtab)
10928 (check_one_possible_namespace_symbol): Ditto.
10929 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10930 (dwarf2_symbol_mark_computed): Ditto.
10931 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10932 * elfread.c (elf_symtab_read): Ditto.
10933 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10934 (hpread_read_enum_type, hpread_read_function_type)
10935 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10937 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10938 (java_link_class_type): Ditto.
10939 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10940 (new_symbol): Ditto.
10941 * minsyms.c (install_minimal_symbols): Ditto.
10942 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10943 (terminate_minimal_symbol_table): Replace symbol_obstack with
10945 (free_objfile): Remove freeing of symbol_obstack.
10946 * objfiles.h: Remove symbol_obstack field.
10947 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10949 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10951 (solib_add_common_symbols): Replace symbol_obstack with
10953 * somsolib.c (som_solib_add): Ditto.
10954 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10955 (common_block_start, common_block_end): Ditto.
10956 * symfile.c (reread_symbols): Remove freeing and init of
10958 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10959 * symfile.h: Update comment.
10960 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10962 * symtab.c (symbol_set_names): Replace symbol_obstack with
10964 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10966 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10967 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10970 2004-02-07 Andrew Cagney <cagney@redhat.com>
10972 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10973 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10974 fields and variables.
10975 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10976 (m_beInvisible): Delete macro.
10977 * tui/tui-data.h: Fix case case fields and variables.
10978 (m_genWinPtrIsNull): Delete macro.
10979 (tui_win_list): Rename winList.
10980 (TUI_SRC_WIN): Rename srcWin.
10981 (TUI_DISASM_WIN): Rename disassemWin.
10982 (TUI_DATA_WIN): Rename dataWin.
10983 (TUI_CMD_WIN): Rename cmdWin.
10984 (m_genWinPtrNotNull): Delete macro.
10985 (m_winPtrIsNull): Delete macro.
10986 (m_winPtrNotNull): Delete macro.
10987 (tui_win_is_source_type): Replace m_winIsSourceType
10988 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10989 (tui_win_has_locator): Replace m_hasLocator.
10990 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10991 m_setWinHighlightOff.
10992 * tui/tui-data.c: Update references.
10993 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10994 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10995 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10996 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10997 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10998 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10999 * tui/tui-winsource.c, tui/tui.c: Ditto.
11001 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11003 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11004 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11007 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11008 variable `i6' to `i7'.
11009 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11011 2004-02-07 Andrew Cagney <cagney@redhat.com>
11013 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11014 (TuiPoint, TuiPointPtr): Ditto.
11015 (TuiStatus, TuiStatusPtr): Ditto.
11016 (TuiWinType, TuiWinTypePtr): Ditto.
11017 (struct tui_point): Rename _TuiPoint.
11018 (tui_get_low_disassembly_address): Rename
11019 tuiGetLowDisassemblyAddress.
11020 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11021 (tuiFree): Delete declaration.
11022 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11023 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11024 * tui/tui.c (tuiFree): Delete function.
11025 * cli/cli-cmds.c (disassemble_command): Update references.
11026 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11027 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11028 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11029 * tui/tui-winsource.c: Ditto.
11031 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11033 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11034 coffstab_build_psymtabs, elfstab_build_psymtabs)
11035 (stabsect_build_psymtabs): Replace psymbol_obstack with
11037 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11038 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11040 * dwarfread.c (scan_compilation_units): Ditto.
11041 * elfread.c (elfstab_offset_sections): Ditto.
11042 * hppa-tdep.c (read_unwind_info): Ditto.
11043 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11044 (hpread_end_psymtab): Ditto.
11045 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11046 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11048 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11049 * objfiles.c (add_to_objfile_sections)
11050 (build_objfile_section_table): Ditto.
11051 (allocate_objfile): Remove init of psymbol_obstack.
11052 (free_objfile): Remove freeing of psymbol_obstack.
11053 * objfiles.h (struct objfile): Remove field
11054 psymbol_obstack. Update comments.
11055 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11056 psymbol_obstack with objfile_obstack.
11057 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11059 * somread.c (som_symfile_offsets, init_import_symbols)
11060 (init_export_symbols): Replace psymbol_obstack with
11062 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11063 * symfile.c (default_symfile_offsets, syms_from_objfile)
11064 (reread_symbols): Remove freeing and init of psymbol_obstack.
11065 (cashier_psymtab): Update comment.
11066 * symmisc.c (print_objfile_statistics): Don't report stats for
11068 * symtab.h (struct general_symbol_info, struct partial_symtab):
11070 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11071 (xcoff_symfile_offsets): Replace psymbol_obstack with
11074 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11076 * objfiles.h (struct objfile): Add objfile_obstack field.
11077 Remove type_obstack field.
11079 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11080 read_structure_scope read_enumeration, new_symbol): Replace
11081 type_obstack with objfile_obstack.
11082 * dwarfread.c (struct_type, enum_type): Ditto.
11083 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11084 (lookup_fundamental_type): Ditto.
11085 * gdbtypes.h (TYPE_ALLOC): Ditto.
11086 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11087 (hpread_read_doc_function_type, hpread_read_struct_type)
11088 (fix_static_member_physnames, hpread_read_array_type)
11089 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11090 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11091 (java_link_class_type): Ditto.
11092 * mdebugread.c (parse_type): Ditto.
11093 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11094 * solib-sunos.c (solib_add_common_symbols): Ditto.
11095 * stabsread.c (define_symbol, read_type, read_member_functions,
11096 read_cpp_abbrev, read_one_struct_field): Ditto.
11097 * symfile.c (reread_symbols): Ditto.
11098 * symmisc.c (print_objfile_statistics): Ditto.
11100 2004-02-07 Andrew Cagney <cagney@redhat.com>
11102 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11103 (tui_exec_info_content): Rename TuiExecInfoContent.
11104 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11105 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11106 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11107 (TuiList, TuiListPtr): Ditto.
11108 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11109 (TuiDataType, TuiDataTypePtr): Ditto.
11110 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11111 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11112 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11113 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11114 (TuiDataElement, TuiDataElementPtr): Ditto.
11115 (TuiWinElement, TuiWinElementPtr): Ditto.
11116 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11117 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11118 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11119 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11120 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11121 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11122 * tui/tui-command.c, tui/tui-data.c: Update references.
11123 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11124 * tui/tui-regs.c, 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 * dwarf2-frame.h: Update copyright.
11131 (enum dwarf2_frame_reg_rule): New.
11132 (struct dwarf2_frame_state_reg): New.
11133 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11134 * dwarf2-frame.c: Update copyright.
11135 (enum dwarf2_reg_rule): Remove.
11136 (struct dwarf2_frame_state): Remove defenition of `struct
11137 dwarf2_frame_state_reg'.
11138 (read_reg): Call get_frame_arch to get the architecture instead of
11139 using CURRENT_GDBARCH.
11140 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11142 (dwarf2_frame_init_reg): New function.
11143 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11144 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11145 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11146 tags with DWARF2_FRAME_.
11147 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11148 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11149 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11151 2004-02-06 Andrew Cagney <cagney@redhat.com>
11153 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11154 (enum tui_data_type): Rename _TuiDataType.
11155 (struct tui_layout_def): Rename _TuiLayoutDef.
11156 (struct tui_source_element): Rename _TuiSourceElement.
11157 (struct tui_data_element): Rename _TuiDataElement.
11158 (struct tui_command_element): Rename _TuiCommandElement.
11159 (struct tui_locator_element): Rename _TuiLocatorElement.
11160 (union tui_which_element): Define.
11161 (struct tui_win_element): Rename _TuiWinElement.
11162 (struct tui_data_info): Rename _TuiDataInfo.
11163 (struct tui_source_info): Rename _TuiSourceInfo.
11164 (struct tui_command_info): Rename _TuiCommandInfo.
11165 (tui_initialize_static_data): Rename initializeStaticData.
11166 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11167 (tui_alloc_win_info): Rename allocWinInfo.
11168 (tui_init_generic_part): Rename initGenericPart.
11169 (tui_init_win_info): Rename initWinInfo.
11170 (tui_alloc_content): Rename allocContent.
11171 (tui_add_content_elements): Rename addContentElements.
11172 (tui_init_content_element): Rename initContentElement.
11173 (tui_free_window): Rename freeWindow.
11174 (tui_free_win_content): Rename freeWinContent.
11175 (tui_free_data_content): Rename freeDataContent.
11176 (tui_free_all_source_wins_content): Rename
11177 freeAllSourceWinsContent.
11178 (tui_del_window): Rename tuiDelWindow.
11179 (tui_del_data_windows): Rename tuiDelDataWindows.
11180 (tui_partial_win_by_name): Rename partialWinByName.
11181 (tui_win_name): Rename winName.
11182 (tui_current_layout): Rename currentLayout.
11183 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11184 (tui_term_height): Rename termHeight.
11185 (tui_set_term_height_to): Rename setTermHeightTo.
11186 (tui_term_width): Rename termWidth.
11187 (tui_set_term_width_to): Rename setTermWidthTo.
11188 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11189 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11190 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11191 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11192 (tui_source_windows): Rename sourceWindows.
11193 (tui_clear_source_windows): Rename clearSourceWindows.
11194 (tui_clear_source_windows_detail): Rename
11195 clearSourceWindowsDetail.
11196 (tui_clear_win_detail): Rename clearWinDetail.
11197 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11198 (tui_default_tab_len): Rename tuiDefaultTabLen.
11199 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11200 (tui_win_with_focus): Rename tuiWinWithFocus.
11201 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11202 (tui_layout_def): Rename tuiLayoutDef.
11203 (tui_win_resized): Rename tuiWinResized.
11204 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11205 (tui_next_win): Rename tuiNextWin.
11206 (tui_prev_win): Rename tuiPrevWin.
11207 (tui_add_to_source_windows): Rename addToSourceWindows.
11208 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11209 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11210 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11211 * tui/tui.c, tui/tui-data.c: Ditto.
11212 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11213 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11215 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11216 (struct symtab): Declare.
11217 (tui_set_source_content): Rename tuiSetSourceContent.
11218 (tui_show_symtab_source): Rename tuiShowSource.
11219 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11220 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11221 * tui/tui-source.c: Update copyright. Update references.
11222 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11223 * tui/tui-stack.c: Update references.
11225 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11226 (struct tui_win_info): Declare.
11227 (tui_scroll_forward): Rename tuiScrollForward.
11228 (tui_scroll_backward): Rename tuiScrollBackward.
11229 (tui_scroll_left): Rename tuiScrollLeft.
11230 (tui_scroll_right): Rename tuiScrollRight.
11231 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11232 (tui_resize_all): Rename tuiResizeAll.
11233 (tui_refresh_all_win): Rename tuiRefreshAll.
11234 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11235 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11236 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11237 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11239 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11240 (tui_erase_data_content): Rename tuiEraseDataContent.
11241 (tui_display_all_data): Rename tuiDisplayAllData.
11242 (tui_check_data_values): Rename tuiCheckDataValues.
11243 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11244 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11245 (tui_first_data_element_no_in_line): Rename
11246 tuiFirstDataElementNoInLine.
11247 (tui_delete_data_content_windows): Rename
11248 tuiDeleteDataContentWindows.
11249 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11250 (tui_display_data_from): Rename tuiDisplayDataFrom.
11251 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11252 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11253 * tui/tui-win.c, tui/tui-regs.c: Update references.
11254 * tui/tui-layout.c, tui/tui.c: Update references.
11256 * tui/tui-wingeneral.h: Update copyright.
11257 (m_allBeVisible): Delete macro.
11258 (m_allBeInvisible): Delete macro.
11259 (struct tui_gen_win_info): Declare.
11260 (struct tui_win_info): Declare.
11261 (tui_unhighlight_win): Rename unhighlightWin.
11262 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11263 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11264 (tui_make_window): Rename makeWindow.
11265 (tui_copy_win): Rename copyWin.
11266 (tui_box_win): Rename boxWin.
11267 (tui_highlight_win): Rename highlightWin.
11268 (tui_check_and_display_highlight_if_needed): Rename
11269 checkAndDisplayHighlightIfNeeded.
11270 (tui_refresh_all): Rename refreshAll.
11271 (tui_delete_win): Rename tuiDelwin.
11272 (tui_refresh_win): Rename tuiRefreshWin.
11273 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11274 (tui_make_visible, tui_make_invisible): New functions.
11275 (tui_make_all_visible, tui_make_all_invisible): New functions.
11276 (make_all_visible): Rename makeAllVisible.
11277 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11278 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11279 * tui/tui-windata.c, tui/tui-win.c: Update references.
11280 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11281 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11283 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11285 * proc-api.c (write_with_trace): Initialize local variable to
11286 silence compiler warning.
11288 2004-02-06 Andrew Cagney <cagney@redhat.com>
11290 * tui/tui-source.h: Do not include "defs.h".
11291 (struct tui_win_info): Declare.
11292 (tui_set_source_content_nil): Declare.
11293 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11294 (union tui_line_or_address): Rename _TuiLineOrAddress.
11295 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11296 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11297 (tui_update_source_window_as_is): Rename
11298 tuiUpdateSourceWindowAsIs.
11299 (tui_update_source_windows_with_addr): Rename
11300 tuiUpdateSourceWindowsWithAddr.
11301 (tui_update_source_windows_with_line): Rename
11302 tuiUpdateSourceWindowsWithLine.
11303 (tui_clear_source_content): Rename tuiClearSourceContent.
11304 (tui_erase_source_content): Rename tuiEraseSourceContent.
11305 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11306 (tui_show_source_content): Rename tuiShowSourceContent.
11307 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11308 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11309 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11310 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11311 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11312 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11313 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11314 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11315 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11316 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11317 (struct tui_win_info): Declare.
11318 * tui/tui-stack.c: Update references.
11319 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11320 * tui/tui-win.c, tui/tui-source.c: Ditto.
11321 * tui/tui.c, tui/tui-disasm.c: Ditto.
11323 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11325 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11326 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11328 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11330 * infrun.c (handle_inferior_event): Allow for breakpoint
11331 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11332 and SIGEMT. Update comments.
11333 * NEWS (Revised SPARC target): Mention support for non-executable
11336 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11338 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11339 * inftarg.c: Update copyright year.
11340 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11341 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11342 (sparc_xfer_wcookie): New function.
11343 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11344 * Makefile.in (sparc-nat.o): Update dependencies.
11345 * config/sparc/nm-nbsd.h: Include "target.h".
11346 (NATIVE_XFER_WCOOKIE): New define.
11347 (sparc_xfer_wcookie): New prototype.
11349 2004-02-04 Andrew Cagney <cagney@redhat.com>
11351 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11352 SYSCALL_TRAP function.
11353 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11355 2004-02-04 Andrew Cagney <cagney@redhat.com>
11356 Daniel Jacobowitz <drow@mvista.com>
11358 * objfiles.h: Delete comments refering to inside_entry_func and
11359 DEPRECATED_FRAME_CHAIN_VALID.
11360 * defs.h (inside_entry_func): Update prototype..
11361 * blockframe.c (inside_entry_func): Rename to
11362 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11363 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11365 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11367 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11368 outside of #ifdef SOLIB_ADD region.
11369 (do_restore_lang_radix_cleanup): Ditto.
11370 (resolve_pending_breakpoint): Ditto.
11372 2004-02-03 Andrew Cagney <cagney@redhat.com>
11374 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11375 (process_note_abi_tag_sections): Delete unused function.
11376 (ia64_read_fp): Delete unused function.
11377 (gdbarch_extract_struct_value_address): Delete declaration.
11379 2004-02-02 Andrew Cagney <cagney@redhat.com>
11381 * vax-tdep.c (vax_frame_chain): Delete call to
11382 deprecated_inside_entry_file.
11383 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11385 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11387 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11388 column that's "empty" or "same value" when eliminating REG_RA
11391 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11393 * NEWS: Add information about new pending breakpoint support.
11395 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11397 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11398 and pending fields for pending breakpoint support.
11399 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11400 (condition_command): Only parse condition if not a pending
11402 (print_one_breakpoint): Add support for pending breakpoints.
11403 (describe_other_breakpoints): Add checks to verify we are not
11404 dealing with pending breakpoints.
11405 (check_duplicates): Don't check pending breakpoints.
11406 (set_raw_breakpoint): Initialize pending flag.
11407 (do_restore_lang_radix_cleanup): New cleanup routine.
11408 (resolve_pending_breakpoint): New function.
11409 (re_enable_breakpoints_in_shlibs): Try and resolve any
11410 pending breakpoints via resolve_pending_breakpoint.
11411 (mention): Add pending breakpoint support.
11412 (parse_breakpoint_sals): Add new parameter to pass to
11413 decode_line_1 to indicate silent errors when files or functions
11414 are not found. Change all callers.
11415 (do_captured_parse_breakpoint): New function.
11416 (break_command_1): Change prototype to return an rc value and to
11417 take an optional pending breakpoint pointer. Support creating
11418 a pending breakpoint if a "not found" form of error occurs when
11419 parsing the breakpoint. Also support resolving an existing pending
11420 breakpoint and be silent if the resolution fails.
11421 (create_breakpoints): Change prototype to take pending breakpoint
11422 pointer. When resolving a pending breakpoint, use the new pointer
11423 to provide a conditional or commands added by the end-user.
11424 (delete_breakpoint): Add appropriate check for pending.
11425 (breakpoint_re_set_one): Ditto.
11426 (do_enable_breakpoint): Ditto.
11428 2004-02-02 David Carlton <carlton@kealia.com>
11430 * valops.c (enum oload_classification): New.
11431 (find_overload_match): Break implementation into separate
11432 functions; delete #if 0'd code; look for symbols within
11434 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11435 (find_oload_champ,oload_method_static,classify_oload_match): New.
11436 * cp-support.h: Add declaration for cp_func_name; update
11437 declaration for make_symbol_overload_list.
11438 * cp-support.c (cp_func_name): New.
11439 (overload_list_add_symbol): Fix comment, use
11440 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11441 (make_symbol_overload_list): Take a function name and a namespace
11442 instead of a symbol; change implementation.
11443 (make_symbol_overload_list_using): New.
11444 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11446 2004-02-02 Fred Fish <fnf@redhat.com>
11448 * main.c (gdb_stdtarg): Move definition to group with other
11449 gdb_stdtarg definitions and update copyright years.
11450 * remote-sim.c (gdb_os_write_stderr): Write output to
11451 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11452 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11453 gdb_stderr stream and update copyright years.
11455 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11457 * Makefile.in (mips-linux-nat.o): Update dependencies.
11458 * mips-linux-nat.c: Include mips-tdep.h.
11460 2004-02-01 Roland McGrath <roland@redhat.com>
11462 * sol-thread.c (sol_thread_xfer_partial): New function.
11463 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11464 (init_sol_core_ops): Likewise.
11466 * procfs.c (procfs_xfer_partial): New function.
11467 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11468 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11470 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11471 procfs_xfer_auxv function.
11473 * procfs.c (procfs_make_note_section): If we can read
11474 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11475 * linux-proc.c (linux_make_note_section): Likewise.
11477 * auxv.h: New file.
11478 * auxv.c: New file.
11479 * Makefile.in (auxv_h): New variable.
11480 (COMMON_OBS): Add auxv.o here.
11481 (auxv.o): New target.
11483 * corelow.c (core_xfer_partial): New function.
11484 (init_core_ops): Use it for core_ops.to_xfer_partial.
11486 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11487 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11488 macro if that is defined.
11490 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11492 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11493 and check the specified thread for each breakpoint.
11494 * breakpoint.h (bpstat_stop_status): Update prototype.
11495 * infrun.c (handle_inferior_event): Update calls to
11496 bpstat_stop_status.
11498 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11500 * Makefile.in (cli-cmds.o): Add $(readline_h).
11502 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11504 * cli/cli-cmds.c: Include readline.h.
11505 (complete_command): Pass the start of the last word to
11508 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11510 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11511 argument, and change first argument to a CORE_ADDR.
11512 * breakpoint.h (bpstat_stop_status): Update prototype.
11513 * infrun.c (adjust_pc_after_break): Add a new comment.
11514 (handle_inferior_event): Update calls to bpstat_stop_status.
11516 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11518 * breakpoint.h: Update copyright years.
11520 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11522 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11523 (bpstat_stop_status): Don't decrement PC.
11524 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11526 * infrun.c (adjust_pc_after_break): New function.
11527 (handle_inferior_event): Call it, early. Remove later references
11528 to DECR_PC_AFTER_BREAK.
11529 (normal_stop): Add commentary.
11531 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11533 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11534 2004-01-27 double-free fix.
11536 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11538 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11539 (sparc32_frame_prev_register): Handle StackGhost.
11540 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11542 2004-01-29 Roland McGrath <roland@redhat.com>
11544 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11545 * configure: Regenerated.
11547 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11548 * Makefile.in (procfs.o): Add dep.
11550 2004-01-28 Andrew Cagney <cagney@redhat.com>
11552 * tui/tui-stack.h: Update copyright.
11553 (struct frame_info): Add opaque declaration.
11554 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11555 (tui_show_locator_content): Rename tuiShowLocatorContent.
11556 (tui_show_frame_info): Rename tuiShowFrameInfo.
11557 * tui/tui-stack.c: Update copyright. Update references.
11558 * tui/tui-winsource.c: Update references.
11559 * tui/tui-win.c: Update references.
11560 * tui/tui-layout.c: Update references.
11561 * tui/tui-hooks.c: Update copyright, update references.
11562 * tui/tui.c: Update copyright, update references.
11563 * tui/tui-disasm.c: Update references.
11565 2004-01-28 David Carlton <carlton@kealia.com>
11567 * dwarf2read.c (add_partial_structure): Use demangled name if
11568 namespace equals "".
11570 2004-01-27 Jim Blandy <jimb@redhat.com>
11572 Clean up misapplied patch:
11573 * dwarf2read.c (determine_prefix): Change one of the two forward
11574 declarations for 'determine_prefix_aux' to a declaration for this.
11575 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11576 argument to 'die_specification'.
11578 * dwarf2read.c (read_func_scope): Re-indent comment.
11580 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11582 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11583 b->exp to NULL after freeing so that error during re-parsing or
11584 evaluation of expressions associated with breakpoint don't
11585 eventually lead to re-freeing of storage.
11586 Committed by Andrew Cagney.
11588 2004-01-27 Andrew Cagney <cagney@redhat.com>
11590 * source.c (ambiguous_line_spec): Delete undefined declaration.
11591 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11592 (m32r_set_server_address, m32r_set_download_path): Ditto.
11593 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11595 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11597 * dwarf2read.c: Update calls to changed and renamed functions, and
11598 references to moved variables.
11600 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11601 language, language_defn, list_in_scope, and ftypes members.
11602 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11603 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11604 (baseaddr): Remove globals.
11606 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11607 (set_cu_language, die_is_declaration, die_specification)
11608 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11609 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11610 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11611 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11613 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11614 cu.list_in_scope. Don't initialize cu_header_offset.
11615 (add_partial_symbol): Add local baseaddr.
11616 (psymtab_to_symtab_1): Add local baseaddr. Use
11617 objfile->section_offsets for consistency. Don't initialize
11618 cu_header_offset; do initialize cu.header.offset and
11620 (read_file_scope, read_func_scope, read_lexical_block_scope)
11621 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11623 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11625 * PROBLEMS: Add gdb/1516.
11627 2003-12-29 Robert Millan <robertmh@gnu.org>
11629 Patch committed by Andrw Cagney.
11630 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11631 * configure.tgt: Match knetbsd*-gnu.
11633 2004-01-26 Andrew Cagney <cagney@redhat.com>
11635 * breakpoint.c (catch_command_1): Delete #ifdef code.
11636 (catch_fork_command_1): Delete #ifdef wrapper.
11637 (catch_exec_command_1): Ditto.
11638 (catch_load_command_1): Ditto.
11639 (catch_unload_command_1): Ditto.
11641 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11642 (catch_breakpoint): Delete #if0ed function.
11643 (disable_catch_breakpoint): Ditto.
11644 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11645 (disable_catch, enable_catch, delete_catch): Ditto.
11647 2004-01-26 Andrew Cagney <cagney@redhat.com>
11649 * remote.c (echo_check, quit_flag): Delete variables.
11650 (cisco_kernel_mode): Delete variable.
11651 (minitelnet_return, tty_input, escape_count): Delete variables.
11652 (remote_cisco_mode): Delete variable.
11653 (remote_cisco_open, remote_cisco_close): Delete function.
11654 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11655 (init_remote_cisco_ops): Delete function.
11656 (_initialize_remote): Do not install "remote cisco" code.
11657 (read_frame): Delete cisco specific code.
11658 (remote_info_process): Delete function.
11659 (remote_wait): Delete cisco specific code.
11660 (remote_cisco_section_offsets): Delete function.
11661 (remote_cisco_objfile_relocate): Delete function.
11662 (remote_async_wait): Delete cisco specific code.
11663 (minitelnet, readtty, readsocket): Delete function.
11665 2004-01-26 Andrew Cagney <cagney@redhat.com>
11667 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11668 comments mentioning extract_returned_value_address.
11669 * infcmd.c (print_return_value): Update. Add comments on
11670 extract_returned_value_address.
11671 * stack.c (return_command): Add comments on
11672 extract_returned_value_address.
11673 * values.c: Update comment.
11674 * m32r-tdep.c: Update comment.
11675 * sparc-tdep.c: Update comment.
11676 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11677 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11678 * sh64-tdep.c (sh64_gdbarch_init): Update.
11679 * sh-tdep.c (sh_gdbarch_init): Update.
11680 * s390-tdep.c (s390_gdbarch_init): Update.
11681 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11682 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11683 * m68k-tdep.c (m68k_gdbarch_init): Update.
11684 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11685 * m32r-tdep.c (m32r_gdbarch_init): Update.
11686 * ia64-tdep.c (ia64_gdbarch_init): Update.
11687 * h8300-tdep.c (h8300_gdbarch_init): Update.
11688 * frv-tdep.c (frv_gdbarch_init): Update.
11689 * arm-tdep.c (arm_gdbarch_init): Update.
11690 * alpha-tdep.c (alpha_gdbarch_init): Update.
11692 2004-01-26 Andrew Cagney <cagney@redhat.com>
11694 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11695 SYMBOL_LOCATION_FUNCS
11696 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11697 "struct symbol_ops".
11698 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11699 type to "struct symbol_ops".
11700 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11701 (struct symbol): Replace ".aux_value.loc.funcs" and
11702 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11703 (SYMBOL_OBJFILE): Delete macro.
11704 (SYMBOL_LOCATION_FUNCS): Delete macro.
11705 (SYMBOL_LOCATION_BATON): Update.
11706 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11707 intead of SYMBOL_LOCATION_FUNCS.
11708 * ax-gdb.c (gen_var_ref): Ditto.
11709 * printcmd.c (address_info): Ditto.
11710 * findvar.c (read_var_value): Ditto.
11711 (symbol_read_needs_frame): Ditto.
11713 2004-01-26 Andrew Cagney <cagney@redhat.com>
11715 * dwarf2read.c (read_func_scope): Document frame-base hack.
11717 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11719 * infcmd.c (print_return_value): Plug memory leak; delete
11720 ui_stream object. Rename argument `structure_return' to
11723 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11725 * infcmd.c (print_return_value): Wrap long lines.
11726 (finish_command_continuation, finish_command): Remove unused
11727 variable `funcaddr'. Fix some coding-standards problems.
11729 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11730 SECT_SIZE is large enough, not whether it's exactly the right size.
11731 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11732 TDEP->fpregset to zero.
11734 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11735 floating-point registers for traditional NetBSD core files.
11736 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11737 TDEP->sizeof_fpregset here.
11739 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11741 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11742 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11743 function with code split out from
11744 sparc32nbsd_sigcontext_frame_cache.
11745 (sparc32nbsd_sigcontext_frame_cache): Use
11746 sparc32nbsd_sigcontext_saved_regs.
11747 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11749 * sparcobsd-tdep.c: New file.
11750 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11751 (sparcobsd-tdep.o): New dependency.
11752 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11753 * config/sparc/obsd.mt: New file.
11755 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11756 TDEP->fpregset to be initialized to enable core file register
11759 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11761 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11762 Add opaque declarations.
11763 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11764 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11765 function with code split out from
11766 sparc64nbsd_sigcontext_frame_cache.
11767 (sparc64nbsd_sigcontext_frame_cache): Use
11768 sparc64nbsd_sigcontext_saved_regs.
11769 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11771 * sparc64obsd-tdep.c: New file.
11772 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11773 (sparc64obsd-tdep.o): New dependency.
11774 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11775 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11776 * config/sparc/obsd64.mt: New file.
11778 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11779 read the instruction at PC.
11781 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11782 value of GDB_OSABI_DEFAULT.
11783 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11784 instead of GDB_OSABI_NETBSD_AOUT.
11786 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11788 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11791 2004-01-23 Andrew Cagney <cagney@redhat.com>
11793 * printcmd.c (display_command): Replace tui_set_display call with
11794 tui_set_layout_for_display_command.
11795 * tui/tui.h (enum tui_win_type): Define.
11796 (tui_set_layout): Delete declaration.
11797 (tui_set_layout_for_display_command): Rename set_tui_layout.
11798 * tui/tui-data.h (enum tui_layout_type): Define.
11799 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11801 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11802 (tui_default_win_height): Rename tuiDefaultWinHeight.
11803 (tui_default_win_viewport_height): Rename
11804 tuiDefaultWinViewportHeight.
11805 (tui_set_layout): RenametuiSetLayout.
11806 * tui/tui-layout.c: Update references.
11807 * tui/tui.c: Update references.
11808 * tui/tui-disasm.c: Update references.
11810 2004-01-23 David Carlton <carlton@kealia.com>
11812 Partial workaround for PR c++/1511:
11813 * cp-namespace.c: Include frame.h.
11814 (cp_lookup_transparent_type): New
11815 (cp_lookup_transparent_type_loop): New.
11816 * cp-support.h: Declare cp_lookup_transparent_type.
11817 * symtab.c (basic_lookup_transparent_type): Renamed from
11818 lookup_transparent_type.
11819 (lookup_transparent_type): Replace old body by a call to
11820 current_language->la_lookup_transparent_type.
11821 * symtab.h: Update copyright. Declare
11822 basic_lookup_transparent_type.
11823 * language.h: Update copyright.
11824 (struct language_defn): Add la_lookup_transparent_type.
11825 * language.c: Update copyright.
11826 (unknown_language_defn): Add basic_lookup_transparent_type.
11827 (auto_language_defn): Add basic_lookup_transparent_type.
11828 (local_language_defn): Add basic_lookup_transparent_type.
11829 * ada-lang.c: Update copyright.
11830 (ada_language_defn): Add basic_lookup_transparent_type.
11831 * c-lang.c: Update copyright.
11832 (c_language_defn): Add basic_lookup_transparent_type.
11833 (cplus_language_defn): Add basic_lookup_transparent_type.
11834 (asm_language_defn): Add basic_lookup_transparent_type.
11835 (minimal_language_defn): Add basic_lookup_transparent_type.
11836 * f-lang.c: Update copyright.
11837 (f_language_defn): Add basic_lookup_transparent_type.
11838 * jv-lang.c: Update copyright.
11839 (java_language_defn): Add basic_lookup_transparent_type.
11840 * m2-lang.c: Update copyright.
11841 (m2_language_defn): Add basic_lookup_transparent_type.
11842 * objc-lang.c: Update copyright.
11843 (objc_language_defn): Add basic_lookup_transparent_type.
11844 * p-lang.c: Update copyright.
11845 (p_language_defn): Add basic_lookup_transparent_type.
11846 * scm-lang.c: Update copyright.
11847 (scm_language_defn): Add basic_lookup_transparent_type.
11848 * Makefile.in (cp-namespace.o): Depend on frame.h.
11850 2004-01-23 David Carlton <carlton@kealia.com>
11852 Patch for PR c++/1520:
11853 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11854 properly if we have a specification die.
11855 (determine_prefix_aux): Rename from determine_prefix.
11856 (determine_prefix): Like the old determine_prefix, but never
11859 2004-01-23 Theodore A. Roth <troth@openavr.org>
11861 * avr-tdep.c: Update copyright.
11862 (avr_iaddr_p): Delete unused function.
11863 (avr_saddr_p): Delete unused function.
11865 2004-01-23 David Carlton <carlton@kealia.com>
11867 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11868 Fix for PR symtab/1534.
11870 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11872 * NEWS (New native configurations): Mention OpenBSD/sparc and
11874 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11875 * configure.host: Likewise.
11876 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11877 handler for OpenBSD.
11878 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11880 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11882 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11883 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11885 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11886 * cli/cli-cmds.c (shell_escape): Likewise.
11888 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11889 OpenBSD .note.openbsd.ident sections.
11891 2004-01-22 David Carlton <carlton@kealia.com>
11893 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11894 get_scope_pc_bounds.
11895 (read_file_scope): Ditto.
11896 (get_scope_pc_bounds): New function, produced by extracting code
11897 from the above two functions, consolidating it, and adding support
11898 for DW_TAG_namespace.
11900 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11902 * osabi.c (MAX_NOTESZ): New define.
11903 (check_note): New function.
11904 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11907 2004-01-21 Roland McGrath <roland@redhat.com>
11909 * MAINTAINERS (write after approval): Add myself.
11911 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11913 * utils.c (init_page_info): Move declarations of `rows' and
11914 `cols' before the __GO32__-specific code. Move the closing brace
11915 outside the #ifdef __GO32__..#endif block.
11916 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11918 2004-01-21 Paul Brook <paul@codesourcery.com>
11920 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11921 BPSTAT_WHAT_CHECK_SHLIBS.
11923 2004-01-21 Paul Brook <paul@codesourcery.com>
11925 * MAINTAINERS: Add myself to write-after-approval.
11927 2004-01-20 Andrew Cagney <cagney@redhat.com>
11929 * ax-gdb.c (print_axs_value): Delete unused function.
11930 * jv-lang.c (java_lookup_type): Delete unused function.
11931 * cli/cli-dump.c (dump_filetype): Delete unused function.
11932 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11933 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11934 (mips_getstring): Delete unused function.
11935 (pmon_insert_breakpoint): Delete #if0ed function.
11936 (PMON_MAX_BP): Delete #if0ed MACRO.
11937 (mips_pmon_bp_info): Delete #if0ed variable.
11938 (pmon_remove_breakpoint): Delete #if0ed function.
11939 * monitor.c (monitor_write_even_block): Delete unused function.
11940 (monitor_write_memory_block): Delete #if0ed code.
11941 * dink32-rom.c (dink32_load): Delete unused function.
11942 (_initialize_dink32_rom): Delete #if0ed code.
11943 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11945 * tui/tui-command.c: Update references.
11946 * tui/tui-io.c: Update references.
11947 * tui/tui-command.h: Update copyright.
11948 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11950 * source.c (ambiguous_line_spec): Delete never-defined function.
11951 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11952 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11953 * cli/cli-cmds.c (validate_comname): Ditto.
11955 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11957 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11958 (tui_show_disassem): Rename tuiShowDisassem.
11959 (tui_show_disassem_and_update_source): Rename
11960 tuiVerticalDisassemScroll.
11961 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11962 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11963 * tui/tui.h: Update copyright.
11964 (enum tui_status): Define.
11965 * tui/tui-data.h (enum tui_scroll_direction): Define.
11966 * tui/tui-disasm.c: Update copyright. Update references.
11967 * tui/tui-winsource.c: Update copyright. Update references.
11968 * tui/tui-win.c: Update references.
11969 * tui/tui-layout.c: Update references.
11971 2004-01-20 Andrew Cagney <cagney@redhat.com>
11973 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11974 sym2 to start of block.
11976 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11978 * MAINTAINERS: Delete mmalloc.
11979 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11980 * NEWS: Mention removal of --with-malloc.
11981 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11982 * config.in: Regenerate.
11983 * configure: Regenerate.
11984 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11985 USE_MMALLOC, MMCHECK_FORCE.
11986 * gdbinit.in: Remove mmalloc.
11987 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11988 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11989 * config/i386/go32.mh: Likewise.
11990 * config/i386/interix.mh: Likewise.
11991 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11993 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11995 * linespec.c (decode_variable, symtab_from_filename): Call
11996 error_silent with error message instead of throwing an exception
11998 * defs.h (error_silent, error_output_message): Add prototypes.
11999 (catch_exceptions_with_msg): Ditto.
12000 * utils.c (error_silent, error_output_message): New functions.
12001 * top.c (catch_exceptions_with_msg): New function.
12003 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
12005 * mi/mi-cmds.h (enum print_values): Add definition.
12007 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12008 type and value for simple data types and just the name and type
12009 for complex ones, if required.
12011 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12012 children, if required.
12014 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12016 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12017 unused declarations.
12019 2004-01-19 Andrew Cagney <cagney@redhat.com>
12021 * top.h (mapped_symbol_files): Delete declaration.
12022 * main.c (captured_main): Delete option "m" and "mapped".
12023 * objfiles.c (mapped_symbol_files): Delete variable.
12024 * symfile.c (symbol_file_command): Delete mmap code.
12025 (symbol_file_add_with_addrs_or_offsets): Ditto.
12026 (add_symbol_file_command, reread_separate_symbols): Ditto.
12027 * objfiles.h (OBJF_MAPPED): Delete.
12028 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12029 (free_objfile) [USE_MMALLOC]: Ditto.
12030 (open_existing_mapped_file): Delete function.
12031 (open_mapped_file): Delete function.
12032 (map_to_file): Delete function.
12034 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12036 * infrun.c (step_into_function): Account for possible breakpoint
12037 adjustment when computing ``stop_func_start''.
12039 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12041 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12042 the region size against the size of a pointer, not the size of
12043 a register as given by DEPRECATED_REGISTER_SIZE.
12045 2004-01-19 Andrew Cagney <cagney@redhat.com>
12047 * tui/tui-regs.h: Include "tui-data.h".
12048 (tuiFirstRegElementNoInLine): Delete declaration.
12049 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12050 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12051 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12052 (tui_calculate_regs_column_count): Rename
12053 tuiCalculateRegsColumnCount.
12054 (tui_check_register_values): Rename tuiCheckRegisterValues.
12055 (tui_show_registers): Rename tuiShowRegisters.
12056 (tui_display_registers_from_line): Rename
12057 tuiDisplayRegistersFromLine.
12058 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12059 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12060 (tui_first_reg_element_no_inline): Rename
12061 tuiFirstRegElementNoInLine.
12062 * tui/tui-data.h: Update copyright.
12063 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12064 * tui/tui-windata.c: Update copyright, update references.
12065 * tui/tui-regs.c: Update copyright, update references.
12066 * tui/tui-win.c: Update copyright, update references.
12067 * tui/tui-layout.c: Update copyright, update references.
12069 2004-01-18 Andrew Cagney <cagney@redhat.com>
12071 * tui/tui-io.c: Update copyright.
12072 (key_is_end_sequence, key_is_backspace): New functions.
12073 (key_is_command_char, key_is_start_sequence): New function.
12074 (tui_getc): Update references.
12075 * tui/tui-io.h: Update copyright.
12076 (m_tuiStartNewLine): Delete macro.
12077 (m_isBackspace, m_isDeleteChar): Delete macros.
12078 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12079 (m_isNextPage, m_isPrevPage): Delete macros.
12080 (m_isLeftArrow, m_isRightArrow): Delete macros.
12081 (m_isXdbStyleCommandChar): Delete macro.
12082 (key_is_start_sequence): Declare, replace m_isStartSequence.
12083 (key_is_end_sequence): Declare, replace m_isEndSequence.
12084 (key_is_backspace): Declare ,replace m_isBackspace.
12085 (key_is_command_char): Declare, replace m_isCommandChar.
12086 * tui/tui-command.c: Update copyright.
12087 (tuiDispatchCtrlChar): Update references.
12089 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12092 * tui/tui-command.c: Rename tui/tuiCommand.c.
12093 * tui/tui-command.h: Rename tui/tuiCommand.h.
12094 * tui/tui-data.c: Rename tui/tuiData.c.
12095 * tui/tui-data.h: Rename tui/tuiData.h.
12096 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12097 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12098 * tui/tui-io.c: Rename tui/tuiIO.c.
12099 * tui/tui-io.h: Rename tui/tuiIO.h.
12100 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12101 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12102 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12103 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12104 * tui/tui-source.c: Rename tui/tuiSource.c.
12105 * tui/tui-source.h: Rename tui/tuiSource.h.
12106 * tui/tui-stack.c: Rename tui/tuiStack.c.
12107 * tui/tui-stack.h: Rename tui/tuiStack.h.
12108 * tui/tui-win.c: Rename tui/tuiWin.c.
12109 * tui/tui-win.h: Rename tui/tuiWin.h.
12110 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12111 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12112 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12113 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12114 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12115 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12116 * tui/tui-file.c: Update includes.
12117 * tui/tui-hooks.c: Update includes.
12118 * tui/tui-interp.c: Update includes.
12119 * tui/tui.c: Update includes.
12120 * Makefile.in: Update all tui/ dependencies.
12121 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12123 * Makefile.in: Update copyright. Update dependencies.
12125 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12128 2004-01-18 Andrew Cagney <cagney@redhat.com>
12130 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12131 instead of register_gdbarch_init.
12133 * remote-sds.c (tohex): Delete unused function. Update copyright.
12134 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12135 * v850-tdep.c (v850_register_virtual_size): Ditto.
12136 * target.c (normal_target_post_startup_inferior): Ditto.
12137 * source.c (ambiguous_line_spec): Ditto.
12138 * remote.c (adapt_remote_get_threadinfo): Ditto.
12139 * mi/mi-out.c (out_field_fmt): Ditto.
12140 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12141 (output_control_change_notification): Ditto.
12142 * m68k-tdep.c (m68k_register_byte): Ditto.
12143 (m68k_remote_breakpoint_from_pc): Ditto.
12144 * ui-out.c (init_ui_out_state): Delete unused declaration.
12145 * stabsread.c (search_value): Ditto.
12146 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12147 * maint.c (print_section_table): Ditto.
12148 * infrun.c (set_follow_fork_mode_command): Ditto.
12150 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12152 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12153 DW_CFA_def_cfa_exporession. Add support for
12154 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12155 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12157 2004-01-18 Andrew Cagney <cagney@redhat.com>
12159 * ocd.c: Update copyright.
12160 (bdm_read_register_command): Delete unused function.
12161 (_initialize_remote_ocd): Delete commented out reference.
12162 (get_quoted_char, reset_packet): Delete #if0ed function.
12163 (output_packet, put_quoted_char): Delete #if0ed function.
12164 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12165 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12166 (BDM_BREAKPOINT): Delete #if0ed macro.
12167 (remote_timeout): Delete #if0ed variable.
12169 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12171 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12172 (core-sol2.o): Remove dependency.
12173 * core-sol2.c: Remove file.
12175 2004-01-17 Andrew Cagney <cagney@redhat.com>
12177 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12178 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12181 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12183 * remote.c: Update copyright years.
12185 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12187 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12189 2004-01-17 Andrew Cagney <cagney@redhat.com>
12191 * mdebugread.c: Update copyright.
12192 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12193 (parse_type, parse_procedure): Ditto.
12194 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12196 * cris-tdep.c (cris_store_struct_return): Put back accidently
12199 * gdbarch.sh: Update copyright year.
12200 * gdbarch.h, gdbarch.c: Re-generate.
12202 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12204 Suggested by George Anzinger.
12205 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12206 correct stack offset. Include unknown opcode numbers in the error
12209 2004-01-17 Andrew Cagney <cagney@redhat.com>
12211 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12212 extract_struct_value_address, i386 does not set it.
12213 * sparc64-tdep.c (sparc64_init_abi): Do not set
12214 extract_struct_value_address, never called.
12215 (sparc64_extract_struct_value_address): Delete function.
12216 * m68hc11-tdep.c: Update copyright.
12217 (m68hc11_gdbarch_init): Delete redundant assignment of
12218 extract_struct_value_address.
12219 * i386-tdep.c: Update copyright.
12220 (i386_gdbarch_init): Do not set extract_struct_value_address,
12222 (i386_extract_struct_value_address): Delete function.
12223 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12224 extract_struct_value_address, never called.
12225 (sparc32_extract_struct_value_address): #if 0 function. Add
12226 comments explaining its future.
12228 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12230 * arm-tdep.c (arm_write_pc): New function.
12231 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12233 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12235 * breakpoint.c (must_shift_inst_regs): Delete.
12236 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12237 and SHIFT_INST_REGS.
12238 * infcmd.c (step_1, step_1_continuation): Delete references to
12240 * infrun.c (keep_going): Likewise.
12241 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12242 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12244 2004-01-17 Andrew Cagney <cagney@redhat.com>
12246 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12247 * gdbarch.h, gdbarch.c: Re-generate.
12248 * infcmd.c (print_return_value): Delete reference to
12249 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12251 * cris-tdep.c (cris_gdbarch_init): Do not set
12252 deprecated_extract_struct_value_address.
12254 * xstormy16-tdep.c: Update copyright.
12255 (xstormy16_extract_struct_value_address): Update to current
12256 extract struct value address interface.
12257 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12258 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12259 current extract struct value address interface.
12260 (sh64_gdbarch_init): Set extract_struct_value_address.
12262 * cris-tdep.c: Update copyright.
12263 (cris_extract_struct_value_address): Delete function.
12264 (struct_return_address): Delete variable.
12265 (cris_store_struct_return): Do not set struct_return_address.
12267 * mcore-tdep.c: Update copyright.
12268 (mcore_extract_struct_value_address): Delete function. Update
12270 (mcore_gdbarch_init): Update.
12271 * mn10300-tdep.c: Update copyright.
12272 (mn10300_extract_struct_value_address): Delete function.
12273 (mn10300_gdbarch_init): Update.
12274 * v850-tdep.c: Update copyright.
12275 (v850_extract_struct_value_address): Delete.
12276 (v850_gdbarch_init): Update.
12277 * ns32k-tdep.c: Update copyright.
12278 (ns32k_extract_struct_value_address): Delete.
12279 (ns32k_gdbarch_init): Update.
12280 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12281 (hppa_gdbarch_init): Update.
12282 * vax-tdep.c: Update copyright.
12283 (vax_extract_struct_value_address): Delete.
12284 (vax_gdbarch_init): Update.
12286 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12287 * gdbarch.h, gdbarch.c: Re-generate.
12288 * procfs.c (procfs_fetch_registers): Delete reference to
12289 DEPRECATED_NPC_REGNUM.
12290 (procfs_store_registers): Ditto.
12291 * regcache.c (generic_target_write_pc): Simplify.
12292 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12294 * core-sol2.c (fetch_core_registers): Replace
12295 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12297 * hppa-tdep.c: Update copyright year.
12298 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12300 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12302 * mips-tdep.c (mips_write_pc): New function.
12303 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12304 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12305 (mips_find_saved_regs, mips_software_single_step: Ditto.
12306 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12307 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12309 2004-01-17 Andrew Cagney <cagney@redhat.com>
12311 * mips-tdep.c: Re-indent. Group functions by ABI.
12313 2004-01-17 Andrew Cagney <cagney@redhat.com>
12315 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12316 * gdbarch.c: Re-generate.
12317 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12318 DECR_PC_AFTER_BREAK to zero.
12319 * vax-tdep.c (vax_gdbarch_init): Ditto.
12320 * v850-tdep.c (v850_gdbarch_init): Ditto.
12321 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12322 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12323 * sh-tdep.c (sh_gdbarch_init): Ditto.
12324 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12325 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12326 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12327 * mips-tdep.c (mips_gdbarch_init): Ditto.
12328 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12329 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12330 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12331 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12332 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12333 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12334 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12335 * frv-tdep.c (frv_gdbarch_init): Ditto.
12336 * cris-tdep.c (cris_gdbarch_init): Ditto.
12337 * avr-tdep.c (avr_gdbarch_init): Ditto.
12338 * arm-tdep.c (arm_gdbarch_init): Ditto.
12339 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12341 2004-01-17 J. Brobecker <brobecker@gnat.com>
12343 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12344 Delete, no longer used.
12345 (read_subrange_type): New function, mostly extracted from
12347 (read_array_type): Replace extracted code by call to
12348 read_subrange_type().
12349 (dwarf2_get_attr_constant_value): New function.
12350 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12351 (add_partial_symbol): Likewise.
12352 (process_die): Likewise.
12353 (new_symbol): Likewise.
12354 (read_type_die): Likewise.
12356 2004-01-16 Andrew Cagney <cagney@redhat.com>
12358 * symfile.c: Update copyright year.
12359 (compare_symbols): Delete unused function.
12360 * stabsread.c: Update copyright year.
12361 (lrs_general_complaint): Delete unused function.
12362 (ref_search_value): Ditto.
12363 (get_substring): Delete declaration.
12364 * sh64-tdep.c: Update copyright year.
12365 (sh64_get_gdb_regnum): Delete unused function.
12366 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12367 Delete unused function.
12369 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12371 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12372 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12374 2004-01-16 Andrew Cagney <cagney@redhat.com>
12376 Changes from Peter Schauer.
12377 * rs6000-tdep.c: Update copyright year.
12378 (rs6000_push_dummy_call): Update the stack pointer before
12379 accessing the corresponding stack region.
12380 * rs6000-nat.c: Update copyright year.
12381 (set_host_arch): Set "info.abfd" to "exec_bfd".
12383 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12385 * blockframe.c: Update copyright year.
12386 (inside_entry_func): Don't treat a zero PC specially.
12388 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12390 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12392 (gcore_create_callback): Ditto. Skip any memory segment that has
12393 no permissions set.
12395 2004-01-14 David Carlton <carlton@kealia.com>
12397 Change symbols for C++ nested types to contain the fully qualified
12398 name, if possible. (At least in the DWARF-2 case.) Partial fix
12399 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12401 * c-exp.y (qualified_type): Handle types nested within classes.
12402 * cp-namespace.c: Update comments.
12403 (cp_set_block_scope): Delete #if 0.
12404 (cp_lookup_nested_type): Handle types nested within classes.
12405 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12407 (add_partial_symbol): Add the name of the enclosing namespace to
12409 (pdi_needs_namespace): New.
12410 (add_partial_namespace): Tweak comment.
12411 (add_partial_structure): New.
12412 (psymtab_to_symtab_1): Initialize processing_current_prefix
12414 (process_die): instead of here.
12415 (read_structure_scope): Try to figure out the name of the class or
12416 namespace that the structure might be defined within.
12417 (read_enumeration): Generate fully-qualified names, if possible.
12418 (read_namespace): Don't set name to NULL.
12419 (die_specification): New.
12420 (new_symbol): Generate fully-qualified names for types.
12421 (read_type_die): Determine appropriate prefix.
12422 (determine_prefix): New.
12423 (typename_concat): New.
12425 * valops.c (value_aggregate_elt): Pass NOSIDE to
12426 value_struct_elt_for_reference.
12427 (value_struct_elt_for_reference): Make static, add NOSIDE
12428 parameter, call value_maybe_namespace_elt as a last resort.
12429 (value_namespace_elt): Break out code into
12430 value_maybe_namespace_elt.
12431 (value_maybe_namespace_elt): New.
12433 2004-01-12 Andrew Cagney <cagney@redhat.com>
12435 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12436 cooked floating-point registers.
12437 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12438 and value_to_register.
12440 2004-01-13 Andrew Cagney <cagney@redhat.com>
12442 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12443 * gdbarch.c: Re-generate.
12444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12445 FUNCTION_START_OFFSET.
12446 * v850-tdep.c (v850_gdbarch_init): Ditto.
12447 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12448 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12449 * sh-tdep.c (sh_gdbarch_init): Ditto.
12450 * s390-tdep.c (s390_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 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12458 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12459 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12460 * i386-tdep.c (i386_gdbarch_init): Ditto.
12461 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12462 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12463 * frv-tdep.c (frv_gdbarch_init): Ditto.
12464 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12465 * cris-tdep.c (cris_gdbarch_init): Ditto.
12466 * avr-tdep.c (avr_gdbarch_init): Ditto.
12467 * arm-tdep.c (arm_gdbarch_init): Ditto.
12468 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12470 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12472 * infrun.c (follow_fork_mode_ask): Remove.
12473 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12474 (follow_fork): Simplify and remove internal error for
12475 follow_fork_mode_ask.
12476 (_initialize_infrun): Update "set follow-fork-mode" help text.
12478 2004-01-13 Andrew Cagney <cagney@redhat.com>
12480 * configure.in: Update copyright year.
12481 (build_warnings): Add -Wunused-label.
12482 * configure: Re-generate.
12484 2004-01-12 Andrew Cagney <cagney@redhat.com>
12486 * exec.h (exec_ops): Make "extern".
12488 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12489 the function is void.
12490 (mips_pseudo_register_write): Ditto.
12492 2004-01-12 Andrew Cagney <cagney@redhat.com>
12494 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12495 call. Never defined.
12496 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12497 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12498 (struct sparc_gregset, struct regcache): Ditto.
12499 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12501 2004-01-12 Andrew Cagney <cagney@redhat.com>
12503 * mi/ChangeLog: Delete file. Renamed to ...
12504 * mi/ChangeLog-1999-2003: New file.
12505 * tui/ChangeLog: Delete file. Renamed to ...
12506 * tui/ChangeLog-1998-2003: New file.
12508 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12510 * sparc64nbsd-tdep.c: Include "regset.h".
12511 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12513 (fetch_core_registers): Remove function.
12514 (sparc64nbsd_core_fns): Remove variable.
12515 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12517 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12518 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12519 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12521 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12522 sparc_extract_struct_value_address.
12523 (sparc32_gdbarch_init): Set extract_struct_value_address.
12524 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12526 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12527 return_value_on_stack.
12529 * NEWS: Mention that %cs and %ss have been added to the AMD64
12532 * frame.c: Update copyright year.
12533 (get_prev_frame): Improve comment.
12535 * sparc64fbsd-tdep.c: Include "regset.h".
12536 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12538 (fetch_core_registers): Remove function.
12539 (sparc64fbsd_core_fns): Remove variable.
12540 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12542 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12543 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12544 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12546 * sparcnbsd-tdep.c: Include "regset.h".
12547 (fetch_core_registers): Remove function.
12548 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12549 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12551 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12553 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12555 * sparc-tdep.h (struct regset): Provide opaque declaration.
12556 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12557 fpregset and sizeof_fpregset members.
12558 * sparc-tdep.c (struct regset): Provide opaque declaration.
12559 (sparc_regset_from_core_section): New function.
12560 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12561 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12562 Set regset_from_core_section when appropriate.
12564 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12566 * x86-64-tdep.c (amd64_non_pod_p): New function.
12567 (amd64_classify_aggregate): Return class memory for non-POD
12568 C++ structure types.
12570 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12571 argument. Use it to reserve a register if necessary.
12572 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12573 amd64_push_arguments.
12575 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12577 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12578 register numbers in comments.
12579 * x86-64-tdep.h: Update copyright year.
12580 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12581 Adjust for addition of %cs and %ss.
12582 * amd64fbsd-nat.c: Update copyright year.
12583 (reg_offset): Add register offsets for %cs and %ss.
12584 * amd64fbsd-tdep.c: Update copyright year.
12585 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12586 (amd64fbsd_sc_reg_offset): Likewise.
12587 * x86-64-linux-nat.c: Update copyright year.
12588 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12590 * amd64nbsd-nat.c: Update copyright year.
12591 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12592 * amd64nbsd-tdep.c: Update copyright year.
12593 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12594 * x86-64-linux-tdep.c: Update copyright year.
12595 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12596 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12597 * regformats/reg-x86-64.dat: Add %cs and %ss.
12599 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12600 variables to prevent long lines. Update comments to reflect
12603 2004-01-09 David Carlton <carlton@kealia.com>
12605 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12606 * dwarf2read.c (read_namespace): Pull out name-generating code
12607 into namespace_name. Rename previous_namespace to previous_prefix
12608 and processing_current_namespace to processing_current_prefix..
12609 (namespace_name): New function.
12610 (add_partial_symbol): Substitute uses of pdi->name with
12612 * cp-support.h: Rename processing_current_namespace to
12613 processing_current_prefix.
12614 Update copyright year.
12615 * cp-namespace.c: Rename processing_current_namespace to
12616 processing_current_prefix.
12617 Update copyright year.
12619 2004-01-09 Andrew Cagney <cagney@redhat.com>
12621 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12623 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12625 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12627 (process_one_symbol): Deal with N_PATCH stabs.
12629 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12631 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12633 Update copyright year.
12635 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12637 * config/pa/tm-hppa.h: Update extern declarations for
12638 hppa32_hpux_frame_saved_pc_in_sigtramp,
12639 hppa32_hpux_frame_base_before_sigtramp, and
12640 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12642 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12644 * config/pa/tm-hppah.h: Update copyright years.
12646 2004-01-08 Andrew Cagney <cagney@redhat.com>
12648 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12649 (mips_o32_reg_struct_has_addr): Delete function.
12650 (mips_gdbarch_init): Update.
12651 (mips_extract_struct_value_address): Delete function.
12653 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12655 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12658 2004-01-07 Andrew Cagney <cagney@redhat.com>
12660 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12661 architecture's elf flags (when available).
12663 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12664 FPU to the start, check the MIPS FPU when looking for an old
12666 (set_mipsfpu_single_command): Update the architecture.
12667 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12669 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12670 (mips_mask_address_p): Add "tdep" parameter.
12671 (show_mask_address, mips_addr_bits_remove): Update.
12672 (mips_dump_tdep): Update.
12673 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12674 (MIPS_STACK_ARGSIZE): Delete macro.
12675 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12676 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12677 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12678 (mips_dump_tdep): Update.
12679 (MIPS_SAVED_REGSIZE): Delete macro.
12680 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12681 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12682 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12683 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12684 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12685 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12686 (mips_pop_frame, return_value_location): Update.
12687 (mips_n32n64_return_value, mips_dump_tdep): Update.
12689 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12692 * mips-tdep.c: Update copyright.
12693 (mips_gdbarch_init): Merge two code blocks handling the register
12694 name and number layout.
12696 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12698 * tracepoint.c (validate_actionline): Fix segv at EOF
12700 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12702 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12703 properly for static fields.
12705 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12706 Jason Molenda <jmolenda@apple.com>
12708 * disasm.c: Update copyright to include 2004.
12709 (do_mixed_source_and_assembly): For uiout asm list
12710 and tuple cleanups, initialize to null_cleanup instead of
12711 NULL and do so prior to loop. Only reset when we close off
12712 the tuple/list. Move check for whether to close off the
12713 asm tuple/list to after dump_insns call where it will be run
12714 on each loop iteration.
12716 2004-01-05 Andrew Cagney <cagney@redhat.com>
12718 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12719 should be a switch case and not a label.
12720 * mips-tdep.c (mips32_next_pc): Delete unused labels
12721 "greater_equal_branch" and "less_zero_branch".
12722 * jv-valprint.c (java_print_value_fields): Delete unused label
12725 * target.c (unpush_target): Only close a target that is in the
12728 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12730 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12731 address from [sp + 64] instead of %o2.
12733 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12734 fixes PR backtrace/1476.
12736 2004-01-05 Andrew Cagney <cagney@redhat.com>
12738 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12739 move to start of file.
12740 * i386-tdep.h (struct regcache): Add opaque declaration.
12741 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12743 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12744 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12745 * win32-nat.c (fake_create_process): Use ISO C style definition.
12746 * stabsread.c (define_symbol): Delete #ifndef
12747 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12748 stabs_argument_has_addr call, macro never defined.
12750 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12752 * op50-rom.c: Delete.
12753 * w89k-rom.c: Delete.
12754 * Makefile.in: Remove references.
12756 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12758 * x86-64-tdep.c: Update copyright year.
12759 (struct amd64_register_info): Rename from x86_64_register_info.
12760 (amd64_register_info): Rename from x86_64_register_info.
12761 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12762 (amd64_register_name): Rename from x86_64_register_name.
12763 (amd64_register_type): Rename from x86_64_register_type.
12764 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12765 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12766 (amd64_dwarf_reg_to_regnum): Rename from
12767 x86_64_dwarf_reg_to_regnum.
12768 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12769 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12770 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12771 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12772 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12773 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12774 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12775 (amd64_frame_cache): Rename from x86_64_frame_cache.
12776 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12777 (amd64_frame_prev_register): Rename from
12778 x86_64_frame_prev_register.
12779 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12780 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12781 (amd64_sigtramp_frame_cache): Rename from
12782 x86_64_sigtramp_frame_cache.
12783 (amd64_sigtramp_frame_prev_register): Rename from
12784 x86_64_sigtramp_frame_prev_register.
12785 (amd64_sigtramp_frame_unwind): Rename from
12786 x86_64_sigtramp_frame_unwind.
12787 (amd64_sigtramp_frame_sniffer): Rename from
12788 x86_64_sigtramp_frame_sniffer.
12789 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12790 (amd64_frame_base): Rename from x86_64_frame_base.
12791 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12792 (amd64_frame_align): Rename from x86_64_frame_align.
12793 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12794 (amd64_regset_from_core_section): Rename from
12795 x86_64_regset_from_core_section.
12796 (x86_64_init_abi): Update comments.
12798 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12800 * MAINTAINERS (write after approval): Add myself.
12802 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12804 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12807 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12809 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12810 such that it mentions a specific version of GCC that exhibits this
12813 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12815 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12816 structure that has a single `float' member, store it in %f1 in
12819 * sparc-sol2-nat.c: Add missing '\'.
12821 * sparc-tdep.c (sparc32_return_value): New function.
12822 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12824 (sparc32_gdbarch_init): Set return_value, don't set
12825 extract_return_value, store_return_value, use_struct_convention
12826 and return_value_on_stack.
12828 * sparc-sol2-nat.c: Add missing ')'.
12830 2004-01-03 J. Brobecker <brobecker@gnat.com>
12832 * infrun.c (handle_step_into_function): New function.
12833 (handle_inferior_event): Extract out some code into the new
12836 2004-01-03 J. Brobecker <brobecker@gnat.com>
12838 * infrun.c (handle_inferior_event): Move the declaration of
12839 real_stop_pc inside the if blocks where it is used.
12841 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12843 * sparc64-tdep.c (sparc64_16_byte_align_p)
12844 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12845 Use check_typedef to get subtypes of structures and unions.
12846 (sparc64_store_return_value): Fix calculation of the appropriate
12847 offset into VALBUF when storing a structure or union.
12848 (sparc64_return_value): New function.
12849 (sparc64_use_struct_convention): Remove function.
12850 (sparc64_init_abi): Set return_value, don't set
12851 extract_return_value, store_return_value and
12852 use_struct_convention.
12854 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12856 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12857 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12858 gdb/config/alpha/xm-alphaosf.h,
12859 gdb/config/powerpc/tm-ppcle-eabi.h,
12860 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12861 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12862 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12863 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12864 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12865 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12866 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12867 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12868 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12869 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12870 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12871 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12872 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12873 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12874 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12875 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12876 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12877 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12878 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12879 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12880 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12881 Remove lines for .cvsignore files.
12883 2004-01-03 J. Brobecker <brobecker@gnat.com>
12885 * infrun.c: Back out the previous change.
12887 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12889 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12890 sparc-*-sunos4* to the list of REMOVED configurations.
12892 * configure.tgt: Add back sparc-*-vxworks*.
12893 * remote-vxsparc.c: Remove all includes except for "defs.h",
12894 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12895 Include "sparc-tdep.h".
12896 (SPARC_R_G1): New define.
12897 (vxsparc_gregset): New variable.
12898 (ext_format_sparc): Remove extern declaration.
12899 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12900 sparc32_supply_fpregset.
12901 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12902 sparc_collect_rwindow and sparc32_collect_fpregset.
12903 * config/sparc/tm-vxworks.h: New file, based on recently removed
12905 * config/sparc/vxworks.mt: New file, based on recently removed
12908 2004-01-03 J. Brobecker <brobecker@gnat.com>
12910 * infrun.c (handle_step_into_function): New function.
12911 (handle_inferior_event): Extract out some code into the new
12914 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12916 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12917 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12918 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12919 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12920 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12921 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12922 (sparc_nat_h): New variable.
12923 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12924 (tm-sun4os4.h): Remove dependency.
12925 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12926 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12927 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12928 sparc-tdep.o): Update dependencies.
12929 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12930 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12931 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12933 * configure.host: Remove existing sparc-*-lynxos*,
12934 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12935 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12936 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12937 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12939 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12940 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12941 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12942 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12943 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12944 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12945 sparc64-*-solaris2* and sparc64-*-* triplets.
12946 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12947 "symtab.h" and "objfiles.h".
12948 (BIAS): Remove define.
12949 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12950 (X_DISP19): Remove macros.
12951 (sparc_fetch_instruction): Remove function.
12952 (struct gdbarch_tdep): Remove definition.
12953 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12954 (sparc_breakpoint_from_pc): Remove function.
12955 (struct sparc64_frame_cache): Remove definition.
12956 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12957 sparc64_unwind_pc): Remove functions.
12958 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12959 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12960 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12961 (sparc64_frame_cache): Change return type to `struct
12962 sparc_frame_cache *'. Simply call sparc_frame_cache.
12963 (sparc64_frame_this_id, sparc64_frame_prev_register,
12964 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12965 instead of `struct sparc64_frame_cache.
12966 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12967 sparc_analyze_control_transfer, sparc_software_single_step,
12968 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12969 _initialize_sparc64_tdep): Remove functions.
12970 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12971 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12973 (sparc64_supply_gregset, sparc64_collect_gregset,
12974 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12975 (sparc64_init_abi): New function.
12976 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12977 inclusion guard. Include "sparc-tdep.h".
12979 (r_tstate_offset, r_fprs_offset): New defines.
12980 (enum sparc_regnum): Remove defenition.
12981 (enum sparc64_regnum): Reformat.
12982 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12983 (sparc64_init_abi, sparc64_supply_gregset,
12984 sparc64_collect_gregset, sparc64_supply_fpregset,
12985 sparc64_collect_fpregset): New prototypes.
12986 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12987 Add extern declarations.
12988 (sparc64_sol2_init_abi): New prototype.
12989 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12990 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12992 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12994 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12996 (_initialize_sparc64fbsd_nat): Remove initialization of
12997 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12998 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12999 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
13000 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13001 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13002 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13003 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13004 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13005 (sparc64fbsd_r_y_offset): Remove variables.
13006 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13007 Make static and const.
13008 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13009 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13011 (sparc64fbsd_gregset): New variable.
13012 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13013 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13014 and sparc64_supply_fpregset.
13015 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13016 (sparc64fbsd_sigtramp_frame_this_id)
13017 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13018 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13019 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13020 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13021 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13022 * sparcnbsd-tdep.c: Update copyright year. Include
13023 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13024 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13025 "value.h" and "sparcnbsd-tdep.h".
13026 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13027 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13028 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13029 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13031 (sparcnbsd_gregset): New variable.
13032 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13033 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13034 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13035 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13036 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13038 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13039 (sparc32nbsd_sigcontext_frame_this_id)
13040 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13041 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13042 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13043 (sparcnbsd_get_longjmp_target_32,
13044 sparcnbsd_get_longjmp_target_64): Remove functions.
13045 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13046 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13047 sparcnbsd_init_elf): Remove.
13048 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13049 (sparcnbsd_elf_init_abi): New functions.
13050 (_initialize_sparcnbsd_tdep): New prototype.
13051 (_initialize_sparnbsd_tdep): Update.
13052 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13053 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13054 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13055 * config/sparc/linux.mh: Update comment.
13056 (XM_FILE, HOST_IPC): Remove variables.
13057 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13059 * config/sparc/linux.mt: Update comment.
13060 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13061 * config/sparc/nbsd.mt: Reformat.
13062 * config/sparc/nbsd64.mh: Update comment.
13063 (NATDEPFILES): Add sparc-nat.o.
13064 * config/sparc/nbsd64.mt: Update comment.
13065 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13066 (TM_FILE): Set to tm-nbsd.h.
13067 * config/sparc/nbsdelf.mh: Update comment.
13068 (NATDEPFILES): Add sparc-nat.o.
13070 * config/sparc/nbsdaout.mh: Update comment.
13071 (NATDEPFILES): Add sparc-nat.o
13073 * config/sparc/nm-linux.h: Update copyright year. Don't include
13074 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13076 (KERNEL_U_SIZE): Remove define.
13077 (kernel_u_size): Remove prototype.
13078 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13079 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13081 (CHILD_PREPARE_TO_STORE): Remove define.
13082 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13083 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13084 sparcnbsd-nat.c: Rewrite files.
13085 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13086 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13087 sparcnbsd-tdep.h: Remove files.
13088 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13089 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13090 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13091 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13092 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13093 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13094 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13095 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13096 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13097 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13098 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13099 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13100 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13101 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13102 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13103 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13104 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13105 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13106 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13108 2004-01-02 Andrew Cagney <cagney@redhat.com>
13110 From 2003-12-18 Kazuhiro Inaoka:
13111 * configure.host: Add m32r-linux target.
13113 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13115 * top.c (print_gdb_version): Update year to 2004.
13117 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13119 * MAINTAINERS: Add myself to the write-after-approval category.
13121 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13123 From Bernardo Innocenti <bernie@develer.com>:
13124 * configure.tgt: Add uClinux target.
13126 2004-01-02 Andrew Cagney <cagney@redhat.com>
13128 * utils.c (do_my_cleanups): Make static, add forward declaration.
13129 * defs.h (do_my_cleanups): Delete declaration.
13131 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13133 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13134 bfd/ChangeLog-0203.
13136 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13138 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13139 in <machine/reg.h>.
13140 * configure, config.in: Regenerate.
13142 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13143 tui/ChangeLog-1998-2003.
13149 version-control: never