summaryrefslogtreecommitdiffstats
path: root/lib/libproc/_libproc.h
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-07-31 16:10:20 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-07-31 16:10:20 +0000
commita049970caad5cf461ceb13d4b2fcd914b2af24f1 (patch)
tree30c1af86897f11bb9ea43da0c92ec31dbecd1c50 /lib/libproc/_libproc.h
parentf5ec1d3118207f2f24806692cce1f78fff6d53d3 (diff)
downloadFreeBSD-src-a049970caad5cf461ceb13d4b2fcd914b2af24f1.zip
FreeBSD-src-a049970caad5cf461ceb13d4b2fcd914b2af24f1.tar.gz
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
Diffstat (limited to 'lib/libproc/_libproc.h')
-rw-r--r--lib/libproc/_libproc.h12
1 files changed, 12 insertions, 0 deletions
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 <sys/types.h>
#include <sys/event.h>
#include <sys/ptrace.h>
+#include <rtld_db.h>
#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
OpenPOWER on IntegriCloud