<div dir="rtl"><div dir="ltr">There was a discussion about the LLVM pretty-printers, the problem was the GPL license.</div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2015-04-26 5:16 GMT+03:00 Yuri <span dir="ltr"><<a href="mailto:yuri@rawbw.com" target="_blank">yuri@rawbw.com</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I noticed that clang++ produces code in which gdb doesn't enter some functions, when clang-3.4.1 didn't have such problem. All compiled with -g, and no -O options<br>
<br>
Additionally, STL containers aren't printed with pretty-printers. Is this not the right git repository location <a href="https://github.com/koutheir/libcxx-pretty-printers" target="_blank">https://github.com/koutheir/libcxx-pretty-printers</a> ?<br>
<br>
gcc compiled code is free of both problems.<br>
<br>
Additionally, gcc found the problem of signed vs. unsigned comparison:<br>
int i;<br>
vector<...> v;<br>
if (i >= v.size()) // <==== **** Here gcc finds the problem, and clang doesn't, as I think it should<br>
<br>
Also, gcc found that 'memcpy' not defined (#include <string.h> was really missing). Same with 'close' function and missing header unistd.h. I doubt that headers change depending on compiler. Not sure what to think here, but g++ seems to be more right than clang++.<br>
<br>
gdb-7.8.2, FreeBSD 10.1<br>
plain C++ code, compiler with -Wall -g -std=c++11 and linked with -g<br>
<br>
BTW, a long while ago I reported the bug that llvm produces clearly wrong debug info, with a very short and particular test case, and you just never fixed this, in "no comment" style. This debug info problem here with C++ might be directly related to that.<span class="HOEnZb"><font color="#888888"><br>
<br>
Yuri<br>
_______________________________________________<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>
</font></span></blockquote></div><br></div>