NetBSD Problem Report #52865

From martin@duskware.de  Tue Dec 26 12:05:01 2017
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3CC1D7A180
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 26 Dec 2017 12:05:01 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: missing option to build kernel modules with debug info
X-Send-Pr-Version: 3.95

>Number:         52865
>Category:       toolchain
>Synopsis:       missing option to build kernel modules with debug info
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 26 12:10:00 +0000 2017
>Last-Modified:  Tue Dec 26 12:25:00 +0000 2017
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.9
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 8.99.9 NetBSD 8.99.9 (NIGHT-OWL) #567: Mon Dec 18 19:06:05 CET 2017 martin@night-owl.duskware.de:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

We are lacking a build option like MKKDEBUG for kernel modules. Something
like MKKMODDEBUG (better names welcome) that causes all $mod.kmod to have
a corresponding $mod.kmod.gdb file in the object directory.

>How-To-Repeat:

Read src/share/mk/bsd.README and look for module debug info.

>Fix:
n/a

>Audit-Trail:
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/52865: missing option to build kernel modules with
 debug info
Date: Tue, 26 Dec 2017 20:23:15 +0800 (+08)

 > We are lacking a build option like MKKDEBUG for kernel modules. Something
 > like MKKMODDEBUG (better names welcome) that causes all $mod.kmod to have
 > a corresponding $mod.kmod.gdb file in the object directory.

 I like the name MKMODDEBUG (only 1 K)

 If we're going to build the debug modules, we probably also ought to
 include them in the debug.tgz distribution set.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.