]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add gdb/nat common functions for listing threads
authorKamil Rytarowski <n54@gmx.com>
Wed, 2 Sep 2020 17:13:19 +0000 (19:13 +0200)
committerKamil Rytarowski <n54@gmx.com>
Thu, 10 Sep 2020 13:37:52 +0000 (15:37 +0200)
commitc489f8c6e61e0b60a4108e10be3681885b253864
tree169e55e7e0732430f0eaa5097ece3016d43aca35
parent330662f68490e09efad94fba603f09e1746941b3
Add gdb/nat common functions for listing threads

Add netbsd_nat::netbsd_thread_lister a generic thread lister, used
internally in netbsd-nat.c, copied from gdb/nbsd-nat.c.

Add public extern functions for listing threads:
 * netbsd_nat::thread_alive
 * netbsd_nat::thread_name
 * netbsd_nat::for_each_thread

gdb/ChangeLog:

* netbsd-nat.h: Include "gdbsupport/function-view.h".
* (netbsd_nat::thread_alive, netbsd_nat::thread_name)
(netbsd_nat::for_each_thread): Add.
* netbsd-nat.c: Include "gdbsupport/common-defs.h" and
"gdbsupport/common-debug.h".
* (netbsd_nat::netbsd_thread_lister)
(netbsd_nat::thread_alive, netbsd_nat::thread_name)
(netbsd_nat::for_each_thread): Add.
gdb/ChangeLog
gdb/nat/netbsd-nat.c
gdb/nat/netbsd-nat.h