Date: Fri, 29 Apr 2016 18:49:32 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 209061] devel/gdb: Fix gdb/i386 built on older kernels Message-ID: <bug-209061-13-1eKeV33BAd@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-209061-13@https.bugs.freebsd.org/bugzilla/> References: <bug-209061-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209061 --- Comment #3 from commit-hook@freebsd.org --- A commit references this bug: Author: jhb Date: Fri Apr 29 18:48:32 UTC 2016 New revision: 414287 URL: https://svnweb.freebsd.org/changeset/ports/414287 Log: MFH: r414115 Fix an issue with gdb triggering assertions in kgdb on i386. The kgdb targets use runtime assertions on native targets to verify that the helper arrays documenting the layout of things like the PCB and trapframe structures match. Ideally these asserts would be compile time assertions, but they cannot be checked at compile time. Instead, they are checked at runtime during gdb startup. However, the layout of the i386 PCB changed when the AVX changes were merged to i386. The constants in the i386 target assume the post-AVX layout, but gdb packages on stable branches might be built against pre-AVX worlds. In that case, those gdb binaries will trigger these assertions on every invocation. As a workaround, disable the PCB-related assertions on pre-AVX worlds. If kgdb is run against a pre-AVX kernel it will not be able to parse the PCB correctly, but userland debugging should work fine. kgdb built against a pre-AVX world but run against an AVX kernel should work fine. PR: 209061 Reported by: trasz Approved by: ports-secteam (junovitch) Changes: _U branches/2016Q2/ branches/2016Q2/devel/gdb/Makefile branches/2016Q2/devel/gdb/files/kgdb/i386fbsd-kern.c --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209061-13-1eKeV33BAd>