How to find which dynamic libs .so are loaded currently by a process, also those dll are dynamically loaded with dllopen. I want to debug a process to find out which libs its using currently.
A:
You can run this command on a *Nix system to tell you what libraries are included and their memory addresses.
ldd /path/to/your/binary
Rook
2010-01-20 21:33:50
The question is about those dll that are dynamically loaded with dllopen.
Priyank Bolia
2010-01-21 03:39:48
A:
If you are at liberty to simply restart the process, I believe AIX has an strace command (I know it has an equivalent otherwise, but it's been a few years). Run a "grep \.so" on the sys call trace output to see exactly which file it opens.
Roboprog
2010-01-20 21:43:01