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]

[commit] Enable some tests for remote testing


Hello,

back in 1996, gdb.thread/pthreads.exp was disabled for all non-native
configurations.  This check is still present today.  And in fact, when
other test cases were based on pthreads.exp, the check was copied over
into mi-pthreads.exp, mi2-pthreads.exp, and gdb669.exp.

While it might indeed have been the case in 1996 that threads are only
supported in native configurations, this is certainly not true today.
And in fact many other thread tests do run in remote tests.

The patch below therefore removes those obsolete checks.

Tested in arm-linux-gnueabi remote testing with no regressions.
Committed to mainline.

Bye,
Ulrich


ChangeLog:

	* gdb.threads/pthreads.exp: Enable on non-native configurations.
	* gdb.mi/mi-pthreads.exp: Likewise.
	* gdb.mi/mi2-pthreads.exp: Likewise.
	* gdb.mi/gdb669.exp.exp: Likewise.


Index: gdb/testsuite/gdb.mi/gdb669.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/gdb669.exp,v
retrieving revision 1.14
diff -u -p -r1.14 gdb669.exp
--- gdb/testsuite/gdb.mi/gdb669.exp	1 Jan 2011 15:33:47 -0000	1.14
+++ gdb/testsuite/gdb.mi/gdb669.exp	12 Aug 2011 15:06:44 -0000
@@ -18,11 +18,6 @@
 # command "info threads" and the MI command "-thread-list-ids"
 # return different threads in the system.
 
-# This only works with native configurations
-if {![isnative]} {
-  return
-}
-
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
Index: gdb/testsuite/gdb.mi/mi-pthreads.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-pthreads.exp,v
retrieving revision 1.18
diff -u -p -r1.18 mi-pthreads.exp
--- gdb/testsuite/gdb.mi/mi-pthreads.exp	12 Jan 2011 21:09:39 -0000	1.18
+++ gdb/testsuite/gdb.mi/mi-pthreads.exp	12 Aug 2011 15:06:44 -0000
@@ -20,11 +20,6 @@
 # via these command pathways are properly executed. Console commands
 # executed via MI should use MI output wrappers, MI event handlers, etc.
 
-# This only works with native configurations
-if {![isnative]} {
-  return
-}
-
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
Index: gdb/testsuite/gdb.mi/mi2-pthreads.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi2-pthreads.exp,v
retrieving revision 1.12
diff -u -p -r1.12 mi2-pthreads.exp
--- gdb/testsuite/gdb.mi/mi2-pthreads.exp	12 Jan 2011 21:09:39 -0000	1.12
+++ gdb/testsuite/gdb.mi/mi2-pthreads.exp	12 Aug 2011 15:06:44 -0000
@@ -20,11 +20,6 @@
 # via these command pathways are properly executed. Console commands
 # executed via MI should use MI output wrappers, MI event handlers, etc.
 
-# This only works with native configurations
-if {![isnative]} {
-  return
-}
-
 load_lib mi-support.exp
 set MIFLAGS "-i=mi2"
 
Index: gdb/testsuite/gdb.threads/pthreads.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/pthreads.exp,v
retrieving revision 1.24
diff -u -p -r1.24 pthreads.exp
--- gdb/testsuite/gdb.threads/pthreads.exp	1 Jan 2011 15:33:50 -0000	1.24
+++ gdb/testsuite/gdb.threads/pthreads.exp	12 Aug 2011 15:06:44 -0000
@@ -21,11 +21,6 @@ if $tracelevel then {
 }
 
 
-# This only works with native configurations
-if ![isnative] then {
-    return
-}
-
 set testfile "pthreads"
 set srcfile ${testfile}.c
 set binfile ${objdir}/${subdir}/${testfile}
-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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