<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/31/13 1:54 PM, Alexey Samsonov
wrote:<br>
</div>
<blockquote
cite="mid:CAGSYnCMAZa1t8PoiMA-VZpR32m04=hn=MKmLdm2WwHMwXp3=7g@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra">
<div class="gmail_quote">On Wed, Oct 30, 2013 at 8:58 PM, Eric
Christopher <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:echristo@gmail.com" target="_blank">echristo@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 class="HOEnZb">
<div class="h5">
<p dir="ltr"><br>
On Oct 30, 2013 7:25 PM, "Philip Reames" <<a
moz-do-not-send="true"
href="mailto:listmail@philipreames.com"
target="_blank">listmail@philipreames.com</a>>
wrote:<br>
><br>
> On 10/30/13 7:09 PM, Philip Reames wrote:<br>
>> Can you clarify two things for me? First,
is the intent that -gmit *always* provide accurate
stack traces? (modulo bugs of course) If so, what
is your subjective opinion on how close it comes to
meeting that goal today? (i.e. how much help would
we need to contribute to get it to a solid state?)<br>
><br>
> David - Redoing my google searching with "gmlt"
(i.e. the correct spelling) I see more useful
links. From what I can gather, -gmlt emits a strict
subset of the debug information you'd see at -g.
Are you saying that "-g" should always be sufficient
for accurate stack traces - even in the face of
inlining? This would be ideal for us. <br>
</p>
</div>
</div>
</blockquote>
<div>(side note: Clang option is spelled as
-gline-tables-only). Both -g and -gline-tables-only should
contain the information needed to get the stack trace with
inlining (at -O2 and higher). We actually rely on that in
sanitizer tools. As David mentioned, we build the code
with -O2 and -gline-tables-only and use llvm-symbolizer to
get stack traces at runtime. You may also try "addr2line
-i".</div>
</div>
</div>
</div>
</blockquote>
Glad to hear. Given this sounds like a supported use, we'll
probably run with this. I expect we'll find our own set of bugs and
have to report/fix them, but knowing there are others out there
supporting similar use cases is highly comforting. <br>
<br>
Philip<br>
</body>
</html>