blob: 9a88b450c6a58b4332796e2d083b53b11ae7451c [file] [log] [blame]
2003-12-30 Eli Zaretskii <>
* Check for st_blocks member in struct stat and
define HAVE_STRUCT_STAT_ST_BLOCKS accordingly.
* acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): New undef.
* configure, Regenerated.
* remote-fileio.c (remote_fileio_to_fio_stat)
(remote_fileio_func_fstat) [HAVE_STRUCT_STAT_ST_BLOCKS]: Support
systems that don't have `st_blocks' member in `struct stat'.
2003-12-29 Eli Zaretskii <>
* go32-nat.c (go32_sldt, go32_sgdt, go32_sidt, go32_pte): Fix
mismatches between format string and arguments (avoids compiler
* Set ac_cv_search_tgetent to "none required" for
"*djgpp*" targets as well (DJGPP doesn't have termcap and doesn't
need one).
* config/djgpp/config.sed: Tweak to adapt to the changes in
* config/djgpp/ Fix the test of unpacked
distribution, since there's no gdb.cxx directory anymore.
2003-12-28 Mark Kettenis <>
* i386-sol2-tdep.c (i386_sol2_mcontext_addr): New function.
(i386_sol2_init_abi): Initialize TDEP->sigcontext_addr,
TDEP->sc_reg_offset and TDEP->sc_num_regs.
* i386-tdep.h (i386_regnum): Add I386_CS_REGNUM and
2003-12-27 Mark Kettenis <>
* dwarf2-frame.c (dwarf2_reg_rule): Add REG_RA and REG_CFA.
(dwarf2_frame_cache): Initialize PC_REGNUM with REG_RA and
SP_REGNUM with REG_CFA. Don't overwrite the initialized register
rule for registers left unspecified by the CFI. Remove the
special handling of PC_REGNUM. Add code to eleminate any REG_RA
(dwarf2_frame_prev_register): Remove the special handling of
SP_REGNUM. Add support for the REG_CFA rule.
2003-12-26 Mark Kettenis <>
* i386obsd-tdep.c: Include "regset.h", "gdb_assert.h" and
(i386obsd_r_reg_offset): New variable.
(i386obsd_aout_regset_from_core_section): New functions.
(i386obsd_supply_reg, fetch_core_registers): Remove functions.
(i286obsd_core_fns): Remove variable.
(i386obsd_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs and TDEP->sizeof_gregset. Set
regset_from_core_section. Use ARRAY_SIZE to initialize
(_initialize_i386obsd_tdep): Don't call add_core_fns.
* i386bsd-tdep.c (i386bsd_core_osabi_sniffer): New function.
(_initialize_i386bsd_tdep): Register i386bsd_core_osabi_sniffer.
* i386-linux-nat.c: Add comment.
2003-12-26 Christopher Faylor <>
* win32-nat.c: Add some comments about below change.
2003-12-25 Christopher Faylor <>
Fix for PR threads/1048
* win32-nat.c (thread_info_struct): Add reload_context flag.
(thread_rec): Don't reload thread context here. Just set a flag.
(do_child_fetch_inferior_registers): Reload thread context here if
appropriate. Avoid doing anything if current_thread is NULL thanks to
strange Windows behavior.
(child_fetch_inferior_registers): Avoid doing anything if
current_thread is NULL.
(do_child_store_inferior_registers): Ditto.
(child_store_inferior_registers): Ditto.
(child_kill_inferior): Ditto.
(fake_create_process): Pretend to create a process for pathological
windows attach situation.
(get_child_debug_event): Call fake_create_process when the first event
noticed is thread creation rather than process creation.
(child_attach): Always set attach_flag when attaching.
(child_create_inferior): Set attach_flag to zero since we're not
2003-12-25 Christopher Faylor <>
* win32-nat.c (get_child_debug_event): Keep main thread id around even
after thread exits since Windows insists on continuing to report events
against it.
2003-12-22 Mark Kettenis <>
* dwarf2-frame.c (dwarf2_frame_cache): Don't skip the return
address column.
2003-12-21 Jim Blandy <>
* breakpoint.c (bpstat_do_actions): To ensure that
clear_proceed_status doesn't free the command tree we're
evaluating out from under us, zero the bpstat's pointer to it, and
take care of freeing it ourselves.
* cli/cli-script.c (make_cleanup_free_command_lines): Make this
function externally visible.
* cli/cli-script.h (make_cleanup_free_command_lines): New
2003-12-20 Mark Kettenis <>
* x86-64-tdep.c (x86_64_dwarf_regmap): Map the Return Address to
2003-12-18 Michael Chastain <>
* hppa-tdep.c (hppa_gdbarch_init): Set long double floating
point type to floatformat_ia64_quad_big.
2003-12-18 Kevin Buettner <>
* frv-tdep.c (skip_prologue_using_sal): New function. Taken verbatim
from mips-tdep.c.
(frv_analyze_prologue): Rework to account for intermixed prologue /
body instructions.
2003-12-18 Michael Chastain <>
* hppa-tdep.c (hppa_gdbarch_init): Set sizeof(long_double) to 128.
Document type sizes for hppa*-*-hpux* compilers available to me.
2003-12-18 Michael Chastain <>
* hppam3-nat.c: Delete obsolete file.
* hppab-nat.c: Delete obsolete file.
* Remove references.
2003-12-17 Jeff Johnston <>
* symtab.c (decode_line_spec): Change call to decode_line_1.
2003-12-17 Jeff Johnston <>
* linespec.h (decode_line_1): Add new not_found_ptr parameter.
* linespec.c (decode_line_1): Add new parameter. Pass on
new parameter to decode_variable and symtab_from_filename
(decode_variable): Add new not_found_ptr parameter. Throw exception
rather than failing if the not_found_ptr is non-null and the
function is not found.
(symtab_from_filename): Add new not_found_ptr parametr. Throw
exception rather than failing if the not_found_ptr is non-null and
the source file is not found.
* breakpoint.c: Change all callers of decode_line_1 to add default
extra parameter for decode_line_1 calls.
* tracepoint.c: Ditto.
* cli/cli-cmds.c: Ditto.
2003-12-16 J. Brobecker <>
* irix5-nat.c: Include mips-tdep.h.
2003-12-16 Mark Kettenis <>
(SOLIB_HAVE_UNLOAD_EVENT): Remove defines.
* blockframe.c (inside_main_func): Don't treat a zero PC specially.
Needed to fix PR backtrace/1476.
2003-12-16 David Carlton <>
* cp-support.c (class_name_from_physname): Add DMGL_PARAMS.
(method_name_from_physname): Ditto.
2003-12-15 Mark Kettenis <>
* i386-sol2-tdep.c (i386_sol2_gregset_reg_offset): New variable.
(i386_sol2_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs, TDEP->sizeof_gregset and
* config/i386/ (XM_FILE): Set to xm-i386.h.
(XM_CLIBS): Remove.
(NATDEPFILES): Remove core-regset.o and corelow.o.
* config/i386/ (TDEPFILES): Add corelow.o.
2003-12-14 Mark Kettenis <>
* proc-api.c (procfs_note): Add format string to fprintf call.
* i386-tdep.c (i386_analyze_frame_setup): Add missing encodings
for `subl' and `xorl' instructions.
2003-12-13 Jim Blandy <>
* dwarf2read.c (dwarf2_add_member_fn, read_structure_scope):
Replace uses of DEPRECATED_STREQ and DEPRECATED_STREQN with calls
to strcmp and strncmp.
* osabi.c (gdbarch_init_osabi): Reformat error message with better
line breaks.
2003-12-13 Mark Kettenis <>
* blockframe.c (inside_main_func): Reformat. Introduce new local
variables to prevent long lines. Update comments to reflect
2003-12-12 Kevin Buettner <>
From David Mosberger <>:
* libunwind-frame.c (unw_find_dyn_list_p): Replace most arguments
with a single unw_dyn_info_t pointer.
(libunwind_find_dyn_list): Likewise.
* libunwind-frame.h: Likewise.
* ia64-tdep.c (ia64_find_unwind_table): Switch to using
UNW_INFO_FORMAT_REMOTE_TABLE so we can avoid having to read in the
entire unwind-table at once. Support for this table format has
been added to libunwind v0.95.
(ia64_find_proc_info_x): Adjust for remote-unwind-table changes.
(ia64_get_dyn_info_list): Adjust for interface change for
2003-12-12 Jeff Johnston <>
* breakpoint.c (breakpoint_enabled): New function to test whether
breakpoint is active and enabled.
(insert_bp_location, insert_breakpoints): Call new function to test
for enabled breakpoint.
(remove_breakpoint, breakpoint_here_p, breakpoint_thread_match)
(bpstat_should_step, bpstat_have_active_hw_watchpoints)
(disable_breakpoints_in_shlibs, hw_watchpoint_used_count)
(breakpoint_re_set_one): Ditto.
(bpstat_stop_status): Use new function and simplify test.
2003-12-11 Mark Kettenis <>
* observer.c (observer_test_first_observer)
(observer_test_second_observer, observer_test_third_observer):
Don't define as `static'.
(observer_test_third_notification_function): Likewise.
2003-12-10 Mark Kettenis <>
* solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "" instead
of (0).
2003-12-11 Dhananjay Deshpande <>
* MAINTAINERS (write after approval): Add myself.
2003-12-11 Dhananjay Deshpande <>
* config/h8300/tm-h8300.h (h8300hmode): Remove.
(h8300hmode): Likewise.
(h8300smode): Likewise.
(h8300sxmode): Likewise.
(h8300_normal_mode): Likewise.
(GDB_TARGET_IS_H8300): Likewise.
(NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
* h8300-tdep.c (is_h8300hmode): New function.
(is_h8300smode): New function.
(is_h8300sxmode): New function.
(is_h8300_normal_mode): New function.
(BINWORD): Use new functions.
(h8300_examine_prologue): Likewise.
(h8300_print_register): Likewise.
(h8300_print_registers_info): Likewise.
(h8300_register_type): Likewise.
(h8300_gdbarch_init): Remove use of globals like h8300hmode.
* remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
(e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
(e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
2003-12-10 J. Brobecker <>
* frame.c (select_frame): Get the current frame PC using
get_frame_address_in_block() instead of get_frame_pc().
* stack.c (get_frame_language): Likewise.
2003-12-08 Kevin Buettner <>
* remote.c (remote_open_1, remote_cisco_open): Avoid closing
remote_desc more than once.
2003-12-07 Andrew Cagney <>
directly calling strcmp equivalents. Add disclaimer.
2003-12-06 Andrew Cagney <>
* remote.c (remote_fetch_registers): For short packets, explicitly
supply a zero value. Use regcache_raw_supply. Fix suggested by
Jonathan Larmour.
2003-12-05 Jeff Johnston <>
* ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
format to be the i387 extended float format which is used for
long doubles stored in memory.
2003-12-05 Mark Kettenis <>
From Ulrich Weigand <>:
* dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
column instead of translating it.
2003-12-04 Michael Chastain <>
Partial fix for PR c++/1465.
Fix for PR c++/1377.
* cp-support.h (cp_lookup_rtti_type): New function.
* cp-support.c (cp_lookup_rtti_type): New function.
* gnu-v2-abi.c: Update copyright years.
(gnuv2_rtti_type): Call cp_lookup_rtti_type.
* gnu-v3-abi.c: Update copyright years.
(gnuv3_rtti_type): Call cp_lookup_rtti_type.
2003-12-04 J. Brobecker <>
* stabsread.c (read_type): Save a reference to types that are defined
as cross references to other types.
2003-12-02 Roland McGrath <>
* thread-db.c (enable_thread_event): Change return type to
td_err_e. Return TD_OK or error code.
(enable_thread_event_reporting): Update callers.
2003-12-03 Ian Lance Taylor <>
* NEWS: Mention new C++ demangler code.
2003-12-03 Andrew Cagney <>
* ppc-linux-nat.c (store_register, fetch_register): Convert
between ptrace and regcache's wordsize.
(ppc_register_u_addr): Use the ptrace wordsize.
2003-12-02 Kevin Buettner <>
* frv-tdep.c (frv_gdbarch_init): Add case for fr550.
2003-12-02 Daniel Jacobowitz <>
* dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
(dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
(dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
(dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
(dwarf2_read_section): Remove offset and size arguments. Use
bfd_get_section_size_before_reloc and sectp->filepos.
(dwarf2_has_info): Clear section variables instead of offsets.
(dwarf2_locate_sections): Don't initialize the deleted variables.
(dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
(dwarf2_build_psymtabs_easy): Likewise.
* dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
(dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
(dwarf2_read_section): Update prototype.
(dwarf2_build_frame_info): Update calls to dwarf2_read_section.
Use bfd_get_section_size_before_reloc instead of global size
2003-12-01 Michael Chastain <>
* dwarfread.c: Update documentation on the state of dwarf-1.
2003-12-01 Andrew Cagney <>
Obsolete old MIPS SVr3 and SVr4 systems.
* NEWS: Mention obsoleted systems.
* configure.tgt: Mark mips*-*-sysv4* as obsolete.
* Mark mips-dec-*, mips-little-*, mips-sony-*,
mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
* config/mips/ Mark as obsolete.
* config/mips/ Mark as obsolete.
* config/mips/nm-mips.h: Mark as obsolete.
* config/mips/xm-mips.h: Mark as obsolete.
* config/mips/ Mark as obsolete.
* config/mips/nm-news-mips.h: Mark as obsolete.
* config/mips/ Mark as obsolete.
* config/mips/nm-riscos.h: Mark as obsolete.
* config/mips/xm-riscos.h: Mark as obsolete.
* config/mips/ Mark as obsolete.
* config/mips/tm-mipsv4.h: Mark as obsolete.
* config/mips/xm-mipsv4.h: Mark as obsolete.
Obsolete old m68k systems.
* Mark m68*-sun-*, m68*-sun-sunos4*,
m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
m680[01]0-sun-sunos3* as obsolete.
* configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/xm-sun3os4.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/nm-sun3.h: Mark file obsolete.
* config/m68k/xm-sun3.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/nm-sun2.h: Mark file obsolete.
* config/m68k/xm-sun2.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/nm-sysv4.h: Mark file obsolete.
* config/m68k/xm-m68kv4.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/nm-m68klynx.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/xm-dpx2.h: Mark file obsolete.
* config/m68k/nm-dpx2.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/xm-delta68.h: Mark file obsolete.
* config/m68k/nm-delta68.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/xm-3b1.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/tm-sun3os4.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/tm-sun3.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/tm-sun2os4.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/tm-sun2.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/tm-m68kv4.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/tm-m68klynx.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/tm-dpx2.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/tm-delta68.h: Mark file obsolete.
* config/m68k/ Mark file obsolete.
* config/m68k/tm-3b1.h: Mark file obsolete.
2003-11-29 Mark Kettenis <>
* x86-64-tdep.c (MAX_CLASSES): Remove macro.
(x86_64_reg_class): Remove enum.
(merge_classes, classify_argument, examine_argument): Remove
(INT_REGS, SSE_REGS): Remove macros.
(x86_64_push_arguments): Remove function.
(amd64_push_arguments): New function.
(x86_64_push_dummy_call): Call amd64_push_arguments instead of
2003-11-28 Mark Kettenis <>
* x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
zero. Reorganize code a bit.
2003-11-27 Mark Kettenis <>
* dwarf2-frame.c: Fix another comment.
* x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
(x86_64_use_struct_convention, x86_64_extract_return_value,
x86_64_store_return_value): Remove.
(amd64_reg_class): New enum.
(amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
amd64_return_value): New functions.
(x86_64_init_abi): Don't set extract_return_value,
store_return_value and use_struct_convention. Set return_value to
* i387-tdep.h (i387_return_value): New prototype.
* i387-tdep.c (i387_return_value): New function.
* dwarf2-frame.c: Fix some comments and whitespace problems.
* i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
"gdb_assert.h" and "gdb_string.h".
(i386nbsd_r_reg_offset): Rename from regmap.
(i386nbsd_supply_reg, fetch_core_registers,
fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
i386nbsd_aout_regset_from_core_section): New functions.
(i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
(i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
initialize TDEP->sc_num_regs.
(i386nbsdaout_init_abi): New function.
(i386nbsdelf_init_abi): Remove initialization of
TDEP->num_xmm_regs. Don't set num_regs here.
(_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
i386nbsd_aout_init to register NetBSD a.out OS/ABI.
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
.note.netbsdcore.procinfo section to recognize NetBSD core files.
2003-11-26 Michael Chastain <>
* cp-abi.c: Update copyright years.
2003-11-25 Andrew Cagney <>
* thread-db.c (enable_thread_event): New function. Ensure that BP
is a code address.
(enable_thread_event_reporting): Use enable_thread_event.
2003-11-25 Michael Snyder <>
* mips-tdep.c (mips_o64_extract_return_value): Correct for
NUM_REGS (see changes 2003-06-21).
(mips_eabi_extract_return_value): Ditto.
2003-11-25 Andrew Cagney <>
* infrun.c: Don't include "exec.h".
(handle_inferior_event): Pass current_target, instead of exec_ops,
to SOLIB_ADD. Add comments.
* (infrun.o): Update dependencies.
2003-11-24 Daniel Jacobowitz <>
* NEWS: Mention improved location expression support.
2003-11-23 Andrew Cagney <>
* (infrun.o): Update dependencies.
* infrun.c: Include "exec.h".
(handle_inferior_event): Pass exec_ops to SOLIB_ADD.
2003-11-23 Andrew Cagney <>
* frame.c (frame_unwind_signed_register): Delete function.
* frame.h (frame_unwind_register_signed): Delete declaration.
* mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
* arch-utils.h (generic_cannot_extract_struct_value_address):
Delete declaration.
* ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
* config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
* config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
* dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
* eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
* jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
* mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
* p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
* source.c, sparc-tdep.c, stack.c, target.c: Update.
* symfile.c (symbol_file_command): Replace STREQ with strcmp.
* elfread.c (elf_symtab_read): Delete STREQ from comment.
2003-11-22 Andrew Cagney <>
* frame.c (deprecated_frame_xmalloc): Delete function.
(deprecated_set_frame_extra_info_hack): Delete function.
(deprecated_set_frame_saved_regs_hack): Delete function.
* frame.h (deprecated_frame_xmalloc): Delete declaration.
(deprecated_set_frame_extra_info_hack): Delete declaration.
(deprecated_set_frame_saved_regs_hack): Delete declaration.
* mcore-tdep.c (analyze_dummy_frame): Instead of
deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
and deprecated_set_frame_extra_info_hack use
* mn10300-tdep.c (analyze_dummy_frame): Ditto.
* mips-tdep.c (mips_init_extra_frame_info): Delete call to
* mips-tdep.c (mips_frame_chain): Delete call to
* frame.h (deprecated_set_frame_next_hack): Delete declaration.
(deprecated_set_frame_prev_hack): Delete declaration.
* frame.c (deprecated_set_frame_next_hack): Delete function.
(deprecated_set_frame_prev_hack): Delete function.
* mcore-tdep.c (analyze_dummy_frame): Delete calls to
"deprecated_set_frame_next_hack" and
* mn10300-tdep.c (analyze_dummy_frame): Ditto.
* mips-tdep.c (mips_register_convertible): Delete function.
(mips_register_convert_to_virtual): Delete function.
(mips_register_convert_to_raw): Delete function.
(mips_gdbarch_init): Do not set "deprecated_register_convertible",
"deprecated_register_convert_to_virtual", or
(mips_pseudo_register_write, mips_pseudo_register_read): Handle
32/64 cooked to raw register conversions.
* frame.c (deprecated_get_frame_context): Delete function.
(deprecated_set_frame_context): Delete function.
(struct frame_info): Delete member "context".
* frame.h (deprecated_get_frame_context): Delete declaration.
(deprecated_set_frame_context): Delete declaration.
* procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
* config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
* config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
* config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
* mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
(mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
(mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
* config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
* config/mips/tm-irix5.h: Update copyright.
(SIGFRAME_REG_SIZE): Delete macro.
* hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
* config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
* infcall.c (call_function_by_hand): Delete #ifdef
* infcmd.c (print_return_value): Ditto.
* mips-tdep.c (skip_prologue_using_sal): New function.
(mips32_skip_prologue, mips16_skip_prologue): Use
skip_prologue_using_sal to get an upper bound on the search.
* config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
#if 0'ed macro.
* infrun.c (step_into_function): Delete #ifdef
* symtab.c (find_function_start_sal): Ditto.
* remote-rdp.c: Update copyright.
(rdp_init): #if 0 references to "target_byte_order".
* mips-tdep.c (mips_o32_store_return_value): Delete function.
(mips_o32_return_value): Replace mips_o32_xfer_return_value.
(mips_o32_extract_return_value): Delete function.
(mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
(mips_n32n64_extract_return_value): Delete function.
(mips_n32n64_store_return_value): Delete function.
(mips_gdbarch_init): For o32 and n32n64, set "return_value"
instead of "store_return_value", "extract_return_value", and
(mips_n32n64_use_struct_convention): Delete function.
2003-11-21 Kevin Buettner <>
* frv-tdep.c (frv_frame_this_id): Eliminate call to
2003-11-20 Mark Kettenis <>
* i386-tdep.c (i386_extract_return_value,
i386_store_return_value): Add gdbarch argument. Use it instead of
determining it from REGCACHE. Remove recursive call for
structures with a single member.
(i386_use_struct_convention): Remove.
(i386_reg_struct_return_p): New function.
(i386_return_value): New function.
(i386_gdbarch_init): Set return_value, don't set
extract_return_value, store_return_value and
* x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
2003-11-20 Jim Blandy <>
* osabi.c (_initialize_gdb_osabi): Don't return before registering
the 'set osabi' and 'show osabi' commands.
2003-11-19 Mark Kettenis <>
* frame.c (get_prev_frame): Use result from
get_frame_address_in_block instead of get_frame_pc as argument to
inside_main_func. Fixes PR backtrace/1435.
2003-11-19 Andrew Cagney <>
* stack.c (return_command): Handle "void", "legacy" and "unknown
location" return values separatly.
* values.c (using_struct_return): Return 0 for a "void" return
type. Mention "register_value_being_returned".
(register_value_being_returned): Mention "using_struct_return".
2003-11-19 Daniel Jacobowitz <>
* dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
(frame_base_offset): Delete.
(read_func_scope): Delete call to decode_locdesc.
(decode_locdesc): Update comments. Don't set the removed variables.
Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
DW_OP_fbreg support.
2003-11-18 Daniel Jacobowitz <>
* dwarf2read.c (optimized_out, islocal): Remove.
(decode_locdesc): Update comments. Don't set optimized_out
or islocal.
2003-11-17 Jeff Johnston <>
David Mosberger <>
* ia64-tdep.c: Include elf.h.
[HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
(ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
(ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
(ia64_is_fpreg, ia64_access_reg): Ditto.
(ia64_access_fpreg, ia64_access_mem): Ditto.
(get_kernel_table): Ditto.
(ia64_find_unwind_table): Ditto.
(ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
(ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
(ia64_libunwind_frame_prev_register): Ditto.
(ia64_libunwind_frame_sniffer): Ditto.
(ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
sniffer. Register libunwind functions needed by generic
libunwind frame code using libunwind_frame_set_descr().
2003-11-16 Daniel Jacobowitz <>
* breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
bp_shlib_disabled breakpoint if there is a shared library mapped
at its expected address.
2003-11-16 Andrew Cagney <>
* configure.tgt: Delete mips*tx39*-elf*.
* config/mips/tm-tx39.h: Delete file.
* config/mips/ Delete file.
* config/mips/ Delete file.
* mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
* remote-mips.c (common_open): Instead of
"mips_read_register_type" and "mips_set_processor_type_command"
call "deprecated_mips_set_processor_regs_hack".
* config/mips/tm-mips.h (mips_read_processor_type): Delete
(mips_set_processor_type_command): Delete declaration.
* mips-tdep.c (mips_gdbarch_init): Update comment.
(mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
(mips_set_processor_type): Delete function.
(mips_show_processor_type_command): Delete function.
(mips_set_processor_type_command): Delete function.
(tmp_mips_processor_type): Delete.
(mips_processor_type): Delete.
(mips_processor_type_table): Delete.
(mips_r3051_reg_names): Delete.
(mips_r3081_reg_names): Delete.
(mips_lsi33k_reg_names): Delete.
(mips_processor_reg_names): Delete.
(mips_read_processor_type): Delete function.
(deprecated_mips_set_processor_regs_hack): New function.
(struct gdbarch_tdep): Add member "mips_processor_reg_names".
(mips_register_name): Get the processor names from the tdep.
(mips_tx39_reg_names): New array.
(mips_generic_reg_names): Wire to a standard set of names.
(mips_gdbarch_init): Set "mips_processor_reg_names".
* config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
* config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
* config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
2003-11-16 Andrew Cagney <>
* mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
(mips_fpa0_regnum, mips_regnum): New function.
(mips_gdbarch_init): Fill in the "regnum" fields.
* mips-tdep.h (struct mips_regnum): Define.
(mips_regnum): Declare.
* config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
* config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
* config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
* remote-mips.c: Include "mips-tdep.h". Update.
* mipsnbsd-tdep.c: Update.
* mipsv4-nat.c: Update.
* mips-tdep.c: Update.
* mips-nat.c: Update.
* mips-linux-tdep.c: Update.
* mips-linux-nat.c: Update.
* irix5-nat.c: Update.
* dve3900-rom.c: Include "mips-tdep.h". Update.
(ignore_packet): Supress GCC warning.
* config/mips/nm-riscos.h: Update.
2003-11-16 Andrew Cagney <>
* mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
(mips_register_raw_size): Delete function.
(mips_register_type): Handle "mips64_transfers_32bit_regs_p".
(mips_gdbarch_init): Do not set "deprecated_register_raw_size".
Check and set "mips64_transfers_32bit_regs_p".
(struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
(mips_register_convertible): Check the architecture's
(set_mips64_transfers_32bit_regs): New function.
(_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
"set remote-mips64-transfers-32bit-regs" command. Specify
set_mips64_transfers_32bit_regs as the set function.
* (dve3900-rom.o, remote-mips.o): Update dependencies.
2003-11-16 Mark Kettenis <>
* i386-tdep.h (i386_supply_gregset): Provide prototype.
* i386-tdep.c (i386_supply_gregset): Make public.
2003-11-16 Andrew Cagney <>
* mips-tdep.c (mips_register_byte): Delete function.
(mips_gdbarch_init): Do not set "deprecated_register_byte".
* config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
* config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
* config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
2003-11-16 Mark Kettenis <>
* i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
2003-11-16 Andrew Cagney <>
* config/mips/ Delete file.
* config/mips/tm-linux64.h: Delete file.
* config/mips/tm-mips64.h: Delete file.
* config/mips/ Delete file.
* config/djgpp/fnchange.lst: Update.
* configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
* config/mips/tm-irix6.h: Update copyright. Include
"mips/tm-mips.h" instead of "mips/tm-mips64.h".
* mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
2003-11-15 Andrew Cagney <>
* mips-tdep.c (mips_register_type): Simplify. Eliminate reference
to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
n32 registers 64 bit.
(mips_register_raw_size, mips_register_byte): For pseudo
registers, use the register's pseudo size and not the
corresponding raw register's size.
* config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
* config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
* config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
* config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
2003-11-15 Andrew Cagney <>
* mips-tdep.c (struct gdbarch_tdep): Delete member
(GDB_TARGET_IS_MIPS64): Delete macro.
(mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
(mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
(mips_addr_bits_remove): Simplify.
* mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
Replace MIPS_REGSIZE with mips_regsize.
* mips-tdep.c (mips_regsize): New function.
* mips-tdep.h (mips_regsize): Declare.
* mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
* mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
(mipsnbsd_fill_reg): Update.
(mipsnbsd_supply_fpreg): Update.
(mipsnbsd_fill_fpreg): Update.
* mips-tdep.c (mips_register_raw_size): Update.
(mips_register_type): Update.
(mips32_heuristic_proc_desc): Update.
(print_gp_register_row): Update.
(mips_dump_tdep): Do not print MIPS_REGSIZE.
* irix5-nat.c (supply_gregset): Update.
(fetch_core_registers): Update.
* config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
* config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
* config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
* config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
2003-11-15 Andrew Cagney <>
* config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
* stabsread.c (define_symbol): Update.
2003-11-15 Andrew Cagney <>
* bcache.h (deprecated_bcache): Declare.
(bcache): Make returned buffer constant.
* bcache.c (deprecated_bcache): New function.
(bcache_data): New function.
(bcache): Call bcache data.
* symfile.c (add_psymbol_to_list): Use deprecated_bcache.
(add_psymbol_with_dem_name_to_list): Ditto.
2003-11-15 Mark Kettenis <>
* glibc-tdep.h (struct gdbarch): Declare opaque.
(glibc_skip_solib_resolver): Adjust prototype.
* glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
* arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
(arm_linux_init_abi): Set skip_solib_resolver.
* i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
(i386_linux_init_abi): Set skip_solib_resolver.
* config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
(arm_linux_skip_solib_resolver): Remove prototype.
* config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
(i386_linux_skip_solib_resolver): Remove prototype.
2003-11-14 Mark Kettenis <>
* (skip_solib_resolver): Change into a multi-arch
* gdbarch.c, gdbarch.h: Regenerate.
* infrun.c (handle_inferior_event): Call
gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
* arch-utils.c (generic_in_solib_call_trampoline): Adjust function
* arch-utils.h (generic_in_solib_call_trampoline): Adjust function
2003-11-14 Jeff Johnston <>
* libunwind-frame.c: New file.
* libunwind-frame.h: New file.
* acconfig.h (HAVE_LIBUNWIND): #undef reference added.
* Add --with-libunwind option support. Define
HAVE_LIBUNWIND if libunwind support selected / defaulted.
Also check for libunwind.h and libunwind-ia64.h headers.
* configure: Regenerated.
* Add support for libunwind-frame.o.
* Regenerated.
2003-11-14 Jeff Johnston <>
* config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
set up the ia64 linux native target method for getting the kernel
unwind table.
* ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
* inftarg.c (child_xfer_partial): Enable section of code to
* target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
2003-11-14 Ian Lance Taylor <>
* config/arm/ (TM_FILE): Define.
* config/arm/tm-nbsd.h: New file.
2003-11-14 Andrew Cagney <>
* (ppc-sysv-tdep.o): Update dependencies.
* ppc-sysv-tdep.c: Include "objfiles.h".
(ppc64_sysv_abi_push_dummy_call): Provide the
the FN's objfile when looking for the descriptor.
* ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
"name_of_malloc" to ".malloc".
2003-11-13 Mark Kettenis <>
* config/i386/ (TDEPFILES): Add glibc-tdep.o.
2003-11-13 David Carlton <>
* cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
2003-11-13 Andrew Cagney <>
* arch-utils.h (selected_architecture_name): Declare.
(selected_byte_order): Declare.
* arch-utils.c (selected_byte_order): New function.
(selected_architecture_name): New function.
(target_architecture_auto): Make static.
(set_architecture_string): Make static.
(target_byte_order): Make static.
(target_byte_order_auto): Make static.
non-multi-arch definition.
(target_byte_order, target_architecture): Delete declaration.
(target_byte_order_auto, target_architecture_auto): Ditto.
* gdbarch.h: Re-generate.
* remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
2003-11-13 Andrew Cagney <>
* ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
2003-11-13 Jim Blandy <>
* cp-namespace.c: Doc fix.
2003-11-12 Michael Snyder <>
* sh64_tdep.c: Regularize some names.
(sh_sh64_register_name): Rename to sh64_register_name.
(sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
(sh_sh64_register_byte): Rename to sh64_register_byte.
Rename to sh64_build_float_register_type.
Rename to sh64_register_convert_to_virtual.
Rename to sh64_register_convert_to_raw.
* sh64-tdep.c (translate_insn_rn, is_media_pseudo,
sh64_media_reg_base_num, sh64_compact_reg_base_num,
sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
sh64_extract_return_value, sh64_show_media_regs,
sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
sh64_pseudo_register_read, sh64_pseudo_register_write,
sh64_do_pseudo_register, sh_compact_print_registers_info):
Delete unused variable 'tdep'.
* sh64-tdep.c: Coding standard and spelling comment fixes.
(sh64_extract_return_value): Replace deprecated_store_floating
with store_typed_floating.
(sh_sh64_register_convert_to_raw): Replace
deprecated_store_floating with store_typed_floating.
(sh_sh64_register_virtual_type): Convert to sh64_register_type.
(sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
sh64_extract_struct_value_address, sh64_pop_frame,
sh64_extract_return_value, sh64_store_return_value,
sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
(sh64_gdbarch_init): Don't set deprecated_register_bytes,
deprecated_register_virtual_type, deprecated_register_raw_size,
deprecated_max_register_raw_size, or
deprecated_max_register_virtual_size. Instead, just set
(sh_sh64_register_raw_size): Delete.
(sh_sh64_register_virtual_size): Delete.
2003-11-12 Daniel Jacobowitz <>
* dwarf2read.c (struct dwarf2_cu): New type.
(dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
dwarf2_cu structure to pass down.
(scan_partial_symbols, add_partial_symbol, add_partial_namespace)
(add_partial_enumeration, locate_pdi_sibling, process_die)
(read_file_scope, read_func_scope)
(read_lexical_block_scope, dwarf2_get_pc_bounds)
(dwarf2_add_field, dwarf2_attach_fields_to_type)
(dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
(read_structure_scope, read_enumeration, read_array_type)
(read_common_block, read_namespace, read_tag_pointer_type)
(read_tag_ptr_to_member_type, read_tag_reference_type)
(read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
(read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
(read_die_and_children, read_die_and_siblings, dwarf2_read_section)
(dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
(read_full_die. read_attribute_value, read_attribute)
(read_address, dwarf_decode_line_header, dwarf_decode_lines)
(var_decode_location, new_symbol, dwarf2_const_value, die_type)
(die_containing_type, type_at_offset, tag_type_to_type)
(read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
(dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
2003-11-12 Daniel Jacobowitz <>
PR breakpoints/1450
* breakpoint.c (insert_bp_location): Fix a logic error by returning
0 after a catchpoint fails.
2003-11-11 Michael Chastain <>
* mips-tdep.c (msymbol_size): Delete.
2003-11-07 Michael Chastain <>
* symtab.h (struct minimal_symbol): Add size.
* dbxread.c: Use it.
* elfread.c: (record_minimal_symbol_and_info): Do not use info.
Rename to record_minimal_symbol.
(elf_symtab_read): Set MSYMBOL_SIZE explicitly.
* minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
(install_minimal_symbols): Ditto.
* objfiles.c (terminate_minimal_symbol_table): Ditto.
* arm-tdep.c: Delete unused MSYMBOL_SIZE.
* m68hc11-tdep.c: Ditto.
* mips-tdep.c: Ditto.
* sh64-tdep.c: Ditto.
2003-11-10 Michael Chastain <>
* MAINTAINERS: Change my e-mail address.
2003-11-10 Andrew Cagney <>
* (return_value): Replace "inval" and "outval" with
"readbuf" and "writebuf".
* ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
* d10v-tdep.c (d10v_return_value): Ditto.
* ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
(ppc_sysv_abi_broken_return_value): Ditto.
(ppc64_sysv_abi_return_value): Ditto.
* ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
(ppc_sysv_abi_return_value): Ditto.
(ppc_sysv_abi_broken_return_value): Ditto.
(ppc64_sysv_abi_return_value): Ditto.
* values.c (register_value_being_returned): Update call.
* stack.c (return_command): Update call.
* gdbarch.h, gdbarch.c: Re-generate.
* target.h (struct target_ops): Order xfer buffer parameters "read
write" not "write read".
* bfd-target.c (target_bfd_xfer_partial): Update.
* remote.c (remote_xfer_partial): Update.
* inftarg.c (child_xfer_partial): Update.
* target.c (default_xfer_partial): Update.
(target_read_partial, target_write_partial): Update.
(debug_to_xfer_partial): Update.
* arch-utils.h, arch-utils.c: Fix typo in comment.
* arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
(gdbarch_from_bfd): Call gdbarch_find_by_info.
(set_gdbarch_from_file): Call
2003-11-09 Andrew Cagney <>
* arch-utils.c (gdbarch_update_p): New function.
* (gdbarch_update_p): Delete function.
(find_arch_by_info, gdbarch_find_by_info): New functions.
(deprecated_current_gdbarch_select_hack): New function.
* gdbarch.c: Re-generate.
* (clear_gdbarch_swap): Delete function.
(swapout_gdbarch_swap): Delete function.
(swapin_gdbarch_swap): Delete function.
(init_gdbarch_swap): Delete function.
(initialize_non_multiarch): Delete function.
(current_gdbarch_swap_in_hack): New function.
(current_gdbarch_swap_out_hack): New function.
(current_gdbarch_swap_init_hack): New function.
* gdbarch.c: Re-generate.
* (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
parameter to "current_gdbarch". Add comment explaining why.
(TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
* gdbarch.c: Re-generate.
* config/s390/ (XM_FILE, XM_CLIBS): Delete macros.
* config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
* config/s390/xm-linux.h: Delete file.
* config/m88k/xm-delta88v4.h: Delete stray.
* (arch-utils.o): Update dependencies.
* arch-utils.c: Include "osabi.h".
(gdbarch_info_fill): New function.
* arch-utils.h (gdbarch_info_fill): Declare.
* (gdbarch_update_p): Call "gdbarch_info_fill".
* gdbarch.c: Re-generate.
2003-11-09 Mark Kettenis <>
David S. Miller <>
* glibc-tdep.c, glibc-tdep.h: New files.
* config/arm/ (TDEPFILES): Add glibc-tdep.o
* config/i386/ (TDEPFILES): Likewise.
* i386-linux-tdep.c (glibc-tdep.h): Include.
(find_minsym_and_objfile, skip_hurd_resolver): Delete.
(i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
* arm-linux-tdep.c (glibc-tdep.h): Include.
(find_minsym_and_objfile, skip_hurd_resolver): Delete.
(arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
* (ALLDEPFILES): Add glibc-tdep.c
(glibc_tdep_h): Define.
(glibc-tdep.o): Add dependencies.
(arm-linux-tdep.o): Update dependencies.
(i386-linux-tdep.o): Likewise.
2003-11-09 Andrew Cagney <>
* config/mips/ (NAT_FILE): Set to "nm-irix5.h".
* config/mips/nm-irix6.h: Delete file.
* config/mips/nm-linux.h: Update copyright.
* config/mips/ (XM_FILE): Set to "xm-irix5.h".
* config/mips/xm-irix6.h: Delete file.
* config/mips/ (XM_FILE): Delete definition.
* config/mips/xm-linux.h: Delete file.
2003-11-09 Andrew Cagney <>
* d10v-tdep.c (d10v_return_value): New function.
(d10v_use_struct_convention): Delete function.
(d10v_store_return_value): Delete function.
(d10v_extract_struct_value_address): Delete function.
(d10v_gdbarch_init): Set "return_value" instead of
"extract_return_value", "store_return_value",
"extract_struct_value_address", and "use_struct_convention".
(RET1_REGNUM): Delete const.
2003-11-09 Mark Kettenis <>
From David S. Miller <>:
* (SKIP_SOLIB_RESOLVER): New method.
* gdbarch.c, gdbarch.h: Regenerated.
* arch-utils.c (generic_skip_solib_resolver): New function.
* arch-utils.h (generic_skip_solib_resolver): New prototype.
* infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
2003-11-07 Andrew Cagney <>
* top.c (print_gdb_version): Replace STREQ with strcmp.
* valops.c (value_struct_elt_for_reference): Ditto.
(value_struct_elt_for_reference): Ditto.
* symtab.c (gdb_mangle_name): Ditto.
(find_line_symtab): Ditto.
* symmisc.c (maintenance_print_symbols): Ditto.
* symfile.c (symbol_file_command): Ditto.
* stabsread.c (define_symbol, read_type): Ditto.
(cleanup_undefined_types, scan_file_globals): Ditto.
* solib.c (solib_map_sections): Ditto.
* solib-svr4.c (bfd_lookup_symbol): Ditto.
* rs6000-tdep.c (skip_prologue): Ditto.
* p-valprint.c (pascal_value_print): Ditto.
(pascal_object_is_vtbl_ptr_type): Ditto.
* objfiles.c (in_plt_section): Ditto.
* minsyms.c (lookup_minimal_symbol): Ditto.
(compact_minimal_symbols): Ditto.
(find_solib_trampoline_target): Ditto.
* mdebugread.c (parse_type): Ditto.
* language.c (set_language_command): Ditto.
(set_type_command, set_range_command): Ditto.
* f-lang.c (add_common_block): Ditto.
(add_common_block): Ditto.
(find_first_common_named): Ditto.
(patch_all_commons_by_name): Ditto.
* elfread.c (elf_locate_sections): Ditto.
(elf_locate_sections): Ditto.
(elfstab_offset_sections): Ditto.
* dwarf2read.c (dwarf2_locate_sections): Ditto.
* dbxread.c (add_old_header_file): Ditto.
(find_corresponding_bincl_psymtab): Ditto.
(read_dbx_symtab, process_one_symbol): Ditto.
* coffread.c (patch_opaque_types): Ditto.
* cli/cli-decode.c (delete_cmd): Ditto.
* cli/cli-cmds.c (pwd_command, list_command): Ditto.
* c-typeprint.c (c_type_print_base): Ditto.
* breakpoint.c (bpstat_stop_status): Ditto.
(clear_command, breakpoint_re_set_one): Ditto.
2003-11-07 Andrew Cagney <>
* bcache.h: Update copyright. Add comments on bcache VS hashtab.
* bcache.c (struct bstring): Make "length" an unsigned short, add
(struct bcache): Add "half_hash_error_count".
(bcache): Compute and save the "half_hash". Compare the
"half_hash" before comparing the length. Update
2003-11-07 Andrew Cagney <>
* inftarg.c (child_xfer_partial): New function
(init_child_ops): Set "to_xfer_partial".
2003-11-07 Andrew Cagney <>
* ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
set "return_value" instead of "use_struct_convention".
(ppc_linux_use_struct_convention): Delete function.
(ppc_linux_return_value): New function.
* ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
(ppc_sysv_abi_broken_return_value): New function.
(do_ppc_sysv_return_value): Add "gdbarch" parameter.
(ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
(ppc_sysv_abi_extract_return_value): Delete function.
(ppc_sysv_abi_broken_extract_return_value): Delete function.
(ppc_sysv_abi_store_return_value): Delete function.
(ppc_sysv_abi_broken_store_return_value): Delete function.
(ppc_sysv_abi_use_struct_convention): Delete function.
(ppc64_sysv_abi_use_struct_convention): Delete function.
(ppc64_sysv_abi_extract_return_value): Delete function.
(ppc64_sysv_abi_store_return_value): Delete function.
* ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
(ppcnbsd_init_abi): Set "return_value", instead of
"use_struct_convention", "extract_return_value", and
(ppcnbsd_use_struct_convention): Delete function.
* ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
(ppc_sysv_abi_return_value): Declare.
(ppc_sysv_abi_broken_return_value): Declare.
(ppc_sysv_abi_use_struct_convention): Delete.
(ppc_sysv_abi_store_return_value): Delete.
(ppc_sysv_abi_extract_return_value): Delete.
(ppc_sysv_abi_broken_store_return_value): Delete.
(ppc_sysv_abi_broken_extract_return_value): Delete.
(ppc64_sysv_abi_use_struct_convention): Delete.
(ppc64_sysv_abi_extract_return_value): Delete.
(ppc64_sysv_abi_store_return_value): Delete.
* rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
set "return_value" instead of "extract_return_value",
"store_return_value", and "use_struct_convention".
2003-11-07 Mark Kettenis <>
* dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
* fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
2003-11-07 Mark Kettenis <>
* fbsd-proc.c: Fix formatting.
2003-11-06 Kevin Buettner <>
* frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
(new_variant): Set name for iacc0_regnum.
(frv_register_name): Accommodate pseudo-registers.
(frv_register_type): Add case for iacc0_regnum.
(frv_pseudo_register_read, frv_pseudo_register_write): New functions.
(frv_gdbarch_init): Set number of pseudo registers. Establish
pseudo-register read/write methods.
2003-11-06 Andrew Cagney <>
* valops.c (destructor_name_p): Replace STREQN with strncmp.
* top.c (command_line_input): Ditto.
* objc-exp.y (yylex): Ditto.
* minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
* jv-exp.y (yylex): Ditto.
* f-exp.y (yylex): Ditto.
* event-top.c (command_line_handler): Ditto.
* environ.c (get_in_environ): Ditto.
(set_in_environ): Ditto.
* dwarfread.c (handle_producer): Ditto.
* dbxread.c (process_one_symbol): Ditto.
* c-typeprint.c (c_type_print_base): Ditto.
* c-exp.y (yylex): Ditto.
2003-11-06 Andrew Cagney <>
Jeff Johnston <>
* target.c (add_target): Only set "to_xfer_partial" when NULL.
(init_dummy_target): Set "to_xfer_partial".
2003-11-06 Andrew Cagney <>
* stack.c (return_command): Warn when STRUCT_CONVENTION, and not
2003-11-06 Daniel Jacobowitz <>
* breakpoint.c (insert_bp_location, allocate_bp_location): Make
2003-11-06 Daniel Jacobowitz <>
* breakpoint.c (remove_breakpoint): Take an bp_location
instead of a breakpoint argument. Check the bp_location's type.
Fix a reversed condition for hardware breakpoints.
(insert_bp_location): Update call to remove_breakpoint.
(remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
(remove_hw_watchpoints): Likewise.
(reattach_breakpoints): Likewise.
(detach_breakpoints): Likewise.
(delete_breakpoint): Likewise.
2003-11-06 Daniel Jacobowitz <>
* breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
(beakpoint_init_inferior): Likewise.
(breakpoint_here_p): Likewise. Only check addresses for software
or hardware breakpoints.
(breakpoint_inserted_here_p): Likewise.
(breakpoint_thread_match): Likewise. Correct comment.
(bpstat_have_active_hw_watchpoints): Likewise.
(check_duplicates): Likewise.
2003-11-06 Daniel Jacobowitz <>
* breakpoints.c (insert_bp_location): New function, broken out
from insert_breakpoints. Work on an bp_location instead of a
(insert_breakpoints): Use it.
2003-11-06 Daniel Jacobowitz <>
* breakpoint.h (struct bp_location): Add section.
(struct breakpoint): Remove section.
* breakpoint.c (insert_breakpoints, remove_breakpoint)
(breakpoint_here_p, breakpoint_inserted_here_p)
(breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
(describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
(clear_command, delete_breakpoint, breakpoint_re_set_one): Access
section through loc.
2003-11-06 Daniel Jacobowitz <>
* breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
instead of ALL_BREAKPOINTS. Check for software breakpoints only.
2003-11-06 Daniel Jacobowitz <>
* breakpoint.c (allocate_bp_location): Take bpt and bp_type
arguments. Initialize owner and type for the new breakpoint
location item.
(set_raw_breakpoint): Update call to allocate_bp_location.
2003-11-06 Daniel Jacobowitz <>
* breakpoint.h (struct bp_location): Add a chain pointer.
(bp_location_chain): New variable.
(allocate_bp_location): New function.
(set_raw_breakpoint): Use it.
(delete_breakpoint): Remove ->loc from the bp_location_chain.
2003-11-06 Daniel Jacobowitz <>
* breakpoint.h (enum bp_loc_type, struct bp_location): New.
(struct breakpoint): Remove address, shadow_contents, inserted,
requested_address, and duplicate. Add a struct bp_location.
* breakpoint.c (condition_command, read_memory_nobpt)
(insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
(reattach_breakpoints, update_breakpoints_after_exec)
(detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
(breakpoint_init_inferior, breakpoint_here_p)
(breakpoint_inserted_here_p, deprecated_frame_in_dummy)
(breakpoint_thread_match, bpstat_stop_status)
(bpstat_have_active_hw_watchpoints, print_one_breakpoint)
(describe_other_breakpoints, check_duplicates)
(make_breakpoint_permanent, create_thread_event_breakpoint)
(disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
(set_longjmp_resume_breakpoint, mention, create_breakpoints)
(watch_command_1, print_one_exception_catchpoint)
(clear_command, breakpoint_re_set_one): Adjust member accesses to
use the breakpoint's ->loc.
(set_raw_breakpoint): Likewise. Initialize ->loc.
(delete_breakpoint): Likewise. Free ->loc.
2003-11-05 Andrew Cagney <>
* config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
* config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
* config/i386/tm-cygwin.h
* config/powerpc/tm-linux.h
(at_subroutine_call_instruction_target): Delete declaration.
* config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
* config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
* config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
* xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
"struct bfd_section" and "struct bfd".
* target.h (struct section_table): Ditto.
* rs6000-nat.c (xcoff_relocate_core): Ditto.
* solib-svr4.c (elf_locate_base): Ditto.
* pa64solib.c (dld_cache_t): Ditto.
* objfiles.h (struct obj_section): Ditto.
* objfiles.c (add_to_objfile_sections): Ditto.
* exec.c (bfdsec_to_vmap): Ditto.
(add_to_section_table): Ditto.
(build_section_table): Ditto.
* corelow.c (get_core_register_section): Ditto.
* coffread.c (find_linenos): Ditto.
* elfread.c (elf_interpreter): Delete #if0'd function.
* mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
* config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
* config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
* config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
* arch-utils.h (generic_cannot_extract_struct_value_address):
Delete declaration.
* wince.c (_initialize_wince): Fix multi-line string.
* ia64-tdep.c (floatformat_valid): Convert to ISO C.
2003-11-05 Elena Zannoni <>
* top.c (execute_command): Fix broken logic for command execution
while inferior is running in async mode.
2003-11-06 Mark Kettenis <>
* dwarf2-frame.c (execute_cfa_program): Mark register as
REG_SAVED_REG for DW_CFA_register opcode.
2003-11-05 Mark Kettenis <>
* amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
%rsp, %rip and %eflags to match ABI-change.
2003-11-05 Jeff Johnston <>
* ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
(ia64_gdbarch_init): Don't bother calculating the os.
Instead use the gdbarch_info struct and look at the osabi field.
Also use gdbarch_list_lookup_by_info() to look for a
candidate gdbarch.
2003-11-05 Kevin Buettner <>
* frv-tdep.c (frv_register_byte): Delete.
(frv_extract_return_value, frv_store_return_value)
(frv_extract_struct_value_address): Don't call frv_register_byte().
Convert to non-deprecated form.
(frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
Convert calls to set_gdbarch_deprecated_extract_return_value(),
set_gdbarch_deprecated_store_return_value(), and
set_gdbarch_deprecated_extract_struct_value_address() into
non-deprecated forms.
2003-11-05 Andrew Cagney <>
* mips-tdep.c (mips_dump_tdep): Do not print
* config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
* mips-tdep.c (mips_print_extra_frame_info): Delete function.
* config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
(mips_print_extra_frame_info): Delete declaration.
* stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
2003-11-05 Elena Zannoni <>
* coffread.c (coff_symtab_read): Remove passing of info parameter
to prim_record_minimal_symbol_and_info.
2003-11-05 Elena Zannoni <>
* coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
(decode_base_type): Delete ifdeffed out code.
2003-11-04 Andrew Cagney <>
* symtab.c (find_active_alias): Delete function.
(lookup_block_symbol): Delete alias code.
* stabsread.c (resolve_live_range): Delete function.
(add_live_range): Delete function.
(resolve_symbol_reference): Delete function.
(define_symbol): Delete live range and alias code.
(scan_file_globals): Delete alias code.
* symtab.h (SYMBOL_RANGES): Delete macro.
(struct range_list): Delete structure.
(struct symbol): Delete field "ranges".
(SYMBOL_ALIASES): Delete macro.
(struct alias_list): Delete structure.
(struct symbol): Delete field "aliases".
2003-11-04 Michael Snyder <>
* MAINTAINERS: Remove myself as owner of breakpoints and
of sparc/solaris.
2003-11-03 Corinna Vinschen <>
* sh-tdep.c (sh_sh4_nofpu_register_name): New function.
(sh_sh4al_dsp_register_name): Ditto.
(sh4_nofpu_show_regs): Ditto.
(sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
2003-11-03 Andrew Cagney <>
* bcache.c: Include "gdb_assert.h".
(struct bcache): Add fields "expand_count" and
(expand_hash_table): Update the expand counts.
(print_bcache_statistics): Use XCALLOC, not alloca. Print stats
on object sizes and hashes.
* (bcache.o): Update dependencies.
2003-11-03 Andrew Cagney <>
* exec.c (xfer_memory): Eliminate xfer_fn.
2003-10-31 Kevin Buettner <>
* frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
(opcodes/frv-desc.h): Include.
(iacc0h_regnum, iacc0l_regnum): Define.
(last_spr_regnum, frv_num_regs): Update.
(new_variant): Don't supply default names for holes in the SPRs.
Supply names for iacc0h_regnum and iacc0l_regnum.
(frv_register_type): Use symbolic constants first_fpr_regnum and
last_fpr_regnum instead of hardcoded constants 64 and 127. Use
builtin_type_int instead of builtin_type_int32.
(frv_register_sim_regno): New function.
(frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
* (gdb_sim_frv_h): Define.
(frv-tdep.o): Update dependencies.
2003-10-31 Andrew Cagney <>
* avr-tdep.c (avr_frame_this_id): Do not call
* m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
* m32r-tdep.c (m32r_frame_this_id): Ditto.
* d10v-tdep.c (d10v_frame_this_id): Ditto.
* arm-tdep.c (arm_prologue_this_id): Ditto.
* alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
2003-10-31 Jim Blandy <>
* elfread.c (elf_symtab_read): Allocate correct number of tail
elements to sectinfo structure. (Fix from Woody LaRue.)
2003-10-31 Andrew Cagney <>
* stack.c (return_command): Use get_frame_type, instead of
* inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
* config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
2003-10-31 Mark Kettenis <>
* x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
explicitly specify size of array.
(x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
2003-10-31 Andrew Cagney <>
* s390-tdep.c (s390_cannot_extract_struct_value_address): New
(s390_gdbarch_init): Set extract_struct_value_address.
* arch-utils.c (generic_cannot_extract_struct_value_address):
Delete function.
* arch-utils.h (generic_cannot_extract_struct_value_address):
Delete definition.
2003-10-31 Mark Kettenis <>
* i386-linux-nat.c (fetch_core_registers): Remove.
(linux_elf_core_fns): Remove.
(_initialize_i386_linux_nat): Remove.
2003-10-31 Andrew Cagney <>
* solib-svr4.c: Update copyright. Include "bfd-target.h" and
(exec_entry_point): New function.
(enable_break): Create a "tmp_bfd_target", use that and
entry_point_address when computing the relocation offset.
(svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
* (solib-svr4.o): Update dependencies.
2003-10-31 Andrew Cagney <>
* defs.h (XZALLOC): Define.
* target.h (struct target_ops): Add "to_data";
* bfd-target.h, bfd-target.c: New files.
* (SFILES): Add "bfd-target.c".
(COMMON_OBS): Add "bfd-target.o".
(bfd-target.o): Specify dependencies.
(bfd_target_h): Define.
* defs.h (XZALLOC): Define.
2003-10-31 Andrew Cagney <>
* rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
* (ppc-sysv-tdep.o): Add $(target_h).
* ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
* ppc-sysv-tdep.c: Include "target.h". Update copyright.
(ppc64_sysv_abi_adjust_breakpoint_address): New function.
2003-10-31 Andrew Cagney <>
* target.h (struct target_ops): Replace "to_read_partial" and
"to_write_partial" with "to_xfer_partial". Update comments.
* target.c (debug_to_write_partial): Delete function.
(debug_to_xfer_partial): Replace debug_to_read_partial.
(add_target, update_current_target, setup_target_debug): Set
"to_xfer_partial" instead of "to_read_partial" and
(default_xfer_partial): Replace "default_write_partial".
(default_read_partial): Delete.
(target_read_partial, target_write_partial): Call
* remote.c (init_remote_ops): Set "to_xfer_partial".
(init_remote_async_ops): Ditto.
(remote_xfer_partial): Replace "remote_read_partial".
2003-10-31 Mark Kettenis <>
* i386-tdep.c (i386_supply_fpregset): Support floating-point
registers in `fxsave' format.
(i386_regset_from_core_section): Deal with ".reg-xfp" sections.
2003-10-30 Mark Kettenis <>
* i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
(i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs and tdep->sizeof_gregset.
* i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
specify size of array.
(i386_linux_init_abi): Remove initialization of
TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
* config/i386/ (TDEPFILES): Add corelow.o.
* config/i386/ (NATDEPFILES): Remove corelow.o and
* fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
the ELF header.
2003-10-29 Mark Kettenis <>
* config/i386/ (TDEPFILES): Add corelow.o.
* config/i386/ (NATDEPFILES): Remove corelow.o and
* fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
* corelow.c: Include "arch-utils.h", "regset.h" and
(core_gdbarch): New variable.
(sniff_core_bfd): Don't sniff if we have support for register sets
(core_close): Reset CORE_GDBARCH.
(core_open): Initialize CORE_GDBARCH.
(get_core_register_section): Use register sets if they are
supported by CORE_GDBARCH.
(get_core_registers): Don't print error message if we have support
for register sets in CORE_GDBARCH.
2003-10-29 Andrew Cagney <>
* ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
2003-10-29 Mark Kettenis <>
* objfiles.h (clear_objfile_data): New prototype.
* objfiles.c (clear_objfile_data): New function.
* symfile.c (reread_symbols): Clear per-objfile data.
2003-10-28 Jeff Johnston <>
* symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
printf_unfiltered instead of printf_filtered for output messages.
(add_symbol_file_command): Ditto.
(reread_symbols): Ditto.
(overlay_auto_command): Ditto.
(overlay_manual_command): Ditto.
(overlay_off_command): Ditto.
2003-10-27 Mark Kettenis <>
* arch-utils.c (deprecated_select_gdbarch_hack): New function.
(gdbarch_from_bfd): New function.
(set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
* arch-utils.h (gdbarch_from_bfd): New prototype.
2003-10-27 Andrew Cagney <>
* osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
arch_info. Use warning instead of fprintf_filtered. Do not use
deprecated bfd_printable_arch_mach.
2003-10-26 Kevin Buettner <>
* frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
(frv_register_type): Rename from frv_register_virtual_type. Add
``struct gdbarch *'' parameter.
(frv_gdbarch_init): Delete calls to the following functions:
Add call to function set_gdbarch_register_type().
2003-10-26 Mark Kettenis <>
FDOFF_REGNUM): Remove defines.
* win32-nat.c (do_child_fetch_inferior_registers): Include
(do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
undefine I387_ST0_REGNUM.
* i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
* x86-64-tdep.c (x86_64_store_return_value): Use
Change register numbers to enumartion values.
* i386-tdep.h (enum i386_regnum): New.
I386_ST0_REGNUM): Remove defines.
* i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
I386_EDI_REGNUM): Remove defines.
2003-10-24 Andrew Cagney <>
* target.c: Include "gdbcore.h".
(get_target_memory, get_target_memory_unsigned): New functions.
* target.h (get_target_memory, get_target_memory_unsigned): Declare.
* ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
Use get_target_memory_unsigned.
* (target.o): Update dependencies.
2003-10-24 Andrew Cagney <>
* osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
* PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
* complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
* frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
* kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
* osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
(can_run_code_for): Use the OO term "singleton".
2003-10-23 Andrew Cagney <>
* (stack.o): Add $(regcache_h).
* stack.c: Include "regcache.h"
(return_command): Rewrite. Use get_frame_id and
get_selected_frame. Eliminate "deprecated_selected_frame". Warn
about unhandled return-values.
* value.h (set_return_value): Delete declaration.
* values.c (set_return_value): Delete function.
2003-10-23 Jeff Johnston <>
* ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
(pseudo_regs): Add comment regarding register stack registers.
(ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
(floatformat_valid): New static routine.
(floatformat_ia64_ext): Add name field and set up is_valid routine
to floatformat_valid().
(examine_prologue): For the previous cfm, use
if the cfm is not stored in a register-stack register. Save the
previous cfm value in the prev_cfm field. Add debug output.
(ia64_frame_this_id): Use frame_id_build_special() to also register
the bsp. Add debug output.
(ia64_sigtramp_frame_this_id): Ditto.
(ia64_frame_prev_register): Look at cache saved_regs for a few more
registers and also add some checks for framelessness before accepting
current register values for fields such as return address. For cfm,
use the cached prev_cfm field if available. Add comment to explain
PSR logic. Add debug output.
(ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
as part of initialization.
(ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
calculated. Cache the bsp and cfm values.
(ia64_sigtramp_frame_prev_register): Add logic to this routine out
instead of using ia64_frame_prev_register() which doesn't expect most
registers to be saved. The saved values for bsp and sp
can be taken from the cache. Add debug output.
(ia64_push_dummy_call): Use frame_id_build_special() to also register
the bsp.
2003-10-23 Jim Blandy <>
* osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
architecture the current arch can run code for --- but not if it's
a superset.
(can_run_code_for): New function.
2003-10-22 James E Wilson <>
* MAINTAINERS: Move myself from paper trail section back to write
after approval section.
2003-10-22 Andrew Cagney <>
* exec.h: New file.
* win32-nat.c: Include "exec.h".
* solib.c: Include "exec.h".
* target.h (build_section_table): Delete declaration.
* somsolib.c: Include "exec.h".
(exec_ops): Delete extern declaration.
* rs6000-nat.c: Update copyright. Include "exec.h".
(exec_ops): Delete extern declaration.
* pa64solib.c: Update copyright. Include "exec.h".
(exec_ops): Delete extern declaration.
* exec.c: Update copyright. Include "exec.h".
* corelow.c: Update dependencies. Include "exec.h".
* (exec_h): Define.
(exec.o, somsolib.o): Update dependencies.
(pa64solib.o, corelow.o): Update dependencies.
2003-10-22 Andrew Cagney <>
* target.c: Include "gdb_assert.h" (target_read): Call
"target_read_partial", not "target_write_partial".
(default_read_partial, default_write_partial): New function.
(target_read_partial, target_write_partial): Simplify, assume that
there is always a read/write method.
(update_current_target, add_target): Always set "to_read_partial"
and "to_write_partial".
(target_write, target_read): Fail on a zero byte transfer.
* (target.o): Update dependencies.
* target.h: Update copyright date.
(target_object): Fix typo.
2003-10-22 Andrew Cagney <>
* (convert_from_func_ptr_addr): Convert to a pure
multi-arch method, add "targ" parameter.
(struct target_ops): Declare.
* gdbarch.h, gdbarch.c: Re-generate.
* (c-valprint.o): Update dependencies.
* arch-utils.h: Update copyright.
(convert_from_func_ptr_addr_identity): Declare.
* arch-utils.c (convert_from_func_ptr_addr_identity): New function.
* ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
* rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
* ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
* infcall.c (find_function_addr, call_function_by_hand): Update.
* c-valprint.c: Include "target.h".
(print_function_pointer_address): Update.
2003-10-22 Andrew Cagney <>
* target.c (target_close): New function.
(debug_to_close): Use "target_close".
(push_target): Use "target_close".
(unpush_target): Use "target_close".
(pop_target): Use "target_close".
* target.h (struct target_ops): Add "to_xclose".
(target_open): Delete macro. Move comment to "to_open".
(target_close): Replace macro with function that takes a target.
* top.c (quit_target): Pass "current_target" to "target_close".
2003-10-21 Elena Zannoni <>
* minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
* symtab.h (lookup_minimal_symbol_text): Update.
* breakpoint.c (create_overlay_event_breakpoint,
create_longjmp_breakpoint): Update callers.
* ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
* symtab.c (find_pc_sect_line): Ditto.
2003-10-21 Andrew Cagney <>
* target.c (errno): Delete extern declaration.
2003-10-20 Jeff Johnston <>
* ia64-tdep.c: Change all occurrences of
DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
(ia64_frame_prev_register): Minor whitespace change.
2003-10-20 Michael Chastain <>
* config/djgpp/fnchange.lst: Add lines for:
2003-10-20 Andrew Cagney <>
* values.c (register_value_being_returned): Update comments. Use
"gdbarch_return_value" when available.
(using_struct_return): Ditto.
(set_return_value): Ditto. Use "gdbarch_return_value" when
available.. Print a warning, and not an error, when an unhandled
return type is encountered.
* infcmd.c: Include "gdb_assert.h".
(print_return_value): When gdbarch_return_value_p, and using
struct return, assume that the value is not available.
* defs.h (return_value_convention): Define.
* (gdbarch_return_value): New predicate method.
* gdbarch.h, gdbarch.c: Re-generate
* ppc-sysv-tdep.c (return_value_convention): Delete definition.
2003-10-20 Andrew Cagney <>
* symtab.c: Replace "struct sec" with "struct bfd_section".
* objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
2003-10-19 Michael Chastain <>
* config/djgpp/fnchange.lst: Add lines for:
gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
2003-10-19 Mark Kettenis <>
* amd64fbsd-nat.c (fetch_inferior_registers,
store_inferior_registers): Remove functions.
* config/i386/ (NATDEPFILES): Add amd64bsd-nat.o.
2003-10-18 Mark Kettenis <>
Add NetBSD/amd64 native configuration:
* x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
* amd64nbsd-tdep.c: New file.
* amd64nbsd-nat.c: New file.
* amd64bsd-nat.c: New file.
* config/i386/ New file.
* config/i386/ New file.
* Add x86_64-*-netbsd*.
* configure.tgt: Add x86_64-*-netbsd*.
* (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
New targets.
* NEWS (New native configurations): Mention NetBSD/amd64.
2003-10-17 Michael Chastain <>
* config/djgpp/fnchange.lst: Remove dead lines for:
bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
gdb/config/m68k/, gdb/config/m68k/nm-apollo68v.h,
gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
gdb/sparclet-rom.c, gdb/sparclet-stub.c,
tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
tix/, tix/unix/tk4.2/,
tix/unix/tk8.0/, tix/unix/tk8.0/,
tix/unix/tk8.1/, tix/win/tkConsole41.c,
tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/,
2003-10-17 Andrew Cagney <>
* target.c (target_section_by_addr): New function.
(do_xfer_memory): Use "target_section_by_addr".
* target.h (target_section_by_addr): Declare.
* target.h (struct target_ops): Add "to_read_partial" and
"to_write_partial", delete "to_query".
(target_read_partial, target_write_partial): Declare.
(target_read, target_write): Declare.
(target_query): Delete macro.
* target.c (target_read_partial): New function.
(target_write_partial, target_read, target_write): New function.
(update_current_target): Delete inheritance of "to_query". Add
comments about "to_read_partial" and "to_write_partial".
(debug_to_partial_read, debug_to_partial_write): New functions.
(debug_to_query): Delete function.
(setup_target_debug): Set "to_read_partial" and "to_write_partial"
instead of "to_query".
* remote.c (remote_read_partial): Replace "remote_query".
(init_remote_ops): Set "to_read_partial" instead of "to_query".
(init_remote_async_ops): Ditto.
* kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
"target_read_partial" instead of "target_query".
* avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
Use "target_read_partial" instead of "target_query".
2003-10-17 Jeff Johnston <>
* frame.h (struct frame_id): Add new field: special_addr.
(frame_id_build_special): New prototype.
* frame.c (frame_id_build_special): New function.
(frame_id_build): Change to call frame_id_build_special().
(frame_id_eq): Change to also test special_addr field.
(frame_id_inner): Update comment.
2003-10-17 Andrew Cagney <>
* target.c (update_current_target): Perform the target cleanup.
Put the target stack beneath the squashed "current_target".
(add_target): Delete disabled call to "cleanup_target".
(cleanup_target): Delete function.
(push_target, unpush_target): Do not call "cleanup_target".
2003-10-17 Andrew Cagney <>
* target.c (target_stack): Change to a static target_ops.
(update_current_target): Walk the "struct target_ops" stack.
(pop_target, do_xfer_memory, target_info): Ditto.
(find_target_beneath): Ditto.
(push_target): Rewrite to use the "struct target_ops" stack.
(unpush_target): Ditto.
* target.h (struct target_stack_item): Delete definition.
(target_stack): Delete declaration.
(struct target_ops): Add field "beneath".
2003-10-17 Shrinivas Atre <>
* gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
* gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
(h8300_examine_prologue): Use h8300_normal_mode flag
(h8300_gdbarch_init): Set architecture info for normal mode
2003-10-16 Daniel Jacobowitz <>
* remote.c (remote_protocol_vcont): New variable.
(set_remote_protocol_vcont_packet_cmd): New function.
(show_remote_protocol_vcont_packet_cmd): New function.
(init_all_packet_configs): Handle remote_protocol_vcont.
(remote_vcont_probe): New function.
(remote_vcont_resume): New function.
(remote_resume): Use it.
(remote_async_resume): Call remote_resume.
(_initialize_remote): Add verbose-resume packet commands.
2003-10-16 Andrew Cagney <>
* infrun.c (handle_inferior_event): Add comment about
"frame_id_inner" being too weak.
2003-10-16 Elena Zannoni <>
* minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
second parameter, which is always null. Remove
* symtab.h (lookup_minimal_symbol_solib_trampoline): Update
* somsolib.c (som_solib_create_inferior_hook,
som_solib_desire_dynamic_linker_symbols): Update callers.
* hppa-tdep.c (hppa_fix_call_dummy): Ditto.
2003-10-16 Kei Sakamoto <>
* remote-m32r-sdi.c : New file, interface to m32r on-chip
debug interface, SDI (Scalable Debug Interface).
* NEWS: Mention m32r SDI protocol was supported.
* (remote-m32r-sdi.o): Add build rule.
* config/m32r/ (TDEPFILES) : Add remote-m32r-sdi.o.
2003-10-15 Jeff Johnston <>
* ia64-linux-tdep.c: Include gdbcore.h.
(IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
(ia64_linux_sigcontext_register_addr): Find the address of the
sigcontext area stored in the sigframe instead of using
a magic offset constant.
2003-10-15 Andrew Cagney <>
* remote.c (remote_search): Delete function.
* target.h (target_search): Delete disabled macro.
(struct target_ops): Delete disabled field "to_search".
2003-10-14 Kevin Buettner <>
* frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
instead of deprecated_inside_entry_file().
2003-10-14 Corinna Vinschen <>
* sh-tdep.c: Fix copy/paste hangover in comment.
(sh_push_dummy_call_fpu): Accomodate double passing in little endian
(sh3e_sh4_extract_return_value): Ditto.
2003-10-13 Richard Henderson <>
* f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
* f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
match c_val_print a bit closer.
2003-10-13 Kevin Buettner <>
* frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
(frv_gdbarch_adjust_breakpoint_address): New function.
(frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2003-10-13 Kevin Buettner <>
* breakpoint.h (struct breakpoint): Add new member
* breakpoint.c (breakpoint_adjustment_warning)
(adjust_breakpoint_address): New static functions.
(print_it_typical): Issue warning if breakpoint's address is different
from its requested address.
(set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
(breakpoint_re_set_one): Set breakpoint's
``requested_address'' field. Set ``address'' field to the
result of calling adjust_breakpoint_address() on the requested
2003-10-13 Kevin Buettner <>
* gdbarch.h, gdbarch.c: Regenerate.
2003-10-11 Mark Kettenis <>
* i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
* i386fbsd-tdep.c: New file.
(i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
(_initialize_i386fbsd_tdep): New function.
(i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
(i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs, TDEP->sizeof_gregset and
TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
(i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
to initialize TDEP->sc_num_regs.
* i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
(_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
FreeBSD ELF OS/ABI's here.
* (ALLDEPFILES): Add i386fbsd-tdep.c.
(i386fbsd-tdep.o): New target.
* config/i386/ (TDEPFILES): Add i386fbsd-tdep.o.
* config/i386/ (TDEPFILES): Add i386fbsd-tdep.o.
* amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
(amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
in initialization of TDEP->sc_num_regs.
* x86-64-tdep.c (x86_64_regset_from_core_section): New function.
(x86_64_init_abi): Initialize regset_from_core_section if
* i386-tdep.c (i386_regset_from_core_section): New function.
(i386_gdbarch_init): Initialize regset_from_core_section if
* i386-tdep.h (i386_regset_from_core_section): New declaration.
* i386-tdep.h (struct regset): Declare opaque.
* (regset_from_core_section): New method.
(struct regset): Declare opaque.
* gdbarch.c, gdbarch.h: Regenerated.
2003-10-11 Alan Modra <>
* hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
_cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
Correct test for pc within section.
2003-10-11 Mark Kettenis <>
* Remove trailing whitepsace from comments.
2003-10-08 Roland McGrath <>
* gcore.c (make_mem_sec): Function removed, folded into ...
(gcore_create_callback): ... here. To omit a section, clear its
SEC_LOAD bit rather than zeroing its size.
Omit read-only sections only if they correspond to a known disk file.
(gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2003-10-10 Michael Snyder <>
* d10v-tdep.c: Fix typo in comment.
2003-10-10 Andrew Cagney <>
* rs6000-tdep.c (e500_store_return_value): Delete function.
(e500_extract_return_value): Delete function.
(rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
"restore_return_value" to "ppc_sysv_abi_extract_return_value" and
"ppc_sysv_abi_restore_return_value" where applicable.
* ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
(ppc_sysv_abi_extract_return_value): Declare.
(ppc_sysv_abi_broken_store_return_value): Declare.
(ppc_sysv_abi_broken_extract_return_value): Declare.
(ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
* ppc-sysv-tdep.c (return_value_convention): Move definition to
start of file.
(do_ppc_sysv_return_value): New function.
(ppc_sysv_abi_extract_return_value): New function.
(ppc_sysv_abi_store_return_value): New function.
(ppc_sysv_abi_broken_extract_return_value): New function.
(ppc_sysv_abi_broken_store_return_value): New function.
(ppc_sysv_abi_use_struct_convention): Call
2003-10-10 J. Brobecker <>
* blockframe.c (inside_main_func): No longer use symbol_lookup()
to lookup the main function symbol.
2003-10-10 Corinna Vinschen <>
* sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
types correctly.
(sh_push_dummy_call_fpu): Fix argument passing rules.
(sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
float types.
(sh3e_sh4_store_return_value): Ditto.
2003-10-10 Elena Zannoni <>
* sh-tdep.c (sh_use_struct_convention): Clarify one case in
2003-10-10 Corinna Vinschen <>
* sh-tdep.c (sh_use_struct_convention): Clean up to have a
more readable code. Accomodate passing of bitfields.
2003-10-10 Andrew Cagney <>
* (ppc-sysv-tdep.o): Add $(gdb_assert_h).
* rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
push_dummy_call to ppc64_sysv_abi_push_dummy_call.
* ppc-sysv-tdep.c: Include "gdb_assert.h".
(ppc64_sysv_abi_push_dummy_call): New function.
(ppc64_sysv_abi_broken_push_dummy_call): New function.
* ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
(ppc64_sysv_abi_broken_push_dummy_call): Declare.
2003-10-10 Kei Sakamoto <>
* NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
* README: Ditto.
* d10v-tdep.c: Ditto.
* h8300-tdep.c: Ditto.
* remote-e7000.c: Ditto.
* remote-hms.c: Ditto.
* ser-e7kpc.c: Ditto.
* sh-stub.c: Ditto.
* sh-tdep.c: Ditto.
* sh-tdep.h: Ditto.
* sh3-rom.c: Ditto.
* sh64-tdep.c: Ditto.
* top.c: Ditto.
* wince.c: Ditto.
* config/d10v/ Ditto.
* config/sh/ Ditto.
* config/sh/ Ditto.
* config/sh/tm-linux.h: Ditto.
* config/sh/tm-sh.h: Ditto.
* config/sh/ Ditto.
2003-10-09 Andrew Cagney <>
* ppc-tdep.h (struct type): Declare opaque.
* x86-64-tdep.h (struct regcache): Declare opaque.
* sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
coding style.
2003-10-09 Andrew Cagney <>
Changes from 2003-09-09 Jimi Xenidis <>:
* config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
* config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
* config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
* rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
software_single_step to rs6000_software_single_step.
2003-10-09 Andrew Cagney <>
* MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2003-10-09 Michael Snyder <>
* frame.h: Fix typo in comment.
* dummy-frame.c: Fix typo in comment.
* d10v-tdep.c: Random whitespace/comment tweaks.
2003-10-09 Elena Zannoni <>
* sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
(sh_push_dummy_code): Delete function, it's only used for dummy calls
on stack.
Based on input by Stephen Clarke (
* sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
in detail.
2003-10-09 Daniel Jacobowitz <>
* remote-mips.c (mips_initialize): Remove unneeded call to
get_selected_frame. Suggested by Atsushi Nemoto <>.
2003-10-09 Daniel Jacobowitz <>
* dwarf2expr.c (execute_stack_op): Don't treat the frame base as
a memory pointer.
2003-10-08 Jeff Johnston <>
* lin-lwp.c (stop_and_resume_callback): Set the resumed flag
for any lwp we resume.
(running_callback): Add lwps that have pending status events
against them to be considered running.
2003-10-08 Kei Sakamoto <>
* m32r-tdep.c : Include "dis-asm.h".
* (m32r-tdep.o): Update dependencies.
2003-10-06 J. Brobecker <>
* completer.h (get_gdb_completer_word_break_characters): Delete.
* completer.c: include language.h.
(gdb_completer_word_break_characters): Delete.
(get_gdb_completer_word_break_characters): Delete.
(location_completer): Use the word break characters of the current
(complete_line): Likewise.
(line_completion_function): Likewise.
(skip_quoted_chars): Likewise.
* (completer.o): Add dependency on language.h.
* top.c (init_main): Set the readline word break characters
to GDB's default word break characters.
2003-10-06 J. Brobecker <>
* language.h (language_defn): new field, la_word_break_characters.
* language.c (unknown_language_defn): Set new field to
(auto_language_defn): Likewise.
(local_language_defn): Likewise.
* ada-lang.c (ada_language_defn): Likewise.
* c-lang.c (c_language_defn): Likewise.
(cplus_language_defn): Likewise.
(asm_language_defn): Likewise.
(minimal_language_defn): Likewise.
* f-lang.c (f_language_defn): Likewise.
* jv-lang.c (java_language_defn): Likewise.
* m2-lang.c (m2_language_defn): Likewise.
* objc-lang.c (objc_language_defn): Likewise.
* p-lang.c (pascal_language_defn): Likewise.
* scm-lang.c (scm_language_defn): Likewise.
2003-10-06 Andrew Cagney <>
* ppc-sysv-tdep.c: Re-indent.
2003-10-06 J. Brobecker <>
* language.h (default_word_break_characters): Add prototype.
* language.c (default_word_break_characters): New function.
2003-10-06 Andreas Schwab <>
* i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
with %eax.
2003-10-06 Andrew Cagney <>
* (ALLDEPFILES): Remove "z8k-tdep.c" and
(z8k-tdep.o): Delete custom build rule.
2003-10-06 Andrew Cagney <>
* Update all dependencies.
* MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
No longer list PA as as obsolete candidate. List m32r as
broken instead of obsolete.
* config/nm-m3.h, config/h8500/ Delete obsolete files.
* config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
* config/i386/nm-symmetry.h, config/i386/ Ditto.
* config/i386/, config/i386/ Ditto.
* config/i386/, config/i386/ Ditto.
* config/i386/, config/i386/tm-ptx.h: Ditto.
* config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
* config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
* config/i386/xm-symmetry.h, config/mips/ Ditto.
* config/mips/, config/mips/tm-mipsm3.h: Ditto.
* config/mips/xm-mipsm3.h, config/mn10200/ Ditto.
* config/mn10200/tm-mn10200.h, config/pa/ Ditto.
* config/pa/, config/pa/ Ditto.
* config/pa/, config/pa/ Ditto.
* config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
* config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
* config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
* config/pa/xm-pa.h, config/sparc/ Ditto.
* config/sparc/, config/sparc/tm-sparclet.h: Ditto.
* config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
* config/z8k/ Ditto.
* NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
sparclite were removed.
*, configure.tgt: Remove corresponding tuples.
* breakpoint.c, breakpoint.h: Remove obsolete code.
* buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
* monitor.c, sparc-tdep.c, stabsread.c: Ditto.
* stabsread.h, xcoffread.c: Ditto.
* z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
* sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
* sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
* m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2003-10-06 David Lecomber <>
* f-valprint.c: Reformatting
2003-10-06 Mark Kettenis <>
* x86-64-tdep.c: Remove duplicate comment.
* x86-64-tdep.c (x86_64_store_return_value): Don't use
DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
names for return values. This fixes a bug since we looked at %rbx
instead of %rdx.
2003-10-05 Mark Kettenis <>
* x86-64-tdep.c: Include "regset.h".
* i386-tdep.h (struct gdbarch_tdep): Add members gregset,
gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
* i386-tdep.c: Include "regset.h".
(i386_supply_gregset): New function.
(i386_supply_fpregset): New function.
(i386_gdbarch_init): Initialze register set-related members of
* x86-64-tdep.c (x86_64_supply_fpregset): New function.
(x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2003-10-03 Andrew Cagney <>
* rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
set extract_return_value, store_return_value and
use_struct_convention to ppc64_sysv_abi_extract_return_value,
ppc64_sysv_abi_store_return_value and
* ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
(ppc64_sysv_abi_store_return_value): Declare.
(ppc64_sysv_abi_use_struct_convention): Declare.
* ppc-sysv-tdep.c (enum return_value_convention): Define.
(ppc64_sysv_abi_extract_return_value): New function.
(ppc64_sysv_abi_store_return_value): New function.
(ppc64_sysv_abi_use_struct_convention): New function.
(ppc64_sysv_abi_return_value): New function.
2003-10-03 Andrew Cagney <>
* ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
convert a descriptor to a function when it's in the ".opd"
2003-10-03 Corinna Vinschen <>
* sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
reg_size to keep GCC silent.
2003-10-03 Corinna Vinschen <>
* dwarf2-frame.c (struct comp_unit): Add tbase member to store
base for DW_EH_PE_textrel encodings.
(read_encoded_value): Add a DW_EH_PE_textrel case.
(dwarf2_build_frame_info): Set unit.tbase to beginning of text
2003-10-03 Mark Kettenis <>
* dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2003-10-02 Andrew Cagney <>
* gdbarch.h, gdbarch.c: Re-generate.
* aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
* cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
* hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
* hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
* ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
* infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
* mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
* monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
* remote-e7000.c, remote-mips.c, remote-sim.c: Update.
* remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
* rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
* sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
* target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
* vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
* config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
* config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2003-10-02 Jim Blandy <>
* dwarf2read.c (struct die_info): Doc fix.
2003-10-02 Corinna Vinschen <>
* sh-tdep.c: Running thru
2003-10-02 Corinna Vinschen <>
* sh-tdep.c (sh_justify_value_in_reg): New function.
(sh_stack_allocsize): Ditto.
(flt_argreg_array): New array used for floating point argument
(sh_init_flt_argreg): New function.
(sh_next_flt_argreg): Ditto.
(sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
"pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
Fix argument passing strategy.
(sh_push_dummy_call_nofpu): Ditto.
2003-10-01 Andrew Cagney <>
* value.h (register_value_being_returned): Declare. Replace
* infcall.c (call_function_by_hand): Use
* infcmd.c (print_return_value): Call
"register_value_being_returned", handle struct return locally.
* values.c (register_value_being_returned): New function. Replace
2003-09-30 Elena Zannoni <>
* linux-proc.c (linux_do_registers): New function.
(linux_make_note_section): Use linux_do_registers in case of
single threaded inferior programs.
2003-10-01 Andrew Cagney <>
* infcall.c (call_function_by_hand): When STRUCT_RETURN, always
use STRUCT_ADDR. When not using "struct return convention", pass
"0" to "value_being_returned". Add FIXMEs.
* infcmd.c (print_return_value): Pass an explicit 0/1 to
value_being_returned. Add comments.
* values.c (value_being_returned): Add fixme.
* hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
(hppa_value_returned_from_stack): Add FIXME.
2003-09-30 David Carlton <>
* dwarf2read.c (struct die_info): Add 'parent' field; replace
'has_children' and 'next' by 'child' and 'sibling'.
(read_comp_unit): Rework algorithm, breaking body into
read_die_and_children and read_die_and_siblings.
(read_die_and_children, read_die_and_siblings): New.
(read_full_die): Add 'has_children' argument; set it instead of
the die's 'has_children' field. Minor formatting cleanup.
(free_die_list): Use die->child and die->sibling instead of
(dump_die_list): Ditto.
(sibling_die): Use die->sibling.
(psymtab_to_symtab_1): Use die's 'child' field in place of its
'has_children' and 'next' fields.
(process_die, read_file_scope, read_func_scope)
(read_lexical_block_scope, read_structure_scope)
(read_enumeration, read_array_type, read_common_block)
(read_namespace, read_subroutine_type, dump_die): Ditto.
2003-09-30 Andrew Cagney <>
* rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
to 224, not 220.
2003-09-30 Andrew Cagney <>
* gdbarch.h, gdbarch.c: Regenerate.
* vax-tdep.h, sparc-tdep.c, regcache.h: Update.
* regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
* infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2003-09-29 Andrew Cagney <>
* gdbarch.h, gdbarch.c: Regenerate.
* arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
* sh64-tdep.c, sparc-tdep.c: Update.
* remote-vxsparc.c (vx_read_register): Replace bzero with memset.
* remote-vxmips.c (vx_read_register): Ditto.
* remote-vx68.c (vx_read_register): Ditto.
* gnu-nat.c (inf_validate_procs): Ditto.
2003-09-29 J. Brobecker <>
* infcall.c (call_function_by_hand): Fix build failure
introduced in the previous change to this file.
2003-09-29 Andrew Cagney <>
* NEWS: Mention Objective-C.
2003-09-29 Jerome Guitton <>
* arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
test if the register has been saved on the stack.
(arm_scan_prologue_cache): When analysing the instruction
"str lr, [sp, #-4]", save the address where lr has been stored.
2003-09-28 Andrew Cagney <>
* frame.c (frame_read_unsigned_register): Delete function.
* frame.h (frame_read_unsigned_register): Delete declaration.
* sparc-tdep.c (sparc_init_extra_frame_info): Use
(sparc_frame_saved_pc, sparc_pop_frame): Ditto.
* m68hc11-tdep.c (m68hc11_print_register): Ditto.
* d10v-tdep.c (d10v_print_registers_info): Ditto.
* frame.h (frame_read_register): Delete declaration.
* frame.c (frame_read_register): Delete function.
* arch-utils.c (legacy_register_to_value): Use get_frame_register.
* sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
* rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
* mips-tdep.c (mips_register_to_value): Ditto.
* hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
* d10v-tdep.c (d10v_print_registers_info): Ditto.
* frame.c (frame_read_signed_register): Delete function.
(frame_read_unsigned_register): Update comments.
* frame.h (frame_read_signed_register): Delete declaration.
* h8300-tdep.c (h8300_print_register): Use
* m68hc11-tdep.c (m68hc11_print_register): Ditto.
* infcmd.c (print_return_value): Update.
* infcall.c (call_function_by_hand): Update.
2003-09-28 Mark Kettenis <>
* i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
regcache argument and reverse the order of the other two
arguments. Remove local regcache variable. Determine
architecture from REGCACHE. Update comments.
* x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
reverse the order of the other two arguments. Remove local
regcache variable. Determine architecture from REGCACHE. Update
* i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
prototypes. Update comments.
* x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
* amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
* go32-nat.c (fetch_register, go32_fetch_registers): Update.
* i386-interix-nat.c (supply_fpregset): Update.
* i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
* i386-nto-tdep.c (i386nto_supply_fpregset): Update.
* i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
* i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
* i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
* i386obsd-tdep.c (fetch_core_registers): Update.
* i386v4-nat.c (supply_fpregset): Update.
* x86-64-linux-nat.c (supply_fpregset): Update.
* x86-64-linux-tdep.c (fetch_core_registers): Update.
2003-09-27 Mark Kettenis <>
* i386-tdep.h: Put opaque declarations in alphabetical
order. Remove spurious whitespace.
(struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
(i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
* i386-tdep.c (MM0_REGNUM): Remove define.
(i386_mmx_regnum_p): Add gdbarch argument.
(i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
Rewrite using new macro definitions for FPU/SSE registers.
(i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
definitions from i387-tdep.h.
(i386_register_name): Update.
(i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
new macro definitions for FPU/SSE registers.
(i386_extract_return_value): Determine whether floating-point
registers are present by examining REGCACHE's architecture.
(i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
instead of FPU_REG_RAW_SIZE. Use new macro definitions for
FPU/SSE registers.
(i386_register_type): Update.
(i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
definitions for FPU registers. Use REGCACHE's architecture to
determine the appropriate register numbers.
(i386_pseudo_register_read, i386_pseudo_register_write,
i386_register_reggroup_p): Update.
(i386_gdbarch_init): Initialize TDEP->st0_regnum and
* i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
(i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
i387_fill_fxsave): Change type of fsave/fxsave argument from `char
*' to `void *'.
* i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
definitions for FPU/SSE registers.
(FXSAVE_MXCSR_ADDR): New define.
* x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
(I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
(I387_ST0_REGNUM): Define.
* regcache.h (get_regcache_arch): New prototype.
* regcache.c (get_regcache_arch): New function.
* x86-64-tdep.c (x86_64_store_return_value): Remove spurious
* i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
Initialize using ARRAY_SIZE.
2003-09-27 Andrew Cagney <>
* arch-utils.c (deprecated_init_frame_pc_default): Rename
* arch-utils.h (deprecated_init_frame_pc_default): Update.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
* vax-tdep.c (vax_gdbarch_init): Update.
* v850-tdep.c (v850_gdbarch_init): Update.
* sh64-tdep.c (sh64_gdbarch_init): Update.
* s390-tdep.c (s390_gdbarch_init): Update.
* ns32k-tdep.c (ns32k_gdbarch_init): Update.
* mcore-tdep.c (mcore_gdbarch_init): Update.
* h8300-tdep.c (h8300_gdbarch_init): Update.
* cris-tdep.c (cris_gdbarch_init): Update.
* config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2003-09-26 Mark Kettenis <>
* regset.h: New file.
* (regset_h): Add.
2003-09-25 Andrew Cagney <>
* frame.h (deprecated_frame_saved_regs): Rename
* cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
* mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
* ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
* s390-tdep.c, sh64-tdep.c, stack.c: Update.
* v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2003-09-25 Andrew Cagney <>
* NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
and Java.
* PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
arm*-*-* do not use the new frame code.
2003-09-25 David Carlton <>
* c-exp.y: Remove 'register' declarations.
* f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2003-09-25 David Carlton <>
* c-exp.y: Include cp-support.h. Add qualified_type.
(yylex): Delete nested type hack; add comments.
* cp-namespace.c (cp_lookup_nested_type): New function.
* cp-support.h: Declare cp_lookup_nested_type.
* eval.c (evaluate_subexp_standard): Call value_aggregate_elt
instead of value_struct_elt_for_reference.
* valops.c: Include cp-support.h.
(value_aggregate_elt): New function.
(value_namespace_elt): Ditto.
(value_struct_elt_for_reference): Make static.
* value.h: Delete declaration of value_struct_elt_for_reference;
add declaration for value_aggregate_elt.
* ( Depend on $(cp_support_h).
(valops.o): Ditto.
2003-09-25 Daniel Jacobowitz <>
* stack.c: Include "reggroups.h".
(frame_info): Only display registers in all_reggroup.
* (stack.o): Update dependencies.
2003-09-25 Jerome Guitton <>
* arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
"add ip, sp #n" in the prologue.
(arm_scan_prologue): Ditto.
2003-09-25 Jerome Guitton <>
* MAINTAINERS (write after approval): Add myself.
2003-09-25 Andreas Schwab <>
* m68k-tdep.c: Include "dwarf2-frame.h".
(m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
* (m68k-tdep.o): Update dependencies.
2003-09-25 Corinna Vinschen <>
* sh-tdep.c (struct frame_extra_info): Remove.
(struct sh_frame_cache): New structure.
(GET_SOURCE_REG): New macro extracting source register of an opcode.
(GET_TARGET_REG): Ditto but target register.
(IS_MOV_ARG_TO_REG): New macro.
(IS_MOV_ARG_TO_IND_R14): New macro.
(IS_MOVW_PCREL_TO_REG): New macro.
(IS_MOVL_PCREL_TO_REG): New macro.
(IS_SUB_REG_FROM_SP): New macro.
(IS_ARG_MOV): Remove.
(IS_MOV_TO_R14): Remove.
(IS_RESTORE_FP): New macro.
(IS_RTS): New macro.
(IS_LDS): New macro.
(IS_MOV_FP_SP): New macro.
(IS_ADD_REG_TO_FP): New macro.
(IS_ADD_IMM_FP): New macro.
(sh_skip_prologue_hard_way): Remove.
(sh_saved_pc_after_call): Remove.
(sh_frame_chain): Remove.
(sh_find_callers_reg): Remove.
(sh_nofp_frame_init_saved_regs): Remove.
(sh_fp_frame_init_saved_regs): Remove.
(sh_init_extra_frame_info): Remove.
(sh_analyze_prologue): New function.
(sh_skip_prologue): Remove deprecated code. Rely on new function
sh_analyze_prologue when after_prologue fails.
(sh_frame_saved_pc): Remove.
(sh_alloc_frame_cache): New function.
(sh_frame_cache): Ditto.
(sh_frame_prev_register): Ditto.
(sh_frame_this_id): Ditto.
(sh_frame_unwind): New structure defining the heuristic frame
sniffer interface.
(sh_frame_sniffer): New function.
(sh_unwind_sp): Ditto.
(sh_unwind_pc): Ditto.
(sh_unwind_dummy_id): Ditto.
(sh_frame_base_address): Ditto.
(sh_frame_base): New structure defining new frame base code.
(sh_in_function_epilogue_p): New function.
(sh_gdbarch_init): Restructure and simplify to eliminate deprecated
code and to call all new code instead. Initialize dwarf2 and
heuristic frame sniffer.
2003-09-24 Paul N. Hilfinger <>
* parser-defs.h (struct exp_descriptor): New definition, containing
language-specific info for printing, prefixifying, dumping, and
evaluating expressions.
(exp_descriptor_standard): Declare new variable.
(print_subexp): Make global and declare here (from expprint.c).
(dump_subexp): Ditto.
(dump_subexp_body_standard): Declare.
(operator_length_standard): Declare.
(op_name_standard): Declare.
(print_subexp): Declare.
(print_subexp_standard): Declare.
* language.h (struct language_defn): Add la_exp_desc field to hold
pointer to table for language-specific operators.
Remove evaluate_exp field, which is now in struct exp_descriptor.
* parse.c (operator_length): Move most code to new
operator_length_standard function. Use language-specific information.
(operator_length_standard): New function taking most code from
(exp_descriptor_standard): New constant.
* expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
* expprint.c (print_subexp): Use language-specific print_subexp.
Make global; remove static declaration.
Move most code to print_subexp_standard.
(print_subexp_standard): New function, containing code formerly in
(op_name): Add expression to argument signature.
Use langauge-specific op_name.
Move most code to op_name_standard.
(op_name_standard): New function, containing code formerly in op_name.
(dump_subexp): Use new version of op_name function.
Use language-specific dump_subexp_body, and move most existing code to
(dump_raw_expression): Use new op_name interface.
(dump_subexp_body): Move most code to dump_subexp_body_standard.
(dump_subexp_body_standard): New function, containing code formerly
in dump_subexp_body.
* language.c (unknown_language): Add default la_exp_desc field and
remove evaluate_exp field.
(auto_language): Ditto.
(local_language): Ditto.
* f-lang.c (f_language_defn): Ditto.
* c-lang.c (c_language_defn): Ditto.
(cplus_language_defn): Ditto.
(asm_language_defn): Ditto.
(minimal_language_defn): Ditto.
* p-lang.c (pascal_language_defn): Ditto.
* m2-lang.c (m2_language_defn): Ditto.
* objc-lang.c (objc_language_defn): Ditto.
* jv-lang.c (exp_descriptor_java): New variable, containing
Java-specific expression evaluator.
(java_language_defn): Add la_exp_desc field and remove evaluate_exp
* scm-lang.c (exp_descriptor_scm): New variable, containing
Scheme-specific expression evaluator.
(scm_language_defn): Add la_exp_desc field and remove evaluate_exp
* objc-lang.c (print_object_command): Take evaluate_exp from the
la_exp_desc field.
* (eval.o): Add dependency on parser-defs.h.
* eval.c: Include parser-defs.h for the full declaration of
la_exp_desc's type.
(evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2003-09-23 Paul N. Hilfinger <>
* parser-defs.h (operator_length): Declare.
* parse.c (length_of_subexp): Use operator_length to get operator
lengths and arities for operators.
Move most code to new operator_length function.
(operator_length): New function absorbing most code from
(prefixify_subexp): Remove large case and use operator_length instead.
(parse_exp_1): Use renamings:
dump_prefix_expression => dump_raw_expression and
dump_postfix_expression => dump_prefix_expression.
* expression.h (dump_prefix_expression): Rename to ...
(dump_raw_expression): New name.
(dump_postfix_expression): Rename to ...
(dump_prefix_expression): New name.
* expprint.c (dump_subexp): Make global. Add comment.
Move most existing code to dump_subexp_body.
(dump_subexp_body): New function.
(dump_prefix_expression): Rename to dump_raw_expression.
Remove attempt to print the expression via print_expression: it can't
work before the expression is prefixified.
(dump_raw_expression): Renamed from dump_prefix_expression.
(dump_postfix_expression): Rename to dump_prefix_expression, since
that's what it does.
Remove 'note' parameter, since this routine must be used on
prefixified expression.
(dump_prefix_expression): Renamed from dump_postfix_expression.
2003-09-22 Jim Blandy <>
* dwarf2read.c (read_array_type): When building the type for an
array of unspecified length, make sure to choose the upper bound
so that the array's total length comes out to be zero --- that's
how we represent such arrays.
2003-09-22 Michael Chastain <>
* MAINTAINERS: Rename gdb.c++ to gdb.cp.
2003-09-22 Jeff Johnston <>
* top.c (quit_force): Fix indirect call to quit_target so
a struct qt_args pointer is passed.
2003-09-22 Andrew Cagney <>
* arch-utils.h (init_frame_pc_noop): Delete declaration.
* arch-utils.c (init_frame_pc_noop): Delete function.
* mn10300-tdep.c (mn10300_gdbarch_init): Do not set
* mips-tdep.c (mips_gdbarch_init): Ditto.
* i386-interix-tdep.c (i386_interix_init_abi): Ditto.
* config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
* config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2003-09-22 Anthony Green <>
* monitor.c (monitor_expect): Delete unused conflicting targ_ops
2003-09-20 Andrew Cagney <>
* breakpoint.c: Eliminate ARGSUSED.
* buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
* coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
* exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
* infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
* procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
* remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
* stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
* utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
* wince.c, remote-vx.c: Ditto.
* cli/cli-script.c: Remove "register" attributes.
* config/pa/tm-hppa.h: Ditto.
* cli/cli-decode.c: Ditto.
* cli/cli-cmds.c: Ditto.
2003-09-19 Andrew Cagney <>
* sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
* sparc64nbsd-nat.c (getregs_supplies): Ditto.
2003-09-19 Christopher Faylor <>
* win32-nat.c (mappings): Remove HAVE_SSE conditional.
2003-09-19 Jim Blandy <>
* macrotab.c (macro_include): Use the correct comparison to find
the appropriate place for this inclusion in the list.
2003-09-19 Andrew Cagney <>
* config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
(deprecated_hpux_text_end): Declare.
(struct target_ops): Declare opaque.
* hppah-nat.c (text_end): Make static.
(deprecated_hpux_text_end): New function.
* exec.c (text_end): Delete global variable.
(NEED_TEXT_START_END): Do not define.
(exec_file_attach): Replace code computing "text_end" code with
2003-09-19 Andrew Cagney <>
* utils.c (align_up, align_down): New functions.
* defs.h (align_up, align_down): Declare.
* ppc-sysv-tdep.c (align_up, align_down): Delete functions.
* s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
and "align_down".
(round_up, round_down): Delete functions.
* mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
(ROUND_DOWN, ROUND_UP): Delete macros.
(mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
* h8300-tdep.c: Replace "round_up" and "round_down" with
"align_up" and "align_down".
(round_up, round_down): Delete macros.
* frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
(ROUND_UP, ROUND_DOWN): Delete macros.
2003-09-18 J. Brobecker <>
* hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
hard-coded constant. Use the proper machine name instead.
2003-09-17 Andrew Cagney <>
* sparc-tdep.c (legacy_register_name): Delete function.
* mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
(mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
* infcmd.c (gdb_register_name): Delete variable.
* (SDB_REG_TO_REGNUM): Delete reference to
REGISTER_NAME and "tm.h".
* gdbarch.h, gdbarch.c: Regenerate.
* dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
REGISTER_NAMES in comments.
* remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
* m68klinux-nat.c (regmap): Ditto.
2003-09-17 Jim Blandy <>
* (dis_asm_h): Note that this #includes "bfd.h".
2003-09-17 Andrew Cagney <>
* ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
(ppcnbsd_init_abi): Set "use_struct_convention" to
2003-09-17 Mark Kettenis <>
* gdbarch.h, gdbarch.c: Regenerate.
(stabs_argument_has_addr): New architecture method.
* arch-utils.h (default_stabs_argument_has_addr): New prototype.
* arch-utils.c: Include "buildsym.h".
(default_stabs_argument_has_addr): New function.
* stabsread.c (define_symbol): Use stabs_argument_has_addr
2003-09-17 Andrew Cagney <>
* gdbarch.h, gdbarch.c: Regenerate.
* core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
* regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
* sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
* sparcnbsd-tdep.c: Update.
2003-09-17 Andrew Cagney <>
* gdbarch.h, gdbarch.c: Regenerate.
* arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
* d10v-tdep.c, frame.c: Update.
* hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
* hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
* ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
* mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
* mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
* ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
* remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
* remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
* sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
* v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
* config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
* config/pa/nm-hppah.h: Update.
2003-09-16 Andrew Cagney <>
* ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
"use_struct_convention" to "ppc_linux_use_struct_convention".
(ppc_linux_use_struct_convention): New function.
* rs6000-tdep.c (rs6000_use_struct_convention): New function.
(rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
* ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
* ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
Delete function.
2003-09-16 Andrew Cagney <>
* buildsym.c: Remove more occurances of "register".
* coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
* environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
* gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
* infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
* printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
* sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
* standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
* utils.c, valops.c, values.c, xcoffread.c: Ditto.
2003-09-16 Corinna Vinschen <>
* sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
numbers to enumeration values.
* sh-tdep.c: Accomodate above change.
(NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
(NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
(IS_ADD_IMM_SP): Rename from IS_ADD_SP.
(IS_FPUSH): Rename from IS_FMOV.
(sh_extract_struct_value_address): Remove useless comment.
(sh_dsp_register_sim_regno): Use register values from sh-tdep.h
instead of own local values.
(sh_dump_tdep): Remove.
(_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
* sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2003-09-15 Andrew Cagney <>
* doublest.c (convert_floatformat_to_doublest): No longer need to
cast "exp_bias" to an int. Reverts 2002-12-04 change.
2003-09-15 Daniel Jacobowitz <>
* values.c (unpack_double): Call floatformat_is_valid.
2003-09-15 Mark Kettenis <>
* amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
ps_strings into a long.
* amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2003-09-15 Kevin Buettner <>
* dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
associated with DW_AT_ranges attribute is out of bounds.
2003-09-15 David Lecomber <>
* f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2003-09-14 Michael Chastain <>
* config/m68k/nm-apollo68v.h: Delete.
* config/m68k/xm-apollo68v.h: Delete.
2003-09-14 Andrew Cagney <>
* rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
* dcache.c: Update copyrights and descriptions.
* scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2003-09-14 Andrew Cagney <>
* config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
"amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2003-09-14 Andrew Cagney <>
* alpha-nat.c: Remove some occurances of "register".
* alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
* buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
* corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
* dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
* environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
* f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
* h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
* hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
* infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
* infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
* jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
* mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
* mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
* ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
* p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
* remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
* rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
* solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
* stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
* symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
* typeprint.c, utils.c, valarith.c, valops.c: Ditto.
* values.c, vax-tdep.c, xcoffread.c: Ditto.
2003-09-13 Andrew Cagney <>
* config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
* ppc-tdep.h (struct regcache): Declare opaque.
* objfiles.h (struct objfile_data): Declare opaque.
* cp-support.h (struct objfile): Declare opaque.
* linux-nat.h (target_waitstatus): Declare opaque.
2003-09-14 Mark Kettenis <>
(stabs_argument_has_addr): New architecture method.
* arch-utils.h (default_stabs_argument_has_addr): New prototype.
* arch-utils.c: Include "buildsym.h".
(default_stabs_argument_has_addr): New function.
* stabsread.c (define_symbol): Use stabs_argument_has_addr
* cris-tdep.c (cris_gdbarch_init): Set
deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
* hppa-tdep.c (hppa_gdbarch_init): Likewise.
* mcore-tdep.c (mcore_gdbarch_init): Likewise.
* mips-tdep.c (mips_gdbarch_init): Likewise.
* mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
* sparc-tdep.c (sparc_gdbarch_init): Likewise.
2003-09-13 Andrew Cagney <>
* values.c (using_struct_return): Delete "function" and "funcaddr"
* value.h (using_struct_return): Update declaration.
* infcmd.c (finish_command_continuation): Update.
(finish_command): Update.
* infcall.c (call_function_by_hand): Update.
* eval.c (evaluate_subexp_standard): Update.
2003-09-13 Christopher Faylor <>
* win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
SSE registers since gdb will not operate correctly without this.
Restore include file ordering munged in previous change.
* config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2003-09-13 Mark Kettenis <>
* gdbarch.c, gdbarch.h: Updated.
* infcall.c (call_function_by_hand): Update.
* stabsread.c (define_symbol): Updated.
* (xm-i386-sv32.h, tm-i386gas.h): Remove.
2003-09-12 Christopher Faylor <>
* win32-nat.c: Reorganize so that defines used by target headers are
actually defined by the system headers.
* config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2003-09-12 Jim Blandy <>
* dbxread.c (read_dbx_symtab): Don't report an internal error if
the file has no .data, .bss, or .rodata sections. Instead wait
until we see a variable alleged to live in one of those sections.
* dbxread.c (read_dbx_symtab): If we have no .data section and no
.bss section, presume that any variables we find live in the
.rodata section.
* dbxread.c (read_dbx_symtab): Add FIXME about finding section
offsets for global and static variables.
* dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
symbol types are, by definition, in the .data section, so it is
correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
If there is no .data section, there should be no N_DATA or N_DATA
| N_EXT symbols.
2003-09-12 Mark Kettenis <>
* amd64fbsd-tdep.c: Fix sigtramp recognition.
(amd64fbsd_sigcontext_addr): Rewrite.
(amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
with correct values.
(amd64fbsd_sc_reg_offset): Initialize with correct values.
(amd64fbsd_init_abi): Fix typo.
2003-09-12 Andrew Cagney <>
* ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
(ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2003-09-12 Andrew Cagney <>
* objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
"entry_file_highpc". Update comments.
* defs.h (deprecated_inside_entry_file): Rename
* blockframe.c (deprecated_inside_entry_file): Rename
* frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
* vax-tdep.c (vax_frame_chain): Update.
* sh64-tdep.c (sh64_frame_chain): Update.
* sh-tdep.c (sh_frame_chain): Update.
* rs6000-tdep.c (rs6000_frame_chain): Update.
* ns32k-tdep.c (ns32k_frame_chain): Update.
* mips-tdep.c (mips_frame_chain): Update.
* m68hc11-tdep.c (m68hc11_frame_this_id): Update.
* m32r-tdep.c (m32r_frame_this_id): Update.
* i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
* frv-tdep.c (frv_frame_this_id): Update.
* d10v-tdep.c (d10v_frame_this_id): Update.
* cris-tdep.c (cris_frame_chain): Update.
* blockframe.c (legacy_frame_chain_valid): Update.
* avr-tdep.c (avr_frame_this_id): Update.
* arm-tdep.c (arm_prologue_this_id): Update.
* alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
* objfiles.c (objfile_relocate): Update.
* mipsread.c (mipscoff_symfile_read): Update.
(mipscoff_symfile_read): Update.
* mdebugread.c (parse_partial_symbols): Update.
* dwarfread.c (read_file_scope): Update.
* dwarf2read.c (read_file_scope): Update.
* dbxread.c (read_dbx_symtab): Update.
(read_dbx_symtab): Update.
* coffread.c (complete_symtab): Update.
2003-09-12 Jeff Johnston <>
* top.c (quit_target): New static helper function.
(quit_force): Moved code to quit_target(). Call quit_target()
via catch_errors() to catch errors during quit.
2003-09-11 David Carlton <>
* buildsym.c (finish_block): Use allocate_block to allocate the
* mdebugread.c (new_block): Add FIXME.
2003-09-11 David Carlton <>
* gdbtypes.h: Add TYPE_CODE_NAMESPACE.
* gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
(recursive_dump_type): Ditto.
* printcmd.c (print_formatted): Ditto.
* typeprint.c (print_type_scalar): Ditto.
* c-typeprint.c (c_type_print_varspec_prefix): Ditto.
(c_type_print_varspec_suffix, c_type_print_base): Ditto.
* cp-support.h: Declare cp_check_possible_namespace_symbols,
* cp-support.c: Make maint_cplus_cmd_list extern.
* cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
(lookup_symbol_file): Look in possible namespace blocks when
(initialize_namespace_symtab): New.
(get_possible_namespace_block, free_namespace_block)
(lookup_possible_namespace_symbol, maintenance_cplus_namespace)
(_initialize_cp_namespace): Ditto.
* block.h: Declare allocate_block.
* block.c (allocate_block): New.
* jv-lang.c (get_java_class_symtab): Allocate blocks via
* symfile.h: Update declaration of add_psymbol_to_list.
* symfile.c (add_psymbol_to_list): Return