Test case added for importing packages



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181472 91177308-0d34-0410-b5e6-96231b3b80d8
Quiet g++-4.7 warnings about const issues and fix the scope of the "if (IsValid())".

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181474 91177308-0d34-0410-b5e6-96231b3b80d8
Now that you can "command script import" packages, the docs should reflect the best practice



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181475 91177308-0d34-0410-b5e6-96231b3b80d8
Adding code to set thread state to stopped when the process stops.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181482 91177308-0d34-0410-b5e6-96231b3b80d8
Remove debug print statement.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181486 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed the process attach by name test to get the target _after_ doing process attach. Otherwise the target isn't valid. This fixes 2 test suite failures on darwin.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181488 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the error reporting for ProcessKDP::DoDetach.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181493 91177308-0d34-0410-b5e6-96231b3b80d8
Changing the std::map test case to use source breakpoints instead of relying on the nexting always "getting it right" to stop at the locations of interest
This should make us more robust in the face of changing compiler line tables and other library modifications



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181497 91177308-0d34-0410-b5e6-96231b3b80d8
Add all Decls found through FindExternalLexicalDecls
to the DeclContext.  This fulfils the contract that
we make with Clang by returning ELR_AlreadyLoaded.

This is a little aggressive in that it does not allow
the ASTImporter to import the child decls with any
lexical parent other than the Decl that reported them
as children.

<rdar://problem/13517713>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181498 91177308-0d34-0410-b5e6-96231b3b80d8
Providing a more interesting command template for LLDB
This one actually exploits the SB API to obtain information about your inferior process



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181500 91177308-0d34-0410-b5e6-96231b3b80d8
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).



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181501 91177308-0d34-0410-b5e6-96231b3b80d8