<div dir="ltr">Hi David,<div><br></div><div>I am using 7.7.1.</div><div><br></div><div>Thanks</div><div>-Thejaka</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 1, 2014 at 11:13 AM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Sep 30, 2014 at 10:34 AM, Amila Jayasekara <span dir="ltr"><<a href="mailto:thejaka.amila@gmail.com" target="_blank">thejaka.amila@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am having a more general question related to debugging clang.<br><br>I start gdb (in MacOS) as follows;<br><br>>ggdb clang++<br>....<br>....<br>(ggdb) run -cc1 -std=c++11 -stdlib=libc++ -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1 test1.cpp<br><br>In most of the time during debugging session I am unable to evaluate and print values of a certain variable. Sometimes my debugger freezes for long time, sometime i get a segmentation faults.</div><div><br>For example if I execute following on a QualType variable I get a segmentation fault.</div><div><br>(gdb) p FnRetType.getAsString()<br>line 1: 39759 Segmentation fault: 11 ggdb /Users/thejaka/development/crest/pxc/llvm/350/Debug+Asserts/bin/clang++<br><br>So my question is, what are the techniques you use to effectively debug clang ? and how can I overcome crashes like above ?</div></div></blockquote><div><br></div></div></div><div> I debug Clang and LLVM on Linux using gdb all the time. Which version of gdb are you using?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><div><br>Your feedback is greatly appreciated.<br><br>Thank you<br>Regards<br>Thejaka Amila<br><br><br></div></div>
<br></span><span class="">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></span></blockquote></div><br></div></div>
</blockquote></div><br></div>