From nobody Mon Nov 13 21:28:59 2023 X-Original-To: hackers@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 4STjH643TQz50lDw for ; Mon, 13 Nov 2023 21:29:06 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4STjH61ptlz3Pn3 for ; Mon, 13 Nov 2023 21:29:06 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Authentication-Results: mx1.freebsd.org; none Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 5E3243C019A; Mon, 13 Nov 2023 21:28:59 +0000 (UTC) Date: Mon, 13 Nov 2023 21:28:59 +0000 From: Brooks Davis To: jbo@insane.engineer Cc: "hackers@freebsd.org" Subject: Re: RISC-V 32-bit GDB Message-ID: References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US] X-Rspamd-Queue-Id: 4STjH61ptlz3Pn3 On Mon, Nov 13, 2023 at 04:37:48PM +0000, jbo@insane.engineer wrote: > Hi, > > I'm about to do some work on a RISC-V 32-Bit based system. While I won't > be running FreeBSD on the device, I'd like to keep FreeBSD as my host > development environment. > > I noticed that we have devel/riscv32-unknown-elf-gcc in ports. However, > I'd also need a suitable instance of GDB. > > On Debian, the gdb-multiarch package provides a sufficiently multiarch'd > version of GDB. Do we have something similar available? Modern gdb is multiarch by default so devel/gdb should work. gcc and binutils remain single target so you need a copy for each target. -- Brooks