From ce5abeb648e2ae069e7bc0f0a630486b63de9d3b Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Tue, 24 Apr 2012 15:02:12 +0000 Subject: [PATCH] 2012-04-24 Marc Khouzam * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just any thread. --- gdb/ChangeLog | 5 +++++ gdb/mi/mi-main.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dcc04763d9f..07b9ef7c5c7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-04-24 Marc Khouzam + + * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just + any thread. + 2012-04-13 Pierre Muller * p-typeprint.c (pascal_type_print_method_args): diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index b9c945c51a4..b170f01ab4d 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -2065,7 +2065,7 @@ mi_cmd_execute (struct mi_parse *parse) This is not a problem -- frontend should always 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); } -- 2.47.3