aboutsummaryrefslogtreecommitdiff
path: root/gdb
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 /gdb
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 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/linux-tdep.c8
2 files changed, 8 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0836eb3..cbc75cc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
+
+ * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
+ elfcore_write_file_note.
+
2021-01-26 Shahab Vahedi <shahab@synopsys.com>
* arc-tdep.c (arc_add_reggroups): New function.
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)));
}
}