diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2015-07-03 16:57:06 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2015-07-03 16:57:06 +0000 |
| commit | 5e95aa85bb660d45e9905ef1d7180b2678280660 (patch) | |
| tree | 3c2e41c3be19b7fc7666ed45a5f91ec3b6e35f2a /source/Breakpoint/Breakpoint.cpp | |
| parent | 12bd4897ff0678fa663e09d78ebc22dd255ceb86 (diff) | |
Notes
Diffstat (limited to 'source/Breakpoint/Breakpoint.cpp')
| -rw-r--r-- | source/Breakpoint/Breakpoint.cpp | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/source/Breakpoint/Breakpoint.cpp b/source/Breakpoint/Breakpoint.cpp index beb0f6bc5a6e..23d484f0f68a 100644 --- a/source/Breakpoint/Breakpoint.cpp +++ b/source/Breakpoint/Breakpoint.cpp @@ -31,7 +31,6 @@ #include "lldb/Symbol/SymbolContext.h" #include "lldb/Target/Target.h" #include "lldb/Target/ThreadSpec.h" -#include "lldb/lldb-private-log.h" #include "llvm/Support/Casting.h" using namespace lldb; @@ -877,25 +876,18 @@ Breakpoint::GetDescription (Stream *s, lldb::DescriptionLevel level, bool show_l { s->Printf ("no locations (pending)."); } - else if (num_locations == 1) + else if (num_locations == 1 && show_locations == false) { - // If there is one location only, we'll just print that location information. But don't do this if - // show locations is true, then that will be handled below. - if (show_locations == false) - { - GetLocationAtIndex(0)->GetDescription(s, level); - } - else - { - s->Printf ("%zd locations.", num_locations); - } + // There is only one location, so we'll just print that location information. + GetLocationAtIndex(0)->GetDescription(s, level); } else { - s->Printf ("%zd locations.", num_locations); + s->Printf ("%" PRIu64 " locations.", static_cast<uint64_t>(num_locations)); } s->EOL(); break; + case lldb::eDescriptionLevelVerbose: // Verbose mode does a debug dump of the breakpoint Dump (s); @@ -957,6 +949,34 @@ Breakpoint::GetFilterDescription (Stream *s) m_filter_sp->GetDescription (s); } +bool +Breakpoint::EvaluatePrecondition (StoppointCallbackContext &context) +{ + if (!m_precondition_sp) + return true; + + return m_precondition_sp->EvaluatePrecondition(context); +} + +bool +Breakpoint::BreakpointPrecondition::EvaluatePrecondition(StoppointCallbackContext &context) +{ + return true; +} + +void +Breakpoint::BreakpointPrecondition::DescribePrecondition(Stream &stream, lldb::DescriptionLevel level) +{ +} + +Error +Breakpoint::BreakpointPrecondition::ConfigurePrecondition(Args &options) +{ + Error error; + error.SetErrorString("Base breakpoint precondition has no options."); + return error; +} + void Breakpoint::SendBreakpointChangedEvent (lldb::BreakpointEventType eventKind) { |
