<br><br><div class="gmail_quote">On Mon, Aug 27, 2012 at 2:14 PM, NAKAMURA Takumi <span dir="ltr"><<a href="mailto:geek4civic@gmail.com" target="_blank">geek4civic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2012/8/27 Alexey Samsonov <<a href="mailto:samsonov@google.com">samsonov@google.com</a>>:<br>
<div class="im">> Author: samsonov<br>
> Date: Mon Aug 27 02:17:47 2012<br>
> New Revision: 162657<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=162657&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=162657&view=rev</a><br>
> Log:<br>
> Add basic support for .debug_ranges section to LLVM's DebugInfo library.<br>
> This section (introduced in DWARF-3) is used to define instruction address<br>
> ranges for functions that are not contiguous and can't be described<br>
> by low_pc/high_pc attributes (this is the usual case for inlined subroutines).<br>
> The patch is the first step to support fetching complete inlining info from DWARF.<br>
><br>
> Reviewed by Benjamin Kramer.<br>
><br>
> Added:<br>
>     llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.cpp<br>
>     llvm/trunk/lib/DebugInfo/DWARFDebugRangeList.h<br>
</div><div class="im">> Modified:<br>
>     llvm/trunk/include/llvm/DebugInfo/DIContext.h<br>
>     llvm/trunk/lib/DebugInfo/DIContext.cpp<br>
>     llvm/trunk/lib/DebugInfo/DWARFContext.cpp<br>
>     llvm/trunk/lib/DebugInfo/DWARFContext.h<br>
>     llvm/trunk/test/DebugInfo/dwarfdump-test.test<br>
>     llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp<br>
</div>(snip)<br>
<div class="im">> +void DWARFDebugRangeList::dump(raw_ostream &OS) const {<br>
> +  for (int i = 0, n = Entries.size(); i != n; ++i) {<br>
> +    const char *format_str = (AddressSize == 4) ? "%08x %08x %08x\n"<br>
> +                                                : "%08x %016x %016x\n";<br>
> +    OS << format(format_str, Offset, Entries[i].StartAddress,<br>
> +                                     Entries[i].EndAddress);<br>
> +  }<br>
> +  OS << format("%08x <End of list>\n", Offset);<br>
> +}<br>
<br>
</div>It was i686-unsafe. Fixed in r162665.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>Thanks! </div></div><div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>