diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-10-06 20:27:05 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-10-06 20:27:05 +0000 |
commit | b238517da585e2605704d286daa4e650f400ebab (patch) | |
tree | 9134b3c795ad1e38acf953063bca27090a99b977 /source/Breakpoint | |
parent | 428b5500506428f012e3bc65b8c9aa822dc2739c (diff) | |
download | lldb-b238517da585e2605704d286daa4e650f400ebab.tar.gz |
Simplify the verbose output of WatchpointLocation::DumpWithLevel().
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@141307 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Breakpoint')
-rw-r--r-- | source/Breakpoint/WatchpointLocation.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/source/Breakpoint/WatchpointLocation.cpp b/source/Breakpoint/WatchpointLocation.cpp index 01f618982..46f24caed 100644 --- a/source/Breakpoint/WatchpointLocation.cpp +++ b/source/Breakpoint/WatchpointLocation.cpp @@ -126,12 +126,18 @@ WatchpointLocation::DumpWithLevel(Stream *s, lldb::DescriptionLevel description_ 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 |