Re: Is it not possible to supply run time arguments to ddd on the commandline when starting ddd?

Michael Eager <[email protected]> Mon, 31 Oct 2011 21:11:09 -0700
Newsgroups gmane.comp.debugging.ddd.general
Message-ID <[email protected]>
On 10/31/2011 08:48 PM, [email protected] wrote:
> I take it your answer means that no, it isn't possible?
>
> I need to debug a remote application. I start the remote application(s) via script(s) which pass
> arguments to the remote app in the script. I want to modify my scripts so that the the debugger is
> kicked off, and preferrable start the application running.
>
> So instead of the scripting contaning
>
> ssh user@remotehost app arg1 arg2 arg3
>
> for example, it might contain something like
>
> ssh user@host ddd -display localhost:$DISPLAY app arg1 arg2 arg3

If you are running ddd and displaying on your local system, why don't
you want to type in "run arg1 arg2 arg3".  It's not as if you want
this to run non-interactively.

Create a .gdbinit file on the remote system containing "run arg1 arg2 arg3".
This should be executed as soon as gdb starts.

Are you sure you wouldn't be better off running gdbserver on the
remote system?

-- 
Michael Eager	 [email protected]
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077