In this recipe, you will learn how to use the debugger known as
LLDB, provided by LLVM. LLDB is a next-generation, high-performance debugger. It is essentially built as a set of reusable components that have advantages over the existing libraries in the larger LLVM project. You might find it quite similar to the
gdb debugging tool.
We will need the following before working with LLDB:
svn co http://llvm.org/svn/llvm-project/lldb/trunk lldb
Perform the following steps:
$ cat lldbexample.c #include<stdio.h> int globalvar ...