<div dir="ltr">On Mon, Oct 24, 2016 at 11:38 AM, Ed Maste via lldb-commits <span dir="ltr"><<a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 24 October 2016 at 06:26, Pavel Labath <<a href="mailto:labath@google.com">labath@google.com</a>> wrote:<br>
><br>
> It's not my place to tell you how to work, but I'd recommend a<br>
> different approach to this. If you base your work on the current<br>
> FreeBSD in-process plugin, then when you get around to actually<br>
> implementing remote support, you will find that you will have to<br>
> rewrite most of what you have already done to work with lldb-server,<br>
> as it uses completely different class hierarchies and everything. I'd<br>
> recommend starting with lldb-server right away. It's going to be a bit<br>
> more work as (I assume) freebsd implementation is closer to what you<br>
> need than linux, but I think it will save you time in the long run. I<br>
> can help you with factoring out any linux-specific code that you<br>
> encounter.<br>
<br>
</span>I definitely second the approach Pavel suggests here, and am happy to<br>
work with others on refactoring the Linux lldb-server so that we can<br>
get it to support both FreeBSD and NetBSD at the same time.<br>
<br>
A direct port of the current FreeBSD support probably would result in<br>
a basic level of support running sooner, but that work would be<br>
largely thrown away in a future migration to lldb-server.<br></blockquote><div><br></div><div>Just to throw out another option: DS2 (DebugServer2) at <a href="http://github.com/facebook/ds2">http://github.com/facebook/ds2</a> may be another option to getting remote debugging working.  It already has basic BSD support, so adding NetBSD support shouldn't be too difficult.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
______________________________<wbr>_________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@lists.llvm.org">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/<wbr>mailman/listinfo/lldb-commits</a><br>
</blockquote></div><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org</div>
</div></div>