[Lldb-commits] [lldb] r141307 - /lldb/trunk/source/Breakpoint/WatchpointLocation.cpp
Johnny Chen
johnny.chen at apple.com
Thu Oct 6 13:27:05 PDT 2011
Author: johnny
Date: Thu Oct 6 15:27:05 2011
New Revision: 141307
URL: http://llvm.org/viewvc/llvm-project?rev=141307&view=rev
Log:
Simplify the verbose output of WatchpointLocation::DumpWithLevel().
Modified:
lldb/trunk/source/Breakpoint/WatchpointLocation.cpp
Modified: lldb/trunk/source/Breakpoint/WatchpointLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/WatchpointLocation.cpp?rev=141307&r1=141306&r2=141307&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/WatchpointLocation.cpp (original)
+++ lldb/trunk/source/Breakpoint/WatchpointLocation.cpp Thu Oct 6 15:27:05 2011
@@ -126,12 +126,18 @@
s->Printf("\n declare @ '%s'", m_decl_str.c_str());
if (description_level >= lldb::eDescriptionLevelVerbose)
- s->Printf("\n hw_index = %i hit_count = %-4u ignore_count = %-4u callback = %8p baton = %8p",
- GetHardwareIndex(),
- GetHitCount(),
- GetIgnoreCount(),
- m_callback,
- m_callback_baton);
+ if (m_callback)
+ s->Printf("\n hw_index = %i hit_count = %-4u ignore_count = %-4u callback = %8p baton = %8p",
+ GetHardwareIndex(),
+ GetHitCount(),
+ GetIgnoreCount(),
+ m_callback,
+ m_callback_baton);
+ else
+ s->Printf("\n hw_index = %i hit_count = %-4u ignore_count = %-4u",
+ GetHardwareIndex(),
+ GetHitCount(),
+ GetIgnoreCount());
}
bool
More information about the lldb-commits
mailing list