What I had done wrong using method #2 ?
- changing to “sudo gdbserver” in Eclipse give error :
sudo\ gdbserver :2345 /home/linaro/Downloads/HelloDragon;exit
linaro@linaro-alip:~$ sudo\ gdbserver :2345 /home/linaro/Downloads/HelloDragon;
exit
-bash: sudo gdbserver: command not found
The problem is the backslash which causes the space to form part of
the command. In other words instead of running the command
"sudo" "gdbserver" ":2345" "/home/linaro/Downloads/HelloDragon"
(run sudo
with three parameters) eclipse has run
"sudo gdbserver" ":2345" "/home/linaro/Downloads/HelloDragon"
(run a
non-existant command with a space in the middle of the command name with
two parameters).
In other words you have changed what eclipse thinks is the executable
not the command line. As a result eclipse has helpfully added the
backslash for you.
If eclipse does not provide any means to alter the gdbserver command
line then try one of the other approaches.