info sharedlibrary command

来源:互联网 发布:智阳网络口碑 编辑:程序博客网 时间:2024/06/07 13:34

info sharedlibrary command

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

Syntax

info sharedlibrary
info share

Remarks

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 thesharedlibrary command.

Examples

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/ld-linux.so.2
0xb7fd83a0 0xb7fd84c8 Yes /home/testuser/libtest/libTest.so
0xb7e30f10 0xb7f655cc Yes /lib/i386-linux-gnu/libc.so.6

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 theinfo sharedlibrary command using the GDB Session window.

See also

Shared library commands,set auto-solib-add,set solib-search-path,set stop-on-solib-events,set sysroot,sharedlibrary

0 0
原创粉丝点击