mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
Remove unnecessary inferior lookup in inferior_command
In the case where we switch to a non-running inferior, we do a "find_inferior_id (num)", although we did the same call right before. gdb/ChangeLog: * inferior.c (inferior_command): Remove duplicate find_inferior_id call.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2016-12-06 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
|
* inferior.c (inferior_command): Remove duplicate
|
||||||
|
find_inferior_id call.
|
||||||
|
|
||||||
2016-12-06 Yao Qi <yao.qi@linaro.org>
|
2016-12-06 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
* frame.c (frame_register_unwind): Set *realnump if *lvalp is
|
* frame.c (frame_register_unwind): Set *realnump if *lvalp is
|
||||||
|
@ -763,9 +763,6 @@ inferior_command (char *args, int from_tty)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
struct inferior *inf;
|
|
||||||
|
|
||||||
inf = find_inferior_id (num);
|
|
||||||
set_current_inferior (inf);
|
set_current_inferior (inf);
|
||||||
switch_to_thread (null_ptid);
|
switch_to_thread (null_ptid);
|
||||||
set_current_program_space (inf->pspace);
|
set_current_program_space (inf->pspace);
|
||||||
|
Reference in New Issue
Block a user