gdb调试应用程序
2016-03-24 12:09
218 查看
gdb调试应用程序
小狼@http://blog.csdn.net/xiaolangyangyang
一、gdb在PC机调试本地程序
# gdb helloworld
用GDB调试程序
二、gdb在PC机调试ARM程序
Taget: # ./gdbserver 192.168.1.10:2345 helloworld
Host: # arm-linux-gdb helloworld
> target remote 192.168.1.128:2345
三、coredump使用
在ARM板上: # ulimit -c unlimited
执行应用程序,程序出错时会在当前目录下生成core文件
在PC机上: 将core文件拷贝到PC机上
# arm-linux-gdb ./helloworld ./core
小狼@http://blog.csdn.net/xiaolangyangyang
一、gdb在PC机调试本地程序
# gdb helloworld
用GDB调试程序
二、gdb在PC机调试ARM程序
Taget: # ./gdbserver 192.168.1.10:2345 helloworld
Host: # arm-linux-gdb helloworld
> target remote 192.168.1.128:2345
三、coredump使用
在ARM板上: # ulimit -c unlimited
执行应用程序,程序出错时会在当前目录下生成core文件
在PC机上: 将core文件拷贝到PC机上
# arm-linux-gdb ./helloworld ./core
相关文章推荐
- Ajax轮询消息自动提示(消息盒子)
- 酷狗音乐模仿还在继续之UI界面源码下载
- Lua_第18 章 Table 库
- 关于Makefile的正确使用
- oracle11g静默安装20140623
- xcode修改工程名
- 如何通过热修复,搞定开发中的那些 Bug?
- “模仿”还是“创新”IT行业的抄袭事件
- (原创)jquery插件-可选可填控件
- LeetCode 338 Counting Bits(位运算)
- 如何通过热修复,搞定开发中的那些 Bug?
- TCP/IP面试题整理
- android.mk指定目标文件路径
- Reverse Words in a String
- Photon开发实战(2)——开发框架、第一个Photon程序
- XML 实体扩展攻击
- linux 读取input输入设备demo
- C++变量、表达式及赋值语句
- XML 实体扩展攻击
- PHP错误机制知识汇总