[LLVMdev] How To Pass An Command Line Option To The Pass
mcrosier at apple.com
Wed Feb 22 09:14:10 PST 2012
On Feb 22, 2012, at 7:18 AM, Tom Honermann wrote:
> On 2/22/2012 7:29 AM, Sevak Sargsyan wrote:
>> Hi all,
>> I have problem with debugging clang, gdb does not stop in function
>> ParseFrontendArgs, the function works because I wrote errs() and I saw
>> it in command line,
>> I also wrote __asm__("int $3") in ParseFrontendArgs but it does not help.
> Are you debugging the correct process? Note that invocations of 'clang'
> without '-cc1' fork/exec 'clang -cc1' to handle front end options.
Use the -### option to see how the compiler proper is being invoked (e.g., clang -S foo.c -o - -###).
Also, make sure you're using a debug build.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev