[nemiver] 664463 - cannot debug the same software twice



commit e2de45343d9a27b8c7b6b09a577275c8e11bee5c
Author: Dodji Seketeli <dodji seketeli org>
Date:   Thu Nov 24 12:21:24 2011 +0100

    664463 - cannot debug the same software twice
    
    	* src/persp/dbgperspective/nmv-dbg-perspective.cc
    	(DBGPerspective::set_breakpoint): Don't try to set a breakpoint if
    	it has neither and address nor a filename set.

 src/persp/dbgperspective/nmv-dbg-perspective.cc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index 87a1ad9..7f00a2d 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -6644,10 +6644,12 @@ DBGPerspective::set_breakpoint (const IDebugger::Breakpoint &a_breakpoint)
                                          a_breakpoint.line (),
                                          a_breakpoint.condition (),
                                          ignore_count, cookie);
-        else
+        else if (!a_breakpoint.address ().empty ())
             debugger ()->set_breakpoint (a_breakpoint.address (),
                                          a_breakpoint.condition (),
                                          ignore_count, cookie);
+        // else we don't set this breakpoint as it has neither an
+        // address or a file name associated.
     } else if (a_breakpoint.type ()
                == IDebugger::Breakpoint::WATCHPOINT_TYPE) {
         debugger ()->set_watchpoint (a_breakpoint.expression (),



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