aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-04-17 19:01:35 +0000
committerMichael Snyder <msnyder@vmware.com>2001-04-17 19:01:35 +0000
commit81490ea1cb9493404e7a8df7866bd38b13320ab8 (patch)
treecbd309c5069c4a97a09f731859b76a33b8ca7bb6 /gdb/thread.c
parent4d96d12825ba8ca59248bca05e7691c449ad55df (diff)
downloadfsf-binutils-gdb-81490ea1cb9493404e7a8df7866bd38b13320ab8.zip
fsf-binutils-gdb-81490ea1cb9493404e7a8df7866bd38b13320ab8.tar.gz
fsf-binutils-gdb-81490ea1cb9493404e7a8df7866bd38b13320ab8.tar.bz2
2001-04-17 Eirik Fuller <eirik@netapp.com>
* thread.c (do_captured_thread_select): Allow the argument to the thread command to be an expression rather than a literal integer.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 7c047e1..22c35fa 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -665,7 +665,7 @@ do_captured_thread_select (void *tidstr)
int num;
struct thread_info *tp;
- num = atoi ((char *)tidstr);
+ num = value_as_long (parse_and_eval (tidstr));
tp = find_thread_id (num);