Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Keith Seitz <keiths@redhat.com>, Elena Zannoni <ezannoni@redhat.com>
Cc: "gdb-patches@sources.redhat.com" <gdb-patches@sources.redhat.com>
Subject: Re: [RFA] Make interpreter_p an argument for gdb_main
Date: Wed, 12 Feb 2003 16:45:00 -0000	[thread overview]
Message-ID: <3E4A7A20.30403@redhat.com> (raw)
In-Reply-To: <1045011304.1493.43.camel@lindt.uglyboxes.com>

Since elena's overloaded I'll pick this up.

> +  char *interpreter_p;

Should be const.

> -  /* There will always be an interpreter.  Either the one passed into
> -     this captured main (not yet implemented), or one specified by the
> -     user at start up, or the console.  Make life easier by always
> -     initializing the interpreter to something.  */
> -  interpreter_p = xstrdup (INTERP_CONSOLE);

Can you please keep the assignment here (instead of below).

> -
>    /* Parse arguments and options.  */
>    {
>      int c;
> @@ -803,6 +797,7 @@ int
>  gdb_main (struct captured_main_args *args)
>  {
>    use_windows = args->use_windows;
> +  interpreter_p = xstrdup (args->interpreter_p);
>    catch_errors (captured_main, args, "", RETURN_MASK_ALL);
>    return 0;
>  }

``interpreter_p'' is -><- close to being made local to captured_main.

Otherwize ok,
Andrew



  reply	other threads:[~2003-02-12 16:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-12  0:50 Keith Seitz
2003-02-12 16:45 ` Andrew Cagney [this message]
2003-02-12 17:33   ` Keith Seitz
2003-02-13 17:20     ` Andrew Cagney
2003-02-13 18:09       ` Keith Seitz

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=3E4A7A20.30403@redhat.com \
    --to=ac131313@redhat.com \
    --cc=ezannoni@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=keiths@redhat.com \
    /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