Regarding remote debugging on the MCF5485EVB board using Eclipse CDT

I installed the Eclipse CDT, CodeSourcery g ++ toolchain on a Linux host. I am using the IDE Code Sourcery Eclipse. I installed the Linux kernel using the Linux Target Image Builder from the Freescale website on the MCF5485 board.

I created the helloworld project on my Linux host using the Sourcery Eclipse environment. I copied executables (e.g. gdbserver, catchsgev, etc.) from the Sourcery folder to the board in the root file system.

I run gdbserver on the board and then debug using TCP from my Linux machine. In the Sourcery Eclipse IDE, I set sysroot as /because I installed gdbserver in the root directory ( /root/bin).

I have specified the IP address in the debug configuration in Eclipse, while it still remains by default. I selected the option "Translate sysroot transmission paths" on the "Shared Libraries" tab in "Debug Configurations"

I run gdbsrver on board ( gdbserver IP:port /pathname/to/executable) and then run the debug configuration on the Linux host. He stops at main()because of a breakpoint. When I click the back button, it causes the following error.

warning: .dynamic section for "C:\\Program Files\\CodeSourcery\\Sourcery G++\\m68k-linux-gnu\\libc/lib/libc.so.6" is not at the expected address (wrong library or version mismatch?)
Stopped due to shared library event
Stopped due to shared library event
Stopped due to shared library event

My program is as follows:

include <stdio.h>

int main(void)
{
    int i=0;
    printf("Hello = %d",i);
    return 0;
}

I read on some forum that I need to install sysroot, but I also read that if I installed sysroot in the root file system on the board, I do not need to do anything.

+3
source share
1

, Code Sourcery , , GDB Eclipse , , Code Sourcery.

, Linux-. /lib. Sourcery , , . .

+1

Source: https://habr.com/ru/post/1713266/


All Articles