[nemiver/better-variable-format: 8/10] Move null slots to nmv-debugger-utils.[h|cc]



commit aaea0bdc34407fdb506780185b91504f824d6d4d
Author: Dodji Seketeli <dodji seketeli org>
Date:   Fri Feb 25 23:18:06 2011 +0100

    Move null slots to nmv-debugger-utils.[h|cc]
    
    	* src/dbgengine/nmv-gdb-engine.cc (null_const_variable_slot)
    	(null_const_variable_list_slot, null_const_ustring_slot): Move
    	these to src/dbgengine/nmv-debugger-utils.cc.  Import
    	nemiver::debugger_utils::null_const_variable_slot, and
    	nemiver::debugger_utils::null_const_variable_list_slot with using
    	directives.
    	* src/dbgengine/nmv-debugger-utils.h (null_const_variable_slot)
    	(null_const_variable_list_slot, null_const_ustring_slot): Declare
    	these.
    	* src/dbgengine/nmv-debugger-utils.cc (null_const_variable_slot)
    	(null_const_variable_list_slot, null_const_ustring_slot): Moved
    	these here from src/dbgengine/nmv-gdb-engine.cc.

 src/dbgengine/nmv-debugger-utils.cc |   15 +++++++++++++++
 src/dbgengine/nmv-debugger-utils.h  |    6 ++++++
 src/dbgengine/nmv-gdb-engine.cc     |   19 ++++---------------
 3 files changed, 25 insertions(+), 15 deletions(-)
---
diff --git a/src/dbgengine/nmv-debugger-utils.cc b/src/dbgengine/nmv-debugger-utils.cc
index 4d14f81..abbd8dc 100644
--- a/src/dbgengine/nmv-debugger-utils.cc
+++ b/src/dbgengine/nmv-debugger-utils.cc
@@ -29,6 +29,21 @@
 NEMIVER_BEGIN_NAMESPACE (nemiver)
 NEMIVER_BEGIN_NAMESPACE (debugger_utils)
 
+void
+null_const_variable_slot (const IDebugger::VariableSafePtr &)
+{
+}
+
+void
+null_const_variable_list_slot (const IDebugger::VariableList &)
+{
+}
+
+void
+null_const_ustring_slot (const UString &)
+{
+}
+
 /// Generate a string of of white spaces.
 /// \param a_nb_ws the number of white spaces to generate
 /// \param a_ws_str the output string the white spaces are
diff --git a/src/dbgengine/nmv-debugger-utils.h b/src/dbgengine/nmv-debugger-utils.h
index 3495b6e..a7b18d9 100644
--- a/src/dbgengine/nmv-debugger-utils.h
+++ b/src/dbgengine/nmv-debugger-utils.h
@@ -32,6 +32,12 @@
 NEMIVER_BEGIN_NAMESPACE (nemiver)
 NEMIVER_BEGIN_NAMESPACE (debugger_utils)
 
+void null_const_variable_slot (const IDebugger::VariableSafePtr &);
+
+void null_const_variable_list_slot (const IDebugger::VariableList &);
+
+void null_const_ustring_slot (const UString &);
+
 void dump_variable_value (IDebugger::VariableSafePtr a_var,
                           int a_indent_num,
                           std::ostringstream &a_os,
diff --git a/src/dbgengine/nmv-gdb-engine.cc b/src/dbgengine/nmv-gdb-engine.cc
index e87cf6a..5a58416 100644
--- a/src/dbgengine/nmv-gdb-engine.cc
+++ b/src/dbgengine/nmv-gdb-engine.cc
@@ -53,6 +53,10 @@ using namespace nemiver::cpp;
 static const UString GDBMI_OUTPUT_DOMAIN = "gdbmi-output-domain";
 static const UString DEFAULT_GDB_BINARY = "default-gdb-binary";
 
+using nemiver::debugger_utils::null_const_variable_slot;
+using nemiver::debugger_utils::null_const_variable_list_slot;
+
+
 NEMIVER_BEGIN_NAMESPACE (nemiver)
 
 extern const char* CONF_KEY_GDB_BINARY;
@@ -4857,21 +4861,6 @@ GDBEngine::disassemble_lines (const UString &a_file_name,
 }
 
 void
-null_const_variable_slot (const IDebugger::VariableSafePtr &)
-{
-}
-
-void
-null_const_variable_list_slot (const IDebugger::VariableList &)
-{
-}
-
-void
-null_const_ustring_slot (const UString &)
-{
-}
-
-void
 GDBEngine::create_variable (const UString &a_name,
                             const UString &a_cookie)
 {



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