From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id tlQhOSMw/WPuXQEAbAwnHQ (envelope-from ) for ; Mon, 27 Feb 2023 23:35:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aGydOCMw/WPCdgAA9RJhRA (envelope-from ) for ; Mon, 27 Feb 2023 23:35:15 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A7E0E2AA7C for ; Mon, 27 Feb 2023 23:35:15 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=SycCl3q0; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677537315; a=rsa-sha256; cv=none; b=VWt1vPB1F5CkEEdyEQ9jsyGZHQlmq/NPj5GkeFkNQyYOXDvavWresBexMU4uOlYPqzr5kO Y8ZYITSnF6AzsTmXVzf10p1o7v+W1PP6mhDu+tQnHBgx65jti6RRehJbVutmlITz6LwF6B XSYqnqEcigdrsCmbKakXcqHHC9fZ40bklGY/TN+Qa9FlKDgQlLU9L+gzBqUO3bcZl7hI1m lPwXU0U5G/JATVktXLtrOTwqdwacmnhC/Ck9pi4wDPPBVQzQuA0+TpBsARKZNvU6FJlyPZ eUF2CtXqX3ERjldXwH7BpC+XOWk9XOTB/8RXKHzieIiw3d9jD8fnD32AQC+5qg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=SycCl3q0; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677537315; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=xklz/wlIJKrdw8x0NBYrIK0tDKTk4iDMP32YO9eaE2c=; b=j1dIREZwER+SjZxFZ2DGqGC0+EfzwyVw9qV8xc44fdSyardIE2MnH6qCyZNteV8rNjV/aG /AoqZi4nIxEKy7h5ae0faQ0tlGiJHYnxqFKSZ9eooBTwkOUu77+uiJDwIJIhkzKgHKpTpb Tei+lKuDTbvdKgJOFe1WV8qNKXlhIlIhBgTs5dXjkfm7PXvfNnCAaHGS0gs8Niic9hCEiu pVI8BVw8Y+VCCc8SyFJFW3jVN+gNIxwjerABE1WmrT83KL42nmbTS2+Eh+XxPGB0IkGdcN gt0oVE70dwTecViIw0Lh5QUf5/00pgmPp9yvOpIB70AL9EblIGrLzzG/6O9frw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWm5I-0004Ef-2V; Mon, 27 Feb 2023 17:35:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWm5G-0004EP-CJ for guix-patches@gnu.org; Mon, 27 Feb 2023 17:35:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWm5G-0002k9-4S for guix-patches@gnu.org; Mon, 27 Feb 2023 17:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWm5F-0008SG-OA for guix-patches@gnu.org; Mon, 27 Feb 2023 17:35:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61486] [PATCH] system: Update skeleton gdbinit. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Feb 2023 22:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61486 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: 61486@debbugs.gnu.org Received: via spool by 61486-submit@debbugs.gnu.org id=B61486.167753728932472 (code B ref 61486); Mon, 27 Feb 2023 22:35:01 +0000 Received: (at 61486) by debbugs.gnu.org; 27 Feb 2023 22:34:49 +0000 Received: from localhost ([127.0.0.1]:49081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWm52-0008Rg-Kb for submit@debbugs.gnu.org; Mon, 27 Feb 2023 17:34:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWm50-0008RS-VU for 61486@debbugs.gnu.org; Mon, 27 Feb 2023 17:34:48 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWm4v-0002hQ-Mo; Mon, 27 Feb 2023 17:34:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=xklz/wlIJKrdw8x0NBYrIK0tDKTk4iDMP32YO9eaE2c=; b=SycCl3q0i/mR4pqOYwHl cA1m7+jdqa9KtqzA94cfWTxV+txwSPSPUvx04m32bkpV/oeTLG44NUSI283OJX5txlAwxc08H9MnN jjpPEEghYKKxv6Xjdwf1OrY2YMQO+ZksSun2X9RYf50KBrinjNTC7tuhZ6bCcNTgn4oCKOJw7wS7a aWVFEI+BcIF9xPDYB/YWw//KL2/BOnSMP/OBiIILP2qj1eDRR2/uSNwdDWIQUT22drRD3cFPC3Qn8 PuNun/mi3xvuvaLYaM5lKOiPNSeXjT+bb4EMzwNy6SqqACYRT5xcOJeOjUOObLNGgfJuyrCIIMvV3 92aXZx0Ah18vsw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWm4v-0004Uy-3P; Mon, 27 Feb 2023 17:34:41 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <08c09168cea2ab383bb6664682d3e8c52f70f131.1676314760.git.efraim@flashner.co.il> Date: Mon, 27 Feb 2023 23:34:39 +0100 In-Reply-To: <08c09168cea2ab383bb6664682d3e8c52f70f131.1676314760.git.efraim@flashner.co.il> (Efraim Flashner's message of "Mon, 13 Feb 2023 21:00:22 +0200") Message-ID: <87o7peg2kg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: A7E0E2AA7C X-Spam-Score: -3.39 X-Migadu-Spam-Score: -3.39 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: W8KlT8aOIlnG Hi Efraim, Efraim Flashner skribis: > * gnu/system/shadow.scm (default-skeleton): Update gdbinit to also > search for debug packages in guix-home. > (skeleton-directory): Move .gdbinit to .config/gdb/gdbinit. [...] > (use-modules (gdb)) > (execute (string-append \"set debug-file-directory \" > (or (getenv \"GDB_DEBUG_FILE_DIRECTORY\") > - \"~/.guix-profile/lib/debug\"))) > + \"~/.guix-profile/lib/debug\" > + \"~/.guix-home/profile/lib/debug\"))) This won=E2=80=99t have the desired effect: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (or #f "a" "b") $10 =3D "a" --8<---------------cut here---------------end--------------->8--- Perhaps we should check with =E2=80=98file-exists?=E2=80=99 which one to pi= ck, probably giving higher precedence to ~/.guix-home/profile since Guix Home users might have both (I do). > + (when (file-exists? ".gdbinit") > + (mkdir-p ".config/gdb") > + (rename-file ".gdbinit" ".config/gdb/gdbinit")) I couldn=E2=80=99t believe it so I had to check the manual and yes, GDB does look for ~/.config/gdb/gdbinit! Incredible. Thanks, Ludo=E2=80=99.