gdbserver not started for remote debugging [message #1743652] |
Sun, 18 September 2016 05:03  |
Eclipse User |
|
|
|
Hi all
I have experience with remote debugging of c++ applications on linux ARM targets, and I'm trying to do the same on a new project I'm working on and need your assistance.
Linux target runs open-ssh server, and has gdbserver installed. (Yocto is used to build everything)
Ubuntu host runs eclipse NEON, has Linaro toolchain, and can connect to target using ssh (with name & password).
I've configured a c++ remote application configuration, that is supposed to run the remote binary using gdbserver and connect to it using gdb.
However, when I run this configuration, I get the following output in the console:
Last login: Wed Sep 14 11:53:29 2016 from ofer-pc.adas.local
/usr/bin/gdbserver :2345 /some/path/bin/app;exit
7[r[999;999H[6n8
root@target:~#
console is then interactive, gdbserver did not start.
But I can now run the same gdbserver command in the interactive console, this time manually, successfully. gdb connects etc.
What am I doing wrong?
Can it be a target encoding support issue? Eclipse configuration?
I can't find a way to see what exactly is eclipse running to get connect to the target. Can anyone suggest a way to debug that?
Thanks!
|
|
|
|
Re: gdbserver not started for remote debugging [message #1743802 is a reply to message #1743755] |
Mon, 19 September 2016 13:19   |
Eclipse User |
|
|
|
Hi Marc
It is normal to get a root prompt. It is an ARM target that is now in bring-up stage, and root access is all we require at this point.
The exit command at the end of the gdbserver command did not run. It was only printed to console along with the gdbserver command, and then the console became interactive - so I could choose to run gdbserver, exit, or whatever I wish to run on the target, interactively.
I'm using ssh, as mentioned in the original question, and I can easily run gdbserver manually with ssh from bash shell, or from the interactive shell I'm getting in eclipse after gdbserver doesn't start automatically.
Meanwhile I've found these links:
https://community.nxp.com/thread/395341
https://www.eclipse.org/forums/index.php/t/1077899/
which suggest the problem is common to targets that run stuff built by Yocto.
I've tried the same with a target that is setup using buildroot, and things work as expected.
I've verified its the same openssh version on both setups, so its not that.
What can be the difference between buildroot to yocto on this context? Can it be the locale? The shell itself?
Can eclipse be more verbose in the SSH actions it is taking? Can the logs be more verbose?
Thanks!
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05436 seconds