【发布时间】:2016-04-15 17:21:14
【问题描述】:
我已经通过 pkg install gdb-7.11 ... 安装了 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/系统/通用 i386
提前致谢。
【问题讨论】:
-
我已经安装了全新的 freebsd 10.3 x86 并安装了 gdb 7.11,但仍然是同样的错误!很奇怪。
-
我在 x86(32 位)上重现了这个错误。从源代码构建 (
/usr/ports/devel/gdb) 会生成一个工作版本。 -
是的,谢谢,当我从端口复制时,它成功了,这很奇怪......