Add support for extracting thread names from cores.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 18 Jan 2016 17:49:23 +0000 (09:49 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 19 Jan 2016 16:18:20 +0000 (08:18 -0800)
commit4dfc5dbc4e1b267d440dd515a42fe6fd96a8d860
tree6cec1021e910abd6adbf097333c65669d188e0b9
parent5b2c414df12bb61ab1e40099b92fc8f00983b930
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.
gdb/ChangeLog
gdb/corelow.c
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh