I’m using Eclipse with gdb to develop and debug llvm.
You need to use the “Eclipse IDE for C/C++ Developers” version for that (also sometimes called “Eclipse CDT” – CDT is the C++ component), though you can also download any other Eclipse version and just install CDT on top of it. As for versions, it’s best to use the most recent version you can find. Should work fine on all Linux distros, though some advanced features require a minimum gdb version.
As for creating the Eclipse project, think the simplest approach is to configure as usual, then create a “makefile project” in Eclipse and tell it to use the existing makefiles created under OBJ_ROOT – don’t let Eclipse manage your makefiles.
- Alon
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
On 07/16/2013 06:01 PM, Reed Kotler wrote:The Eclipse indexer seems to get stuck in the Clang unittests/AST
In Eclipse you can tell it that a given directory is derived, and then it won't try and index it.
Probably the more complex clang tests are too involved for the indexer.
The source browsing is way better this way.
How are you setting up the debugger?
For example, if you want to run from clang but debug the back end code generation ?
BTW: do you do builds inside of eclipse.
Seems to be kind of slow.
I actually never did a build with Eclipse, only used it for code navigation and debugging :)
On Jul 17, 2013, at 1:19 PM, Tilmann Scheller <tsch...@apple.com> wrote:
I actually never did a build with Eclipse, only used it for code navigation and debugging :)
Actually that�s not really true, I did build with Eclipse from time to time to get all the sources TableGen generates automatically. This is really nice because the source navigation works just fine across handwritten and automatically generated files.