From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Snyder To: "Deephanphongs, David" Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] specify arguments to debugee from commandline (secondtry) Date: Fri, 22 Jun 2001 13:10:00 -0000 Message-id: <3B33A634.559D5309@cygnus.com> References: X-SW-Source: 2001-06/msg00382.html "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.