From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: tromey@redhat.com Cc: gdb-patches@sources.redhat.com Subject: Re: PATCH: gdb --args Date: Thu, 11 Oct 2001 08:32:00 -0000 Message-id: <3BC5BB72.9040300@cygnus.com> References: <87ofnfm80i.fsf@creche.redhat.com> X-SW-Source: 2001-10/msg00133.html > * 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