Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Nov 2023 17:18:53 +0000
From:      Gary Jennejohn <garyj@gmx.de>
To:        jbo@insane.engineer
Cc:        "hackers@freebsd.org" <hackers@freebsd.org>
Subject:   Re: RISC-V 32-bit GDB
Message-ID:  <20231113181853.66af2f1f@ernst.home>
In-Reply-To: <C1T59Q4AMph93tiNTQtuipzOK9vBdOB1QF7C7eaU-XjxR-rYo9MSA_HjQT_a39JTzfNu8vlhwCdcWzjqxSMtH_6A3lcPkwLFdvSwk4uevtg=@insane.engineer>
References:  <C1T59Q4AMph93tiNTQtuipzOK9vBdOB1QF7C7eaU-XjxR-rYo9MSA_HjQT_a39JTzfNu8vlhwCdcWzjqxSMtH_6A3lcPkwLFdvSwk4uevtg=@insane.engineer>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 13 Nov 2023 16:37:48 +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?
>

Well, /usr/ports/devel/gdb has these files:

files/kgdb/aarch64-fbsd-kern.c
files/kgdb/amd64fbsd-kern.c
files/kgdb/arm-fbsd-kern.c
files/kgdb/i386fbsd-kern.c
files/kgdb/mipsfbsd-kern.c
files/kgdb/ppcfbsd-kern.c
files/kgdb/riscv-fbsd-kern.c
files/kgdb/sparc64fbsd-kern.c

which are copied to the gdb build directory, so RISC-V might work if
you use kgdb.

=2D-
Gary Jennejohn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20231113181853.66af2f1f>