“gdb 程序核心.11230”
是将core加载到gdb的实际格式。但我没有“程序”二进制文件。相反,我有单独的调试文件和核心。所以我正在加载 .debug 文件而不是二进制文件
“gdb coredump.debug coredump_core.dump”
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/coredump.debug...done.
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffdf0f23000
Core was generated by `./coredump'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000400848 in main ()
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.212.0.1.el6.x86_64 libgcc-4.4.7-23.0.1.el6.x86_64
(gdb)
(gdb) list +
1 coredump.cpp: No such file or directory.
in coredump.cpp
(gdb) bt
在 GDB 中调试时,它不会显示确切的行号和源代码文件。使用二进制和核心进行正常调试并非如此。
我也没有源文件。我只能访问核心转储和单独的调试文件。
我究竟做错了什么。请高手给点建议?