diff options
author | Jim Ingham <jingham@apple.com> | 2010-06-18 01:00:58 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2010-06-18 01:00:58 +0000 |
commit | 0136309f5aaf4fc0e11c20222ab4a3bfda1e5ec5 (patch) | |
tree | b401c0735afc8262c77f1d14d773fc90af88f6eb /lldb/source/Breakpoint/Breakpoint.cpp | |
parent | ae1c4cf5680d8978ab5d12c5757ee5c448f98c12 (diff) | |
download | bcm5719-llvm-0136309f5aaf4fc0e11c20222ab4a3bfda1e5ec5.tar.gz bcm5719-llvm-0136309f5aaf4fc0e11c20222ab4a3bfda1e5ec5.zip |
Change the Breakpoint & BreakpointLocation GetDescription methods so they call the BreakpointOptions::GetDescription rather
than picking bits out of the breakpoint options. Added BreakpointOptions::GetDescription to do this job. Some more mucking
around to keep the breakpoint listing from getting too verbose.
llvm-svn: 106262
Diffstat (limited to 'lldb/source/Breakpoint/Breakpoint.cpp')
-rw-r--r-- | lldb/source/Breakpoint/Breakpoint.cpp | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/lldb/source/Breakpoint/Breakpoint.cpp b/lldb/source/Breakpoint/Breakpoint.cpp index b3576b6a5da..fb277b223ba 100644 --- a/lldb/source/Breakpoint/Breakpoint.cpp +++ b/lldb/source/Breakpoint/Breakpoint.cpp @@ -380,28 +380,21 @@ Breakpoint::GetDescription (Stream *s, lldb::DescriptionLevel level, bool show_l s->Printf(" with 0 locations (Pending Breakpoint)."); } + GetOptions()->GetDescription(s, level); + if (level == lldb::eDescriptionLevelFull) { - Baton *baton = GetOptions()->GetBaton(); - if (baton) - { - s->EOL (); - s->Indent(); - baton->GetDescription(s, level); - } + s->IndentLess(); + s->EOL(); } break; case lldb::eDescriptionLevelVerbose: // Verbose mode does a debug dump of the breakpoint Dump (s); - Baton *baton = GetOptions()->GetBaton(); - if (baton) - { - s->EOL (); - s->Indent(); - baton->GetDescription(s, level); - } + s->EOL (); + s->Indent(); + GetOptions()->GetDescription(s, level); break; } @@ -420,7 +413,8 @@ Breakpoint::GetDescription (Stream *s, lldb::DescriptionLevel level, bool show_l } } -Breakpoint::BreakpointEventData::BreakpointEventData (Breakpoint::BreakpointEventData::EventSubType sub_type, BreakpointSP &new_breakpoint_sp) : +Breakpoint::BreakpointEventData::BreakpointEventData (Breakpoint::BreakpointEventData::EventSubType sub_type, + BreakpointSP &new_breakpoint_sp) : EventData (), m_sub_type (sub_type), m_new_breakpoint_sp (new_breakpoint_sp) |