Make gdb_load_shlibs return the destination path of the library
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / shreloc.exp
index 2baf67615ac39b6b85aa16d8ef087f3a1b8daa3b..124fca8b048c9609468ef9633aefb0eb05692457 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2003-2013 Free Software Foundation, Inc.
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -72,7 +72,8 @@ if { [gdb_compile_shlib $lib1src $lib1_sl $lib_opts] != ""} {
 # Start with a fresh gdb.
 
 clean_restart $binfile
-gdb_load_shlibs $lib1_sl $lib2_sl
+gdb_load_shlibs $lib1_sl
+gdb_load_shlibs $lib2_sl
 
 # Load up the shared objects
 if ![runto_main] then {
@@ -221,7 +222,11 @@ proc check_different {var msymfile} {
     return 1
 }
 
-set msymfile [standard_output_file shreloc.txt]
+if [is_remote host] {
+    set msymfile shreloc.txt
+} else {
+    set msymfile [standard_output_file shreloc.txt]
+}
 
 if [send_gdb_discard "maint print msymbols ${msymfile}"] {
     if {[check_different "static_var_\[12\]" "${msymfile}"]} {
This page took 0.026224 seconds and 4 git commands to generate.