<div dir="ltr">yaml2core would be an excellent idea for a tool.</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 27, 2017 at 9:48 PM Davide Italiano via Phabricator via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org">lldb-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">davide added subscribers: vsk, aprantl, davide.<br>
davide added a comment.<br>
<br>
I thought about this, and it's the only patch from your patchset that I don't feel really confident about.<br>
I'm afraid it's a little risky to add more code to the objectfile reader without having proper unittesting.<br>
In particular, we might want to either check in an object file (not so ideal)  or use `llvm-mc` to produce a file with the correct section.<br>
More generally, when we want to test debug info either we want to piggyback on mc or yaml2obj.<br>
If none of them suffices, we should think about having a tool that takes a textual representation of some sort (YAML seems a good start) and produces a core dump to be passed to LLDB.<br>
@sas what do you think?<br>
cc:ing @vsk / @aprantl for thoughts.<br>
<br>
<br>
<a href="https://reviews.llvm.org/D40539" rel="noreferrer" target="_blank">https://reviews.llvm.org/D40539</a><br>
<br>
<br>
<br>
_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits</a><br>
</blockquote></div>