| Index: gdb/testsuite/gdb.base/jit.exp
|
| diff --git a/gdb/testsuite/gdb.base/jit.exp b/gdb/testsuite/gdb.base/jit.exp
|
| index eba8116b7ea19c21095b0c45a7f4796ebe61a87b..3034e6ada3340bc561e3c72f94336910bcc2508a 100644
|
| --- a/gdb/testsuite/gdb.base/jit.exp
|
| +++ b/gdb/testsuite/gdb.base/jit.exp
|
| @@ -13,16 +13,12 @@
|
| # You should have received a copy of the GNU General Public License
|
| # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
| -if $tracelevel {
|
| - strace $tracelevel
|
| -}
|
| -
|
| if {[skip_shlib_tests]} {
|
| untested jit.exp
|
| return -1
|
| }
|
|
|
| -if {[get_compiler_info not-used]} {
|
| +if {[get_compiler_info]} {
|
| warning "Could not get compiler info"
|
| untested jit.exp
|
| return 1
|
| @@ -55,11 +51,8 @@ if { [gdb_compile_shlib ${solib_srcfile} ${solib_binfile} {-fPIC}] != "" } {
|
|
|
| set solib_binfile_target [gdb_download ${solib_binfile}]
|
|
|
| -proc one_jit_test {count match_str} {
|
| - global verbose testfile solib_binfile_target solib_binfile_test_msg pf_prefix
|
| -
|
| - set old_pf_prefix $pf_prefix
|
| - lappend pf_prefix "one_jit_test-$count:"
|
| +proc one_jit_test {count match_str} { with_test_prefix "one_jit_test-$count" {
|
| + global verbose testfile solib_binfile_target solib_binfile_test_msg
|
|
|
| clean_restart $testfile
|
|
|
| @@ -97,9 +90,8 @@ proc one_jit_test {count match_str} {
|
| gdb_continue_to_breakpoint "break here 2"
|
| # All jit librares must have been unregistered
|
| gdb_test "info function jit_function" \
|
| - "All functions matching regular expression \"jit_function\":"
|
| - set pf_prefix $old_pf_prefix
|
| -}
|
| + "All functions matching regular expression \"jit_function\":"
|
| +}}
|
|
|
| one_jit_test 1 "${hex} jit_function_0000"
|
| one_jit_test 2 "${hex} jit_function_0000\[\r\n\]+${hex} jit_function_0001"
|
|
|