Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2018 19:26:58 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r332965 - head/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD
Message-ID:  <201804241926.w3OJQwal098530@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Apr 24 19:26:58 2018
New Revision: 332965
URL: https://svnweb.freebsd.org/changeset/base/332965

Log:
  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:
  head/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp

Modified: head/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp
==============================================================================
--- head/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp	Tue Apr 24 19:23:26 2018	(r332964)
+++ head/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp	Tue Apr 24 19:26:58 2018	(r332965)
@@ -169,7 +169,6 @@ lldb::RegisterContextSP FreeBSDThread::GetRegisterCont
     RegisterInfoInterface *reg_interface = NULL;
     const ArchSpec &target_arch = GetProcess()->GetTarget().GetArchitecture();
 
-    assert(target_arch.GetTriple().getOS() == llvm::Triple::FreeBSD);
     switch (target_arch.GetMachine()) {
     case llvm::Triple::aarch64:
       reg_interface = new RegisterInfoPOSIX_arm64(target_arch);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804241926.w3OJQwal098530>