Is there a way to list all the loaded modules using gdb, just like Windbg, that automatically shows all the loaded modules. Its okay if there is no one word answer, I'll be happy to work things out myself if someone could please provide me a pointer.
Asked
Active
Viewed 1.5k times
3 Answers
14
i sh
roughly <=> lm
or x *!
in WinDbg

Alex Budovski
- 17,947
- 6
- 53
- 58
-
but this only provides the start and end adress of the module, the !dumpmodule can not be used further – zinking Dec 07 '13 at 02:39
11
Does ldd
from the command line tell you what you need?
Actually, scratch that idea. Try i shared
. See http://book.opensourceproject.org.cn/embedded/embeddedprime/opensource/0136130550/ch15lev1sec3.html.

Andrew
- 11,894
- 12
- 69
- 85
2
If you are working on Windows, and you just want to see what was loaded, you can use Process Explorer. Select the process from the list, and from the menu, select View -> Lower Pane View -> DLLs. The lower pane will then show all the DLLs used by that process.

Ben
- 1,003
- 1
- 11
- 18