+2011-10-17 Joseph Myers <joseph@codesourcery.com>
+
+ * lib/gdb.exp (gdb_test_multiple): Expect newline and secondary
+ prompt for each extra line in command.
+
2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.dwarf2/dw2-simple-locdesc.exp (p &s.shl): KFAIL it.
set result -1
set string "${command}\n";
if { $command != "" } {
+ set multi_line_re "\[\r\n\] *>"
while { "$string" != "" } {
set foo [string first "\n" "$string"];
set len [string length "$string"];
# command output is not lost for pattern matching
# - guo
gdb_expect 2 {
- -notransfer -re "\[\r\n\]" { verbose "partial: match" 3 }
+ -notransfer -re "$multi_line_re$" { verbose "partial: match" 3 }
timeout { verbose "partial: timeout" 3 }
}
set string [string range "$string" [expr $foo + 1] end];
+ set multi_line_re "$multi_line_re.*\[\r\n\] *>"
} else {
break;
}