diff options
author | John Baldwin <jhb@FreeBSD.org> | 2016-01-18 09:49:23 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2016-01-19 08:18:20 -0800 |
commit | 4dfc5dbc4e1b267d440dd515a42fe6fd96a8d860 (patch) | |
tree | 6cec1021e910abd6adbf097333c65669d188e0b9 /gdb/gdbarch.sh | |
parent | 5b2c414df12bb61ab1e40099b92fc8f00983b930 (diff) |
Add support for extracting thread names from cores.
Add a new gdbarch method to extract a thread name from a core for a
given thread. Use this new method in core_thread_name to implement the
to_thread_name target op.
gdb/ChangeLog:
* corelow.c (core_thread_name): New function.
(init_core_ops): Use "core_thread_name" for the "to_thread_name"
target op.
* gdbarch.sh (core_thread_name): New gdbarch callback.
* gdbarch.h: Re-generate.
* gdbarch.c: Re-generate.
Diffstat (limited to 'gdb/gdbarch.sh')
-rwxr-xr-x | gdb/gdbarch.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index f80cd5181e..4ac6b90fd1 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -721,6 +721,9 @@ M:ULONGEST:core_xfer_shared_libraries_aix:gdb_byte *readbuf, ULONGEST offset, UL # How the core target converts a PTID from a core file to a string. M: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 + # BFD target to use when generating a core file. V:const char *:gcore_bfd_target:::0:0:::pstring (gdbarch->gcore_bfd_target) @@ -1247,6 +1250,7 @@ struct ravenscar_arch_ops; struct elf_internal_linux_prpsinfo; struct mem_range; struct syscalls_info; +struct thread_info; #include "regcache.h" |