[Bug 209061] devel/gdb: Fix gdb/i386 built on older kernels
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Apr 29 18:49:33 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209061
--- Comment #3 from commit-hook at 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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list