public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Alexandra Petlanova Hajkova <ahajkova@redhat.com>
To: Christina Schimpe <christina.schimpe@intel.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/1] gdb, infcmd: remove redundant ERROR_NO_INFERIOR in continue_command
Date: Mon, 20 Mar 2023 12:54:55 +0100	[thread overview]
Message-ID: <CAJVr-EOA0HYrBH491R07_NHuV1eKPURT7aTW3vxYSHo6WKqCUA@mail.gmail.com> (raw)
In-Reply-To: <20230313180100.2728620-2-christina.schimpe@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1320 bytes --]

On Mon, Mar 13, 2023 at 7:01 PM Christina Schimpe via Gdb-patches <
gdb-patches@sourceware.org> wrote:

> From: Nils-Christian Kempke <nils-christian.kempke@intel.com>
>
> The ERROR_NO_INFERIOR macro is already called at the beginning of the
> function.  Since target/inferior are not switched in-between, the second
> call to it is redundant.
>
> Co-Authored-By: Christina Schimpe <christina.schimpe@intel.com>
> ---
>  gdb/infcmd.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/gdb/infcmd.c b/gdb/infcmd.c
> index c369b795757..abe9c933c9a 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)
> --
> 2.25.1
>
> Intel Deutschland GmbH
> Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
> Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
> Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva
> Chairperson of the Supervisory Board: Nicole Lau
> Registered Office: Munich
> Commercial Register: Amtsgericht Muenchen HRB 186928
>

Looks correct. Maybe you could mention this happens inside the
continue_command function in the commit message.

      reply	other threads:[~2023-03-20 11:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-13 18:00 [PATCH 0/1] Remove " Christina Schimpe
2023-03-13 18:01 ` [PATCH 1/1] gdb, infcmd: remove " Christina Schimpe
2023-03-20 11:54   ` Alexandra Petlanova Hajkova [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJVr-EOA0HYrBH491R07_NHuV1eKPURT7aTW3vxYSHo6WKqCUA@mail.gmail.com \
    --to=ahajkova@redhat.com \
    --cc=christina.schimpe@intel.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).