From 91ecfac9b61691c0ba2d878c5398c6db52c7624e Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 23 Jun 2011 22:05:50 +0200 Subject: [PATCH] Add a comment about setbpt. No code changes. * defs.h: Add a comment about setbpt(). Signed-off-by: Denys Vlasenko --- defs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/defs.h b/defs.h index c1c31793..0632a750 100644 --- a/defs.h +++ b/defs.h @@ -566,6 +566,12 @@ extern void print_sock_optmgmt(struct tcb *, long, int); extern void printrusage(struct tcb *, long); extern void printuid(const char *, unsigned long); extern int clearbpt(struct tcb *); +/* + * On Linux, "setbpt" is a misnomer: we don't set a breakpoint + * (IOW: no poking in user's text segment), + * instead we change fork/vfork/clone into clone(CLONE_PTRACE). + * On newer kernels, we use PTRACE_O_TRACECLONE/TRACE[V]FORK instead. + */ extern int setbpt(struct tcb *); extern int sigishandled(struct tcb *, int); extern void printcall(struct tcb *);