This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Fix `default.exp: run' against extended-remote gdbserver
- From: Pedro Alves <palves at redhat dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Date: Thu, 02 Feb 2012 15:44:02 +0000
- Subject: Fix `default.exp: run' against extended-remote gdbserver
This fixes:
FAIL: gdb.base/default.exp: run "r" abbreviation
FAIL: gdb.base/default.exp: run
against extended-remote gdbserver. Will apply shortly.
gdb/testsuite/
2012-02-02 Pedro Alves <palves@redhat.com>
* gdb.base/default.exp (run "r" abbreviation, run): Add
extended-remote expected output.
---
diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp
index d0a8295..13cb1ea 100644
--- a/gdb/testsuite/gdb.base/default.exp
+++ b/gdb/testsuite/gdb.base/default.exp
@@ -441,6 +441,8 @@ You must specify a function name to run, and arguments if any"\
{ pass "run \"r\" abbreviation" }
-re "Don't know how to run. Try \"help target\"..*$gdb_prompt $"\
{ pass "run \"r\" abbreviation" }
+ -re "Starting program: .*Running the default executable on the remote target failed; try \"set remote exec-file\"?.*$gdb_prompt $"\
+ { pass "run \"r\" abbreviation" }
}
}
@@ -468,6 +470,8 @@ You must specify a function name to run, and arguments if any"
{ pass "run" }
-re "Don't know how to run. Try \"help target\"..*$gdb_prompt $"\
{ pass "run" }
+ -re "Starting program: .*Running the default executable on the remote target failed; try \"set remote exec-file\"?.*$gdb_prompt $"\
+ { pass "run" }
}
}