[cfe-dev] Debugging clang
Jean-Daniel Dupas
devlists at shadowlab.org
Mon Aug 9 05:33:03 PDT 2010
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