diff options
author | John Baldwin <jhb@FreeBSD.org> | 2017-06-28 11:11:20 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2017-07-07 16:08:33 -0700 |
commit | 382b69bbb7a4fec5213d2382fe70a68d7a46b3e7 (patch) | |
tree | da98991f5df0b8bda0d6f31efa9e60de482e832c /gdb/gdbarch.sh | |
parent | Move the thread_section_name class to gdbcore.h. (diff) | |
download | binutils-gdb-382b69bbb7a4fec5213d2382fe70a68d7a46b3e7.tar.gz binutils-gdb-382b69bbb7a4fec5213d2382fe70a68d7a46b3e7.tar.bz2 binutils-gdb-382b69bbb7a4fec5213d2382fe70a68d7a46b3e7.zip |
Add a new gdbarch method to fetch signal information from core files.
Previously the core_xfer_partial method used core_get_siginfo to handle
TARGET_OBJECT_SIGNAL_INFO requests. However, core_get_siginfo looked for
Linux-specific sections in the core file. To support fetching siginfo
from cores on other systems, add a new gdbarch method (`core_xfer_siginfo`)
and move the body of the existing core_get_siginfo into a
linux_core_xfer_siginfo implementation of this method in linux-tdep.c.
gdb/ChangeLog:
* corelow.c (get_core_siginfo): Remove.
(core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
instead of get_core_siginfo.
* gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
* gdbarch.h: Re-generate.
* gdbarch.c: Re-generate.
* linux-tdep.c (linux_core_xfer_siginfo): New.
(linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
Diffstat (limited to 'gdb/gdbarch.sh')
-rwxr-xr-x | gdb/gdbarch.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 22f5715037b..3aab17f958c 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -755,6 +755,11 @@ M;const char *;core_pid_to_str;ptid_t ptid;ptid # How the core target extracts the name of a thread from a core file. M;const char *;core_thread_name;struct thread_info *thr;thr +# Read offset OFFSET of TARGET_OBJECT_SIGNAL_INFO signal information +# from core file into buffer READBUF with length LEN. Return the number +# of bytes read (zero indicates EOF, a negative value indicates failure). +M;LONGEST;core_xfer_siginfo;gdb_byte *readbuf, ULONGEST offset, ULONGEST len; readbuf, offset, len + # BFD target to use when generating a core file. V;const char *;gcore_bfd_target;;;0;0;;;pstring (gdbarch->gcore_bfd_target) |