Debugging with GDB and Eclipse? expat problem?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debugging with GDB and Eclipse? expat problem?

3,665 Views
andreaszeiler
Contributor III

Hi,

I'm trying to setup a IDE to run and debug an application with Eclipse and the cross-compiler for iMX6 from freescale. (Debugger Version is 7.1).

I am able to cross compile my application and also run it on my target board. It is also working through a ssh terminal.

But I could't figure out how to debug my application. I've configured my buildroot to build gdb and gdbserver and copy it into my rootfs.

Over ssh terminal I can start my application and also when I start debugging eclipse starts the gdbserver with the specified port.

But the I get a Error Message:

Error in final launch sequence

Failed to execute MI command:

-break-insert -t -f main

Error message from debugger back end:

Remote 'g' packet reply is too long: 0000000028feff7e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020fdff7e00000000a0b7aa2a100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Remote 'g' packet reply is too long: 0000000028feff7e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020fdff7e00000000a0b7aa2a100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

In the eclipse console I get the error message:

warning: Can not parse XML target description; XML support was disabled at compile time

warning: Can not parse XML OS data; XML support was disabled at compile time

The target endianness is set automatically (currently little endian)

Can someone help me with this? I don't know whats wrong here and I also don't find any hint in google how to solve this.

I also tried to use my buildroot's toolchain and the freescale toolchain. (The are same version).

Andi

3 Replies

1,688 Views
chris_f
Contributor V

I ran in to this problem. The cause for me was that I was launching the local x86 gdb rather than the one from my Yocto SDK (/opt/fsl-imx-fb/4.1.15-2.0.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb).

0 Kudos

1,688 Views
dtran11
Contributor I

Hi,

I am getting the same error as you. Did you solve this issue?

Thanks

0 Kudos

1,688 Views
andreaszeiler
Contributor III

hello,

no I couldn't solve this. Im on other issues now.

0 Kudos