diff options
Diffstat (limited to 'gdb/testsuite/gdb.ctf/funcreturn.exp')
-rw-r--r-- | gdb/testsuite/gdb.ctf/funcreturn.exp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.ctf/funcreturn.exp b/gdb/testsuite/gdb.ctf/funcreturn.exp index 64ed031f693..ef1fe90e527 100644 --- a/gdb/testsuite/gdb.ctf/funcreturn.exp +++ b/gdb/testsuite/gdb.ctf/funcreturn.exp @@ -30,14 +30,17 @@ standard_testfile whatis.c set opts {} lappend opts additional_flags=-gctf lappend opts ldflags=-Wl,--export-dynamic -lappend opts ldflags=-Wl,--strip-debug lappend opts nowarning -if { [prepare_for_testing "failed to prepare" ${testfile} \ +if { [build_executable "failed to prepare" ${testfile} \ [list $srcfile] $opts] } { return 0 } +clean_restart +gdb_test_no_output "set always-read-ctf on" +gdb_load $binfile + # test print command with functions return type set void "(void|)" gdb_test "print v_char_func" \ |