ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it not possible to supply run time arguments to ddd on the comman


From: Milad Fatenejad
Subject: Re: Is it not possible to supply run time arguments to ddd on the commandline when starting ddd?
Date: Mon, 31 Oct 2011 23:24:33 -0500

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 <address@hidden> wrote:
On 10/31/2011 08:48 PM, address@hidden 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 address@hidden app arg1 arg2 arg3

for example, it might contain something like

ssh address@hidden 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    address@hidden
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


_______________________________________________
ddd mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/ddd


reply via email to

[Prev in Thread] Current Thread [Next in Thread]