tags:

views:

287

answers:

3

Hello, 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.

+2  A: 

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
A: 

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
+2  A: 

i sh roughly <=> lm or x *! in WinDbg

Alex