How to debug a C / C ++ application remotely using ECLIPSE, different operating systems?

0

I'm developing a C ++ application that runs a NanoPI M3 card with Linux specially compiled for my purpose, and there have been some unexpected errors and behaviors, I wish I could debug the application remotely since the NanoPI M3 is a Cortex-A53 with 8 colors do not want to overload it with tools and compile time which is larger than my desktop (of course).

I use Eclipse on a Windows 10 workstation with MSys2 to encode and send the code via GIT to the M3 NanoPI where I compile directly into it sometimes since my environment in destkop is having problems for cross compiling for Cortex-A. / p>

But I would like to be able to debug the code through Eclipse at a later time.

How can I do this using Eclipse?

The machines are on different networks but have visibility of each other without problems. If needed I can use SSH including Tunneling for X11 (which I want to avoid)

I can even connect via GDB but problems occur because GDB windows uses i386 and Linux ARM uses ISA ARMv8-A, I have already succeeded in using GDB loading the binary.

I tried using GDB on two equal linux, but I'm still having problems.

    
asked by anonymous 08.10.2016 / 09:00

1 answer

-1

See this documentation

em> , I believe it will give you a north. Remote debugging is just for this purpose.

The first paragraph already explains.

  

If you are trying to debug a program running on a machine that can not run gdb in the usual way, it is often useful to use remote debugging. For example, you might use remote debugging on an operating system kernel, or on a small system which does not have a general purpose operating system powerful enough to run a full-featured debugger.

What operating system does the NanoPI M3 use? Embedded Linux? If so, you can install a VM on your Windows and run Linux to serve as a GDB server.

    
03.11.2016 / 20:28