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:           Fri Jan  6 22:53:17 UTC 2017

Modified Files:
        src/sys/kern: core_elf32.c core_netbsd.c kern_sig.c sys_ptrace_common.c
        src/sys/sys: ptrace.h signalvar.h

Log Message:
Introduce new ptrace(2) interface: PT_SET_SIGINFO and PT_GET_SIGINFO

This interface is designed to read signal information emited to tracee and
fake this signal with new value.

This functionality is required to distinguish types of events that occured
in the tracee and intercepted by a debugger.

These accessors introduce a new structure type ptrace_siginfo:
/*
 * Signal Information structure
 */
typedef struct ptrace_siginfo {
       siginfo_t       psi_siginfo;    /* signal information structure */
       lwpid_t         psi_lwpid;      /* destination LWP of the signal
                                        * value 0 means the whole process
                                        * (route signal to all LWPs) */
} ptrace_siginfo_t;

Include <sys/siginfo.h> in <sys/ptrace.h> in order to not break existing
software due to unknown symbol siginfo_t.

This interface has been proposed to the tech-kern@ mailing list.

Sponsored by <The NetBSD Foundation>


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/kern/core_elf32.c
cvs rdiff -u -r1.22 -r1.23 src/sys/kern/core_netbsd.c
cvs rdiff -u -r1.331 -r1.332 src/sys/kern/kern_sig.c
cvs rdiff -u -r1.7 -r1.8 src/sys/kern/sys_ptrace_common.c
cvs rdiff -u -r1.51 -r1.52 src/sys/sys/ptrace.h
cvs rdiff -u -r1.87 -r1.88 src/sys/sys/signalvar.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