<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thank you Manuel,<br>
this is what I have been using so far as well, but I'm facing a
problem that is a bit convoluted and was hoping there is some more
"advanced" technique :) More specifically, I think it would help if
I could step through the code of the RecursiveASTVisitor within a
debugger, but because most of the code is macro expanded, it doesn't
seem like the debug symbols (at least the default ones in
Debug+Assert) are very useful, as they seem to be pointing to the
un-expanded version of the source files.<br>
<br>
Cheers!<br>
Alex<br>
<br>
<div class="moz-cite-prefix">On 08/13/2013 05:54 AM, Manuel Klimek
wrote:<br>
</div>
<blockquote
cite="mid:CAOsfVv=UK1Puuxgnw4HT8=25GCLtdswNehPcbTGy7PMLh-pWdw@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div dir="ltr">On Mon, Aug 12, 2013 at 8:20 PM, Alexandros Tzannes
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:atzannes@illinois.edu" target="_blank">atzannes@illinois.edu</a>></span>
wrote:<br>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
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.<br>
<br>
Has anyone encountered this issue in the past and has any
advice on how to debug RecursiveASTVisitor?<br>
</blockquote>
<div><br>
</div>
<div>I've so far used:</div>
<div>llvm::outs() << ...</div>
<div>plus unit tests...</div>
<div><br>
</div>
<div>Cheers,</div>
<div>/Manuel</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers!<br>
Alex<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a moz-do-not-send="true"
href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev"
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>