[nemiver/el6-branch] Add some logging to nmv-gdb-engine.cc
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver/el6-branch] Add some logging to nmv-gdb-engine.cc
- Date: Wed, 31 Aug 2011 11:17:03 +0000 (UTC)
commit 30101ffed6656573e5af85592e756d01581ddb3e
Author: Dodji Seketeli <dodji seketeli org>
Date: Thu Jun 9 01:38:55 2011 +0200
Add some logging to nmv-gdb-engine.cc
* src/dbgengine/nmv-gdb-engine.cc (GDBEngine::Priv::issue_command)
(OnBreakpointHandler::do_handle, GDBEngine::load_program): Add
some logging.
src/dbgengine/nmv-gdb-engine.cc | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/dbgengine/nmv-gdb-engine.cc b/src/dbgengine/nmv-gdb-engine.cc
index 01f525e..de8871f 100644
--- a/src/dbgengine/nmv-gdb-engine.cc
+++ b/src/dbgengine/nmv-gdb-engine.cc
@@ -842,6 +842,7 @@ public:
set_state (IDebugger::RUNNING);
return true;
}
+ LOG_ERROR ("Issuing of last command failed");
return false;
}
@@ -1406,8 +1407,10 @@ struct OnBreakpointHandler: OutputHandler {
&& c.has_slot ()) {
IDebugger::BreakpointSlot slot =
c.get_slot<IDebugger::BreakpointSlot> ();
+ LOG_DD ("Calling slot of IDebugger::set_breakpoint()");
slot (p);
}
+ LOG_DD ("Emitting IDebugger::breakpoint_set_signal()");
m_engine->breakpoint_set_signal ().emit
(p, a_in.command ().cookie ());
m_engine->set_state (IDebugger::READY);
@@ -1441,7 +1444,8 @@ struct OnBreakpointHandler: OutputHandler {
<< "', but that's not a well formed number dude.");
}
} else if (has_breaks) {
- LOG_DD ("firing IDebugger::breakpoint_set_signal()");
+ LOG_DD ("firing IDebugger::breakpoints_list_signal(), after command: "
+ << a_in.command ().name ());
m_engine->breakpoints_list_signal ().emit
(m_engine->get_cached_breakpoints (),
a_in.command ().cookie ());
@@ -2900,8 +2904,10 @@ GDBEngine::load_program (const UString &a_prog,
// In case we are restarting GDB after a crash, the command
// queue might be stuck. Let's restart it.
- if (a_force)
+ if (a_force) {
+ LOG_DD ("Reset command queue");
m_priv->reset_command_queue ();
+ }
queue_command (Command ("set breakpoint pending on"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]