From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Tromey To: Insight List Subject: [Andrew Cagney ] Re: Patch: make `inferior_args' visible to gdbtk Date: Thu, 07 Dec 2000 15:58:00 -0000 Message-id: <87wvdbai3e.fsf@creche.redhat.com> X-SW-Source: 2000-q4/msg00400.html Here's Andrew's response to my minor infcmd.c patch. I can't do this work. I guess this means that parts of session saving will simply be useless for now. Tom ------- Start of forwarded message ------- Message-ID: <3A301C99.A6C2D038@cygnus.com> Date: Fri, 08 Dec 2000 10:26:17 +1100 From: Andrew Cagney MIME-Version: 1.0 To: tromey@redhat.com Cc: gdb-patches@sources.redhat.com Subject: Re: Patch: make `inferior_args' visible to gdbtk References: <87elzjdfa7.fsf@creche.redhat.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii 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 > > * 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. */ > ------- End of forwarded message -------