[lldb-dev] lldb -- architecture level question -- linux v. darwin

Jason E. Aten j.e.aten at gmail.com
Wed Mar 16 12:02:33 PDT 2011

Thank you Reid, that makes alot of sense now.  Is there an API to the JIT
functionality?  If so,
could you point out where in the code base it lives, and if there are
examples of clients (how to
use it?)


On Wed, Mar 16, 2011 at 1:58 PM, Reid Kleckner <reid.kleckner at gmail.com>wrote:

> On Wed, Mar 16, 2011 at 2:52 PM, Jason E. Aten <j.e.aten at gmail.com> wrote:
> > Jim, thank you--that makes alot of sense. I hadn't thought through the
> > signal implications.  And re-reading Reid's post, he does make it clear
> that
> > the JIT-code injection is somehow a part of an interprocess
> communication.
> > The question then becomes, does the DNB.h protocol support the JIT-code
> > injection, or if not, could that be a part of it?
> Yup, it works similar to the way debuggers find out about dynamically
> loaded libraries.  There's a particular loader stub that gets called
> after every library load or unload.  Debuggers put a breakpoint on it
> to stop the inferior process and re-read the list of loaded libraries
> with remote memory examination routines, so there's your (hacky) IPC.
> Reid

Jason E. Aten, Ph.D.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20110316/9dff301b/attachment.html>

More information about the lldb-dev mailing list