This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: gdb --args
- To: tromey at redhat dot com
- Subject: Re: PATCH: gdb --args
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 11 Oct 2001 11:32:02 -0400
- Cc: gdb-patches at sources dot redhat dot com
- References: <87ofnfm80i.fsf@creche.redhat.com>
> * target.c (find_default_construct_inferior_arguments): New
> function.
> * target.h (target_ops): Added to_construct_inferior_arguments.
> (target_construct_inferior_arguments): New macro.
> (find_default_construct_inferior_arguments): Declare.
Hmm, me :-)
Is this an architecture (well OS) or target method?
At present there is the target method:
to_create_inferior(char *exec_file, char *args, char **env)
where ARGS are assumed to be in an OS dependant form but typically ready
to plonk onto the end of ``exec EXEC_FILE''. The plonk might be
performed locally (fork/exec) or remotely.
Given an argv[], I think the code should call on the architecture (OS)
and not the target to perform the transformation into ARGS.
(This will actually make the change a lot simplier. The default method
can do as for UNIX, just djgpp and possibly cygwin would need
customization.)
Andrew