<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 31, 2018 at 11:42 AM Paul Robinson via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">probinson added inline comments.<br>
<br>
<br>
================<br>
Comment at: llvm/test/MC/ELF/debug-md5.s:20-25<br>
+# CHECK: .debug_line_str contents:<br>
+# CHECK-NEXT: 0x00000000: ""<br>
+# CHECK-NEXT: 0x00000001: "dir1"<br>
+# CHECK-NEXT: 0x00000006: "dir2"<br>
+# CHECK-NEXT: 0x0000000b: "foo"<br>
+# CHECK-NEXT: 0x0000000f: "bar"<br>
----------------<br>
probinson wrote:<br>
> dblaikie wrote:<br>
> > Any way to test that the line table is actually using the indexes into the debug_line_str section?<br>
> Maybe, when printing the directory/file names we could print the section+index when they're indirect.  I'll look into that.<br>
So, this would be a missing feature in llvm-dwarfdump, which doesn't provide a way to dump the section/index pointed to by an indirect reference in the line table (like it does in .debug_info).  In fact by the time we're dumping the line table header, the relevant information is long gone.<br>
That should be its own patch.  Follow-up, or put this on hold to wait for it?<br></blockquote><div><br>Whichever suits you<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D42707" rel="noreferrer" target="_blank">https://reviews.llvm.org/D42707</a><br>
<br>
<br>
<br>
</blockquote></div></div>