This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] specify arguments to debugee from commandline (secondtry)
- To: "Deephanphongs, David" <david at enikia dot com>
- Subject: Re: [PATCH] specify arguments to debugee from commandline (secondtry)
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Fri, 22 Jun 2001 13:10:28 -0700
- CC: gdb-patches at sources dot redhat dot com
- Organization: Red Hat
- References: <EA40DE1AE299F7438D04527ACE8DD3D408CC29@mail.enikia.com>
"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.