Go to file
Greg Clayton 6e0ff1a3cb Changed the formerly pure virtual function:
namespace lldb_private {
    class Thread
    {
        virtual lldb::StopInfoSP
        GetPrivateStopReason() = 0;
    };
}

To not be virtual. The lldb_private::Thread now handles the correct caching and will call a new pure virtual function:

namespace lldb_private {
    class Thread
    {
        virtual bool
        CalculateStopInfo() = 0;
    }
}

This function must be overridden by thead lldb_private::Thread subclass and the only thing it needs to do is to set the Thread::StopInfo() with the current stop reason and return true, or return false if there is no stop reason. The  lldb_private::Thread class will take care of calling this function only when it is required. This allows lldb_private::Thread subclasses to be a bit simpler and not all need to duplicate the cache and invalidation settings.

Also renamed:

lldb::StopInfoSP
lldb_private::Thread::GetPrivateStopReason();

To:

lldb::StopInfoSP
lldb_private::Thread::GetPrivateStopInfo();

Also cleaned up a case where the ThreadPlanStepOverBreakpoint might not re-set its breakpoint if the thread disappears (which was happening due to a bug when using the OperatingSystem plug-ins with memory threads and real threads).

llvm-svn: 181501
2013-05-09 01:55:29 +00:00
clang Put some diagnostics in DiagnosticCommonKinds.td in a category, mirroring what they are in other .td files. 2013-05-09 00:07:27 +00:00
clang-tools-extra Stop LoopConvert removing DeclStmts from selection/iteration condition clauses 2013-05-06 20:01:43 +00:00
compiler-rt Try to fix Windows build too 2013-05-08 18:15:01 +00:00
debuginfo-tests Remove IR scenario tests. 2013-03-15 20:52:10 +00:00
libclc Update the copyright coredits -- Happy new year 2013! 2013-01-01 10:00:19 +00:00
libcxx Put a 1-character unget buffer into cin. This fixes http://llvm.org/bugs/show_bug.cgi?id=15867 2013-05-08 21:18:42 +00:00
libcxxabi Add capability to demangle invocation functions for ObjC blocks. 2013-04-10 19:44:03 +00:00
lld [lld] Add comments to InputFiles::searchLibraries() arguments. 2013-05-08 23:54:10 +00:00
lldb Changed the formerly pure virtual function: 2013-05-09 01:55:29 +00:00
llvm Revert "Make sure debug info contains linkage names (DW_AT_MIPS_linkage_name)" 2013-05-09 00:42:33 +00:00
polly Sort includes 2013-05-07 08:11:54 +00:00