svn commit: r363967 - projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD

Dimitry Andric dim at FreeBSD.org
Thu Aug 6 16:20:46 UTC 2020


Author: dim
Date: Thu Aug  6 16:20:45 2020
New Revision: 363967
URL: https://svnweb.freebsd.org/changeset/base/363967

Log:
  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.

Modified:
  projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp

Modified: projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp
==============================================================================
--- projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp	Thu Aug  6 16:20:20 2020	(r363966)
+++ projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp	Thu Aug  6 16:20:45 2020	(r363967)
@@ -161,7 +161,6 @@ lldb::RegisterContextSP FreeBSDThread::GetRegisterCont
     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;


More information about the svn-src-projects mailing list