1.生成coredump 文件
根据生成的coredump文件,下载到编译环境中,结合gdb查找符号位,定位挂死位置
/opt/toolchains/gcc-4.7.3-cmc-201308-20140423/bin/mips-linux-uclibc-gdb ./linux_cmts_sym coredump
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=mips-linux-uclibc".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/heshuanglai/project/CMC3219/linux_cmts_sym...done.
warning: core file may not match specified executable file.
[New LWP 231]
warning: Could not load shared library symbols for 9 libraries, e.g. /lib/libdl.so.0.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by `./linux_cmts -cmd -app'.
Program terminated with signal 6, Aborted.
#0 0x2ac81dd0 in ?? ()
(gdb) info sharedlibrary 查看lib连接库
From To Syms Read Shared Object Library
No /lib/libdl.so.0
No /lib/librt.so.0
No /lib/libpthread.so.0
No /lib/libstdc++.so.6