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]

Re: [PATCH] specify arguments to debugee from commandline (secondtry)


"Deephanphongs, David" wrote:
> 
> Eli Zaretskii wrote:
> > On Thu, 7 Jun 2001, David Deephanphongs wrote:
> > > GDB will escape the following characters within an inferior argument:
> > > ^|&#<>\"'`$*?[](); \{}
> > >                   ^----space
> >
> > The function which implements this should be OS-dependent.  What you
> > wrote might work for /bin/sh, but not for non-Posix systems such as
> > MS-Windows.
> 
> I've been trying to figure out how to do this..
> My problem is that I haven't figured out where the target-specific
> initialization occurs in GDB.
> Is it just dependent on which files get linked in?

All initialization in GDB occurs in functions whose names
begin with "_initialize".  Look in any *-tdep.c file.


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