Remove unnecessary inferior lookup in inferior_command
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 6 Dec 2016 21:19:33 +0000 (16:19 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 6 Dec 2016 21:19:33 +0000 (16:19 -0500)
commit5590c2bae0fb41e90bc9698e55d8ec1fe22a9173
treeea5f16fff51b7375dfeda33be66e888c2d19f4f1
parent4f3ca05b487e9755018b4c9a053a2e6c35d8a7df
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.
gdb/ChangeLog
gdb/inferior.c