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]
Other format: [Raw text]

RFC: Use gdb_run_cmd in killed.exp


This patch lets killed.exp run on a remote stub which supports threads. 
It doesn't change anything on native targets, but on remote targets
gdb_run_cmd becomes a gdb_load and a "continue", instead of just a "run".

Barring objections I'll commit this in a few days.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2003-09-29  Daniel Jacobowitz  <drow@mvista.com>

	* gdb.threads/killed.exp: Use gdb_run_cmd.

Index: gdb.threads/killed.exp
===================================================================
RCS file: /big/fsf/rsync/src-cvs/src/gdb/testsuite/gdb.threads/killed.exp,v
retrieving revision 1.5
diff -u -p -r1.5 killed.exp
--- gdb.threads/killed.exp	14 Jan 2003 18:13:11 -0000	1.5
+++ gdb.threads/killed.exp	28 Sep 2003 17:10:07 -0000
@@ -75,7 +75,15 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
-gdb_test "run" "" "run program to completion"
+gdb_run_cmd
+gdb_expect {
+  -re "$gdb_prompt $" {
+    pass "run program to completion"
+  }
+  timeout "$gdb_prompt $" {
+    fail "run program to completion"
+  }
+}
 
 # Try to quit.
 send_gdb "quit\n"


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