aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Khouzam <marc.khouzam@ericsson.com>2012-04-24 14:26:22 +0000
committerMarc Khouzam <marc.khouzam@ericsson.com>2012-04-24 14:26:22 +0000
commit4734f50e63de6deef4fe7976bbfaa398ac701deb (patch)
tree6b4471b5c0573ec4e48c312e29cf37c04eca53d3
parentc326b90eb92a34af3227efef385f50920dd75624 (diff)
downloadgdb-4734f50e63de6deef4fe7976bbfaa398ac701deb.zip
gdb-4734f50e63de6deef4fe7976bbfaa398ac701deb.tar.gz
gdb-4734f50e63de6deef4fe7976bbfaa398ac701deb.tar.bz2
2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
* mi/mi-main.c (mi_cmd_execute): Choose a live thread not just any thread.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mi/mi-main.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0744c31..a3a72fb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
+
+ * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
+ any thread.
+
2012-04-24 Yao Qi <yao@codesourcery.com>
* breakpoint.c (ep_is_catchpoint): Renamed to ...
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 94e580f..90fb624 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -2066,7 +2066,7 @@ mi_cmd_execute (struct mi_parse *parse)
provide --thread if it wishes to operate on a specific
thread. */
if (inf->pid != 0)
- tp = any_thread_of_process (inf->pid);
+ tp = any_live_thread_of_process (inf->pid);
switch_to_thread (tp ? tp->ptid : null_ptid);
set_current_program_space (inf->pspace);
}