From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 WKqLEsrQZWNSygAAbAwnHQ (envelope-from ) for ; Sat, 05 Nov 2022 03:56:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CBlfEcrQZWNrHwEAG6o9tA (envelope-from ) for ; Sat, 05 Nov 2022 03:56:10 +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 E42807539 for ; Sat, 5 Nov 2022 03:56:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1or9Lo-0004ww-VZ; Fri, 04 Nov 2022 22:56:04 -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 1or9Ln-0004wg-45 for guix-patches@gnu.org; Fri, 04 Nov 2022 22:56:03 -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 1or9Lm-0002b4-S5 for guix-patches@gnu.org; Fri, 04 Nov 2022 22:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1or9Lm-0007aB-OJ for guix-patches@gnu.org; Fri, 04 Nov 2022 22:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58971] [PATCH] gnu: Add avr-gdb. Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Nov 2022 02:56: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: Kristian Lein-Mathisen Cc: mail@cbaines.net, 58971@debbugs.gnu.org X-Debbugs-Original-Cc: Christopher Baines , guix-patches@gnu.org, 58971@debbugs.gnu.org Received: via spool by 58971-submit@debbugs.gnu.org id=B58971.166761691529071 (code B ref 58971); Sat, 05 Nov 2022 02:56:02 +0000 Received: (at 58971) by debbugs.gnu.org; 5 Nov 2022 02:55:15 +0000 Received: from localhost ([127.0.0.1]:55239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1or9L0-0007Yo-L2 for submit@debbugs.gnu.org; Fri, 04 Nov 2022 22:55:14 -0400 Received: from mx.kolabnow.com ([212.103.80.154]:53956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1or9Ky-0007YX-KW for 58971@debbugs.gnu.org; Fri, 04 Nov 2022 22:55:13 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id C66C91CF5; Sat, 5 Nov 2022 03:55:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:in-reply-to:date:date:subject:subject:from:from :references:received:received:received; s=dkim20160331; t= 1667616906; x=1669431307; bh=Mcd4Da1uv81OT2Sj1v8rqVDWQ8ZjH1b4iUT FzZGxDoE=; b=o8NvCnBKDOF3A2aBEV+3MDSkPBVc1YisU0PxVTa9G1/OibyBcVg kGu5/+bzxIoKNFAkasFeDUIQzJJNIlH4u80CcqC/uqtciPNaPlsvuBJook5XeGuQ uQsTPE7KGd6iLf5pw1NPTtsOgi/YuLn1o9nxye0gH87w0/T9z1PHnC+m6QMW6sBX ED002cK8V8Pf9hHVT7cmlwxz2xN2IzARhnGwMv2RJTJ5fFV0aJbOEBT6ZaDTIH5M 2oy+U7sKjiW0vEZVpNMnQ2OxeXoqSAwIu3vp0XOU7yb1LY6yO4vCahGTqgSGA1Qq cMPmywhvvC99vmKn0D6wLhngoRBn2no0GlRZL4zonXxR+oyQtIjE/2Bom4jg+mxL 9rvURjfrUPl8MVjiXvYEh0ZlGN6nB4lgUVyiBwul4QH7Ag4IGWG6v/rj61Ztkstl rJwWJtWQmh2wATb6OCGZBt6wI5K54OCOMmw7gXjgslv2gVvjgXIlRvPpNxm/I5nF 8UosX0JmEhcRnWY2fmH46mIeBq09lZVAG1dmvjio/IYRMLSn5apbqoAI9wD++p5c eAo3/FT5AioFNBBmmrtXQlI3P1ggqr3S/YZynLURES4DsWsPyg17Zj9UMvl3oq9U /iba/x5dId5SwNrNPaki2oeebJ79cAEy1gfdqp/1LiUHz2nXXIWlTXdE= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ysExFcATD5vW; Sat, 5 Nov 2022 03:55:06 +0100 (CET) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by mx.kolabnow.com (Postfix) with ESMTPS id 71A791DD4; Sat, 5 Nov 2022 03:55:05 +0100 (CET) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx002.mykolab.com (Postfix) with ESMTPS id 94EF82BB2; Sat, 5 Nov 2022 03:55:04 +0100 (CET) References: <87pme4kkke.fsf@cbaines.net> Date: Fri, 04 Nov 2022 23:21:59 -0300 In-reply-to: Message-ID: <87bkpm6rgd.fsf@kolabnow.com> 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: List-Help: List-Subscribe: , Sender: "Guix-patches" Reply-to: Thiago Jung Bauermann X-ACL-Warn: , Thiago Jung Bauermann via Guix-patches From: Thiago Jung Bauermann via Guix-patches via 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=1667616970; h=from:from:sender:sender:reply-to: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=Mcd4Da1uv81OT2Sj1v8rqVDWQ8ZjH1b4iUTFzZGxDoE=; b=iWPx9NJhH2OxSDzDbY6A8/sA8z/biNmHfn20J4lWaQOPknSVJpl0RpKr10v9VtObU9jbOp K/vcBly3xPZCI3A7ShYHnR/EfDevMyzA1k/gFyBxJMNSiccB5foPFKMXSWt9ykJrV74wmP xF4DHyNC/EsLAK8IxlJT81bgYBbC4OEdFdC3Gw8NNZk5P2gB+j7bo57aPpa44vQTlkU1+i 9F5dHThQXKmNUdhj9lMUMQsA3nADnszhikp2pYkdCqccEp+TGkL4eNOmGAdhps5GRG26vt KMfy0KI6hLWBwguYhco2aGcjjbWg/hVXj9MUxDRVaO4QR6q6sgeyRGrUiscSGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667616970; a=rsa-sha256; cv=none; b=QJ1lKv0rNNRgIyoPN7rROf8e81TrIBJFp5c7Atoyb0HxptKsiSaN+dzGvdsJ0mEU0csWEc /DgjIHIoXiwKYghdgSYGT5GwHMAJC/HTP3rlXDX9bwtXbLfNHu0QLd6Xz7KCYCdXl0veI9 cNE6BPOIdDSs8OzrjQttJLiUmMrHp3PV41CbuQtuVkv1jzuC3OiySzKkfgAKQ0cPCHAyNt 0HQJFvE//q+RfhVmxSox4wEs/8LBeq8zoQx7rNbqq5Rm4tcsuTfNbnyPr9sFXi3yZVQqtF HE32Lp+EdrukJXUyZAzmgp2bbSTlmtc+9GJta5zsKXns0B0AiZlRCYIDiQXonA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=o8NvCnBK; dmarc=pass (policy=none) header.from=gnu.org; 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: -3.50 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=o8NvCnBK; dmarc=pass (policy=none) header.from=gnu.org; 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: E42807539 X-Spam-Score: -3.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: fIB6o9Keef1Z Hello Kristian, Kristian Lein-Mathisen writes: > To be honest, I don't know why the AVR target isn't supported in the stan= dard GDB > build and I haven't been able to figure out how to list all supported tar= gets. I'm new to GDB in > general so > I don't know if I'm the right person to do this writeup. Normally GDB is built to support only one target. It's possible to make it support more targets by passing a list of targets (or the special =E2=80=9Call=E2=80=9D value) to the =E2=80=98--enable-targets=E2=80=99 opti= on of its configure script. Actually, one alternative to your patch would be to add =E2=80=9C--enable-targets=3Dall=E2=80=9D to the configure list of the regul= ar GDB package. I don't know why distros don't do that. IMHO it's simpler than having different GDB packages for different architectures. The GDB binary would get bigger, but not nearly enough that it would be a problem for today's disks=E2=80=A6 > However, I'm looking at https://github.com/dwtk/dwtk (which I also intend= to package for Guix if it's > of interest),=20 > 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 ha= ven'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 think you are right. Ubuntu has a gdb-multiarch package which supports more targets, but for some reason it doesn't support AVR and has a separate gdb-avr package. Strange. > I've taken the "synopsis" from Arch Linux, removed unsupported languages = from the description, > and just=20 > mentioned that this is for the specific AVR microcontroller architecture.= Please let me know if that's > good enough. I think your synopsis and description are good, thank you. I hope you don't mind if I have one more suggestion: add comments to the list of configure flags explaining why they're necessary =E2=80=94 except f= or the =E2=80=9C--target=3Davr=E2=80=9D one, which is self-explanatory :-). Also, out of curiosity: is there a reason why you restrict the enabled languages to C and C++? A quick search suggests that it's possible to use Rust as well, maybe more languages? --=20 Thanks Thiago