diff options
author | Tom de Vries <tdevries@suse.de> | 2023-03-10 16:34:04 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-03-10 16:34:04 +0100 |
commit | 69b956fbe93e5283d8145edf4c86fde827a77c7b (patch) | |
tree | 49e50a760c9566ed105b208f4eb2c6965d103fbe /gdb/testsuite | |
parent | 6349d27e30a6495830e27c64271168e921c622a0 (diff) | |
download | gdb-69b956fbe93e5283d8145edf4c86fde827a77c7b.zip gdb-69b956fbe93e5283d8145edf4c86fde827a77c7b.tar.gz gdb-69b956fbe93e5283d8145edf4c86fde827a77c7b.tar.bz2 |
[gdb/testsuite] Fix gdb.python/py-event-load.exp for remote target
Fix test-case gdb.python/py-event-load.exp for target board
remote-gdbserver-on-localhost using gdb_download_shlib.
Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.python/py-event-load.exp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.python/py-event-load.exp b/gdb/testsuite/gdb.python/py-event-load.exp index ac2331c..1375cf6 100644 --- a/gdb/testsuite/gdb.python/py-event-load.exp +++ b/gdb/testsuite/gdb.python/py-event-load.exp @@ -36,20 +36,21 @@ if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ set testfile2 py-events-shlib set srcfile2 ${testfile2}.c set binfile2 [standard_output_file ${testfile2}.so] -set binfile2_dlopen [shlib_target_file ${testfile2}.so] if {[gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" \ ${binfile2} {debug}] != ""} { untested "failed to compile shared library" return -1 } +set binfile2_dlopen [gdb_download_shlib $binfile2] + clean_restart $testfile if {![runto_main]} { return } -gdb_test_no_output "set var libname = \"$binfile2_dlopen\"" +gdb_test_no_output "set var libname = \"$binfile2_dlopen\"" "set var libname" set pyfile [gdb_remote_download host ${srcdir}/${subdir}/py-event-load.py] gdb_test_no_output "source ${pyfile}" "load python file" |