Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Apr 2016 02:48:43 +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@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209061

            Bug ID: 209061
           Summary: devel/gdb: Fix gdb/i386 built on older kernels
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: jhb@FreeBSD.org
                CC: luca.pizzamiglio@gmail.com, trasz@FreeBSD.org
             Flags: maintainer-feedback?(luca.pizzamiglio@gmail.com)
                CC: luca.pizzamiglio@gmail.com

Created attachment 169704
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169704&action=
=3Dedit
kgdb_i386.patch

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 runti=
me
during gdb startup.

However, the layout of the i386 PCB changed when the AVX changes were merge=
d 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 correc=
tly,
but userland debugging should work fine.  kgdb built against a pre-AVX world
but against an AVX kernel should work fine.

--=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>