diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2012-08-13 21:09:54 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2012-08-13 21:09:54 +0000 |
| commit | 209bd65ea492d5ae713339314a52d9ae7421102d (patch) | |
| tree | 697d10d9c53df9b55856378c5c6e496dbface151 /lldb/source/Breakpoint/WatchpointOptions.cpp | |
| parent | d0af1d9657b5c2534f6e9f977d0d37be2a3beab4 (diff) | |
| download | bcm5719-llvm-209bd65ea492d5ae713339314a52d9ae7421102d.tar.gz bcm5719-llvm-209bd65ea492d5ae713339314a52d9ae7421102d.zip | |
rdar://problem/12007576
Record the snapshot of our watched value when the watchpoint is set or hit.
And report the old/new values when watchpoint is triggered. Add some test scenarios.
llvm-svn: 161785
Diffstat (limited to 'lldb/source/Breakpoint/WatchpointOptions.cpp')
| -rw-r--r-- | lldb/source/Breakpoint/WatchpointOptions.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lldb/source/Breakpoint/WatchpointOptions.cpp b/lldb/source/Breakpoint/WatchpointOptions.cpp index 931b7a85e5a..86ea411e4af 100644 --- a/lldb/source/Breakpoint/WatchpointOptions.cpp +++ b/lldb/source/Breakpoint/WatchpointOptions.cpp @@ -168,11 +168,8 @@ WatchpointOptions::GetCallbackDescription (Stream *s, lldb::DescriptionLevel lev { if (m_callback_baton_sp.get()) { - if (level != eDescriptionLevelBrief) - { - s->EOL(); - m_callback_baton_sp->GetDescription (s, level); - } + s->EOL(); + m_callback_baton_sp->GetDescription (s, level); } } void @@ -222,7 +219,7 @@ WatchpointOptions::CommandBaton::GetDescription (Stream *s, lldb::DescriptionLev } s->IndentMore (); - s->Indent("Watchpoint commands:\n"); + s->Indent("watchpoint commands:\n"); s->IndentMore (); if (data && data->user_source.GetSize() > 0) |

