summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangUserExpression.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-01-18 22:20:08 +0000
committerJim Ingham <jingham@apple.com>2011-01-18 22:20:08 +0000
commitb086ff7e3ff1ae3e9c1965df635bdd8e314258f1 (patch)
tree850dea9cae2a21ef77a1ef7dd13e71e75750bd8e /lldb/source/Expression/ClangUserExpression.cpp
parent2082057b18b7fc90a9ff50c55724a0802987dfc8 (diff)
downloadbcm5719-llvm-b086ff7e3ff1ae3e9c1965df635bdd8e314258f1.tar.gz
bcm5719-llvm-b086ff7e3ff1ae3e9c1965df635bdd8e314258f1.zip
Make a few log messages come out in "log enable lldb step" as well as "log enable lldb expression".
llvm-svn: 123784
Diffstat (limited to 'lldb/source/Expression/ClangUserExpression.cpp')
-rw-r--r--lldb/source/Expression/ClangUserExpression.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp
index c435136e2e6..0d86f2f4e1e 100644
--- a/lldb/source/Expression/ClangUserExpression.cpp
+++ b/lldb/source/Expression/ClangUserExpression.cpp
@@ -472,7 +472,9 @@ ClangUserExpression::Execute (Stream &error_stream,
ClangUserExpression::ClangUserExpressionSP &shared_ptr_to_me,
lldb::ClangExpressionVariableSP &result)
{
- lldb::LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
+ // The expression log is quite verbose, and if you're just tracking the execution of the
+ // expression, it's quite convenient to have these logs come out with the STEP log as well.
+ lldb::LogSP log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_EXPRESSIONS | LIBLLDB_LOG_STEP));
if (m_dwarf_opcodes.get())
{
@@ -570,7 +572,7 @@ ClangUserExpression::Evaluate (ExecutionContext &exe_ctx,
const char *expr_prefix,
lldb::ValueObjectSP &result_valobj_sp)
{
- lldb::LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
+ lldb::LogSP log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_EXPRESSIONS | LIBLLDB_LOG_STEP));
Error error;
lldb::ExecutionResults execution_results = lldb::eExecutionSetupError;
OpenPOWER on IntegriCloud