2002-04-20 David S. Miller <davem@redhat.com>
authorDavid S. Miller <davem@redhat.com>
Mon, 22 Apr 2002 01:02:02 +0000 (01:02 +0000)
committerDavid S. Miller <davem@redhat.com>
Mon, 22 Apr 2002 01:02:02 +0000 (01:02 +0000)
commit99633aa4f81970ca618720b7a796acafd5ada195
tree3acc759ea474978d0ab34cc42ebc6aaff3618bca
parent9319a2feca1b89d455884f911a662c09fcd05a8e
2002-04-20  David S. Miller  <davem@redhat.com>

* sparc-tdep.h: New file.
* sparc-tdep.c (elf-bfd.h): Include.
(SPARC_HAS_FPU, FP_REGISTER_BYTES, FP_MAX_REGNUM,
SPARC_INTREG_SIZE, DUMMY_REG_SAVE_OFFSET, gdbarch_tdep,
CALL_DUMMY_CALL_OFFSET): Move out to sparc-tdep.h
(sparc_dump_tdep): New function.
(_initialize_sparc_tdep): Use gdbarch_register instead of
register_gdbarch_init which is deprecated.
(process_note_abi_tag_sections, sparc_abi_handler,
sparc_abi_handler_list, sparc_gdbarch_register_os_abi): New.
(sparc_gdbarch_init): Determine elf os ident key based upon
either the elf header or by using process_note_abi_tag_sections.
Fix 'gdbarch already exists' test by comparing os_ident as well.
As the last action, invoke OS abi_handler if installed.
gdb/ChangeLog
gdb/Makefile.in
gdb/sparc-tdep.c
gdb/sparc-tdep.h [new file with mode: 0644]