From: msnyder Date: Tue, 17 Apr 2001 19:01:34 +0000 (+0000) Subject: 2001-04-17 Eirik Fuller X-Git-Tag: pre-posix-scan~53 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0eeaa0b37134c4b0e84eee6fba8e1e843151f0b1;p=pf3gnuchains%2Fpf3gnuchains4x.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 56a1a2f635..a604d4c12d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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. + 2001-04-17 Mark Kettenis * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use diff --git a/gdb/thread.c b/gdb/thread.c index 7c047e19a6..22c35fa674 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);