From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QPNTD3Sz/WPh4gAAbAwnHQ (envelope-from ) for ; Tue, 28 Feb 2023 08:55:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SN9kD3Sz/WNoFAAA9RJhRA (envelope-from ) for ; Tue, 28 Feb 2023 08:55:32 +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 7E73115FDC for ; Tue, 28 Feb 2023 08:55:31 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ITujNZqs; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677570932; a=rsa-sha256; cv=none; b=f/At8mVTOtoNcrYVdZkCVLBzVr5LNL1/CLLAm50BizRjKz5z/5/KDcgRJPvunuAFJQM4aw Gt8mSd5kqvah19abXQw07Y/NXrA8te9uN0x8N+MWxWrDBnTS+RWjGq/N4iE6bgNsgp0zck 9aXfqRD16u2HDEM+sFiB8Z9sSirKchU765B9g0fJst7Jcz6buqp5Q1oEh9TldvgBhqQ2k1 G+/5xUxGD22H09IBWoltmn12HWQUYKhmW1tT4WVGtaCPGvR8Kx/JIIb13ZlA+ceVA5A+TG 7cN1EOg9p2nEE6dpVt+Wx83CJrpKI6HM5FklkMSZGhpEK00VG2bAJzvaB+QV8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ITujNZqs; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677570932; 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: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=oIQ4dmQpJeNB6CjjqAqPrzND9X7GL60wpRKfdC8JeP0=; b=g7DIOmM5EjUBQReiFD6IHedsxv12ktK6lgrQNKOCpf15thz1DpI86vigzpI09brR8mEgkO i1iNwli1zXUPQ6tSiMMIeSjFv9maAsHXDpKA0jKeXd/yDCqJUEta8LKV+DxGGTj5L945kx 8Sj59Xp13hjbRu8QzhR4KrozvFrhpWiYy4XrQCB/e92BvYLAXd+3iNJH7qq3hbRPCejMnD RztW9LtPaZKHiESKAgAjopRlH20zvAVQaW8oSZFUhNr5JIUY7sxYXAJQgKhHFq1158FQWj iV91MeBvqkc4t8LkuQSssV/JUlUSBfpKBdTmwgm8BfCwWSGKh235C0O+Y30KuQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWupG-0001mK-AG; Tue, 28 Feb 2023 02:55:06 -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 1pWupD-0001m9-0M for guix-patches@gnu.org; Tue, 28 Feb 2023 02:55:03 -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 1pWupC-0001Oq-JJ for guix-patches@gnu.org; Tue, 28 Feb 2023 02:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWupC-0004L3-0T for guix-patches@gnu.org; Tue, 28 Feb 2023 02:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61486] [PATCH] system: Update skeleton gdbinit. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Feb 2023 07:55: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 61486@debbugs.gnu.org Received: via spool by 61486-submit@debbugs.gnu.org id=B61486.167757085116592 (code B ref 61486); Tue, 28 Feb 2023 07:55:01 +0000 Received: (at 61486) by debbugs.gnu.org; 28 Feb 2023 07:54:11 +0000 Received: from localhost ([127.0.0.1]:49564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWuoM-0004JY-PJ for submit@debbugs.gnu.org; Tue, 28 Feb 2023 02:54:11 -0500 Received: from mail-ed1-f53.google.com ([209.85.208.53]:33535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWuoI-0004J1-3q for 61486@debbugs.gnu.org; Tue, 28 Feb 2023 02:54:09 -0500 Received: by mail-ed1-f53.google.com with SMTP id ck15so36421416edb.0 for <61486@debbugs.gnu.org>; Mon, 27 Feb 2023 23:54:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=oIQ4dmQpJeNB6CjjqAqPrzND9X7GL60wpRKfdC8JeP0=; b=ITujNZqsvj1RvcV19bycd3rkrmt7Nw5aENAGNn406aNCntIbNTRDRINdgvCjeHG67D yIdhnnSjgMVSsC24KxOD4iIuVmUigvzXeL8kN+ftuzeTc4TRtuYk66yPb75FbRpFFS2/ CMhVhUnvOF5DEuTjIgooeqPFyaUM0Vgz92Xylb6HlDMiNjh9wMXHTp4QALM0Zf7DlNcu P/jHmEMcQxKmwZItgxxbCAYSQWwDlRJ7DhKksI0rYNkXn7TQPlsvc1D6ysMzMzS8czPK yF3BfhpTN6dRBeTgnt4eLcUwvLTCHG9cr0whTPxx0tWP64EMcRY4mu2D2mYX9qdKdPEo UfDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oIQ4dmQpJeNB6CjjqAqPrzND9X7GL60wpRKfdC8JeP0=; b=4an9a0KXQ1PUc90MlBzs9ewfitiqKyAuuK1/CdakG8gREiHrysPhQ6MJD/uqO8Pr2/ v019nQVHMnBV3+v8ZjmjVD9ltdblfkt3fU+Qq8+xoPDfOjzFpjdqNyNIKnclLqypyhBo W8y8uEwSdDqCxM0TqWsst+t7U7UetGOMhB3xmY2zyXrwiwyAP8v7zCgRbkrNln0axxxg johHoUQfaBTK1YMg3fnnt4nnB4Zk+GrC4Pv8bvtJSq8ttaLmQbAo6ow/JZ4dTndEjt5a cqWyuXmtkavBwprGjUzWKRdkuX1qOF3IGLF81L7kIoZRfh887DUEmaWjgaHMHIf4k7Jg T72g== X-Gm-Message-State: AO0yUKWv1M/fU/mja5cixMntb1ixH18t65Jy1IpvBIcj8iGvNjkrL9UN LKpoS5jC4f8iH1GBjGnPEgKxQSWvcAyusQ== X-Google-Smtp-Source: AK7set/gf0QpAO8PljwzqnpL360FPgkbthwOe8kItbDuSMt9iPczQWPK/K5SE3b7+E+S44RdmAqZsQ== X-Received: by 2002:a50:e707:0:b0:4ac:be83:2044 with SMTP id a7-20020a50e707000000b004acbe832044mr2039207edn.3.1677570839730; Mon, 27 Feb 2023 23:53:59 -0800 (PST) Received: from localhost ([2a02:ed3:910:9200:b62e:99ff:fef0:7bc0]) by smtp.gmail.com with ESMTPSA id c30-20020a50d65e000000b004acbe5409b4sm4035634edj.48.2023.02.27.23.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 23:53:59 -0800 (PST) Date: Tue, 28 Feb 2023 09:53:57 +0200 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 61486@debbugs.gnu.org References: <08c09168cea2ab383bb6664682d3e8c52f70f131.1676314760.git.efraim@flashner.co.il> <87o7peg2kg.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="es0Yo0AmjGcwAVKF" Content-Disposition: inline In-Reply-To: <87o7peg2kg.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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: 7E73115FDC X-Spam-Score: -4.79 X-Migadu-Spam-Score: -4.79 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: /m9qrwNoZblP --es0Yo0AmjGcwAVKF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 27, 2023 at 11:34:39PM +0100, Ludovic Court=C3=A8s wrote: > Hi Efraim, >=20 > Efraim Flashner skribis: >=20 > > * 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. >=20 > [...] >=20 > > (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\"))) >=20 > This won=E2=80=99t have the desired effect: >=20 > --8<---------------cut here---------------start------------->8--- > scheme@(guile-user)> (or #f "a" "b") > $10 =3D "a" > --8<---------------cut here---------------end--------------->8--- Not the first time I've gotten that wrong :) > Perhaps we should check with =E2=80=98file-exists?=E2=80=99 which one to = pick, probably > giving higher precedence to ~/.guix-home/profile since Guix Home users > might have both (I do). So then how about something like this? (or (getenv \"GDB_DEBUG_FILE_DIRECTORY\") (if (file-exists? \"~/.guix-home/profile/lib/debug\") \"~/.guix-home/profile/lib/debug\" \"~/.guix-profile/lib/debug\")))) Actually, I just checked the GDB manual=C2=B9 and it looks like we can add multiple paths. I'll work on it a bit and see about adding a couple more paths. > > + (when (file-exists? ".gdbinit") > > + (mkdir-p ".config/gdb") > > + (rename-file ".gdbinit" ".config/gdb/gdbinit"= )) >=20 > I couldn=E2=80=99t believe it so I had to check the manual and yes, GDB d= oes > look for ~/.config/gdb/gdbinit! Incredible. >=20 > Thanks, > Ludo=E2=80=99. =C2=B9 https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --es0Yo0AmjGcwAVKF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmP9sxIACgkQQarn3Mo9 g1EsQA/8D34q+SbuOXUF7dUO0nT0x4qB+qUIWKFo0ACxIell0HCxJYir8XN/52HL uy7NR5ns0alhEZHSn2ugFM6qKcl69aabegYsUpp3MB3yD0hQtmsPzr16NJaqT4yn oVmQK+CVpAsSzq0NkHQ7WUhKDLHFDnZ61cgYJNuPlzrf4NCYN8wuxEI5ccB3fLwx UKGiJK62rXwvGTWh3bEQ1m9Lii9T5pBy7F+pkrpKEOU/hu/ydqOAe52DQuKOIrzY GgxCBN2965AX97VdDIwhSGGeIz1CBEPnSFgeCZKTGfzr6mi0L6V5i3IjuszhqtPR YUOM4+K5BUIbfXDWpxr4VFQU0fZFI+HGwAEMrKrE1L5R5DwUWAI8DSLF6STfmgi/ FZZV8dk0/xLHLQev59CEPbkZEomfXG8APMRlZSHWeZiKCDbMs35EEbFbFElSC9J9 MmSQdnZSACRXeZoFgPPM7S8Jvxr3AQAloFNLYl1whp2yk2VVv17ywsM4bTENsPn6 A2/F0CCwHHtxXHTac/8SyXsEjOoUX7oqTfn3osJZYmkjJG82jSfZiX6i76GwnWO7 IZ3pj308/cdybG3NJ6b9M6l/TSAf9ncuEDxl1E93IDjpI4u8ZQXzHn1Ly7IKJLb2 hPBbgbw/dvc9AYoT9YwyJwQTuqvW6dULk60hdGcq1TAIQNOUfOQ= =RM/V -----END PGP SIGNATURE----- --es0Yo0AmjGcwAVKF--