Make ValueObject::SetValueFromCString work correctly.
Also change the SourceInitFile to look for .lldb-<APPNAME> and source that
preferentially if it exists.
Also made the breakpoint site report its address as well as its breakpoint number
when it gets hit and can't find any the associated locations (usually because the
breakpoint got disabled or deleted programmatically between the time it was hit
and reported.)
Changed ThreadPlanCallFunction to initialize the ivar m_func in the initializers of the
constructor, rather than waiting to initialize till later on in the function.
Fixed a bug where if you make an SBError and the ask it Success, it returns false.
Fixed ValueObject::ResolveValue so that it resolves a temporary value, rather than
overwriting the one in the value object.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@137536 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBDebugger.cpp b/source/API/SBDebugger.cpp
index 35a66ae..8278924 100644
--- a/source/API/SBDebugger.cpp
+++ b/source/API/SBDebugger.cpp
@@ -149,6 +149,13 @@
m_opaque_sp->GetCommandInterpreter().SkipLLDBInitFiles (b);
}
+void
+SBDebugger::SkipAppInitFiles (bool b)
+{
+ if (m_opaque_sp)
+ m_opaque_sp->GetCommandInterpreter().SkipAppInitFiles (b);
+}
+
// Shouldn't really be settable after initialization as this could cause lots of problems; don't want users
// trying to switch modes in the middle of a debugging session.
void
diff --git a/source/API/SBError.cpp b/source/API/SBError.cpp
index bcbb734..d482717 100644
--- a/source/API/SBError.cpp
+++ b/source/API/SBError.cpp
@@ -86,7 +86,7 @@
SBError::Success () const
{
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
- bool ret_value = false;
+ bool ret_value = true;
if (m_opaque_ap.get())
ret_value = m_opaque_ap->Success();
diff --git a/source/API/SBValue.cpp b/source/API/SBValue.cpp
index 58eb979..a7bc91d 100644
--- a/source/API/SBValue.cpp
+++ b/source/API/SBValue.cpp
@@ -629,6 +629,7 @@
int64_t
SBValue::GetValueAsSigned(SBError& error, int64_t fail_value)
{
+ error.Clear();
if (m_opaque_sp)
{
if (m_opaque_sp->GetUpdatePoint().GetTargetSP())
@@ -650,6 +651,7 @@
uint64_t
SBValue::GetValueAsUnsigned(SBError& error, uint64_t fail_value)
{
+ error.Clear();
if (m_opaque_sp)
{
if (m_opaque_sp->GetUpdatePoint().GetTargetSP())