<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 7, 2017 at 11:49 AM Adrian Prantl <<a href="mailto:aprantl@apple.com">aprantl@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><blockquote type="cite"><div>On Sep 7, 2017, at 11:37 AM, Zachary Turner via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="m_1050070664503181110Apple-interchange-newline"><div><div dir="ltr">To be clear, the tests I'm proposing will have no resemblance whatsoever to GDB, so I would be intentionally forking the set of tests in this regards. So there would very clearly be a paradigm shift in writing CodeView debug info tests (which would be written in JavaScript using WinDbg specific debugger commands) and DWARF debug info tests (which would be written in whatever / using GDB style commands)</div></div></blockquote><div><br></div></div></div><div style="word-wrap:break-word"><div><div>That sounds like an unfortunate direction. Can you explain why it wouldn't be possible to write a wrapper (in JavaScript) that interprets the 3ish gdb commands used by the tests in terms of WinDbg? Similar to how LLDB is supported?</div><div><br></div></div></div></blockquote><div><br></div><div>I can think of a couple of reasons:</div><div><br></div><div>1) We're already going to need entirely different runlines. clang and clang-cl don't use the same command line options, or for that matter even styles.</div><div><br></div><div>2) The output format is going to be different. whereas the current tests look for things like </div><div><br></div><div><div>// CHECK: ${{[0-9]+}} =</div><div>// CHECK: Data ={{.*}} 0x0{{(0*)}}</div><div>// CHECK: Kind = 2142</div></div><div><br></div><div>In WinDbg this is going to be more like:</div><div><br></div><div><span style="color:rgb(30,30,30)">Local var @ 0x6ffa50 Type SVal</span><br></div><div><pre><span style="color:rgb(30,30,30)"> +0x000 </span><span style="color:rgb(30,30,30)">Data : (null) </span>
<span style="color:rgb(30,30,30)"> +0x004 </span><span style="color:rgb(30,30,30)">Kind : 0x85e</span></pre><pre><br class="inbox-inbox-Apple-interchange-newline"><span style="font-family:sans-serif;white-space:normal">So we're also going to need different check lines.</span></pre><pre><font face="sans-serif"><span style="white-space:normal">At this point, the only similarities in the PDB / DWARF tests is going to be the source code, as I don't see an easy way to automatically translate command lines, input commands, and output text.</span></font></pre></div></div></div>