From 5590c2bae0fb41e90bc9698e55d8ec1fe22a9173 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 6 Dec 2016 16:19:33 -0500 Subject: 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/inferior.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'gdb/inferior.c') 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); -- cgit v1.1