From nobody Wed Dec 18 12:39:49 2024 X-Original-To: freebsd-drivers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YCtYY3q1rz5hHv7 for ; Wed, 18 Dec 2024 12:40:01 +0000 (UTC) (envelope-from stasiapowlessjkk42@gmail.com) Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YCtYX4RLHz45Mg for ; Wed, 18 Dec 2024 12:40:00 +0000 (UTC) (envelope-from stasiapowlessjkk42@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=AisD0zey; spf=pass (mx1.freebsd.org: domain of stasiapowlessjkk42@gmail.com designates 2a00:1450:4864:20::12a as permitted sender) smtp.mailfrom=stasiapowlessjkk42@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-53ff1f7caaeso7014319e87.0 for ; Wed, 18 Dec 2024 04:40:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734525599; x=1735130399; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=jjb+a4IFa2HOMGUCbHqcDIRtvTgn4Fss1i18IyOIDn4=; b=AisD0zeyiAxruBwNirVE/P36KnF72irUicez780rzhikiyasURflhBHfPHY0es32Hy /KhmBl5TySX1Y8Wix8VuuyAMSRM+JvxixgFGw95WjLCnx5NwuHOl1i8HgSsXFnR2VD7j x4X28DeX8LxvNJIfrjPGTDy+lQHc1AwdoX3xgpoqrq2xcaBbev0ODSAViHMX5f4s/u69 xTq2YsR41juHFLbyYQnNp2CrMUZNs9NKqL2UpVLBa7EWVsoMlZX7Tu/7gmWsPPRAquze PejFPYJ2WXK/ohAPTq3DkZQsTAFk7B5Qn6VQDHiV6IluensHrxi/M66fUxHCAeYnT295 HvGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734525599; x=1735130399; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jjb+a4IFa2HOMGUCbHqcDIRtvTgn4Fss1i18IyOIDn4=; b=bSlYv8XX/0g6y+A/RGZNGqycLfZ0VeP7h/NwKYzHrWk2p6wHO7M/g4h1VNvv3yKrkA cN7x/3+Ls4u5Aojt1KAvSJ0szqfM+PSBUeJNiOAgpRTXjvV9Cuk2JdRr039Lq0wRvq3+ oOcdg8NEFZhTAG4sWS8vU11zIfY9o/6SisT8/rUj0iLiurd3OvYSZW+xAM0iSY0Tdjjx WFXqwM1oJZc22O/MOy6fLZVFWZ63+MjGnRimVMQv3TAJseHd9R8OTv0FugssAqeRMu0j QoKLl03lT/6NE4zXcDE6PiKEK+PZ8EkWocLnGIs3uwQt/7Kj2o0RejCHAbtX5YK+IRwj J4Yw== X-Gm-Message-State: AOJu0YxG4oXXbToGJnioMU0Xj45t10MdQyDbvuRd8AdDPcb1WCNbdAbH rAiwxOw6pW7F4CvXBCyIYMOWSA0ewwr1+0qC62SidkUJ7ofpbFxvvmWMof9IvG+VMraXgTlPp1b DkhkQEiZo3jtCtq3PnG6jeOeD8i9JG2I4KgU= X-Gm-Gg: ASbGncu8FErNDXe27auMXmpvPZ1tDOB3mLJ/pX+A+syR0M0faNf/cYYfun3UPRlTPXq liLbGz7YTIlcSkBGaimd7QhTwpw1xfUUuqtAEKlRf6mngSxb3lYQqYG4I0MdTsWUPMw== X-Google-Smtp-Source: AGHT+IEyI5Mqw2aZYrppRJyM/yoOxfE+pgzQbGPPSh5CMsHX2jEIrriavUgFSSWs77h8ElkIzktRxR6ECyRQwANdwEs= X-Received: by 2002:a05:6512:1114:b0:540:20b0:da2f with SMTP id 2adb3069b0e04-541ed913d06mr845912e87.55.1734525598094; Wed, 18 Dec 2024 04:39:58 -0800 (PST) List-Id: Writing device drivers for FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-drivers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-drivers@FreeBSD.org MIME-Version: 1.0 From: Stasia Powless Date: Wed, 18 Dec 2024 20:39:49 +0800 Message-ID: Subject: How to compile modules with debug symbols To: freebsd-drivers@freebsd.org Content-Type: multipart/alternative; boundary="00000000000020e09706298ab6ac" X-Spamd-Result: default: False [-3.21 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.21)[-0.205]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-drivers@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-drivers@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12a:from] X-Rspamd-Queue-Id: 4YCtYX4RLHz45Mg X-Spamd-Bar: --- --00000000000020e09706298ab6ac Content-Type: text/plain; charset="UTF-8" Hi, everyone. I just learned how to develop modules in FreeBSD. A simple one with this Makefile ``` KMOD= hello SRCS= hello.c .include ``` Type `make` and it works. But no debug symbols by default. There are variables in `sys/conf/kmod.mk` which control the compiling process. But I did not find anyone that can help to add debug symbols. Thanks. --00000000000020e09706298ab6ac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, everyone. I just learned how to develop modu= les in FreeBSD.
A sim= ple one with this Makefile
```
KMOD=3D =C2=A0 hello
SRCS=3D =C2=A0 hello.c<= /div>

.include <bsd.kmod.mk>
```
Type `make` and it works= . But no debug symbols by default.

There are variables in `sys/conf/kmod.mk` which control the compiling process. But I did not fin= d anyone that can help to add debug symbols.

Thanks.
--00000000000020e09706298ab6ac--