[RFC,12/13] linux-tdep: Export linux_make_corefile_notes
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Testing passed
|
Commit Message
This permits Linux architectures to override the gdbarch
make_corefile_notes method to add architecture-specific notes.
---
gdb/linux-tdep.c | 5 ++---
gdb/linux-tdep.h | 7 +++++++
2 files changed, 9 insertions(+), 3 deletions(-)
@@ -2033,10 +2033,9 @@ linux_fill_prpsinfo (struct elf_internal_linux_prpsinfo *p)
return 1;
}
-/* Build the note section for a corefile, and return it in a malloc
- buffer. */
+/* See linux-tdep.h. */
-static gdb::unique_xmalloc_ptr<char>
+gdb::unique_xmalloc_ptr<char>
linux_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size)
{
struct elf_internal_linux_prpsinfo prpsinfo;
@@ -52,6 +52,13 @@ typedef char *(*linux_collect_thread_registers_ftype) (const struct regcache *,
bfd *, char *, int *,
enum gdb_signal);
+/* Build the note section for a corefile, and return it in a malloc
+ buffer. */
+
+gdb::unique_xmalloc_ptr<char> linux_make_corefile_notes (struct gdbarch *gdbarch,
+ bfd *obfd,
+ int *note_size);
+
extern enum gdb_signal linux_gdb_signal_from_target (struct gdbarch *gdbarch,
int signal);