From a049970caad5cf461ceb13d4b2fcd914b2af24f1 Mon Sep 17 00:00:00 2001 From: rpaulo Date: Sat, 31 Jul 2010 16:10:20 +0000 Subject: New version of libproc. Changes are: * breakpoint setup support * register query * symbol to address mapping and vice-versa * more misc utility functions based on their Solaris counterpart Also, I've written some test cases. Sponsored by: The FreeBSD Foundation --- lib/libproc/_libproc.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/libproc/_libproc.h') diff --git a/lib/libproc/_libproc.h b/lib/libproc/_libproc.h index 536227e..aee1ac1 100644 --- a/lib/libproc/_libproc.h +++ b/lib/libproc/_libproc.h @@ -31,6 +31,7 @@ #include #include #include +#include #include "libproc.h" @@ -39,5 +40,16 @@ struct proc_handle { int kq; /* Kernel event queue ID. */ int flags; /* Process flags. */ int status; /* Process status (PS_*). */ + int wstat; /* Process wait status. */ + rd_agent_t *rdap; /* librtld_db agent */ + rd_loadobj_t *rdobjs; + size_t rdobjsz; + size_t nobjs; + struct lwpstatus lwps; }; +#ifdef DEBUG +#define DPRINTF(fmt, ...) warn(fmt, __VA_ARGS__) +#else +#define DPRINTF(fmt, ...) +#endif -- cgit v1.1