我安装了gdb 7.11 via,pkg install gdb-7.11 ... 当我尝试运行它时,gdb给了我这个错误;
i386fbsd-kern.c:482: internal-error: _initialize_i386_kgdb_tdep: Assertion `offsetof(struct pcb, pcb_ebx) == i386fbsd_pcb_offset[I386_EBX_REGNUM]' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]
This is a bug, please report it. For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.
i386fbsd-kern.c:482: internal-error: _initialize_i386_kgdb_tdep: Assertion `offsetof(struct pcb, pcb_ebx) == i386fbsd_pcb_offset[I386_EBX_REGNUM]' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) [answered Y; input not from terminal]
Abort (core dumped)
我无法调试我的核心文件,因为我使用的是g ++ 4.9编译器,所以我应该使用7.11 ......
我的系统:FreeBSD local.com 9.2-RELEASE FreeBSD 9.2-RELEASE#0 r255898:Fri Sep 27 03:52:52 UTC 2013 root@bake.isc.freebsd.org:/ usr / obj / usr / src / sys / GENERIC i386
提前致谢。
答案 0 :(得分:0)
乍一看它看起来像是一个ABI问题,但它更像是GDB正在做一些非常愚蠢的事情:它试图将内核后端用于它不知道的内核版本,即使它不需要后端根本 - 因为你正在调试用户空间,而不是内核。
您应该提交关于此的公关(http://bugs.freebsd.org)。