* gdb.base/charset.exp: Only send a control-C if we see a new
authorJim Blandy <jimb@codesourcery.com>
Fri, 18 Jun 2004 23:12:54 +0000 (23:12 +0000)
committerJim Blandy <jimb@codesourcery.com>
Fri, 18 Jun 2004 23:12:54 +0000 (23:12 +0000)
prompt and incomplete command.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/charset.exp

index 6627335..afd7121 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-18  Jim Blandy  <jimb@redhat.com>
+
+       * gdb.base/charset.exp: Only send a control-C if we see a new
+       prompt and incomplete command.
+
 2004-06-18  Michael Chastain  <mec.gnu@mindspring.com>
 
        * gdb.cp/pr-574.cc: Add copyright notice.
index 95021b4..588bf05 100644 (file)
@@ -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"