diff options
author | Tom de Vries <tdevries@suse.de> | 2023-03-07 15:28:52 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-03-07 15:28:52 +0100 |
commit | dfe30a41c8c1237f70a9cc31cc8cc90f1c1a46f6 (patch) | |
tree | 52d90164898219331c4a69b35df095232ace6ba7 /gdb | |
parent | da4cc0cc3674024eaf51e6f98fef9fc6e558426a (diff) | |
download | gdb-dfe30a41c8c1237f70a9cc31cc8cc90f1c1a46f6.zip gdb-dfe30a41c8c1237f70a9cc31cc8cc90f1c1a46f6.tar.gz gdb-dfe30a41c8c1237f70a9cc31cc8cc90f1c1a46f6.tar.bz2 |
[gdb/testsuite] Fix gdb.base/fork-no-detach-follow-child-dlopen.exp for remote target
Fix test-case gdb.base/fork-no-detach-follow-child-dlopen.exp for target board
remote-gdbserver-on-localhost.exp by using gdb_download_shlib and gdb_locate_shlib.
Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.base/fork-no-detach-follow-child-dlopen.exp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/fork-no-detach-follow-child-dlopen.exp b/gdb/testsuite/gdb.base/fork-no-detach-follow-child-dlopen.exp index 6bc734e..94111fe 100644 --- a/gdb/testsuite/gdb.base/fork-no-detach-follow-child-dlopen.exp +++ b/gdb/testsuite/gdb.base/fork-no-detach-follow-child-dlopen.exp @@ -32,14 +32,16 @@ if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $shlib_path {debug}] != "" } { return } -set opts [list shlib_load additional_flags=-DSHLIB_PATH="${shlib_path}"] +set shlib_path_target [gdb_download_shlib $::shlib_path] + +set opts [list shlib_load additional_flags=-DSHLIB_PATH="${shlib_path_target}"] if { [build_executable "failed to prepare" ${testfile} ${srcfile} $opts] } { return } proc do_test {} { clean_restart $::binfile - gdb_load_shlib $::shlib_path + gdb_locate_shlib $::shlib_path gdb_test_no_output "set follow-fork-mode child" gdb_test_no_output "set detach-on-fork off" |