免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1921 | 回复: 2
打印 上一主题 下一主题

调试嵌入式设备时 core文件 在哪里? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-12 17:46 |只看该作者 |倒序浏览
[wang@wang shellscript]$ /usr/local/arm-linux/bin/arm-linux-gdb -q
(gdb) file /home/wang/master/master.exe
Reading symbols from /home/wang/master/master.exe...done.
(gdb) target remote 192.168.1.203:2323
Remote debugging using 192.168.1.203:2323

Cannot access memory at address 0x0
0x40001b80 in ?? ()
(gdb)
(gdb) info b
No breakpoints or watchpoints.
(gdb) bt
#0  0x40001b80 in ?? ()
Cannot access memory at address 0x0
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
Cannot access memory at address 0x5a4
0x40046ca4 in ?? ()
(gdb) Quit
(gdb) q
The program is running.  Exit anyway? (y or n) y
[wang@wang shellscript]$
然后在设备上只有/proc/sys/net/core
本地文件夹 shellscript 和/home/wang/master里面 都没有 /usr/local/arm-linux/bin 里面也没有
怎么回事?



[wang@wang shellscript]$ ulimit -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 2560
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 2560
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

[ 本帖最后由 wang9736 于 2007-9-12 17:54 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-09-13 08:21 |只看该作者
没人鼓捣嵌入式?

论坛徽章:
0
3 [报告]
发表于 2007-09-13 16:52 |只看该作者
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
Cannot access memory at address 0x5a4
0x40046ca4 in ?? ()


Segmentation fault. 后面没有 core dump 是不是因为这个?那应该用什么方法查找此处的错误?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP