nemiver r823 - in branches/0.5: . src/dbgengine src/persp/dbgperspective



Author: dodji
Date: Sun May 25 20:59:25 2008
New Revision: 823
URL: http://svn.gnome.org/viewvc/nemiver?rev=823&view=rev

Log:
fix #534695 slowness to attach to certain processes

	* src/dbgengine/nmv-gdb-engine.cc, nmv-i-debugger: 
	  Added the IDebugger::step_instruction() call to step into the
	  next machine instruction, instead of stepping into the next C
	  instruction.
	* src/persp/dbgperspective/nmv-dbg-perspective.cc:
	  (DBGPerspective::on_debugger_command_done_signal): step into the
	  next machine instruction instead of over the next instruction.
	  This might help in fixing bug #534695


Modified:
   branches/0.5/ChangeLog
   branches/0.5/src/dbgengine/nmv-gdb-engine.cc
   branches/0.5/src/dbgengine/nmv-gdb-engine.h
   branches/0.5/src/dbgengine/nmv-i-debugger.h
   branches/0.5/src/persp/dbgperspective/nmv-dbg-perspective.cc

Modified: branches/0.5/src/dbgengine/nmv-gdb-engine.cc
==============================================================================
--- branches/0.5/src/dbgengine/nmv-gdb-engine.cc	(original)
+++ branches/0.5/src/dbgengine/nmv-gdb-engine.cc	Sun May 25 20:59:25 2008
@@ -2835,6 +2835,16 @@
 }
 
 void
+GDBEngine::step_instruction (const UString &a_cookie)
+{
+    LOG_FUNCTION_SCOPE_NORMAL_DD;
+    THROW_IF_FAIL (m_priv);
+    queue_command (Command ("step-instruction",
+                            "-exec-next-instruction",
+                            a_cookie));
+}
+
+void
 GDBEngine::continue_to_position (const UString &a_path,
                                  gint a_line_num,
                                  const UString &a_cookie)

Modified: branches/0.5/src/dbgengine/nmv-gdb-engine.h
==============================================================================
--- branches/0.5/src/dbgengine/nmv-gdb-engine.h	(original)
+++ branches/0.5/src/dbgengine/nmv-gdb-engine.h	Sun May 25 20:59:25 2008
@@ -266,6 +266,8 @@
 
     void step_out (const UString &a_cookie) ;
 
+    void step_instruction (const UString &a_cookie);
+
     void step_over (const UString &a_cookie) ;
 
     void continue_to_position (const UString &a_path,

Modified: branches/0.5/src/dbgengine/nmv-i-debugger.h
==============================================================================
--- branches/0.5/src/dbgengine/nmv-i-debugger.h	(original)
+++ branches/0.5/src/dbgengine/nmv-i-debugger.h	Sun May 25 20:59:25 2008
@@ -730,6 +730,8 @@
 
     virtual void step_out (const UString &a_cookie="") = 0;
 
+    virtual void step_instruction (const UString &a_cookie="") = 0;
+
     virtual void continue_to_position (const UString &a_path,
                                        gint a_line_num,
                                        const UString &a_cookie="") = 0;

Modified: branches/0.5/src/persp/dbgperspective/nmv-dbg-perspective.cc
==============================================================================
--- branches/0.5/src/persp/dbgperspective/nmv-dbg-perspective.cc	(original)
+++ branches/0.5/src/persp/dbgperspective/nmv-dbg-perspective.cc	Sun May 25 20:59:25 2008
@@ -1905,7 +1905,7 @@
     NEMIVER_TRY
     if (a_command == "attach-to-program") {
         //attached_to_target_signal ().emit (true) ;
-        debugger ()->step_over () ;
+        debugger ()->step_instruction () ;
         debugger ()->get_target_info () ;
     }
     NEMIVER_CATCH



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