From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 UNy1MZEHZGP9WgEAbAwnHQ (envelope-from ) for ; Thu, 03 Nov 2022 19:25:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WImSMZEHZGNFQQEAauVa8A (envelope-from ) for ; Thu, 03 Nov 2022 19:25:21 +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 7D15CEFFA for ; Thu, 3 Nov 2022 19:25:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqetm-0001dV-Vb; Thu, 03 Nov 2022 14:25:07 -0400 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 1oqeti-0001ch-QN for guix-patches@gnu.org; Thu, 03 Nov 2022 14:25:02 -0400 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 1oqeti-0003mm-Gi for guix-patches@gnu.org; Thu, 03 Nov 2022 14:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqeti-00010F-5f for guix-patches@gnu.org; Thu, 03 Nov 2022 14:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58971] [PATCH] gnu: Add avr-gdb. Resent-From: Kristian Lein-Mathisen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Nov 2022 18:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58971 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: Christopher Baines Cc: 58971@debbugs.gnu.org X-Debbugs-Original-Cc: guix-patches@gnu.org, 58971@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16674998433762 (code B ref -1); Thu, 03 Nov 2022 18:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Nov 2022 18:24:03 +0000 Received: from localhost ([127.0.0.1]:50612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqesk-0000yL-97 for submit@debbugs.gnu.org; Thu, 03 Nov 2022 14:24:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:55456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqesi-0000y4-5E for submit@debbugs.gnu.org; Thu, 03 Nov 2022 14:24:01 -0400 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 1oqesh-00008i-W6 for guix-patches@gnu.org; Thu, 03 Nov 2022 14:24:00 -0400 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqesg-0003ee-2b for guix-patches@gnu.org; Thu, 03 Nov 2022 14:23:59 -0400 Received: by mail-ot1-x32d.google.com with SMTP id a7-20020a056830008700b0066c82848060so1298635oto.4 for ; Thu, 03 Nov 2022 11:23:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=df14GuFtwtpYEkRcAKE6SJBxkKyILyqgbxnXc4YT58g=; b=YOFPLVsywmjyg54AFXWPlPCIciS/IjubtqnMlhHQdQXhTkvCF/qZ+ausomZ4qSjFD6 ldFC9t/BIeERjYWZPi38zWGQHd7n+NkqojxuxRa+y+DdKRDFBtu926TnZAb5+JnBxca5 4oZuWOV1fYGlZy2WNbXn4UFlnRbLBt1pXIAbNBsfTfbd+OLQl74zZkXcFDmTstuOCd32 1rfC9vB+37b/EdJpC2kzru+IgcEK+HbiPQwRGoZX7ieqWFG4Ix2NP/kN+oSrmSgwCqpG PE1nP5k3U4tDHKaVIqAensCm5f9T6BVNh/+nwZStHsjnzSj4FUteLnRZfoklQFKZbxKi mJaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=df14GuFtwtpYEkRcAKE6SJBxkKyILyqgbxnXc4YT58g=; b=Mr3D6qZqf/ulTrWS1GUPYHgQkjc5HaXOBd2HGkzva0ydjoZxS/V+V9eKJdjZU+UZrv aAW4p9GqWqFfzvJgxSxLq8lFGBGpRcOC6OniLGwZK/mjZsrldhbiej/ioOfWEJAUDAF2 /wj4KbfbvtodxCGdMuZ6Eo5J7HS1Jlbgcrsnk1LEwZCBYhvM7i5TsFBof+cNj0BXiBCw /CakVOkRcuAyyeO+qqCuSqfiJ6VZKX+vsRkUvvdTsv0CSXfQWpgAWuiDRRCion8o0kda U5P169PdkyJ+oYns2EshHiXQECPpvQVzn8NZPWE+Huj9w/89MJeRaF8SMf8a8l3xoZS7 o5gA== X-Gm-Message-State: ACrzQf2p4WSaSQDWiJTp4Y8WDSz3Xnjet22ntaj/qt0Bw24mkowKgiX9 t+3TDpHa40PDi/ilFb9jHOPxhJfoT7cj+X+dOH8= X-Google-Smtp-Source: AMsMyM5arIlb5Kr4EeXlwXPQC7QitwfjMYIUVF3gQLaPhx1l2kgSBmAa2aHTLhC2e/hIvH3jImcmT5pm/XzMBhJLBe8= X-Received: by 2002:a05:6830:61cc:b0:661:a38c:8bf9 with SMTP id cc12-20020a05683061cc00b00661a38c8bf9mr15844244otb.99.1667499836849; Thu, 03 Nov 2022 11:23:56 -0700 (PDT) MIME-Version: 1.0 References: <87pme4kkke.fsf@cbaines.net> In-Reply-To: <87pme4kkke.fsf@cbaines.net> From: Kristian Lein-Mathisen Date: Thu, 3 Nov 2022 19:24:00 +0100 Message-ID: Content-Type: multipart/mixed; boundary="00000000000070923905ec950fc5" Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=kristianlein@gmail.com; helo=mail-ot1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: List-Help: List-Subscribe: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667499921; 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=18CI3F79y+8OzXNASuoejTRClr4H+hLuqrkHI8UZHys=; b=b15QJwPMP7G+E/I+Xjywk/gA+MR5a4VjYmr3EKsrfweInMADoRUhJz1cNBJWQhFWeFCzEM cI+WecdCLFtyjHVhcZd4PqoBtI0A6ubUrVvFxUM3d5isKmQYAdhJ9I7uTkPVVr6/HLI5zZ dHAX3phe0nuom3IC/vFbZKUfIT2rX25055SIOj1E/THhHqLiHlOP6hDd8KIWtsxOMk9ia6 CF8f7FfNJF7wymki77n1em2s+nA4jXY2ReRVM6J7tKTk9ed4wUHqfr9HqNJS51ZWV/9KMK xYJ912dM9Vr1I/fEWww69v2IzLFQH3w2kZacZj3IR3cjkMASrj3H5H/rcvpHmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667499921; a=rsa-sha256; cv=none; b=F+nCcZtVEFNEDBvuHKd9wCPcsy5MBtVsmGAr8UnmxNTGWYbOq/Zwbhb6RYHt0oScKbyOLm HwJ4h0Iv78BBhDfZXjjiN7DyQNvxwwxzwvC6Ytupp0Gpg3CcAhrX7mvl1B5JEuzCrBT09H 0dCVVVC6ptsS0ioVLM1lDOx1znWBqkh80YTKHzxRi5eS4Et64Tih77O7Tbxoa6g6LmMpey KQvYCuk43bqEmNJ07yaUWbQKborEqUxlGJdtM9IX5IcBBVLKXzdAKb0YF5hIdKlzM6MUax bGvrzhJQevpR+/r4RNymlTNj/CTY1QUBLSn6PWGBYhGZr4WuFbDYYp9whonEfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=YOFPLVsy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 7.61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=YOFPLVsy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: 7D15CEFFA X-Spam-Score: 7.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: YVDR9IQgVvlF --00000000000070923905ec950fc5 Content-Type: multipart/alternative; boundary="00000000000070923605ec950fc3" --00000000000070923605ec950fc3 Content-Type: text/plain; charset="UTF-8" Hi Chris and thanks for looking into this, Your proposal is very reasonable. I wasn't sure what to write but I've given it a try in this replacement commit. To be honest, I don't know why the AVR target isn't supported in the standard GDB build and I haven't been able to figure out how to list all supported targets. I'm new to GDB in general so I don't know if I'm the right person to do this writeup. However, I'm looking at https://github.com/dwtk/dwtk (which I also intend to package for Guix if it's of interest), and the standard gdb gives me a bunch of error messages when I connect to dwtk's remote gdbserver. I'm guessing this incompatibility applies to all gdbservers implemented for AVR chips. I haven't found much clarity of this in the GDB docs. I presume this is the reason most distros package avr-gdb separately from gdb like we're doing here. I've taken the "synopsis" from Arch Linux , removed unsupported languages from the description, and just mentioned that this is for the specific AVR microcontroller architecture. Please let me know if that's good enough. Thanks, K. On Thu, Nov 3, 2022 at 6:35 PM Christopher Baines wrote: > > Kristian Lein-Mathisen writes: > > > I'd like to have avr-gdb available in GNU Guix. > > I've used the Arch Linux PKGFILE as basis: > > > > > https://github.com/archlinux/svntogit-community/blob/fa92f7b2008ec/trunk/PKGBUILD > > Hi Kristian, > > This seems OK to me, although I don't know what this package is for? > > Given this is inheriting from gdb, it'll have the same synopiss and > description: > > synopsis: The GNU debugger > description: GDB is the GNU debugger. With it, you can monitor what a > program > + is doing while it runs or what it was doing just before a crash. It > allows > + you to specify the runtime conditions, to define breakpoints, and to > change > + how the program is running to try to fix bugs. It can be used to debug > + programs written in C, C++, Ada, Objective-C, Pascal and more. > > So, I think if there is something different about this avr-gdb, it would > be good to specify a appropriate synopsis and description. Does that > make sense? > > Thanks, > > Chris > --00000000000070923605ec950fc3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi Chris and thanks for looking into this,
<= div>
Your proposal is very reasonable. I wasn't sure what= to write but I've given it a try in this replacement commit.

To be honest, I don't know why the AVR target isn't= supported in the standard GDB
build and I haven't been able = to figure out how to list all supported targets. I'm new to GDB in gene= ral so
I don't know if I'm the right person to do this wr= iteup.

However, I'm looking at=C2=A0https://github.com/dwtk/dwtk (which I al= so intend to package for Guix if it's of interest),=C2=A0
and= the standard gdb gives me a bunch of error messages when I connect to dwtk= 's remote gdbserver. I'm guessing this
incompatibility ap= plies to all gdbservers implemented for AVR chips. I haven't found much= clarity of this in the GDB docs.
I presume this is the reason mo= st distros package avr-gdb separately from gdb like we're doing here.

I've taken the=C2=A0"synopsis" from Arch Linux, remov= ed unsupported languages from the description, and just=C2=A0
men= tioned that this is for the specific AVR microcontroller architecture. Plea= se let me know if that's good enough.

Th= anks,
K.

On Thu, Nov 3, 2022 at 6:35 PM Christopher Baines &= lt;mail@cbaines.net> wrote:
<= /div>

Kristian Lein-Mathisen <kristianlein@gmail.com> writes:

> I'd like to have avr-gdb available in GNU Guix.
> I've used the Arch Linux PKGFILE as basis:
>
> https://github= .com/archlinux/svntogit-community/blob/fa92f7b2008ec/trunk/PKGBUILD

Hi Kristian,

This seems OK to me, although I don't know what this package is for?
Given this is inheriting from gdb, it'll have the same synopiss and
description:

=C2=A0 synopsis: The GNU debugger
=C2=A0 description: GDB is the GNU debugger.=C2=A0 With it, you can monitor= what a program
=C2=A0 + is doing while it runs or what it was doing just before a crash.= =C2=A0 It allows
=C2=A0 + you to specify the runtime conditions, to define breakpoints, and = to change
=C2=A0 + how the program is running to try to fix bugs.=C2=A0 It can be use= d to debug
=C2=A0 + programs written in C, C++, Ada, Objective-C, Pascal and more.

So, I think if there is something different about this avr-gdb, it would be good to specify a appropriate synopsis and description. Does that
make sense?

Thanks,

Chris
--00000000000070923605ec950fc3-- --00000000000070923905ec950fc5 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-gnu-Add-avr-gdb.patch" Content-Disposition: attachment; filename="0001-gnu-Add-avr-gdb.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_la1e06vt0 RnJvbSA1YTc4OTQ0ZmJiNmY1NzY4Mjg2Y2NiZWFhMTE2ODM5NzA5NmE3MDYzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBLcmlzdGlhbiBMZWluLU1hdGhpc2VuIDxrcmlzdGlhbmxlaW5A Z21haWwuY29tPgpEYXRlOiBXZWQsIDIgTm92IDIwMjIgMjA6MzY6NTEgKzAxMDAKU3ViamVjdDog W1BBVENIXSBnbnU6IEFkZCBhdnItZ2RiLgoKKiBnbnUvcGFja2FnZXMvZ2RiLnNjbSAoYXZyLWdk Yik6IE5ldyB2YXJpYWJsZS4KLS0tCiBnbnUvcGFja2FnZXMvZ2RiLnNjbSB8IDIxICsrKysrKysr KysrKysrKysrKysrKwogMSBmaWxlIGNoYW5nZWQsIDIxIGluc2VydGlvbnMoKykKCmRpZmYgLS1n aXQgYS9nbnUvcGFja2FnZXMvZ2RiLnNjbSBiL2dudS9wYWNrYWdlcy9nZGIuc2NtCmluZGV4IDdk ODQxNmM3YzUuLmZkMGJjODBlNDQgMTAwNjQ0Ci0tLSBhL2dudS9wYWNrYWdlcy9nZGIuc2NtCisr KyBiL2dudS9wYWNrYWdlcy9nZGIuc2NtCkBAIC0xNzEsMyArMTcxLDI0IEBAIChkZWZpbmUtcHVi bGljIGdkYi1taW5pbWFsCiAgICAgKG5hbWUgImdkYi1taW5pbWFsIikKICAgICAoaW5wdXRzIChm b2xkIGFsaXN0LWRlbGV0ZSAocGFja2FnZS1pbnB1dHMgZ2RiKQogICAgICAgICAgICAgICAgICAg JygibGlieG1sMiIgIm5jdXJzZXMiIC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