NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-amd64/50128: amd64 debug build lacks kernel debug symbols



The following reply was made to PR port-amd64/50128; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: port-amd64/50128: amd64 debug build lacks kernel debug symbols
Date: Wed, 5 Aug 2015 15:01:07 +0200

 On Wed, Aug 05, 2015 at 12:50:00PM +0000, Andreas Gustafsson wrote:
 > When I build a -current/i386 release using "build.sh -V MKDEBUG=yes
 > -V COPTS=-g release", the resulting release includes debug symbols for
 > both userland (as separate .debug files in the debug.tgz set) and the
 > kernel (within /netbsd itself).
 > 
 > I have used this build procedure as part of the kernel
 > debugging setup documented in the wiki at
 > https://wiki.netbsd.org/kernel_debugging_with_qemu/ .
 > Now that PR 49276 is fixed (go mrg!), I figured I'd try
 > it with the amd64 port instead of i386, but when I do that,
 > I end up with a kernel with no debug symbols.
 
 Triggering this off COPTS is dangerous, it conflicts with:
 
 makeoptions     COPTS="-O2 -fno-omit-frame-pointer"
 
 in the amd64 GENERIC config.
 
 One could argue that -fno-omit-frame-pointer should go into CPUFLAGS
 instead and -O2 into DEFCOPTS.
 
 But maybe you should just set CONFIGOPTS="-D DEBUG=-g" ?
 
 Martin
 


Home | Main Index | Thread Index | Old Index