[Lldb-commits] [lldb] r150131 - /lldb/trunk/source/Breakpoint/Breakpoint.cpp
Jim Ingham
jingham at apple.com
Wed Feb 8 17:49:26 PST 2012
Author: jingham
Date: Wed Feb 8 19:49:26 2012
New Revision: 150131
URL: http://llvm.org/viewvc/llvm-project?rev=150131&view=rev
Log:
Some Breakpoint:: methods crept down be log the Breakpoint::BreakpointEventData methods.
Modified:
lldb/trunk/source/Breakpoint/Breakpoint.cpp
Modified: lldb/trunk/source/Breakpoint/Breakpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/Breakpoint.cpp?rev=150131&r1=150130&r2=150131&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/Breakpoint.cpp (original)
+++ lldb/trunk/source/Breakpoint/Breakpoint.cpp Wed Feb 8 19:49:26 2012
@@ -524,6 +524,68 @@
}
}
+void
+Breakpoint::GetResolverDescription (Stream *s)
+{
+ if (m_resolver_sp)
+ m_resolver_sp->GetDescription (s);
+}
+
+
+bool
+Breakpoint::GetMatchingFileLine (const ConstString &filename, uint32_t line_number, BreakpointLocationCollection &loc_coll)
+{
+ // TODO: To be correct, this method needs to fill the breakpoint location collection
+ // with the location IDs which match the filename and line_number.
+ //
+
+ if (m_resolver_sp)
+ {
+ BreakpointResolverFileLine *resolverFileLine = dyn_cast<BreakpointResolverFileLine>(m_resolver_sp.get());
+ if (resolverFileLine &&
+ resolverFileLine->m_file_spec.GetFilename() == filename &&
+ resolverFileLine->m_line_number == line_number)
+ {
+ return true;
+ }
+ }
+ return false;
+}
+
+void
+Breakpoint::GetFilterDescription (Stream *s)
+{
+ m_filter_sp->GetDescription (s);
+}
+
+void
+Breakpoint::SendBreakpointChangedEvent (lldb::BreakpointEventType eventKind)
+{
+ if (!m_being_created
+ && !IsInternal()
+ && GetTarget().EventTypeHasListeners(Target::eBroadcastBitBreakpointChanged))
+ {
+ BreakpointEventData *data = new Breakpoint::BreakpointEventData (eventKind, shared_from_this());
+
+ GetTarget().BroadcastEvent (Target::eBroadcastBitBreakpointChanged, data);
+ }
+}
+
+void
+Breakpoint::SendBreakpointChangedEvent (BreakpointEventData *data)
+{
+
+ if (data == NULL)
+ return;
+
+ if (!m_being_created
+ && !IsInternal()
+ && GetTarget().EventTypeHasListeners(Target::eBroadcastBitBreakpointChanged))
+ GetTarget().BroadcastEvent (Target::eBroadcastBitBreakpointChanged, data);
+ else
+ delete data;
+}
+
Breakpoint::BreakpointEventData::BreakpointEventData (BreakpointEventType sub_type,
const BreakpointSP &new_breakpoint_sp) :
EventData (),
@@ -625,66 +687,3 @@
return bp_loc_sp;
}
-
-
-void
-Breakpoint::GetResolverDescription (Stream *s)
-{
- if (m_resolver_sp)
- m_resolver_sp->GetDescription (s);
-}
-
-
-bool
-Breakpoint::GetMatchingFileLine (const ConstString &filename, uint32_t line_number, BreakpointLocationCollection &loc_coll)
-{
- // TODO: To be correct, this method needs to fill the breakpoint location collection
- // with the location IDs which match the filename and line_number.
- //
-
- if (m_resolver_sp)
- {
- BreakpointResolverFileLine *resolverFileLine = dyn_cast<BreakpointResolverFileLine>(m_resolver_sp.get());
- if (resolverFileLine &&
- resolverFileLine->m_file_spec.GetFilename() == filename &&
- resolverFileLine->m_line_number == line_number)
- {
- return true;
- }
- }
- return false;
-}
-
-void
-Breakpoint::GetFilterDescription (Stream *s)
-{
- m_filter_sp->GetDescription (s);
-}
-
-void
-Breakpoint::SendBreakpointChangedEvent (lldb::BreakpointEventType eventKind)
-{
- if (!m_being_created
- && !IsInternal()
- && GetTarget().EventTypeHasListeners(Target::eBroadcastBitBreakpointChanged))
- {
- BreakpointEventData *data = new Breakpoint::BreakpointEventData (eventKind, shared_from_this());
-
- GetTarget().BroadcastEvent (Target::eBroadcastBitBreakpointChanged, data);
- }
-}
-
-void
-Breakpoint::SendBreakpointChangedEvent (BreakpointEventData *data)
-{
-
- if (data == NULL)
- return;
-
- if (!m_being_created
- && !IsInternal()
- && GetTarget().EventTypeHasListeners(Target::eBroadcastBitBreakpointChanged))
- GetTarget().BroadcastEvent (Target::eBroadcastBitBreakpointChanged, data);
- else
- delete data;
-}
More information about the lldb-commits
mailing list