Skip to content

Commit 8774d29

Browse files
authored
[lldb][RISCV] Fix connection error to gdb server for RISC-V (llvm#79990)
This patch fix connection for LLDB for remote gdb server running on RISC-V. You can test connection with OpenOCD or qemu-riscv64.
1 parent ace383d commit 8774d29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4620,6 +4620,8 @@ bool ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess(
46204620
// We don't have any information about vendor or OS.
46214621
arch_to_use.SetTriple(llvm::StringSwitch<std::string>(target_info.arch)
46224622
.Case("i386:x86-64", "x86_64")
4623+
.Case("riscv:rv64", "riscv64")
4624+
.Case("riscv:rv32", "riscv32")
46234625
.Default(target_info.arch) +
46244626
"--");
46254627

0 commit comments

Comments
 (0)