CDT project for OpenJDK hotspot and gtest sources
Note: these CDT projects link their sources from the ojdk repository. They are meant to be placed outside the jdk repository.
Example setup:
- my-jdk
|
|--sources (contains openjdk sources)
|--output (contains build output)
|--ojdk-cdt (these files)
1) Open “ojdk-cdt” as workspace in Eclipse CDT
2) Preferences->Linked Resources:
You should have now a workspace with one project, “hs”. Let the C++ indexer do its thing, then you are done and can start browsing the code. C++ code assistence should work now (jumping to definitions, call hierarchy etc).
You may have to actually build the OpenJDK to populate the output directory and get all generated sources (especially for the compiler).
Notes: