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]

Re: add bare_board variable


ping?

Nathan Sidwell wrote:
This patch adds a bare_board target_info variable to skip a couple of tests that
presume some kind of OS is running.

The start.exp test doesn't work when a gdb stub is being used.

ok?

nathan


------------------------------------------------------------------------


2006-06-09 Nathan Sidwell <nathan@codesourcery.com>

	gdb/testsuite/
	* gdb.base/auxv.exp: Skip if bare_board
	* gdb.base/gdb1555.exp: Likewise.
	* gdb.base/start.exp: Skip if use_gdb_stub.

Index: gdb/testsuite/gdb.base/auxv.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/auxv.exp,v
retrieving revision 1.4
diff -c -3 -p -r1.4 auxv.exp
*** gdb/testsuite/gdb.base/auxv.exp 2 May 2005 20:57:30 -0000 1.4
--- gdb/testsuite/gdb.base/auxv.exp 9 Jun 2006 21:03:25 -0000
***************
*** 23,28 ****
--- 23,33 ----
# This file is based on corefile.exp which was written by Fred
# Fish. (fnf@cygnus.com)
+ if [target_info exists bare_board] then {
+ verbose "Skipping auxv.exp because of bare_board."
+ return
+ }
+ if $tracelevel then {
strace $tracelevel
}
Index: gdb/testsuite/gdb.base/gdb1555.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/gdb1555.exp,v
retrieving revision 1.1
diff -c -3 -p -r1.1 gdb1555.exp
*** gdb/testsuite/gdb.base/gdb1555.exp 18 Feb 2004 03:35:08 -0000 1.1
--- gdb/testsuite/gdb.base/gdb1555.exp 9 Jun 2006 21:03:26 -0000
***************
*** 21,26 ****
--- 21,31 ----
# a shared library (PR gdb/1555, was PR shlib/1280, shlib/1237).
# Tested on ppc-yellowdog-linux (Yellow Dog Linux 3.0 3.2.2-2a)
+ if [target_info exists bare_board] then {
+ verbose "Skipping gdb1555.exp because of bare_board."
+ return
+ }
+ if $tracelevel then {
strace $tracelevel
}
Index: gdb/testsuite/gdb.base/start.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/start.exp,v
retrieving revision 1.1
diff -c -3 -p -r1.1 start.exp
*** gdb/testsuite/gdb.base/start.exp 9 Feb 2005 19:58:23 -0000 1.1
--- gdb/testsuite/gdb.base/start.exp 9 Jun 2006 21:03:26 -0000
***************
*** 14,19 ****
--- 14,24 ----
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + if [target_info use_gdb_stub] {
+ verbose "Skipping start.exp because of use_gdb_stub."
+ return
+ }
+ if $tracelevel then {
strace $tracelevel
}


--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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