public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb, infcmd: remove redundant ERROR_NO_INFERIOR in continue_command
@ 2023-03-29 10:59 Christina Schimpe
  0 siblings, 0 replies; only message in thread
From: Christina Schimpe @ 2023-03-29 10:59 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b863b097ee7a79b1114b9dd386864bc3c23a51b0

commit b863b097ee7a79b1114b9dd386864bc3c23a51b0
Author: Nils-Christian Kempke <nils-christian.kempke@intel.com>
Date:   Wed Apr 6 10:11:23 2022 +0200

    gdb, infcmd: remove redundant ERROR_NO_INFERIOR in continue_command
    
    The ERROR_NO_INFERIOR macro is already called at the beginning of the
    function continue_command.  Since target/inferior are not switched in-between,
    the second call to it is redundant.
    
    Co-Authored-By: Christina Schimpe <christina.schimpe@intel.com>

Diff:
---
 gdb/infcmd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index e2032d18564..a68611538f2 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -735,7 +735,6 @@ continue_command (const char *args, int from_tty)
 	}
     }
 
-  ERROR_NO_INFERIOR;
   ensure_not_tfind_mode ();
 
   if (!non_stop || !all_threads_p)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-29 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-29 10:59 [binutils-gdb] gdb, infcmd: remove redundant ERROR_NO_INFERIOR in continue_command Christina Schimpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).