tags:

views:

41

answers:

2

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
The question is about those dll that are dynamically loaded with dllopen.
Priyank Bolia
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