Introduce target_ops method thread_info_to_thread_handle
authorKevin Buettner <kevinb@redhat.com>
Fri, 8 Feb 2019 02:16:04 +0000 (19:16 -0700)
committerKevin Buettner <kevinb@redhat.com>
Tue, 9 Apr 2019 03:09:37 +0000 (20:09 -0700)
commit3d6c62048d8408fbfb6c66830e0c650e36259637
treedc8bd93aae61f80fab0ea589241021691a733035
parent462cac5884ed4c38e6180b2e2769aaa5225e695b
Introduce target_ops method thread_info_to_thread_handle

This patch adds a thread_info_to_thread_handle method to the target_ops
struct.  It also implements this functionality for remote targets and
linux native threads.

gdb/ChangeLog:

* gdbthread.h (thread_to_thread_handle): Declare.
* thread.c (gdbtypes.h): Include.
(thread_to_thread_handle): New function.

* target.h (struct target_ops): Add thread_info_to_thread_handle.
(target_thread_info_to_thread_handle): Declare.
* target.c (target_thread_info_to_thread_handle): New function.
* target-debug.h (target_debug_print_gdb_byte_vector): Define.
* target-delegates.c: Regenerate.

* linux-thread-db.c (class thread_db_target): Add method
thread_info_to_thread_handle.
(thread_db_target::thread_info_to_thread_handle): Define.
* remote.c (class remote_target): Add new method
thread_info_to_thread_handle.
(remote_target::thread_info_to_thread_handle): Define.
gdb/ChangeLog
gdb/linux-thread-db.c
gdb/remote.c
gdb/target-debug.h
gdb/target-delegates.c
gdb/target.c
gdb/target.h
This page took 0.029959 seconds and 4 git commands to generate.