[nemiver] Add more logging in the debugger perspective



commit 46c0fab1e1b609dd34df0efa0e582df1c62f3f21
Author: Dodji Seketeli <dodji seketeli org>
Date:   Sat Aug 31 16:59:59 2013 +0200

    Add more logging in the debugger perspective
    
        * src/persp/dbgperspective/nmv-dbg-perspective.cc
        (DBGPerspective::on_debugger_bp_automatically_set_on_main): Add
        function enter/exit logs.
        (DBGPerspective::execute_program): Add more logging here.

 src/persp/dbgperspective/nmv-dbg-perspective.cc |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index ccbee1e..77e5539 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -2408,6 +2408,7 @@ DBGPerspective::on_debugger_bp_automatically_set_on_main
 (const map<string, IDebugger::Breakpoint>& a_bps,
  bool a_restarting)
 {
+    LOG_FUNCTION_SCOPE_NORMAL_DD
     NEMIVER_TRY;
 
     for (map<string, IDebugger::Breakpoint>::const_iterator i = a_bps.begin ();
@@ -6244,7 +6245,9 @@ DBGPerspective::execute_program
     // If this is a new program we are debugging,
     // set a breakpoint in 'main' by default.
     if (a_breaks.empty ()) {
+        LOG_DD ("here");
         if (!is_new_program) {
+            LOG_DD ("here");
             map<string, IDebugger::Breakpoint>::const_iterator it;
             for (it = saved_bps.begin ();
                  it != saved_bps.end ();
@@ -6252,6 +6255,7 @@ DBGPerspective::execute_program
                 set_breakpoint (it->second);
             }
         } else if (a_break_in_main_run) {
+            LOG_DD ("here");
             dbg_engine->set_breakpoint
                 ("main",
                  sigc::bind
@@ -6261,6 +6265,7 @@ DBGPerspective::execute_program
                   a_restarting));
         }
     } else {
+        LOG_DD ("here");
         vector<IDebugger::Breakpoint>::const_iterator it;
         for (it = a_breaks.begin (); it != a_breaks.end (); ++it) {
             set_breakpoint (*it);


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