Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2016 16:12:26 +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-t2DdtU54iH@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 #2 from commit-hook@freebsd.org ---
A commit references this bug:

Author: jhb
Date: Wed Apr 27 16:11:53 UTC 2016
New revision: 414115
URL: https://svnweb.freebsd.org/changeset/ports/414115

Log:
  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:  luca.pizzamiglio@gmail.com (maintainer), swills

Changes:
  head/devel/gdb/Makefile
  head/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-t2DdtU54iH>