NetBSD-Bugs archive

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

Re: kern/53590: DTrace fbt_getargdesc() fails with "Unknown function"



The following reply was made to PR kern/53590; it has been noted by GNATS.

From: Andreas Gustafsson <gson%gson.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: christos%zoulas.com@localhost (Christos Zoulas), Patrick Welche <prlw1%cam.ac.uk@localhost>
Subject: Re: kern/53590: DTrace fbt_getargdesc() fails with "Unknown function"
Date: Wed, 12 Sep 2018 19:17:35 +0300

 Earlier, I wrote:
 | However, if I manually build a kernel using "build.sh kernel.gdb=GENERIC",
 | that not only builds a (huge) netbsd.gdb, but also overwrites the netbsd
 | (without the .gdb suffix) from "build.sh release" with an only slightly
 | larger one (27 megabytes instead of 26), and that one *does* include
 | CTF function entries, 34956 of them, including one for vmem_alloc:
 
 I did some further sleuthing.  The part of "build.sh kernel.gdb=GENERIC"
 that makes a difference is not the ".gdb", but the "kernel".  In other
 words,
 
   build.sh tools kernel=GENERIC
 
 compiles each kernel object with "-g" and produces a kernel with CTF
 function information, but
 
   build.sh release
 
 using the exact same sources compiles each kernel object without "-g"
 and produces a kernel with no CTF function information.
 
 Looks like something in the release build is overriding the 
 makeoptions DEBUG="-g" in GENERIC.
 -- 
 Andreas Gustafsson, gson%gson.org@localhost
 


Home | Main Index | Thread Index | Old Index