mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
2008-08-18 Pedro Alves <pedro@codesourcery.com>
gdb/doc/ * observer.texi (thread_ptid_changed): New. gdb/ * gdbthread.h (thread_change_ptid): Declare. * infrun.c (infrun_thread_ptid_changed): New. (_initialize_infrun): Attach infrun_thread_ptid_changed to the thread_ptid_changed observer. * regcache.c (regcache_thread_ptid_changed): New. (_initialize_regcache): Attach regcache_thread_ptid_changed to the thread_ptid_changed observer. * thread.c (thread_change_ptid): New.
This commit is contained in:
@@ -151,6 +151,9 @@ extern struct thread_info *find_thread_pid (ptid_t ptid);
|
||||
/* Find thread by GDB user-visible thread number. */
|
||||
struct thread_info *find_thread_id (int num);
|
||||
|
||||
/* Change the ptid of thread OLD_PTID to NEW_PTID. */
|
||||
void thread_change_ptid (ptid_t old_ptid, ptid_t new_ptid);
|
||||
|
||||
/* Iterator function to call a user-provided callback function
|
||||
once for each known thread. */
|
||||
typedef int (*thread_callback_func) (struct thread_info *, void *);
|
||||
|
||||
Reference in New Issue
Block a user