From: Marc Khouzam Date: Tue, 24 Apr 2012 15:02:12 +0000 (+0000) Subject: 2012-04-24 Marc Khouzam X-Git-Tag: gdb_7_4_1-2012-04-26-release~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce5abeb648e2ae069e7bc0f0a630486b63de9d3b;p=thirdparty%2Fbinutils-gdb.git 2012-04-24 Marc Khouzam * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just any thread. --- 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); }