info-shared.exp: Replace libs=-ldl with shlib_load
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 24 Apr 2018 14:14:14 +0000 (10:14 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 24 Apr 2018 14:14:27 +0000 (10:14 -0400)
commit0a8ddac418d3e8e12a1bb51c3b0da90155f83403
treec4ae6bd805a7106fd54735fb7a3e4698d778a8c0
parente427af1889e6d169c3390f6960f1efdd08dca883
info-shared.exp: Replace libs=-ldl with shlib_load

As reported in PR 23104, -ldl doesn't work on FreeBSD.  Replace it with
shlib_load, which adds the right flags for dynamic library loading based
on the current target platform.

The test still passes on Linux, and should now pass on FreeBSD, though I
did not test personally.

gdb/testsuite/ChangeLog:

PR gdb/23104
* gdb.base/info-shared.exp: Replace libs=-ldl with shlib_load.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/info-shared.exp