This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: make `inferior_args' visible to gdbtk


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?

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.  */
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]