git: 878b1c5ff39a - stable/12 - Reapply r332965 (by emaste):
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Dec 2021 10:05:37 UTC
The branch stable/12 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=878b1c5ff39ad2aed00b1003f8bc1d6ac612c50b
commit 878b1c5ff39ad2aed00b1003f8bc1d6ac612c50b
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2020-08-06 16:20:45 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-12-22 09:58:17 +0000
Reapply r332965 (by emaste):
lldb: remove assertion that target_arch is FreeBSD
The target is not necessarily a FreeBSD binary - for example, it may be
a Linux binary running under the linuxulator. Basic ptrace (live)
debugging already worked in this case, except for the assertion.
Sponsored by: Turing Robotic Industries Inc.
(cherry picked from commit 165786983df7513a6ab99dfe42e9526e46816ca5)
---
.../llvm-project/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp b/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp
index 79cb0e3bb8cd..896f68eadfe1 100644
--- a/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp
+++ b/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp
@@ -161,7 +161,6 @@ lldb::RegisterContextSP FreeBSDThread::GetRegisterContext() {
RegisterInfoInterface *reg_interface = nullptr;
const ArchSpec &target_arch = GetProcess()->GetTarget().GetArchitecture();
- assert(target_arch.GetTriple().getOS() == llvm::Triple::FreeBSD);
switch (target_arch.GetMachine()) {
case llvm::Triple::aarch64:
break;