#
# run until the breakpoint at main is hit
#
-if [istarget "*-*-vxworks"] then {
+if [istarget "*-*-vxworks*"] then {
send "run vxmain \"2\"\n"
set timeout 120
} else {
#
# run until the breakpoint at a line number
#
-gdb_test continue "Continuing\\..*Breakpoint \[0-9\]+, main \\(argc=.*, argv=.*, envp=.*\\) at .*$srcfile:60.*60\[\t \]+printf.*factorial" \
+gdb_test continue "Continuing\\..*Breakpoint \[0-9\]+, main \\(argc=.*, argv=.*, envp=.*\\) at .*$srcfile:60.*60\[\t \]+printf.*factorial.*" \
"run until breakpoint set at a line number"
#
# Run until we call factorial with 6
- if [istarget "*-*-vxworks"] then {
+ if [istarget "*-*-vxworks*"] then {
send "run vxmain \"6\"\n"
} else {
send "run\n"
test_next_with_recursion
# Reset the default arguments for VxWorks
-if [istarget "*-*-vxworks"] then {
+if [istarget "*-*-vxworks*"] then {
set timeout 10
send "set args main\n"
expect -re ".*$prompt $" {}
# Print scope1.c::foo::funclocal, which is 3
- setup_xfail "mips-*-*" 1843
send "print foo::funclocal\n"
expect {
-re "\\\$$decimal = 3\r\n$prompt $" { pass "print foo::funclocal" }
}
}
- setup_xfail "mips-*-*" 1843
send "print foo::funclocal\n"
expect {
-re "\\\$$decimal = 3\r\n$prompt $" { pass "print foo::funclocal" }
# Print scope1.c::foo::funclocal, which is 3
- setup_xfail "mips-*-*" 1843
send "print foo::funclocal\n"
expect {
-re "\\\$$decimal = 3\r\n$prompt $" { pass "print foo::funclocal" }
# This test will only fail if the file was compiled by gcc, but
# there's no way to check that.
- setup_xfail "mips-*-*" 1868
setup_xfail "a29k-*-udi" 2423
send "cont\n"
expect {
-re "Break.* marker4.*at .*:$decimal.*$prompt $" {
+ pass "continue to marker4"
send "up\n"
expect {
- -re ".*$prompt $" {}
+ -re ".*$prompt $" { pass "up from marker4" }
timeout { fail "up from marker4" ; return }
}
}
gdb_reinitialize_dir $srcdir/$subdir
gdb_load $objdir/$subdir/$binfile
-if [istarget "*-*-vxworks"] {
+if [istarget "*-*-vxworks*"] {
set timeout 120
}
}
if [runto autovars] then { test_at_autovars }
-if [istarget "*-*-vxworks"] {
+if [istarget "*-*-vxworks*"] {
set timeout 120
}