<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 ?<br><br>Your feedback is greatly appreciated.<br><br>Thank you<br>Regards<br>Thejaka Amila<br><br><br></div></div>