(gdb) info sharedlibrary From To Syms Read Shared Object Library No linux-vdso64.so.1 0x00000fffa924ce80 0x00000fffa927e8a8 Yes /tmp/usr/local/apr/lib/libaprutil-1.s 0x00000fffa91f7940 0x00000fffa922aa18 Yes /tmp/usr/local/apr/lib/libexpat.so.0 0x00000fffa9192e60 0x00000fffa91ca0b8 Yes /tmp/usr/local/apr/lib/libapr-1.so.0 No /opt/at7.0-5-rc1/lib64/power7/librt.s No /opt/at7.0-5-rc1/lib64/power7/libcrypt No /opt/at7.0-5-rc1/lib64/power7/libdl.s No /opt/at7.0-5-rc1/lib64/power7/libpthre No /opt/at7.0-5-rc1/lib64/power7/libc.so No /opt/at7.0-5-rc1/lib64/ld64.so.1 No /opt/at7.0-5-rc1/lib64/power7/libnss_f 0x00000fffa8ea0c00 0x00000fffa8ea1878 Yes /tmp/usr/local/modules/mod_authn_file 0x00000fffa8e810a0 0x00000fffa8e82108 Yes /tmp/usr/local/modules/mod_authn_core. 0x00000fffa8e60da0 0x00000fffa8e61bb0 Yes /tmp/usr/local/modules/mod_authz_host. 0x00000fffa8e40f40 0x00000fffa8e41ed0 Yes /tmp/usr/local/modules/mod_authz_group 0x00000fffa8e208e0 0x00000fffa8e20f18 Yes /tmp/usr/local/modules/mod_authz_user. 0x00000fffa8e019e0 0x00000fffa8e046d8 Yes /tmp/usr/local/modules/mod_authz_core. ...
如用例 2 所示,可以在调试原生编译的可执行程序的 PowerLinux 服务器上本地或远程调试交叉编译的可执行程序。另外,可以注意到二进制程序使用 –g 选项来编译,以便生成调试信息。