diff options
Diffstat (limited to 'gdb/testsuite/gdb.threads/bp_in_thread.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/bp_in_thread.exp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.threads/bp_in_thread.exp b/gdb/testsuite/gdb.threads/bp_in_thread.exp index 0ec7054e..7b6182c 100644 --- a/gdb/testsuite/gdb.threads/bp_in_thread.exp +++ b/gdb/testsuite/gdb.threads/bp_in_thread.exp @@ -18,18 +18,14 @@ # GDB reported a SIGTRAP signal in a random thread when hitting # a breakpoint. -set testfile "bp_in_thread" -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} +standard_testfile -if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "incdir=${objdir}"]] != "" } { +if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } { return -1 } -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} +clean_restart $binfile + runto_main gdb_test "break noreturn" \ |