+2000-12-21 Michael Snyder <msnyder@mvstp600e.cygnus.com>
+
+ * gdb.base/finish.exp: Accept '1' instead of \001 from char_func.
+ Add a RE to accept a non-ascii char if one is ever presented.
+
2000-12-20 Fernando Nasser <fnasser@redhat.com>
* lib/mi-support.exp (mi_gdb_start): Test for MI_OUT, not UI_OUT.
"continue to ${type}_func"
send_gdb "finish\n"
gdb_expect {
- -re ".*Value returned is .* = 1 '.001'\r\n$gdb_prompt $" {
+ -re ".*Value returned is .* = 49 '1'\r\n$gdb_prompt $" {
if { $type == "char" } {
pass "finish from char_func"
} else {
- fail "finish from char_func"
+ fail "finish from ${type}_func"
+ }
+ }
+ -re ".*Value returned is .* = \[0123456789\]* '1'\r\n$gdb_prompt $" {
+ if { $type == "char" } {
+ pass "finish from char_func (non-ASCII char set?)"
+ } else {
+ fail "finish from ${type}_func"
}
}
-re ".*Value returned is .* = 1\r\n$gdb_prompt $" {