[nemiver] Continue execution upon (re)start with breakpoints set



commit 9222950eb3d91a1d6f082ab5cbaf013949a43388
Author: Dodji Seketeli <dodji seketeli org>
Date:   Sat Aug 31 17:02:39 2013 +0200

    Continue execution upon (re)start with breakpoints set
    
        * src/persp/dbgperspective/nmv-dbg-perspective.cc
        (DBGPerspective::execute_program): When we are (re)starting the
        inferior with breakpoints set, let's assume the user wants to
        continue the execution of the inferior upon its (re)loading; so
        let's do her that service.

 src/persp/dbgperspective/nmv-dbg-perspective.cc |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index 77e5539..3bb92f5 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -6254,6 +6254,12 @@ DBGPerspective::execute_program
                  ++it) {
                 set_breakpoint (it->second);
             }
+            if (!saved_bps.empty())
+                // We are restarting the same program, and we hope that
+                // some that at least one breakpoint is actually going to
+                // be set.  So let's schedule the continuation of the
+                // inferior's execution.
+                run_real (a_restarting);
         } else if (a_break_in_main_run) {
             LOG_DD ("here");
             dbg_engine->set_breakpoint
@@ -6270,6 +6276,10 @@ DBGPerspective::execute_program
         for (it = a_breaks.begin (); it != a_breaks.end (); ++it) {
             set_breakpoint (*it);
         }
+        // Here we are starting (or restarting) the program and we
+        // hope at least one breakpoint is going to be set; so lets
+        // schedule the continuation of the execution of the inferior.
+        run_real (a_restarting);
     }
 
     m_priv->last_prog_path_requested = prog;


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