freebsd-dev/tests/sys/kern
John Baldwin c5786670ac Don't report stale signal information for non-signal events in ptrace_lwpinfo.
Once a signal's siginfo was copied to 'td_si' as part of the signal
exchange in issignal(), it was never cleared.  This caused future
thread events that are reported as SIGTRAP events without signal
information to report the stale siginfo in 'td_si'.  For example, if a
debugger created a new process and used SIGSTOP to stop it after
PT_ATTACH, future system call entry / exit events would set PL_FLAG_SI
with the SIGSTOP siginfo in pl_siginfo.  This broke 'catch syscall' in
current versions of gdb as it assumed PL_FLAG_SI with SIGTRAP
indicates a breakpoint or single step trap.

Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D18487
2018-12-10 19:39:24 +00:00
..
acct DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
execve DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
pipe Revert r337929 2018-08-16 22:04:00 +00:00
coredump_phnum_helper.c Add test case for >65535 segment coredumps 2016-11-01 19:18:16 +00:00
coredump_phnum_test.sh Make test scripts under tests/... non-executable 2017-08-08 04:59:16 +00:00
kern_copyin.c Revert r337929 2018-08-16 22:04:00 +00:00
kern_descrip_test.c kern_descrip_test: Fix trivial buffer overrun with readlink(2) 2016-05-12 03:44:29 +00:00
libkern_crc32.c armv8 has support for optional CRC32C instructions. This patch checks if they are 2017-04-27 17:53:05 +00:00
Makefile Fix reporting of SS_ONSTACK 2018-11-30 22:44:33 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
Makefile.inc Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:21:21 +00:00
pdeathsig_helper.c Rename PROC_PDEATHSIG_SET -> PROC_PDEATHSIG_CTL and PROC_PDEATHSIG_GET 2018-04-20 15:19:27 +00:00
pdeathsig.c Remove redundant pipe from pdeathsig.c test. 2018-04-27 16:34:28 +00:00
ptrace_test.c Don't report stale signal information for non-signal events in ptrace_lwpinfo. 2018-12-10 19:39:24 +00:00
reaper.c Reparent a child of pdfork(2) to its reaper when the procdesc is closed. 2018-10-16 20:06:56 +00:00
sigaltstack.c Maybe make gcc happy 2018-11-30 23:47:57 +00:00
sys_getrandom.c Appease GCC 4.2 2018-03-21 04:44:19 +00:00
unix_passfd_test.c Revert r337929 2018-08-16 22:04:00 +00:00
unix_seqpacket_test.c Send all of data, not just a portion of it 2017-05-28 09:21:28 +00:00
unix_socketpair_test.c Fix LOCAL_PEERCRED with socketpair(2) 2018-08-03 01:37:00 +00:00
waitpid_nohang.c wait: Do not copyout uninitialized status/rusage/wrusage. 2016-09-09 21:58:48 +00:00