summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-06-18 18:23:07 +0000
committerEnrico Granata <egranata@apple.com>2013-06-18 18:23:07 +0000
commit68ae4117d9b1384e756a5fdba874eac4a8687962 (patch)
tree4bc2ee55f0c790487bdc29a9b70e0e4738993b71 /lldb/source/Core/Debugger.cpp
parent0e5d677fc372e352880890e9d75b31c9798a0d2f (diff)
downloadbcm5719-llvm-68ae4117d9b1384e756a5fdba874eac4a8687962.tar.gz
bcm5719-llvm-68ae4117d9b1384e756a5fdba874eac4a8687962.zip
<rdar://problem/12717717>
Modifying our data formatters matching algorithm to ensure that "const X*" is treated as equivalent to "X*" Also, a couple improvements to the "lldb types" logging llvm-svn: 184215
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 780c5463e34..45c2b0578f2 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -1204,13 +1204,13 @@ ScanFormatDescriptor (const char* var_name_begin,
*var_name_final = *percent_position;
std::string format_name(*var_name_final+1, var_name_end-*var_name_final-1);
if (log)
- log->Printf("ScanFormatDescriptor] parsing %s as a format descriptor", format_name.c_str());
+ log->Printf("[ScanFormatDescriptor] parsing %s as a format descriptor", format_name.c_str());
if ( !FormatManager::GetFormatFromCString(format_name.c_str(),
true,
*custom_format) )
{
if (log)
- log->Printf("ScanFormatDescriptor] %s is an unknown format", format_name.c_str());
+ log->Printf("[ScanFormatDescriptor] %s is an unknown format", format_name.c_str());
switch (format_name.front())
{
@@ -1242,12 +1242,12 @@ ScanFormatDescriptor (const char* var_name_begin,
else
{
if (log)
- log->Printf("ScanFormatDescriptor] will display value for this VO");
+ log->Printf("[ScanFormatDescriptor] will display value for this VO");
*val_obj_display = ValueObject::eValueObjectRepresentationStyleValue;
}
}
if (log)
- log->Printf("ScanFormatDescriptor] final format description outcome: custom_format = %d, val_obj_display = %d",
+ log->Printf("[ScanFormatDescriptor] final format description outcome: custom_format = %d, val_obj_display = %d",
*custom_format,
*val_obj_display);
return true;
@@ -1469,11 +1469,10 @@ FormatPromptRecurse
{
do_deref_pointer = true;
var_name_begin++;
+ if (log)
+ log->Printf("[Debugger::FormatPrompt] found a deref, new string is: %s",var_name_begin);
}
- if (log)
- log->Printf("[Debugger::FormatPrompt] initial string: %s",var_name_begin);
-
if (*var_name_begin == 's')
{
if (!valobj->IsSynthetic())
@@ -1481,17 +1480,16 @@ FormatPromptRecurse
if (!valobj)
break;
var_name_begin++;
+ if (log)
+ log->Printf("[Debugger::FormatPrompt] found a synthetic, new string is: %s",var_name_begin);
}
- if (log)
- log->Printf("[Debugger::FormatPrompt] initial string: %s",var_name_begin);
-
// should be a 'v' by now
if (*var_name_begin != 'v')
break;
if (log)
- log->Printf("[Debugger::FormatPrompt] initial string: %s",var_name_begin);
+ log->Printf("[Debugger::FormatPrompt] string I am working with: %s",var_name_begin);
ValueObject::ExpressionPathAftermath what_next = (do_deref_pointer ?
ValueObject::eExpressionPathAftermathDereference : ValueObject::eExpressionPathAftermathNothing);
OpenPOWER on IntegriCloud