Updated the expression parser to use proper logging when
looking for external variables. Also cleaned up the log
messages coming from the DWARF interpreter.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@106613 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/DWARFExpression.cpp b/source/Expression/DWARFExpression.cpp
index d7afa36..3873766 100644
--- a/source/Expression/DWARFExpression.cpp
+++ b/source/Expression/DWARFExpression.cpp
@@ -840,14 +840,14 @@
if (log)
{
- log->Printf("\n");
size_t count = stack.size();
+ log->Printf("Stack before operation has %d values:", count);
for (size_t i=0; i<count; ++i)
{
StreamString new_value;
new_value.Printf("[%zu]", i);
stack[i].Dump(&new_value);
- log->Printf("%s", new_value.GetData());
+ log->Printf(" %s", new_value.GetData());
}
log->Printf("0x%8.8x: %s", op_offset, DW_OP_value_to_name(op));
}
@@ -2572,14 +2572,14 @@
}
else if (log)
{
- log->Printf("\n");
size_t count = stack.size();
+ log->Printf("Stack after operation has %d values:", count);
for (size_t i=0; i<count; ++i)
{
StreamString new_value;
new_value.Printf("[%zu]", i);
stack[i].Dump(&new_value);
- log->Printf("%s", new_value.GetData());
+ log->Printf(" %s", new_value.GetData());
}
}