Substitute a directory path when loading shared libraries.
idb set solib-path-substitute dir_path replacement_dir_path
dir_path |
The shared library directory path specified in the debuggee. |
replacement_dir_path |
The directory that replaces dir_path. |
This command is only available when debugging a remote target.
This command replaces a directory path that is specified in the debuggee's binary when loading shared libraries.
Use this command if you want the debugger to search for shared libraries in a non-standard location.
The following command defines the local copy of the main image:
(idb) file ~/src/foo.exe
The following command defines the actual binary to run:
(idb) idb file-remote /usr/tmp/foo.exe
The following command tells the debugger that when the actual target specified in the binary is /usr/lib/foo.so, the debugger should look in /tmp/shlib/foo.so:
(idb) idb set solib-path-substitute /usr/lib /tmp/shlib
Copyright © 1996-2010, Intel Corporation. All rights reserved.