Re: RISC-V 32-bit GDB
- In reply to: jbo_a_insane.engineer: "RISC-V 32-bit GDB"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Nov 2023 17:18:53 UTC
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. -- Gary Jennejohn