[PATCH] Add more logging to nmv-gdb-engine.cc



While debugging an issue, I felt the need to add more logging to some
functions.

Tested and applied to master.

commit bc44795c26a67adbe8a93f8c96d4860fa26c6a01
Author: Dodji Seketeli <dodji seketeli org>
Date:   Sun Feb 19 18:22:58 2012 +0100

    Add more logging to nmv-gdb-engine.cc
    
    	* src/dbgengine/nmv-gdb-engine.cc
    	(GDBEngine::Priv::{launch_gdb_on_core_file, load_core_file}): Add
    	logging.

diff --git a/src/dbgengine/nmv-gdb-engine.cc b/src/dbgengine/nmv-gdb-engine.cc
index d050adf..8bc780a 100644
--- a/src/dbgengine/nmv-gdb-engine.cc
+++ b/src/dbgengine/nmv-gdb-engine.cc
@@ -835,11 +835,14 @@ public:
     bool launch_gdb_on_core_file (const UString &a_prog_path,
                                   const UString &a_core_path)
     {
+        LOG_FUNCTION_SCOPE_NORMAL_DD;
+
         vector<UString> argv;
 
         // if the executable program to be debugged is a libtool wrapper script,
         // run the debugging session under libtool
         if (is_libtool_executable_wrapper (a_prog_path)) {
+            LOG_DD (a_prog_path << " is a libtool wrapper.  ");
             argv.push_back ("libtool");
             argv.push_back ("--mode=execute");
         }
@@ -3155,6 +3158,7 @@ GDBEngine::load_core_file (const UString &a_prog_path,
     LOG_FUNCTION_SCOPE_NORMAL_DD;
 
     if (m_priv->is_gdb_running ()) {
+        LOG_DD ("GDB is already running, going to kill it");
         m_priv->kill_gdb ();
     }
     THROW_IF_FAIL (m_priv->launch_gdb_on_core_file (a_prog_path,

-- 
		Dodji


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