[Lldb-commits] [lldb] [lldb][gdb-remote][RISCV] Fix connection error to gdb server for RISC-V (PR #79990)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 30 04:04:53 PST 2024
https://github.com/ita-sc created https://github.com/llvm/llvm-project/pull/79990
This patch fix connection for LLDB for remote gdb server running on RISC-V.
You can test connection with OpenOCD or qemu-riscv64.
>From 54cc2f5f35d64266a74e3192e6fefb03844359ea Mon Sep 17 00:00:00 2001
From: Ivan Tetyushkin <ivan.tetyushkin at syntacore.com>
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 4a06027501a8..fd724350b155 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) +
"--");
More information about the lldb-commits
mailing list