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