Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] LLDB/Clang

On 4 Nov 2013, at 19:53, Doug Schaefer <dschaefer@xxxxxxx> wrote:

Hey gang,

As pointed out in https://bugs.eclipse.org/bugs/show_bug.cgi?id=405670, Apple has dropped gdb from the latest Mavericks OS release. I also noticed that gcc in the latest Xcode command-line tools actually runs clang (although I imagine the gcc driver respects gcc arguments).

At any rate, in order to properly support Mac as a target for CDT in the future, we’ll need proper support for these tools. And to be honest, that’s a good thing since these tools are pretty good and cross platform to Linux at least, and something we should get to know anyway.

Any thoughts on how we’d kickstart this activity?

lldb has a native C++ API as well as a python based one which could be used to script interaction instead. 


Depending on which level is chosen it might make sense to have a generic lldb wrapper and then have the debug CDT code work against that intermediary layer. 

One disadvantage of having the native code is that it might be difficult to spawn multiple executions of lldb or require a restart of Eclipse between runs. 

On the other hand since Python is supported in lldb you could have a python remote debugger serving on a TCP port and then drive everything through the network. That might make remote debugging easier too. 

Alex 

Back to the top