diff mbox

[testsuite,committed] fix shared library load in gdb.base/global-var-nested-by-dso.exp

Message ID 55FC3750.4070908@codesourcery.com
State New
Headers show

Commit Message

Sandra Loosemore Sept. 18, 2015, 4:09 p.m. UTC
This patch fixes a problem I saw in remote-host testing where GDB could 
not find the shared libraries for this testcase.  It was missing a call 
to gdb_load_shlibs to do that, and I think adding one is sufficiently 
obvious that I've gone ahead and committed this patch.

-Sandra
diff mbox

Patch

diff --git a/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp b/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp
index a42ff49..bc94cba 100644
--- a/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp
+++ b/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp
@@ -45,6 +45,7 @@  if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable \
 }
 
 clean_restart $binfile
+gdb_load_shlibs $binfile_lib1 $binfile_lib2
 
 if { ![runto_main] } {
   return -1