diff options
author | Alan Modra <amodra@gmail.com> | 2001-06-30 03:15:46 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-06-30 03:15:46 +0000 |
commit | bb0082d686d9a84f29c7e6bb36736f68aa65169e (patch) | |
tree | 2933920838b2b1c92be2905e6f923281367f2d21 /bfd/elf-bfd.h | |
parent | b64977c5ff2661a4e20d2dcbf999b143670ac742 (diff) | |
download | gdb-bb0082d686d9a84f29c7e6bb36736f68aa65169e.zip gdb-bb0082d686d9a84f29c7e6bb36736f68aa65169e.tar.gz gdb-bb0082d686d9a84f29c7e6bb36736f68aa65169e.tar.bz2 |
* elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
and _bfd_elfcore_strndup.
(struct elf_backend_data): Add elf_backend_grok_prstatus
and elf_backend_grok_psinfo.
* elf.c (_bfd_elfcore_make_pseudosection): New function.
(elfcore_grok_prstatus): Use it.
(elfcore_make_note_pseudosection): Likewise.
(elfcore_strndup): Rename to...
(_bfd_elfcore_strndup): Here, and make global.
(elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
(elfcore_grok_note): Call elf_backend_grok_prstatus
and elf_backend_grok_psinfo if available.
* elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
(_bfd_elf32_mips_grok_psinfo): New function.
(elf_backend_grok_prstatus): Define.
(elf_backend_grok_psinfo): Define.
* elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
(elf_backend_grok_psinfo): Likewise.
(elfNN_bed): Include elf_backend_grok_prstatus and
elf_backend_grok_psinfo.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index a5693ff..f340590 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -628,6 +628,14 @@ struct elf_backend_data unsigned int (*elf_backend_count_relocs) PARAMS ((asection *, Elf_Internal_Rela *)); + /* This function, if defined, is called when an NT_PRSTATUS note is found + in a core file. */ + boolean (*elf_backend_grok_prstatus) PARAMS ((bfd *, Elf_Internal_Note *)); + + /* This function, if defined, is called when an NT_PSINFO or NT_PRPSINFO + note is found in a core file. */ + boolean (*elf_backend_grok_psinfo) PARAMS ((bfd *, Elf_Internal_Note *)); + /* The swapping table to use when dealing with ECOFF information. Used for the MIPS ELF .mdebug section. */ const struct ecoff_debug_swap *elf_backend_ecoff_debug_swap; @@ -1098,6 +1106,9 @@ boolean _bfd_elf_create_got_section PARAMS ((bfd *, unsigned long _bfd_elf_link_renumber_dynsyms PARAMS ((bfd *, struct bfd_link_info *)); +boolean _bfd_elfcore_make_pseudosection PARAMS ((bfd *, char *, int, int)); +char *_bfd_elfcore_strndup PARAMS ((bfd *, char *, int)); + elf_linker_section_t *_bfd_elf_create_linker_section PARAMS ((bfd *abfd, struct bfd_link_info *info, |