[cfe-dev] Debugging clang

Alexander Herz alexander.herz at mytum.de
Mon Aug 9 08:13:43 PDT 2010


Ok, that helps.

Is there a way to make gdb pretty print all the llvm::SmallVector 
thingies so that one can actually read a string and the like while 
debugging?

Thx,
Alex

On 08/09/2010 02:33 PM, Jean-Daniel Dupas wrote:
> Le 9 août 2010 à 14:12, Alexander Herz a écrit :
>
>    
>> Hi,
>>
>> I'm trying to debug the clang cpp compiler because I suspect a bug in
>> the creation of the debug meta data for some cpp source. Is there an
>> easy way to stop clang from spawning a new clang process (which does the
>> compilation) and have the original instance of clang just do it so I can
>> debug into the compilation process??
>>
>> Thx,
>>      
> When you try to compile your file, add the '-v' argument. Clang will output the full invocation of the spawned process.
> Then, you can just copy this line and launch clang using it.
>
> -- Jean-Daniel
>
>
>
>
>    




More information about the cfe-dev mailing list