Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugging OpenJDK 8 C++ sources using Eclipse
Debugging OpenJDK 8 C++ sources using Eclipse [message #1794491] Fri, 31 August 2018 09:57 Go to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Hello,

in my project i want to debug the C/C++ source code of the OpenJDK version 8 using eclipse on ubuntu machine . For this purpose I have done following:

1. Compiled the OpenJDK8 with --with-debug-level=slowdebug.
2. Imported the sources of the OpenJDK makefile project into eclipse
3. Created an eclipse run configuration, executing the compiled OpenJDK's java executable and targeting a sample java program. Into this configuration I have attached the JDK source code directory path, so that eclipse is able to translate debug symbols to source-code lines and view them to me (obviously)

My problem is that somehow I still cannot debug through native code. Like for example java.lang.System.out.println()

To me it looked like the libraries were not included into the eclipse gdb-run. I tried to run gdb manually, and it still didn't work to debug through that code section.

Has anybody expirienced same behavior, or did ever try to debug the JDK source code? I guess I am missing something here... Maybe my approach is just not correct for the task? Would be glad to hear any proposal about how to debug the JDK source code propperly.

I have also tried debugging the OpenJDK source code with NetBeans and it seems to work, the procedure for NetBeans is described here:
LINK

Yet I seek for an Eclipse solution...

So yes, is there a way to debug jdk C++ sources using eclipse ?

Regards and thank you.
Re: Debugging OpenJDK 8 C++ sources using Eclipse [message #1794930 is a reply to message #1794491] Tue, 11 September 2018 09:25 Go to previous message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
push
Previous Topic:Newbie questions: defining recursive include paths, defining macros with argueme
Next Topic:C/C++ Build Settings Tabs Dark Theme
Goto Forum:
  


Current Time: Thu Sep 20 21:51:38 GMT 2018

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

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

Back to the top