From 54cc2f5f35d64266a74e3192e6fefb03844359ea Mon Sep 17 00:00:00 2001 From: Ivan Tetyushkin Date: Thu, 11 Jan 2024 17:48:51 +0300 Subject: [PATCH] [lldb][gdb-remote][RISCV] Fix connection error to gdb server for RISC-V --- lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 4a06027501a898..fd724350b15541 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(target_info.arch) .Case("i386:x86-64", "x86_64") + .Case("riscv:rv64", "riscv64") + .Case("riscv:rv32", "riscv32") .Default(target_info.arch) + "--");