* gdb.base/charset.exp: Only send a control-C if we see a new

prompt and incomplete command.
This commit is contained in:
Jim Blandy 2004-06-18 23:12:54 +00:00
parent 782263ab3a
commit 1b413552e1
2 changed files with 6 additions and 1 deletions

View 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.

View 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"