jhb bd67f2ec6b Add ptrace op PT_GET_SC_RET.
This ptrace operation returns a structure containing the error and
return values from the current system call.  It is only valid when a
thread is stopped during a system call exit (PL_FLAG_SCX is set).

The sr_error member holds the error value from the system call.  Note
that this error value is the native FreeBSD error value that has _not_
been translated to an ABI-specific error value similar to the values
logged to ktrace.

If sr_error is zero, then the return values of the system call will be
set in sr_retval[0] and sr_retval[1].

Reviewed by:	kib
MFC after:	1 month
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D20901
2019-07-15 21:48:02 +00:00
..
2019-07-10 13:47:10 +00:00
2019-05-27 00:47:51 +00:00
2019-06-22 05:35:23 +00:00
2019-05-02 12:56:13 +00:00
2019-05-08 19:27:30 +00:00
2019-07-15 21:48:02 +00:00
2019-07-14 03:49:48 +00:00
2019-07-15 21:48:02 +00:00
2019-02-04 21:28:25 +00:00
2019-06-08 16:26:56 +00:00
2019-07-14 21:08:54 +00:00