summaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-07-12 16:37:57 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-07-12 16:37:57 +0000
commitd57e8f780d6555f90c4c63f5c0bc762813a8a220 (patch)
tree1225e2671e1f2db5d13f690dac6e599bb298a80e /gdb/gdbthread.h
parentcabea13487f703a265e8deeeac62e74f18955b5d (diff)
downloadgdb-d57e8f780d6555f90c4c63f5c0bc762813a8a220.tar.gz
Implement --thread and --frame.
* gdbthread.h (find_thread_id): Declare. * thread.c (find_thread_id): Make non-static. * mi/mi-main.c (mi_cmd_execute): Switch to the right thread and frame, if necessary. * mi/mi-parse.c (mi_parse): Handle --thread and --frame. * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r--gdb/gdbthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 3f1d217e3e6..f283865ccc5 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -148,6 +148,9 @@ extern int valid_thread_id (int thread);
/* Search function to lookup a thread by 'pid'. */
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);
+
/* Iterator function to call a user-provided callback function
once for each known thread. */
typedef int (*thread_callback_func) (struct thread_info *, void *);