From 4734f50e63de6deef4fe7976bbfaa398ac701deb Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Tue, 24 Apr 2012 14:26:22 +0000 Subject: 2012-04-24 Marc Khouzam * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just any thread. --- gdb/mi/mi-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/mi') 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); } -- cgit v1.1