<div dir="ltr">I seem to get line numbers on certain things (It seems mostly template instantiations) that I didn't get before. Here is an example.<div>You'll notice in the latter there are lines and files on #3 and #4. <br><div><br></div><div><br><div><br></div><div>=========================== without -g ===================================</div><div><pre style="font-family:'Courier New',courier,monotype,monospace;color:rgb(0,0,0);font-size:medium"><span class="">WRITE of size 8 at 0x7fff55043588 thread T0
#0 0x46b936 in __asan_memcpy /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:370:5
#1 0x4b673e in uw_install_context_1 (/tmp/tmpV_pKYRexe+0x4b673e)
#2 0x4b6d26 in _Unwind_Resume (/tmp/tmpV_pKYRexe+0x4b6d26)
#3 0x4b21bc in void std::__1::__assoc_state<int>::set_value<int const&>(int const&) (/tmp/tmpV_pKYRexe+0x4b21bc)
#4 0x4a61ff in std::__1::promise<int>::set_value(int const&) (/tmp/tmpV_pKYRexe+0x4a61ff)
#5 0x4a3921 in main (/tmp/tmpV_pKYRexe+0x4a3921)
#6 0x2adefa479ec4 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
#7 0x417a16 in _start (/tmp/tmpV_pKYRexe+0x417a16)</span></pre><pre style><br></pre><pre style="font-family:'Courier New',courier,monotype,monospace;color:rgb(0,0,0);font-size:medium"><span class=""><span style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal">============================= with -g ===================================</span><br></span></pre><pre style="font-family:'Courier New',courier,monotype,monospace;color:rgb(0,0,0);font-size:medium"><span class=""><pre style="color:rgb(34,34,34)"><span class=""><font color="#000000" face="Courier New, courier, monotype, monospace" size="3">WRITE of size 8 at 0x7fff614945c8 thread T0
#0 0x46b9f6 in __asan_memcpy /home/eric/full-llvm/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:370:5
#1 0x4b875e in uw_install_context_1 (/tmp/tmpWegAIsexe+0x4b875e)
#2 0x4b8d46 in _Unwind_Resume (/tmp/tmpWegAIsexe+0x4b8d46)
#3 0x4b3e57 in void std::__1::__assoc_state<int>::set_value<int const&>(int const&) /home/eric/workspace/libcxx/test/../include/future:656:1
#4 0x4a6799 in std::__1::promise<int>::set_value(int const&) /home/eric/workspace/libcxx/test/../include/future:1467:5
#5 0x4a39e1 in main /home/eric/workspace/libcxx/test/thread/futures/futures.promise/set_value_const.pass.cpp:40:13
#6 0x7fd782e11ec4 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
#7 0x417ad6 in _start (/tmp/tmpWegAIsexe+0x417ad6)
</font></span></pre><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal"><span class=""><br></span></div></span></pre><pre style="font-family:'Courier New',courier,monotype,monospace;color:rgb(0,0,0);font-size:medium"><span class=""><span style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal"><br></span></span></pre><pre style="font-family:'Courier New',courier,monotype,monospace;color:rgb(0,0,0);font-size:medium"><br></pre></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 14, 2014 at 3:33 PM, 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">Why -g? sanitizers should enable -gmlt by default which should suffice</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 14, 2014 at 2:18 PM, Eric Fiselier <span dir="ltr"><<a href="mailto:eric@efcs.ca" target="_blank">eric@efcs.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: ericwf<br>
Date: Fri Nov 14 16:18:03 2014<br>
New Revision: 222051<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=222051&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=222051&view=rev</a><br>
Log:<br>
add debug info when compiling sanitizer tests<br>
<br>
Modified:<br>
libcxx/trunk/test/lit.cfg<br>
<br>
Modified: libcxx/trunk/test/lit.cfg<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/lit.cfg?rev=222051&r1=222050&r2=222051&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/lit.cfg?rev=222051&r1=222050&r2=222051&view=diff</a><br>
==============================================================================<br>
--- libcxx/trunk/test/lit.cfg (original)<br>
+++ libcxx/trunk/test/lit.cfg Fri Nov 14 16:18:03 2014<br>
@@ -435,7 +435,7 @@ class Configuration(object):<br>
llvm_symbolizer = lit.util.which('llvm-symbolizer',<br>
symbolizer_search_paths)<br>
# Setup the sanitizer compile flags<br>
- self.compile_flags += ['-fno-omit-frame-pointer']<br>
+ self.compile_flags += ['-g', '-fno-omit-frame-pointer']<br>
if sys.platform.startswith('linux'):<br>
self.link_flags += ['-ldl']<br>
if san == 'Address':<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>