This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

do_captured_thread_select


This patch allows gdb's thread command to be used in macros.  I've been
using it since mid November with no problems (and I apologize for the
delay in submitting it).

--- gdb/thread.c-	Wed Feb  2 20:14:36 2000
+++ gdb/thread.c	Thu Nov 16 20:31:42 2000
@@ -663,7 +670,7 @@
   int num;
   struct thread_info *tp;
 
-  num = atoi ((char *)tidstr);
+  num = value_as_long(parse_and_eval(tidstr));
 
   tp = find_thread_id (num);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]