[LLVMdev] eclipse and gdb

Tilmann Scheller tscheller at apple.com
Tue Jul 16 05:21:11 PDT 2013

Hi Reed,

I’ve used Eclipse for a long time to do LLVM development on Linux (both for code navigation/editing and debugging), any recent Linux distribution and version of Eclipse should be fine (even older versions should be good enough as this has been working for many years).

Xcode works fine as well, I started to use Xcode exclusively when I switched to OS X.

The key to make this work is to use CMake to generate project files for Eclipse/Xcode, you can do this by specifying the appropriate generator on the command line e.g. -G Xcode or -G "Eclipse CDT4 - Unix Makefiles”. Then you can just open the generated project file. Mind you, the generated projects are kind of ugly e.g. the Xcode project has like more than 200 targets but apart from that they are working fine.

In terms of key bindings both Eclipse and Xcode ship with Emacs key bindings and there are plugins which allow you to use vim key bindings as well. With Eclipse I’ve been using the Viable plugin for that and for Xcode there is Xvim.

Hope this helps :)



On Jul 16, 2013, at 1:05 PM, reed kotler <rkotler at mips.com> wrote:

> Is anyone using Eclipse and gdb to debug llvm/clang?
> If so, which version of Eclipse, gdb and linux flavor.
> I just use gdb currently.
> I'm going to try using my mac also.
> Is anyone using xcode/lldb to debug llvm/clang?
> Tia.
> Reed
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

More information about the llvm-dev mailing list