freebsd-skq/sys/sparc64
Marius Strobl 29b6820f87 Merge r202882 from amd64/i386:
For PT_TO_SCE stop that stops the ptraced process upon syscall entry,
syscall arguments are collected before ptracestop() is called. As a
consequence, debugger cannot modify syscall or its arguments.

In syscall(), reread syscall number and arguments after ptracestop(),
if debugger modified anything in the process environment. Since procfs
stopevent requires number of syscall arguments in p_xstat, this cannot
be solved by moving stop/trace point before argument fetching.

Move the code to read arguments into separate function
fetch_syscall_args() to avoid code duplication. Note that ktrace point
for modified syscall is intentionally recorded twice, once with original
arguments, and second time with the arguments set by debugger.

PT_TO_SCX stop is executed after cpu_syscall_set_retval() already.

Reviewed by:	kib
2010-01-23 22:11:18 +00:00
..
central Enroll these drivers in multipass probing. The motivation behind this 2009-12-22 21:02:46 +00:00
compile
conf Move the examples for the 'hints' and 'env' keywords from various GENERIC 2010-01-19 17:20:34 +00:00
ebus Add epic(4), a driver for the front panel LEDs in Sun Fire V215/V245. 2010-01-10 15:44:48 +00:00
fhc Enroll these drivers in multipass probing. The motivation behind this 2009-12-22 21:02:46 +00:00
include Merge from amd64/i386: 2009-12-24 15:43:37 +00:00
isa - Correct an off-by-one error when calculating the end of a child 2009-12-22 21:53:19 +00:00
pci When setting up MSIs with a filter ensure that the event queue interrupt 2010-01-10 18:39:29 +00:00
sbus Enroll these drivers in multipass probing. The motivation behind this 2009-12-22 21:02:46 +00:00
sparc64 Merge r202882 from amd64/i386: 2010-01-23 22:11:18 +00:00