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

Milad Fatenejad <[email protected]> Mon, 31 Oct 2011 23:24:33 -0500
Newsgroups gmane.comp.debugging.ddd.general
Message-ID <CAL21xHfp8Wvkizp=0WsgSexQ6CGDMdS9noXKYqtmz_O9=b4noA@mail.gmail.com>
Hello:

I've had to do something like this. Lets say you want to run the program
./a.out with argument arg1...

ddd --debugger "gdb --args ./a.out arg1"

When ddd starts, and you run the program it will run with the arguments
that were specified.

I hope this is useful
Milad

On Mon, Oct 31, 2011 at 11:11 PM, Michael Eager <[email protected]> wrote:

> 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
>
>
> ______________________________**_________________
> ddd mailing list
> [email protected]
> https://lists.gnu.org/mailman/**listinfo/ddd<https://lists.gnu.org/mailman/listinfo/ddd>
>

_______________________________________________
ddd mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/ddd