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: gdb --args


>  * 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



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