aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorita-sc <109672931+ita-sc@users.noreply.github.com>2024-01-30 17:02:49 +0300
committerGitHub <noreply@github.com>2024-01-30 14:02:49 +0000
commit8774d2936dd1cf0ee8d74ff600359d465179d009 (patch)
tree511d35b5181d72dd60f575195441d2904a8cb70d /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parentace383df52c0d2cf5f0afa4508f831a027fccbb4 (diff)
downloadllvm-8774d2936dd1cf0ee8d74ff600359d465179d009.zip
llvm-8774d2936dd1cf0ee8d74ff600359d465179d009.tar.gz
llvm-8774d2936dd1cf0ee8d74ff600359d465179d009.tar.bz2
[lldb][RISCV] Fix connection error to gdb server for RISC-V (#79990)
This patch fix connection for LLDB for remote gdb server running on RISC-V. You can test connection with OpenOCD or qemu-riscv64.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 4a06027..fd724350b 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -4620,6 +4620,8 @@ bool ProcessGDBRemote::GetGDBServerRegisterInfoXMLAndProcess(
// We don't have any information about vendor or OS.
arch_to_use.SetTriple(llvm::StringSwitch<std::string>(target_info.arch)
.Case("i386:x86-64", "x86_64")
+ .Case("riscv:rv64", "riscv64")
+ .Case("riscv:rv32", "riscv32")
.Default(target_info.arch) +
"--");