Let’s assume you have a coredump to analyze, and the shared libs are at another location.
Command | Description |
---|---|
info sharedlibrary | Shows the names and paths of the loaded shared libraries. |
set solib-absolute-prefix set sysroot |
Sets a prefix/sysroot to search for shared libraries. |
set solib-search-path | Sets additional directories to search for shared libraries. |
set debug-file-directory | Sets separated/stripped debug symbols. |
set substitute-path | Sets directories to search for source code. |
- If you want to change all or just the system shared libs, use set solib-absolute-prefix.
- If you want to change your local but not the system shared libs, use set solib-search-path.