Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Help in setting up remote debugging on ARM Linux
Help in setting up remote debugging on ARM Linux [message #1725208] Tue, 01 March 2016 17:04
Sergei Poselenov is currently offline Sergei PoselenovFriend
Messages: 1
Registered: March 2016
Junior Member
Hello,

I'm trying to set up remote debugging on my Cortex-M board running Linux.
I was able to get gdbserver and ssh/sftp to the target, and configured the Automatic Remote Debugging Launcher for my target. Everything seems to work fine, however I can't get over one major obstacle.

In short, I need to specify one type of binary to be run under gdbserver on the target, and another type for the cross-gdb on the host.

Cross-compiler normally creates two binaries - the binary in the Binary Flat (BFLT) format and the ARM Elf binary. The BFLT binary (eg "hello") is the one which is ran on the target, and the Elf binary ("hello.gdb", with symbolic information) is the one which is used by the cross-debugger on the host to establish a debugging session with the target, eg:
<target>: gdbserver :1234 hello
<host>: arm-uclinuxeabi-gdb hello.gdb
gdb> target remote <target-ip>:1243
...

That is, I racked my brain on how to specify the Automatic Launcher to pass "hello" as the binary which need to be SFTP-ed to the target and started under gdbserver, and, at the same time, how to pass "hello.gdb" to arm-uclinuxeabi-gdb as the argument. Looks like the Automatic Launcher only allows to specify one of them in the "Debug Configuration" Main tab?

Using the Manual Launcher (and starting gdbserver on the target manually) works just fine.

I'm using Mars.1/Linux.

Any ideas? Thanks in advance.

Regards,
Sergei
Previous Topic:Run / Debug configuration
Next Topic:Formatter: unwanted new lines, Typing: unwanted comment closure
Goto Forum:
  


Current Time: Wed Apr 24 23:58:33 GMT 2024

Powered by FUDForum. Page generated in 0.02749 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top