[LLVMdev] eclipse and gdb
Reed Kotler
rkotler at mips.com
Tue Jul 16 14:10:31 PDT 2013
On 07/16/2013 05:21 AM, Tilmann Scheller wrote:
> 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 :)
>
> Regards,
>
> Tilmann
>
The source browsing is way better this way.
This following pointer may be useful to others to complete the importing
of the project.
http://www.vtk.org/Wiki/Eclipse_CDT4_Generator
How are you setting up the debugger?
For example, if you want to run from clang but debug the back end code
generation ?
Which process launcher?
Protocol == mi?
BTW: do you do builds inside of eclipse.
Seems to be kind of slow.
Tia.
Reed
> 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