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: Andreas Gustafsson <gson%gson.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: port-amd64-maintainer%netbsd.org@localhost,
    gnats-admin%netbsd.org@localhost,
    netbsd-bugs%netbsd.org@localhost
Subject: Re: port-amd64/50128: amd64 debug build lacks kernel debug symbols
Date: Wed, 5 Aug 2015 21:22:19 +0300

 Martin Husemann wrote:
 >  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" ?
 
 I just tried that, but it seems to make things worse, not better:
 
   ./build.sh -j 4 -V MKDEBUG=YES -V COPTS="-g -fdebug-prefix-map=$(pwd)=/usr/src" -V CONFIGOPTS="-D DEBUG=-g" -O /tmp/obj.amd64 -m amd64 -U release sourcesets
   [...]
   # gdb /netbsd
   [...]
   Reading symbols from /netbsd...(no debugging symbols found)...done.
   [...]
   (gdb) l sys_sync
   No symbol table is loaded.  Use the "file" command.
   (gdb)
 
 -- 
 Andreas Gustafsson, gson%gson.org@localhost
 


Home | Main Index | Thread Index | Old Index