1

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.

4

2 回答 2

0

您可以在 *Nix 系统上运行此命令来告诉您包含哪些库及其内存地址。

ldd /path/to/your/binary
于 2010-01-20T21:33:50.657 回答
0

如果您可以简单地重新启动该过程,我相信 AIX 有一个 strace 命令(我知道它有一个等价的命令,但已经有几年了)。在 sys 调用跟踪输出上运行“grep \.so”以准确查看它打开的文件。

于 2010-01-20T21:43:01.257 回答