aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorMihails Strasuns <mihails.strasuns@intel.com>2020-12-16 20:36:15 +0100
committerMihails Strasuns <mihails.strasuns@intel.com>2021-01-26 13:22:35 +0100
commit4cb1265b3f906cbfd092715b61bb81a8f6179a49 (patch)
treed86a19ecb73873301fdb36515c7015020c67ae0c /bfd/elf-bfd.h
parentc3ffb8f340f567949f24c3bab62259f0e593637f (diff)
downloadgdb-4cb1265b3f906cbfd092715b61bb81a8f6179a49.zip
gdb-4cb1265b3f906cbfd092715b61bb81a8f6179a49.tar.gz
gdb-4cb1265b3f906cbfd092715b61bb81a8f6179a49.tar.bz2
bfd: add elfcore_write_file_note
Adds a trivial wrapper over elfcore_write_note, primarily to be more consistent with other ELF note helper functions and highlight NT_FILE as one of notes handled by gdb. bfd/ChangeLog: 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com> * bfd-elf.h (elfcore_write_file_note): New function. * elf.c (elfcore_write_file_note): New function. gdb/ChangeLog: 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com> * linux-tdep.c (linux_make_mappings_corefile_notes): Start using elfcore_write_file_note.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 15206b4..994f15e 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2801,6 +2801,8 @@ extern char *elfcore_write_lwpstatus
(bfd *, char *, int *, long, int, const void *);
extern char *elfcore_write_register_note
(bfd *, char *, int *, const char *, const void *, int);
+extern char *elfcore_write_file_note
+ (bfd *, char *, int *, const void*, int);
/* Internal structure which holds information to be included in the
PRPSINFO section of Linux core files.