mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 00:32:30 +08:00
2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
* mi/mi-main.c (mi_cmd_execute): Choose a live thread not just any thread.
This commit is contained in:
@ -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>
|
2012-04-24 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* breakpoint.c (ep_is_catchpoint): Renamed to ...
|
* breakpoint.c (ep_is_catchpoint): Renamed to ...
|
||||||
|
@ -2066,7 +2066,7 @@ mi_cmd_execute (struct mi_parse *parse)
|
|||||||
provide --thread if it wishes to operate on a specific
|
provide --thread if it wishes to operate on a specific
|
||||||
thread. */
|
thread. */
|
||||||
if (inf->pid != 0)
|
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);
|
switch_to_thread (tp ? tp->ptid : null_ptid);
|
||||||
set_current_program_space (inf->pspace);
|
set_current_program_space (inf->pspace);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user