nemiver r820 - in trunk: . src/dbgengine src/persp/dbgperspective
- From: dodji svn gnome org
- To: svn-commits-list gnome org
- Subject: nemiver r820 - in trunk: . src/dbgengine src/persp/dbgperspective
- Date: Sat, 24 May 2008 23:06:00 +0000 (UTC)
Author: dodji
Date: Sat May 24 23:06:00 2008
New Revision: 820
URL: http://svn.gnome.org/viewvc/nemiver?rev=820&view=rev
Log:
fix 534619: properly detach from target
* src/dbgengine/nmv-gdb-engine.cc:
(in the OnCommandDoneHandler): don't set the engine state to
IDebugger::READY when the command that has been DONE is
"detach-from-target". This should fix #534619
Modified:
trunk/ChangeLog
trunk/src/dbgengine/nmv-gdb-engine.cc
trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc
Modified: trunk/src/dbgengine/nmv-gdb-engine.cc
==============================================================================
--- trunk/src/dbgengine/nmv-gdb-engine.cc (original)
+++ trunk/src/dbgengine/nmv-gdb-engine.cc Sat May 24 23:06:00 2008
@@ -1216,7 +1216,9 @@
//TODO: this is not necessarily true. Before setting the state
//to ready here, one must now which command exactly was fired so
//that gdb returned the "DONE" status for it.
- m_engine->set_state (IDebugger::READY);
+ if (a_in.command ().name () != "detach-from-target") {
+ m_engine->set_state (IDebugger::READY);
+ }
}
};//struct OnCommandDoneHandler
@@ -2161,6 +2163,7 @@
{
LOG_FUNCTION_SCOPE_NORMAL_DD;
THROW_IF_FAIL (m_priv);
+ LOG_DD ("is_attached: " << (int)m_priv->is_attached);
return m_priv->is_attached;
}
Modified: trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc
==============================================================================
--- trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc (original)
+++ trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc Sat May 24 23:06:00 2008
@@ -1400,6 +1400,8 @@
THROW_IF_FAIL (m_priv->debugger_ready_action_group) ;
THROW_IF_FAIL (m_priv->throbber) ;
+ LOG_DD ("a_is_ready: " << (int)a_is_ready);
+
if (a_is_ready) {
// reset to default cursor
workbench ().get_root_window ().get_window ()->set_cursor ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]