This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Patch: make `inferior_args' visible to gdbtk
- To: tromey at redhat dot com
- Subject: Re: Patch: make `inferior_args' visible to gdbtk
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 08 Dec 2000 10:26:17 +1100
- Cc: gdb-patches at sources dot redhat dot com
- References: <87elzjdfa7.fsf@creche.redhat.com>
Tom Tromey wrote:
>
> I recently wrote a patch for Insight (aka gdbtk) to make it possible
> to save parts of the current session. One thing that is saved is the
> inferior's arguments. However, currently there is no good way for
> Insight to get this information from gdb.
>
> Making the variable `inferior_args' non-static was the simplest way to
> accomplish this.
>
> Ok?
No. Insight needs to start using a formal interface into GDB.
enjoy,
Andrew
> 2000-11-28 Tom Tromey <tromey@cygnus.com>
>
> * infcmd.c (inferior_args): No longer static.
>
> Tom
>
> Index: infcmd.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/infcmd.c,v
> retrieving revision 1.13
> diff -u -r1.13 infcmd.c
> --- infcmd.c 2000/11/10 19:27:45 1.13
> +++ infcmd.c 2000/12/07 22:30:13
> @@ -118,7 +118,7 @@
> /* String containing arguments to give to the program, separated by spaces.
> Empty string (pointer to '\0') means no args. */
>
> -static char *inferior_args;
> +char *inferior_args;
>
> /* File name for default use for standard in/out in the inferior. */
>