I made RISC-V port without any external debuggers, only serial, screen output and disassemblers. There are no actual GDB version in HaikuPorts and I am not sure that current version will work with Qemu on Haiku host.
Functions like WriteInt(), WriteHex() can be used on early steps, see my sample code for qemu-aarch64.