From 81490ea1cb9493404e7a8df7866bd38b13320ab8 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 17 Apr 2001 19:01:35 +0000 Subject: 2001-04-17 Eirik Fuller * thread.c (do_captured_thread_select): Allow the argument to the thread command to be an expression rather than a literal integer. --- gdb/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/thread.c') 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); -- cgit v1.1