Page 1 of 1

Embedded MIPS: Cross-Compiling, Deploy, Cross-Debugging

Posted: Thu Aug 04, 2016 12:03 pm
by seko
Hello,

my Intention ist to build an app for OpenWrt on a MIPS Platform. It works well with the OpenWRT SDK, but is a bit long-winded.

Is it possible to build, deploy and cross debug out of the CodeLite IDE?

I read some threads here about cross-debugging, it seems to be possible, how about deploying to the target?
Is it possible to upload to the target and start cross-debugging automatic?

Thanks

Re: Embedded MIPS: Cross-Compiling, Deploy, Cross-Debugging

Posted: Sat Sep 10, 2016 1:10 pm
by seko
Hello again,

I set up codelite for remote debugging on a MIPS device with the whole toolchain over tcp.
So far ist works. I can remote debug, step through breakpoints an so on.
the only thing is, that I must start gdbserver on the target manually (in a terminal over ssh) with e.g.

Code: Select all

gdbserver host:2222 my_prog
an then hit F5 or the play button in codelite. But when I hit STOP button Debug, the gdbserver on the target keeps running, so for new session I must

Code: Select all

killall gdbserver
on the target machine and start gdbserver again and again in another terminal over ssh.

Tried to set up Startup Commands for Debugger in Project Settings > Debugger > Startup Commands with following

Code: Select all

target remote | ssh -T root@target gdbserver host:2222 my_prog
but it takes about 30 seconds or more until it's getting starting to debug remotely over tcp. When I hit stop, the same issue as above.

How can I set it up for just pushing Play and Stop to start and stop correct the remote gdbserver on the target? Any Hints?

Best regards
seko