[cfe-dev] Debugging RecursiveASTVisitor

Manuel Klimek klimek at google.com
Tue Aug 13 03:54:30 PDT 2013


On Mon, Aug 12, 2013 at 8:20 PM, Alexandros Tzannes
<atzannes at illinois.edu>wrote:

> Hi all,
> I am trying to debug a strange behavior of the RecursiveASTVisiror, and
> trying to use gdb with the Debug+Assert binary of clang++. Unfortunately,
> because so much of the code of RecursiveASTVisitor is macro-expanded and
> because the debug symbols are trying to relate to the "non-expanded" code
> navigating an execution with gdb is pretty useless.
>
> Has anyone encountered this issue in the past and has any advice on how to
> debug RecursiveASTVisitor?
>

I've so far used:
llvm::outs() << ...
plus unit tests...

Cheers,
/Manuel


>
> Cheers!
> Alex
> ______________________________**_________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/**mailman/listinfo/cfe-dev<http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130813/a75f468c/attachment.html>


More information about the cfe-dev mailing list