Is it possible to use lldb against a binary built with GDB?
Or do you have to build with the clang compiler?
Do you mean built with the gnu compiler? I do not know. I have only used lldb with binaries built with clang.
You cannot replace GDB with LLDB as LLDB's interfaces are not compatible with either of GDB's interfaces (either GDB annotations or GDB/MI interface).
I know you can't drop lldb in to gdb interface and have it work. But the ability to use stdio to talk to the debugger is analogous. The idea is that lldb would be available as an option. getting an image list, a back trace, add break points,
remove them, step in step over etc are all mapable commands on both command line interfaces. so the existing code could be modified up to a point and a pretty good instance could be created to support lldb with minimal impact on cb.
the quality of the llvm project is very high. the licensing is less restrictive. i think long term it would make sense for cb to add this support.