[nemiver/gtk2-branch] Ignore 'current-thread-id' in thread list
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver/gtk2-branch] Ignore 'current-thread-id' in thread list
- Date: Sat, 2 Apr 2011 14:32:26 +0000 (UTC)
commit 99135d38f3031d7675d18538e9da5731634bd850
Author: Dodji Seketeli <dodji seketeli org>
Date: Sat Apr 2 15:45:17 2011 +0200
Ignore 'current-thread-id' in thread list
* src/dbgengine/nmv-gdbmi-parser.cc
(GDBMIParser::parse_threads_list): Ignore current-thread-id when
coming across it.
src/dbgengine/nmv-gdbmi-parser.cc | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/src/dbgengine/nmv-gdbmi-parser.cc b/src/dbgengine/nmv-gdbmi-parser.cc
index 84d6fad..e4a1fa4 100644
--- a/src/dbgengine/nmv-gdbmi-parser.cc
+++ b/src/dbgengine/nmv-gdbmi-parser.cc
@@ -2408,12 +2408,15 @@ GDBMIParser::parse_threads_list (UString::size_type a_from,
num_threads =
atoi (gdbmi_result->value ()->get_string_content ().c_str ());
} else if (gdbmi_result->variable () == "current-thread-id") {
- // If we've got a RESULT which variable is "current-thread-id",
- // expect the result to be a string which is the id of the current
- // thread.
- unsigned current_thread_id =
- atoi (gdbmi_result->value ()->get_string_content ().c_str ());
- thread_ids.push_back (current_thread_id);
+ // If we've got a RESULT which variable is
+ // "current-thread-id", expect the result to be a string
+ // which is the id of the current thread. Also, we don't
+ // use the current ID for now, as, each time we stop, the
+ // current thread id is given in the information related
+ // to the stop state.
+
+ // unsigned current_thread_id =
+ // atoi (gdbmi_result->value ()->get_string_content ().c_str ());
} else {
// Let's consume the unknown RESULT which we might have gotten for
// now.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]