This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[testsuite, committed] fix shared library load in gdb.base/global-var-nested-by-dso.exp
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: gdb-patches <gdb-patches at sourceware dot org>
- Date: Fri, 18 Sep 2015 10:09:52 -0600
- Subject: [testsuite, committed] fix shared library load in gdb.base/global-var-nested-by-dso.exp
- Authentication-results: sourceware.org; auth=none
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
2015-09-18 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.base/global-var-nested-by-dso.exp: Call gdb_load_shlibs.
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