我尝试调试一个程序,以在 beaglebone black debian 上查找浮点异常位置,我安装了 libc6 和 libc6-dbg,但仍然
From To Syms Read Shared Object Library
0xb6fda7c0 0xb6ff32b0 Yes (*) /lib/ld-linux.so.3
0xb6f24200 0xb6f8af00 Yes (*) /lib/arm-linux-gnueabi/libm.so.6
0xb6f06668 0xb6f17e74 Yes (*) /lib/arm-linux-gnueabi/libgcc_s.so.1
0xb6dd44a0 0xb6eca348 Yes (*) /lib/arm-linux-gnueabi/libc.so.6
(*): Shared library is missing debugging information.
看起来是这样的。
我的调试目录是: 搜索单独调试符号的目录是“/usr/lib/debug”
浮点异常出现如下
程序收到信号 SIGFPE,算术异常。 来自/lib/arm-linux-gnueabi/libc.so.6 的 raise () 中的 0xb6de9a98
最佳答案
您似乎正在使用 GDB 进行远程调试,可能是在 x86 主机上。
i installed libc6 and libc6-dbg
您需要为arm
安装libc6-dbg
(与您的arm目标libc
版本匹配)。为主机安装libc6-dbg
对你没有好处。
关于c - gdb共享库没有调试信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27755770/