OSDN Git Service

2001-04-17 Eirik Fuller <eirik@netapp.com>
authormsnyder <msnyder>
Tue, 17 Apr 2001 19:01:34 +0000 (19:01 +0000)
committermsnyder <msnyder>
Tue, 17 Apr 2001 19:01:34 +0000 (19:01 +0000)
* thread.c (do_captured_thread_select): Allow the argument to the
thread command to be an expression rather than a literal integer.

gdb/ChangeLog
gdb/thread.c

index 56a1a2f..a604d4c 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2001-04-17  Mark Kettenis  <kettenis@gnu.org>
 
        * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
index 7c047e1..22c35fa 100644 (file)
@@ -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);