Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   kamil
Date:           Mon May  6 08:05:03 UTC 2019

Modified Files:
        src/sys/kern: kern_sig.c kern_syscall.c
        src/sys/sys: ptrace.h siginfo.h

Log Message:
Ship with syscall information with SIGTRAP TRAP_SCE/TRAP_SCX for tracers

Expand siginfo_t (struct size not changed) to new values for
SIGTRAP TRAP_SCE/TRAP_SCX events.

 - si_sysnum  -- syscall number (int)
 - si_retval  -- return value (2 x int)
 - si_error   -- error code (int)
 - si_args    -- syscall arguments (8 x uint64_t)

TRAP_SCE delivers si_sysnum and si_args.

TRAP_SCX delivers si_sysnum, si_retval, si_error and si_args.

Users: debuggers (like GDB) and syscall tracers (like strace, truss).

This MI interface is similar to the Linux kernel proposal of
PTRACE_GET_SYSCALL_INFO by the strace developer team.


To generate a diff of this commit:
cvs rdiff -u -r1.357 -r1.358 src/sys/kern/kern_sig.c
cvs rdiff -u -r1.17 -r1.18 src/sys/kern/kern_syscall.c
cvs rdiff -u -r1.63 -r1.64 src/sys/sys/ptrace.h
cvs rdiff -u -r1.32 -r1.33 src/sys/sys/siginfo.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index