Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List loaded modules using gdb

Tags:

gdb

windbg

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.

like image 303
0fnt Avatar asked Mar 07 '10 05:03

0fnt


3 Answers

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

like image 103
Alex Budovski Avatar answered Dec 13 '22 13:12

Alex Budovski


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.

like image 36
Andrew Avatar answered Dec 13 '22 12:12

Andrew


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.

like image 23
Ben Avatar answered Dec 13 '22 11:12

Ben