git: rtld: Add a postinit debugger hook

John Marino marino at crater.dragonflybsd.org
Sun Nov 30 08:51:23 PST 2014


commit 7a6072cc450273fdb4772f284f36b1bdf168afc9
Author: John Marino <draco at marino.st>
Date:   Sun Nov 30 17:11:13 2014 +0100

    rtld: Add a postinit debugger hook
    
    FreeBSD's dtrace(1) uses this hook to halt the "victim" process before its
    entry point is called, at which point probes and DOF data are registered
    with the kernel.  The r_debg_state hook cannot be used for this purpose,
    as it is called before the program's init routines are invoked and in
    particular before ODF is registered.  It may or may not be useful for
    DragonFly by itself, but if dtrace every comes in, rtld will be ready.
    
    Taken from:	FreeBSD svn 265456 (6 May 2014)
    		FreeBSD svn 265578 (7 May 2014)

Summary of changes:
 libexec/rtld-elf/Symbol.map |  5 +++++
 libexec/rtld-elf/rtld.c     | 15 +++++++++++++++
 2 files changed, 20 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7a6072cc450273fdb4772f284f36b1bdf168afc9


-- 
DragonFly BSD source repository



More information about the Commits mailing list