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 <>
Cc: (Christos Zoulas), Patrick Welche <>
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 " kernel.gdb=GENERIC",
 | that not only builds a (huge) netbsd.gdb, but also overwrites the netbsd
 | (without the .gdb suffix) from " 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 " kernel.gdb=GENERIC"
 that makes a difference is not the ".gdb", but the "kernel".  In other
 words, tools kernel=GENERIC
 compiles each kernel object with "-g" and produces a kernel with CTF
 function information, but 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,

Home | Main Index | Thread Index | Old Index