summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2017-10-02 18:03:55 +0000
committerjhb <jhb@FreeBSD.org>2017-10-02 18:03:55 +0000
commitbca7b0826ce83fd88e3b669bb5e6d9d8fef09688 (patch)
tree2ea6e17c0de52ee18e8efc841c72cacc992f5f14
parent85b6e37e4e8d6b20d8ea7cb061b12b05f7d326cb (diff)
downloadFreeBSD-src-bca7b0826ce83fd88e3b669bb5e6d9d8fef09688.zip
FreeBSD-src-bca7b0826ce83fd88e3b669bb5e6d9d8fef09688.tar.gz
MFC 323994: Log signal number passed to PT_STEP requests in KTR_PTRACE traces.
-rw-r--r--sys/kern/sys_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index 7963546..ab592c4 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -1053,8 +1053,8 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data)
switch (req) {
case PT_STEP:
- CTR2(KTR_PTRACE, "PT_STEP: tid %d (pid %d)",
- td2->td_tid, p->p_pid);
+ CTR3(KTR_PTRACE, "PT_STEP: tid %d (pid %d), sig = %d",
+ td2->td_tid, p->p_pid, data);
error = ptrace_single_step(td2);
if (error)
goto out;
OpenPOWER on IntegriCloud