This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

[committed] MI/testsuite: Fix thread ID matching


Hi,

 A thread ID is a number.  This change fixes a pattern used to match it in 
the MI testsuite.  Committed as obvious.

2010-10-02  Maciej W. Rozycki  <macro@codesourcery.com>

	gdb/testsuite/
	* lib/mi-support.exp (thread_selected_re): Correct pattern used
	to match a thread ID.

  Maciej

gdb-7.2.50.20101002-test-mi-thread-0.patch
Index: gdb/testsuite/lib/mi-support.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/mi-support.exp,v
retrieving revision 1.93
diff -u -p -r1.93 mi-support.exp
--- gdb/testsuite/lib/mi-support.exp	15 Mar 2010 03:43:13 -0000	1.93
+++ gdb/testsuite/lib/mi-support.exp	2 Oct 2010 17:27:58 -0000
@@ -30,7 +30,7 @@ global mi_inferior_tty_name
 
 set MIFLAGS "-i=mi"
 
-set thread_selected_re "=thread-selected,id=\"\[0-9+\]\"\r\n"
+set thread_selected_re "=thread-selected,id=\"\[0-9\]+\"\r\n"
 set library_loaded_re "=library-loaded\[^\n\]+\"\r\n"
 
 #


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