Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Fix testsuite gdb.base/bang.exp to work with remote targets
@ 2004-02-02 20:26 Fred Fish
  2004-02-02 20:32 ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Fred Fish @ 2004-02-02 20:26 UTC (permalink / raw)
  To: gdb-patches; +Cc: fnf

When using a remote target, like SID, you have to "continue" after
a "gdb_load", not "run".  Add support for this case.

2004-02-02  Fred Fish  <fnf@redhat.com>

	* gdb.base/bang.exp: Handling continuing on remote targets after a
	load.

Index: gdb.base/bang.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/bang.exp,v
retrieving revision 1.1
diff -u -p -r1.1 bang.exp
--- gdb.base/bang.exp	24 Jun 2003 22:04:06 -0000	1.1
+++ gdb.base/bang.exp	2 Feb 2004 20:20:04 -0000
@@ -1,4 +1,4 @@
-# Copyright 2003 Free Software Foundation, Inc.
+# Copyright 2003, 2004 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -35,7 +35,10 @@ gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
 # Verify that we can run the program and that it terminates normally.
-gdb_test "run" \
-         ".*Program exited normally\." \
-         "run program"
+# For remote targets we simply continue after loading.
 
+if [target_info exists use_gdb_stub] {
+  gdb_test "continue" ".*Program exited normally\." "run program"
+} else {
+  gdb_test "run"      ".*Program exited normally\." "run program"
+}



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-02-02 21:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-02 20:26 [RFA] Fix testsuite gdb.base/bang.exp to work with remote targets Fred Fish
2004-02-02 20:32 ` Daniel Jacobowitz
2004-02-02 20:56   ` Fred Fish
2004-02-02 21:01     ` Daniel Jacobowitz
2004-02-02 21:17       ` Fred Fish
2004-02-02 21:23         ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox