[nemiver] 632305 Avoid disassembling location of pending breakpoint



commit b0abe9b25cdacb3ef6ca5fc93de10817de01796e
Author: Dodji Seketeli <dodji seketeli org>
Date:   Sun Sep 4 21:39:35 2011 +0200

    632305 Avoid disassembling location of pending breakpoint
    
    	* src/persp/dbgperspective/nmv-dbg-perspective.cc
    	(DBGPerspective::append_breakpoint): Don't try to graphically
    	append a /pending/ breakpoint.

 src/persp/dbgperspective/nmv-dbg-perspective.cc |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index 99ef2bf..f4dc2f9 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -6658,10 +6658,15 @@ DBGPerspective::append_breakpoint (const IDebugger::Breakpoint &a_breakpoint)
     m_priv->breakpoints[a_breakpoint.number ()] = a_breakpoint;
     m_priv->breakpoints[a_breakpoint.number ()].file_full_name (file_path);
 
-    // We don't know how to graphically represent non-standard
-    // breakpoints (e.g watchpoints) at this moment.
-    if (type != IDebugger::Breakpoint::STANDARD_BREAKPOINT_TYPE
-        && type != IDebugger::Breakpoint::COUNTPOINT_TYPE)
+
+    if (// We don't know how to graphically represent non-standard
+        // breakpoints (e.g watchpoints) at this moment, so let's not
+        // bother trying to graphically represent them.
+        (type != IDebugger::Breakpoint::STANDARD_BREAKPOINT_TYPE
+         && type != IDebugger::Breakpoint::COUNTPOINT_TYPE)
+        // Let's not bother trying to to graphically represent a
+        // pending breakpoint, either.
+        || a_breakpoint.is_pending ())
         return;
 
     editor = get_or_append_source_editor_from_path (file_path);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]