Linux中国论坛's Archiver

name_yangbo 发表于 2007-7-2 14:14

求教:GDB调试core文件

各位大虾,请不吝赐教,小女子的问题如下:
目前使用交叉编译环境进行嵌入式开发,gcc及gdb配置如下:--host=i386-pc-linux-gnu --target=mips-linux-uclibc。

先将程序在host上编译成为可执行文件,load到target目标板上运行,并将target配置成ulimit -c unlimited以产生core文件,然后将core文件送回到host上面,在host上用gdb解析察看问题的所在。

问题是:在host上面运行mips-linux-uclibc-gdb ./b.out core之后得到的结果是:
[swift@CE bo]$ mips-linux-uclibc-gdb ./b.out core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-pc-linux-gnu --target=mips-linux-uclibc"...
Core was generated by `./b.out'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.0...done.
Loaded symbols for /lib/libc.so.0
Reading symbols from /lib/ld-uClibc.so.0...done.
Loaded symbols for /lib/ld-uClibc.so.0
[color=red]#0  0x0080000c in ?? ()[/color]
(gdb) q

总是出现[color=#ff0000]#0  0x0080000c in ?? (),[/color][color=#000000]得不到symbol,请个问指教!谢谢[/color]

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.