[Bug 219028] devel/gdb: Fix annoying "eh_frame" kgdb bug

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 3 01:22:07 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219028

            Bug ID: 219028
           Summary: devel/gdb: Fix annoying "eh_frame" kgdb bug
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: jhb at FreeBSD.org
                CC: luca.pizzamiglio at gmail.com, np at FreeBSD.org
             Flags: maintainer-feedback?(luca.pizzamiglio at gmail.com)
                CC: luca.pizzamiglio at gmail.com

Created attachment 182259
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=182259&action=edit
kgdb.patch

The kld parsing code in kgdb was using basename() and dirname() which ended up
being broken by the recent changes to make dirname() modify its input buffer. 
The patch to fbsd-kld.c modifies it to use the lbasename() and ldirname()
wrappers in gdb.  While here, it adds the kgdb.1 manpage from base which is
helpful since stock HEAD no longer ships a kgdb manpage.  I also fixed an issue
where the mips binaries weren't pulling in -lkvm which is needed for the kgdb
binary to link.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list