Supported on windows
Supported on linux
Not supported on embedded
Supported on android

info sharedlibrary command

Shows information about the loaded libraries, their addresses and state of the debugging symbols.


info sharedlibrary
info share


The info sharedlibrary command is only valid when the debugged application has already started.

If the info sharedlibrary command reveals that some of the symbols for the currently loaded libraries are not loaded, you can load them manually using the sharedlibrary command.


This example shows a sample output of the info sharedlibrary command:

(gdb) info sharedlibrary
No shared libraries loaded at this time.
(gdb) start
Temporary breakpoint 1 at 0x80484ed: file main.cpp, line 7.
Starting program: /home/testuser/libtest/testApp
Temporary breakpoint 1, main () at main.cpp:7
7 printf("In main()\n");
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0xb7fde820 0xb7ff6b9f Yes /lib/
0xb7fd83a0 0xb7fd84c8 Yes /home/testuser/libtest/
0xb7e30f10 0xb7f655cc Yes /lib/i386-linux-gnu/

Compatibility with VisualGDB

You can view the information about the shared libraries loaded into your Linux, Android or Windows application using the normal Modules window in Visual Studio. Alternatively you can always issue the info sharedlibrary command using the GDB Session window.

See also