aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-02-01 05:35:58 +0000
committerAlan Modra <amodra@gmail.com>2007-02-01 05:35:58 +0000
commit183e98bed26941bb85b3170a4620ac32b1f8f686 (patch)
treeccdf42b35e549d13775da37fbc4a7a1697621945 /bfd/elfxx-target.h
parentb25b09cb7ee16880b59f80848071b623d1a20c8f (diff)
downloadgdb-183e98bed26941bb85b3170a4620ac32b1f8f686.zip
gdb-183e98bed26941bb85b3170a4620ac32b1f8f686.tar.gz
gdb-183e98bed26941bb85b3170a4620ac32b1f8f686.tar.bz2
* elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
* elfxx-target.h (elf_backend_write_core_note): Define and use. * elf.c (elfcore_write_prpsinfo): Call the above. Add support for 32-bit core note on 64-bit target. (elfcore_write_prstatus): Likewise. (elfcore_write_lwpstatus): Make note_name const. (elfcore_write_prfpreg): Likewise. (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit target. * elf32-ppc.c (ppc_elf_write_core_note): New function. (elf_backend_write_core_note): Define. * elf64-ppc.c (ppc64_elf_write_core_note): New function. (elf_backend_write_core_note): Define.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index f51617c..a09376b 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -460,6 +460,9 @@
#ifndef elf_backend_grok_psinfo
#define elf_backend_grok_psinfo NULL
#endif
+#ifndef elf_backend_write_core_note
+#define elf_backend_write_core_note NULL
+#endif
#ifndef elf_backend_sprintf_vma
#define elf_backend_sprintf_vma _bfd_elf_sprintf_vma
#endif
@@ -635,6 +638,7 @@ static struct elf_backend_data elfNN_bed =
elf_backend_count_relocs,
elf_backend_grok_prstatus,
elf_backend_grok_psinfo,
+ elf_backend_write_core_note,
elf_backend_sprintf_vma,
elf_backend_fprintf_vma,
elf_backend_reloc_type_class,