eclipse-embed-cdt / eclipse-plugins

The Eclipse Embedded CDT plug-ins for Arm & RISC-V C/C++ developers (formerly known as the GNU MCU Eclipse plug-ins). Includes the archive of previous plug-ins versions, as Releases.
http://eclipse-embed-cdt.github.io/
Eclipse Public License 2.0
555 stars 129 forks source link

GDB path not set correct #409

Closed mgiaco closed 3 years ago

mgiaco commented 3 years ago

Hi, I use the latest tools (xpacks gcc, xpack openocd and build tools, Eclipse 2020-06 with latest updates and openjdk14). I think there is something wrong in the gdb path setting. When I start a GDB session eclipse do not use the xpack path. When I set the Executable name in the GDB Client Setup in the debug launch setting everything works fine.

ilg-ul commented 3 years ago

When I start a GDB session eclipse do not use the xpack path.

Then you have a toolchain path problem, since GDB uses the current toolchain path. Did you select the xPack Arm GCC as toolchain for the project?

Anyway, to be sure, download a new Eclipse package, install it in a separate location, create a new workspace and run the blinky arm tutorial.

ilg-ul commented 3 years ago

Any progress?

mgiaco commented 3 years ago

Hi, I found out that the java version is the problem i switched to openjdk 14. Made a new worksspace and everything works fine.

ilg-ul commented 3 years ago

Your initial message also mentioned openjdk14. What platform are you using?

mgiaco commented 3 years ago

The problem was eclipse did not start with openjdk 14.

ilg-ul commented 3 years ago

And now what java are you using?

mgiaco commented 3 years ago

openjdk 14.

ilg-ul commented 3 years ago

Aha, so you claim that 'eclipse did not start with openjdk 14' and that now you are using openjdk 14. Does it make any sense?

mgiaco commented 3 years ago

On my machine there was the latest open version from Oracle installed (java version "1.8.0_261") and openjdk 14. But the path was pointed to the Oracel java and i did not check that. So for the first time i taught I am using openjdk 14.... No I added the following line in eclipse.ini -vm c:\openjdk-14.0.2_windows-x64_bin\jdk-14.0.2\bin\

and now everything works fine.

ilg-ul commented 3 years ago

Right, all recent Eclipse packages require Java 11, this is already mentioned in the old web site.

I added a Prerequisites section in the download page:

https://projects.eclipse.org/projects/iot.embed-cdt/downloads