]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
authorMarc Khouzam <marc.khouzam@ericsson.com>
Tue, 24 Apr 2012 15:02:12 +0000 (15:02 +0000)
committerMarc Khouzam <marc.khouzam@ericsson.com>
Tue, 24 Apr 2012 15:02:12 +0000 (15:02 +0000)
* mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
any thread.

gdb/ChangeLog
gdb/mi/mi-main.c

index dcc04763d9fcc7c51c5b1f90c6fd7c1e94201258..07b9ef7c5c7094c89f83da778b15deb2957af906 100644 (file)
@@ -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-13  Pierre Muller  <muller@ics.u-strasbg.fr>
 
        * p-typeprint.c (pascal_type_print_method_args):
index b9c945c51a4870c8335d18081eb03b69a9154a67..b170f01ab4d264e84581336c2b50eceb82e856c5 100644 (file)
@@ -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);
     }