c - gdb共享库没有调试信息

标签 c linux debugging gdb sigfpe

我尝试调试一个程序,以在 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/

相关文章:

C编程ftell fseek fread,读取文件大小

c - C 中指针的声明和初始化

MySql 文件大小限制选项

php - 引用 - 这个错误在 PHP 中意味着什么?

debugging - Netbeans 6.7是否无法在Grails应用程序中调试Groovy闭包?

c - 标准输入和标准输出的使用

c - 失败时返回代码。正面还是负面?

linux - 报告中未显示象形文字语言 - 祖鲁语

linux - 我计算机上的网络堆栈是否使用 DMA?

android - android调试器丢失怎么办?