“ gdb程序core.11230”
是将核心加载到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中调试时,不会显示确切的行号和源代码文件。使用二进制和核心进行常规调试不是这种情况。
我也没有源文件。我只能访问核心转储和单独的调试文件。
我在做什么错。请一些专家建议吗?