Re: [lldb-dev] Shared Process plugin between Linux and BSD

2017-02-13 Thread Kamil Rytarowski via lldb-dev
I've published a short report for the previous milestone, with goals for the ongoing one. "The first patch-bulk upstreamed to LLDB" http://blog.netbsd.org/tnf/entry/the_first_patch_bulk_upstreamed The next one will turn to be more exciting as I plan to start with implementation of accessors f

Re: [lldb-dev] Shared Process plugin between Linux and BSD

2017-01-23 Thread Kamil Rytarowski via lldb-dev
Hello, For the reference in this thread, I've posted a blog entry on the NetBSD Foundation site with a summary of the interfaces we were discussing in this thread: http://blog.netbsd.org/tnf/entry/summary_of_the_preliminary_lldb This report covers the topics discussed in this E-mail thread. I'v

Re: [lldb-dev] Shared Process plugin between Linux and BSD

2016-12-15 Thread Kamil Rytarowski via lldb-dev
On 15.12.2016 16:08, Pavel Labath wrote: > On 15 December 2016 at 14:14, Kamil Rytarowski wrote: >> On 15.12.2016 14:14, Pavel Labath wrote: > > 2. PTRACE_SETSIGINFO - equivalent currently unsupported, I will need to > add support for it in ptrace(2). >>> This value is currently only u

Re: [lldb-dev] Shared Process plugin between Linux and BSD

2016-12-15 Thread Pavel Labath via lldb-dev
On 15 December 2016 at 14:14, Kamil Rytarowski wrote: > On 15.12.2016 14:14, Pavel Labath wrote: 2. PTRACE_SETSIGINFO - equivalent currently unsupported, I will need to add support for it in ptrace(2). >> This value is currently only used in logging code, so we can just >> remove it

Re: [lldb-dev] Shared Process plugin between Linux and BSD

2016-12-15 Thread Kamil Rytarowski via lldb-dev
On 15.12.2016 14:14, Pavel Labath wrote: > I am communicating with Kamil about the possibility of sharing code > between the two plugins. We plan to have a common base class for the > shared functionality between the OSs. I have asked Kamil to perform > this experiment, so we can identify which par

Re: [lldb-dev] Shared Process plugin between Linux and BSD

2016-12-15 Thread Pavel Labath via lldb-dev
I am communicating with Kamil about the possibility of sharing code between the two plugins. We plan to have a common base class for the shared functionality between the OSs. I have asked Kamil to perform this experiment, so we can identify which parts of the code can be shared in the first place.

Re: [lldb-dev] Shared Process plugin between Linux and BSD

2016-12-14 Thread Greg Clayton via lldb-dev
I am wondering if it would be better to make a common base class, like NativeProcessPtrace, where all of the common Ptrace stuff lives and then subclass and override the functions that are different. There seemed to be a bunch of "#if defined(NETBSD)" stuff in the second patch. Without extra cod

[lldb-dev] Shared Process plugin between Linux and BSD

2016-12-14 Thread Kamil Rytarowski via lldb-dev
Hello, I've prepared two patches to make the Linux Process Plugin buildable on NetBSD. The diff will help to transform the Linux process plugin to common code, shared between Linux and BSDs (FreeBSD, NetBSD). lldb-git: Enable Linux Process plugin on NetBSD https://wip.pkgsrc.org/cgi-bin/gitweb.