-# Copyright 2008, 2009 Free Software Foundation, Inc.
+# Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# This file was updated by Jan Kratochvil <jan.kratochvil@redhat.com>.
# This test only works on Linux
-if { ![isnative] || [is_remote host] || ![istarget *-linux*] } {
+if { ![isnative] || [is_remote host] || [target_info exists use_gdb_stub]
+ || ![istarget *-linux*] } {
continue
}
gdb_test "bt" ".*sleep.*main.*" "$threadtype: attach2 to stopped bt"
}
# This breakpoint is there for old/non-x86 kernels not restarting syscalls.
- gdb_breakpoint [gdb_get_line_number "Second sleep"]
+ gdb_breakpoint $srcfile:[gdb_get_line_number "Second sleep"]
set test "$threadtype: attach2 continue"
- send_gdb "continue\n"
- gdb_expect {
- -re "Continuing"
- { pass "continue ($test)" }
- timeout
- { fail "continue ($test) (timeout)" }
+ gdb_test_multiple "continue" "continue ($test)" {
+ -re "Continuing" {
+ pass "continue ($test)"
+ }
}
# For this to work we must be sure to consume the "Continuing."