I am debugging a program that runs on a remote target using ddd (for example, the remote gdbserver runs on localhost through port 1234, but still acts as remote).
I know that you can connect to gdbserver by opening ddd and then calling target remote localhost:1234gdb ddd on the command line, as described in:
http://www.gnu.org/software/ddd/manual/html_mono/ddd.html#Remote% 20Program
However, I do not like to name the command target remote localhost:1234every time I open ddd, and I would like to set it to automatically connect to gdbserver with an alias. I tried to start ddd --rhost localhost:1234 program, but as soon as ddd launches pop-ups indicating that "GDB cannot be started", and the shell says:
sh: 1: exec: localhost: 1234: not found
Does anyone know how I can connect to a remote gdbserver right at startup?
Tnx!
source
share