GDB错误:Cannot find bounds of current function
来源:互联网 发布:铁岭金石网络会所 编辑:程序博客网 时间:2024/06/06 09:56
http://blog.csdn.net/zoomdy/article/details/17249165
mingdu.zheng <at> gmail <dot> com
使用arm-eabi-gdb加载应用程序调试,运行后出现错误:
$ arm-eabi-gdb httpd_sequential0x00008766 in ?? ()(gdb) nCannot find bounds of current function
看起来像是gdb找不到应用程序的调试符号,检查编译选项已经添加了调试相关选项。
使用file命令检查加载的文件:
$ file httpd_sequentialhttpd_sequential: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped
编译应用程序的gcc与调试程序的gdb不匹配,arm-eabi-gdb需要的是arm-eabi-gcc编译生成的映像文件。gdb居然不检查ELF文件头给出错误报告。
使用正确的gcc编译其编译后重新使用file命令检查文件类型:
$ file httpd_sequentialhttpd_sequential: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, not stripped
使用匹配的gcc编译的应用程序调试起来就不会有问题。
在嵌入式系统开发过程通常需要交叉编译,必须小心处理所使用的编译器和调试器,特别是在使用Eclipse等集成开发环境的情况下要仔细核对开发环境使用的是那个编译器和调试器。默认情况下Eclipse调用的是本地编译器和调试器,而不是交叉编译器。
0 0
- GDB错误:Cannot find bounds of current function
- GDB调试错误(运行异常): Cannot find bounds of current function
- class view中的一个方法实现时出现下面错误 cannot find the definition (implementation) of this function
- cannot find the definition (implementation) of this function
- vc6 cannot find the definition (implementation) of this function
- Cannot find the definition(implementation) of this function
- cannot find the definition (implementation) of this function 解决方法
- Cannot find the definition (implementation) of this function
- Cannot find the definition(implementation) of this function
- spring框架 错误:Cannot find the declaration of element 'beans'.
- VirtualBox安装VBoxLinuxAdditions错误:unable to find the sources of your current linux kernel
- VirtualBox安装VBoxLinuxAdditions错误:unable to find the sources of your current linux kernel
- VirtualBox安装VBoxLinuxAdditions错误:unable to find the sources of your current linux kernel
- cannot find -lncursesw 错误
- cannot find -lmysqlclient_r 错误
- Cannot find FaceContext错误
- 手动添加函数时,提示Cannot find the definition (implementation) of this function
- VC ++中添加了一个新类后cannot find the definition (implementation) of this function
- 常用的几个第三方 Python 库
- 如何成为一个C++高级程序员
- 数据结构 循环队列的基本操作
- 《C++沉思录》-第九章-- 一个课堂练习的分析(上)
- Java loadlibrary分析及如何unload
- GDB错误:Cannot find bounds of current function
- 数据结构 串(顺序存储)的基本操作
- windows怎么与虚拟机linux共享?
- Graph Databases—Chapter 2 The NOSQL Phenomenon阅读笔记
- Android ProgressBar实现方法列表
- 数据结构 串(链式存储)的基本操作
- MapReduce中第三方jar的存放
- 数据结构 字串的模式匹配 KMP算法
- 限制输入框只能输入数字