[LLVMdev] debugging llvm from clang using gdb
t.p.northover at gmail.com
Tue May 21 05:35:49 PDT 2013
> I can put a breakpoint but it never stops when I say "run ...."
This is usually because clang forks off a process to do the actual
work. Try executing "set follow-fork-mode child" in gdb before running
I vaguely remember that running gdb against the "clang -cc1" command
works too (sometimes), but it's so rare that something is only
clang-debuggable that I've forgotten the details.
More information about the llvm-dev