[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
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
> > the JIT-code injection is somehow a part of an interprocess
> > 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.
Jason E. Aten, Ph.D.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev