diff options
author | Yao Qi <yao@codesourcery.com> | 2012-11-09 02:58:50 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-11-09 02:58:50 +0000 |
commit | fbd5db48c538738520ee7b9a0699499b56bc9411 (patch) | |
tree | d4aeba3bd6d20daf24d5b83a2cce5038286495aa /gdb/gdbserver/gdbthread.h | |
parent | e714f336ee88378b0598be6ba077fe77c1d218bc (diff) | |
download | gdb-fbd5db48c538738520ee7b9a0699499b56bc9411.zip gdb-fbd5db48c538738520ee7b9a0699499b56bc9411.tar.gz gdb-fbd5db48c538738520ee7b9a0699499b56bc9411.tar.bz2 |
gdb/gdbserver:
2012-11-09 Yao Qi <yao@codesourcery.com>
* spu-low.c (current_ptid): Move it to ..
* gdbthread.h: ... here. New.
* remote-utils.c (read_ptid): Use macro 'current_ptid'.
* server.c (myresume, process_serial_event): Likewise.
* thread-db.c (thread_db_find_new_threads): Likewise.
* tracepoint.c (run_inferior_command): Likewise.
Diffstat (limited to 'gdb/gdbserver/gdbthread.h')
-rw-r--r-- | gdb/gdbserver/gdbthread.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gdbserver/gdbthread.h b/gdb/gdbserver/gdbthread.h index d863ec0..adc23da 100644 --- a/gdb/gdbserver/gdbthread.h +++ b/gdb/gdbserver/gdbthread.h @@ -68,4 +68,6 @@ void add_thread (ptid_t ptid, void *target_data); struct thread_info *find_thread_ptid (ptid_t ptid); struct thread_info *gdb_id_to_thread (unsigned int); +/* Get current thread ID (Linux task ID). */ +#define current_ptid ((struct inferior_list_entry *) current_inferior)->id #endif /* GDB_THREAD_H */ |