[nemiver] Properly mark the GDB line as busy
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver] Properly mark the GDB line as busy
- Date: Wed, 8 Jun 2011 23:59:02 +0000 (UTC)
commit 3cd89a41e12d2c79f799103813fd24c63bf7a964
Author: Dodji Seketeli <dodji seketeli org>
Date: Thu Jun 9 01:31:48 2011 +0200
Properly mark the GDB line as busy
* src/dbgengine/nmv-gdb-engine.cc (issue_command): Mark the line
as busy when we send data over the wire. The line is later marked
non-busy when we receive the proper marker from GDB.
(launch_gdb_and_set_args): Don't send data over the wire if it's
busy.
(on_gdb_stdout_has_data_signal): Slight indentation cleanup.
src/dbgengine/nmv-gdb-engine.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/dbgengine/nmv-gdb-engine.cc b/src/dbgengine/nmv-gdb-engine.cc
index 17fdfcc..9efa427 100644
--- a/src/dbgengine/nmv-gdb-engine.cc
+++ b/src/dbgengine/nmv-gdb-engine.cc
@@ -793,7 +793,7 @@ public:
if (!result) {return false;}
UString args = quote_args (a_prog_args);
if (!args.empty ())
- issue_command (Command ("set args " + args));
+ queue_command (Command ("set args " + args));
set_debugger_parameter ("follow-fork-mode", follow_fork_mode);
return true;
@@ -839,6 +839,7 @@ public:
//usually, when we send a command to the debugger,
//it becomes busy (in a running state), untill it gets
//back to us saying the converse.
+ line_busy = true;
set_state (IDebugger::RUNNING);
return true;
}
@@ -993,7 +994,7 @@ public:
UString::size_type i = 0;
while ((i = gdb_stdout_buffer.find ("\n(gdb)")) !=
- std::string::npos) {
+ std::string::npos) {
i += 6;/*is the offset in the buffer of the end of
*of the '(gdb)' prompt
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]