Fixed the SymbolContext::DumpStopContext() to correctly indent and dump
inline contexts when the deepest most block is not inlined.
Added source path remappings to the lldb_private::Target class that allow it
to remap paths found in debug info so we can find source files that are elsewhere
on the current system.
Fixed disassembly by function name to disassemble inline functions that are
inside other functions much better and to show enough context before the
disassembly output so you can tell where things came from.
Added the ability to get more than one address range from a SymbolContext
class for the case where a block or function has discontiguous address ranges.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@130044 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/NamedOptionValue.cpp b/source/Interpreter/NamedOptionValue.cpp
index 6b5dd7e..4721b9d 100644
--- a/source/Interpreter/NamedOptionValue.cpp
+++ b/source/Interpreter/NamedOptionValue.cpp
@@ -156,7 +156,12 @@
}
else
{
- error.SetErrorStringWithFormat ("invalid boolean string value: '%s'\n", value_cstr);
+ if (value_cstr == NULL)
+ error.SetErrorString ("invalid boolean string value: NULL\n");
+ else if (value_cstr[0] == '\0')
+ error.SetErrorString ("invalid boolean string value <empty>\n");
+ else
+ error.SetErrorStringWithFormat ("invalid boolean string value: '%s'\n", value_cstr);
}
return error;
}
@@ -303,17 +308,6 @@
return error;
}
-
-uint64_t
-OptionValueArray::GetUInt64ValueAtIndex (uint32_t idx, uint64_t fail_value, bool *success_ptr) const
-{
- if (idx < m_values.size())
- return m_values[idx]->GetUInt64Value (fail_value, success_ptr);
- return fail_value;
-}
-
-
-
//-------------------------------------------------------------------------
// OptionValueDictionary
//-------------------------------------------------------------------------