diff options
author | Pedro Alves <palves@redhat.com> | 2008-08-18 22:35:17 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-08-18 22:35:17 +0000 |
commit | 5231c1fd732d8cdb7ed92dd3e275ab4698a8052d (patch) | |
tree | 5b0fe57134939c5da0bc46b67bd127b15897d656 /gdb/gdbthread.h | |
parent | f98dfd4b46ff7c68b479181714832b4c5fced87e (diff) | |
download | gdb-5231c1fd732d8cdb7ed92dd3e275ab4698a8052d.zip gdb-5231c1fd732d8cdb7ed92dd3e275ab4698a8052d.tar.gz gdb-5231c1fd732d8cdb7ed92dd3e275ab4698a8052d.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r-- | gdb/gdbthread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index 780ec25..6696017 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -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 *); |