aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/charset.exp
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-06-18 23:12:54 +0000
committerJim Blandy <jimb@codesourcery.com>2004-06-18 23:12:54 +0000
commit1b413552e1d35e35bf9c58597e0db1c3ce5f803f (patch)
tree6b56cdb59d18eba2326028ffaf96712e7e435044 /gdb/testsuite/gdb.base/charset.exp
parent782263ab3ac9ffeed8ac469a906f898668212b6c (diff)
downloadgdb-1b413552e1d35e35bf9c58597e0db1c3ce5f803f.zip
gdb-1b413552e1d35e35bf9c58597e0db1c3ce5f803f.tar.gz
gdb-1b413552e1d35e35bf9c58597e0db1c3ce5f803f.tar.bz2
* gdb.base/charset.exp: Only send a control-C if we see a new
prompt and incomplete command.
Diffstat (limited to 'gdb/testsuite/gdb.base/charset.exp')
-rw-r--r--gdb/testsuite/gdb.base/charset.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/charset.exp b/gdb/testsuite/gdb.base/charset.exp
index 95021b4..588bf05 100644
--- a/gdb/testsuite/gdb.base/charset.exp
+++ b/gdb/testsuite/gdb.base/charset.exp
@@ -140,7 +140,7 @@ gdb_expect {
# We got some output that ended with a regular prompt
fail "get valid character sets"
}
- -re "^set charset.*$" {
+ -re ".*$gdb_prompt set charset.*$" {
# We got some other output, send a cntrl-c to gdb to get us back
# to the prompt.
send_gdb "\003"