[Lldb-commits] [PATCH] D131667: [LLDB][RISCV] Fix risc-v target build
Emmmer S via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 11 06:43:00 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG55e511f9f619: [LLDB][RISCV] Fix risc-v target build (authored by Emmmer).
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131667/new/
https://reviews.llvm.org/D131667
Files:
lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_riscv64.cpp
lldb/source/Utility/RISCV_DWARF_Registers.h
Index: lldb/source/Utility/RISCV_DWARF_Registers.h
===================================================================
--- lldb/source/Utility/RISCV_DWARF_Registers.h
+++ lldb/source/Utility/RISCV_DWARF_Registers.h
@@ -124,7 +124,7 @@
dwarf_gpr_fp = dwarf_gpr_x8,
// mock pc regnum
- dwarf_gpr_pc = UINT32_MAX,
+ dwarf_gpr_pc = 11451,
};
} // namespace riscv_dwarf
Index: lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_riscv64.cpp
===================================================================
--- lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_riscv64.cpp
+++ lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_riscv64.cpp
@@ -10,6 +10,7 @@
#include "NativeRegisterContextLinux_riscv64.h"
+#include "lldb/Host/HostInfo.h"
#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/RegisterValue.h"
@@ -48,6 +49,11 @@
}
}
+llvm::Expected<ArchSpec>
+NativeRegisterContextLinux::DetermineArchitecture(lldb::tid_t tid) {
+ return HostInfo::GetArchitecture();
+}
+
NativeRegisterContextLinux_riscv64::NativeRegisterContextLinux_riscv64(
const ArchSpec &target_arch, NativeThreadProtocol &native_thread,
std::unique_ptr<RegisterInfoPOSIX_riscv64> register_info_up)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131667.451836.patch
Type: text/x-patch
Size: 1278 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220811/6eacf86d/attachment.bin>
More information about the lldb-commits
mailing list