aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2016-12-06 16:19:33 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2016-12-06 16:19:33 -0500
commit5590c2bae0fb41e90bc9698e55d8ec1fe22a9173 (patch)
treeea5f16fff51b7375dfeda33be66e888c2d19f4f1 /gdb/inferior.c
parent4f3ca05b487e9755018b4c9a053a2e6c35d8a7df (diff)
downloadgdb-5590c2bae0fb41e90bc9698e55d8ec1fe22a9173.zip
gdb-5590c2bae0fb41e90bc9698e55d8ec1fe22a9173.tar.gz
gdb-5590c2bae0fb41e90bc9698e55d8ec1fe22a9173.tar.bz2
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.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r--gdb/inferior.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c
index 0abd2c0..9fcdbd3 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -763,9 +763,6 @@ inferior_command (char *args, int from_tty)
}
else
{
- struct inferior *inf;
-
- inf = find_inferior_id (num);
set_current_inferior (inf);
switch_to_thread (null_ptid);
set_current_program_space (inf->pspace);