您的位置:首页 > 其它

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: