![]() ![]() Reading symbols from /usr/lib/debug/lib/i386-linux-gnu/ld-2.15.so.done.īreakpoint 1 at 0x80484ed: file main.cpp, line 7. Remote debugging using deploy_machine:2000 In this example we will debug a simple shared library with gdbserver: The default value for the solib-search-path variable is "." that corresponds to the working directory of GDB (directory where GDB was launched unless changed using the cd command). if you have copied /home/testuser/libtest/libTest.so on the computer with GDB to /tmp/libTest.so on the computer with GDBServer, you will need to specify set solib-search-path /home/testuser/libtest in order to get the symbols loaded. ![]() If the shared library path on the remote computer and the GDB computer is different, GDB won't automatically find the local copy of the library and load its symbols unless the directory containing it is specified in set solib-search-path.Į.g. ![]() This command is useful when debugging remote programs via gdbserver. Parameters Directories Specifies the list of directories separated by colon (:) on Linux or semicolon ( ) on Windows where GDB will look for shared libraries when searching for symbols. Set solib-search-path show solib-search-path ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |