diff options
author | Mihails Strasuns <mihails.strasuns@intel.com> | 2020-12-16 20:36:15 +0100 |
---|---|---|
committer | Mihails Strasuns <mihails.strasuns@intel.com> | 2021-01-26 13:22:35 +0100 |
commit | 4cb1265b3f906cbfd092715b61bb81a8f6179a49 (patch) | |
tree | d86a19ecb73873301fdb36515c7015020c67ae0c /gdb/linux-tdep.c | |
parent | c3ffb8f340f567949f24c3bab62259f0e593637f (diff) | |
download | gdb-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 'gdb/linux-tdep.c')
-rw-r--r-- | gdb/linux-tdep.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 5b3b887..e9f8e1b 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -1591,11 +1591,9 @@ linux_make_mappings_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, obstack_grow (&data_obstack, obstack_base (&filename_obstack), size); - note_data.reset (elfcore_write_note - (obfd, note_data.release (), - note_size, "CORE", NT_FILE, - obstack_base (&data_obstack), - obstack_object_size (&data_obstack))); + note_data.reset (elfcore_write_file_note (obfd, note_data.release (), note_size, + obstack_base (&data_obstack), + obstack_object_size (&data_obstack))); } } |