[RFC,09/13] fbsd-tdep: Export fbsd_make_corefile_notes
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--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
|
Commit Message
This permits FreeBSD architectures to override the gdbarch
make_corefile_notes method to add architecture-specific notes.
---
gdb/fbsd-tdep.c | 5 ++---
gdb/fbsd-tdep.h | 7 +++++++
2 files changed, 9 insertions(+), 3 deletions(-)
@@ -667,10 +667,9 @@ fbsd_make_note_desc (enum target_object object, uint32_t structsize)
return desc;
}
-/* Create appropriate note sections for a corefile, returning them in
- allocated memory. */
+/* See fbsd-tdep.h. */
-static gdb::unique_xmalloc_ptr<char>
+gdb::unique_xmalloc_ptr<char>
fbsd_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size)
{
gdb::unique_xmalloc_ptr<char> note_data;
@@ -76,4 +76,11 @@ extern CORE_ADDR fbsd_get_thread_local_address (struct gdbarch *gdbarch,
extern CORE_ADDR fbsd_skip_solib_resolver (struct gdbarch *gdbarch,
CORE_ADDR pc);
+
+/* Create appropriate note sections for a corefile, returning them in
+ allocated memory. */
+
+extern gdb::unique_xmalloc_ptr<char> fbsd_make_corefile_notes
+(struct gdbarch *gdbarch, bfd *obfd, int *note_size);
+
#endif /* fbsd-tdep.h */