<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 17, 2014 at 10:37 AM, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Debugging flags are not my area of expertise, but GCC's manual says about -g1:<br>
<br>
[from GCC's man page]<br>
Level 1 produces minimal information, enough for making backtraces in parts of the program that you don't plan to debug.<br>
This includes descriptions of functions and external variables, but no information about local variables and no line numbers.<br></blockquote><div><br></div><div>Sounds similar, apart from the "and external variables" part.<br><br>It'd be interesting to actually look at the output - I Suspect it might be a bit more verbose than Clang's (or GCC's) -gmlt, maybe including namespaces, mangled function names, whatever else.<br><br>I think maybe Google's GCC branch has -gmlt, but maybe it's not in GCC proper? I don't really know/understand.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[end from GCC's man page]<br>
<br>
and IBM's manual for xlc says about -g1:<br>
<br>
[from IBM's man page]<br>
Generates minimal read-only debugging information about line numbers and source file names. No program state is preserved.<br></blockquote><div><br>Sounds about right. Be interesting to know if that's just the line table itself, or the inlining info that Clang's -gmlt/-gline-tables-only produces as well (yeah, -gline-tables-only is a bit of a half truth).<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[end from IBM's man page]<br>
<br>
this sounds to me a lot like what -gline-tables-only does. Is there a reason we don't alias -g1 to -gline-tables-only? Currently, the code in Clang::ConstructJob treats it just like -g.<br>
<br>
Thanks again,<br>
Hal<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Hal Finkel<br>
Assistant Computational Scientist<br>
Leadership Computing Facility<br>
Argonne National Laboratory<br>
</font></span></blockquote></div><br></div></div>