The wording is completely unclear: - (
Suppose your target is loaded /usr/lib/libfoo.so, and on the host (where GDB is running) you have a copy of the entire target tree in /tmp/host. That is, a copy of target /usr/lib/libfoo.sois on node at /tmp/host/usr/lib/libfoo.so.
Then the following commands are almost equivalent:
set solib-absolute-prefix /tmp/host
set solib-search-path /tmp/host/usr/lib
Now consider what happens if you also have /usr/local/lib/libbar.soon the target and a copy of it in /tmp/host/usr/local/lib/libbar.so.
solib-absolute-prefix, , - libbar.so, solib-search-path :
set solib-search-path /tmp/host/usr/lib:/tmp/host/usr/local/lib
, $ROOT, solib-absolute-prefix $ROOT, .
"" , solib-search-path GDB - .