Hello, I tried to use lldb to remote debug program, but I got the same issue described in Problems using LLDB to remotely debug a RISCV program running on QEMU, is lldb riscv support ready for use like riscv gdb.
I also tried to use riscv gdb to debug llvm generated elf, but met issue below.
Transfer rate: 75 KB/sec, 7199 bytes/write.
/Local/xl_ci/toolchain/riscv-gnu-toolchain/riscv-gdb/gdb/dwarf2/attribute.h:232: internal-error: void attribute::set_unsigned_reprocess(ULONGEST): Assertion `form_requires_reprocessing ()' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]
This is a bug, please report it. For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.
/Local/xl_ci/toolchain/riscv-gnu-toolchain/riscv-gdb/gdb/dwarf2/attribute.h:232: internal-error: void attribute::set_unsigned_reprocess(ULONGEST): Assertion `form_requires_reprocessing ()' failed.
So it seems I can’t debug llvm compiled elf using riscv gdb, is it correct?
Thanks