[gdb/testsuite] Fix gdb.base/info_sources_2.exp for remote target
authorTom de Vries <tdevries@suse.de>
Tue, 15 Nov 2022 14:24:54 +0000 (15:24 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 15 Nov 2022 14:24:54 +0000 (15:24 +0100)
commit9af7a370030a3729da4efbf26b0c746420408b3d
treebac100aaa81b89e94fb76e7a2a45ce869211d523
parentb108c563f0f8a74813cae6b8e0e2b0089de32ba1
[gdb/testsuite] Fix gdb.base/info_sources_2.exp for remote target

With test-case gdb.base/info_sources_2.exp and target board
remote-gdbserver-on-localhost (using REMOTE_TARGET_USERNAME) we run into some
failures.

Fix these by adding the missing gdb_load_shlib.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/info_sources_2.exp