NetBSD/sys/compat
kamil 4f79a48470 Introduce PT_LWPSTATUS + PT_LWPNEXT, obsolete PT_LWPINFO
PT_LWPINFO is a legacy ptrace(2) operation that was originally intended
to retrieve the thread (LWP) information inside a traced process.

It has a number of flaws and is confused with PT_LWPINFO from FreeBSD.

PT_LWPSTATUS and PT_LWPNEXT address the problems (shortly by: rename,
removal of pl_event) and introduces new features: signal context
(pl_sigpend, pl_sigmask), LWP name (pl_name), LWP TLS base address
(pl_private). The private pointer was so far missing information for
a debugger.

PT_LWPSTATUS@nnn is now shipped with core(5) files and contain LWP specific
information, so far missed in the core(5) files.

PT_LWPSTATUS retrieves LWP information for the prompted thread.
PT_LWPNEXT retrieves LWP information for the next thread, borrowing the
semantics from NetBSD specific PT_LWPINFO.

PT_LWPINFO is namespaced with __LEGACY_PT_LWPINFO and still available for
the foreseeable future, without plans of removing it.

Add ATF tests for PT_LWPSTATUS + PT_LWPNEXT.

Keep ATF tests for PT_LWPINFO.

Switch GDB to new API.

Proposed on tech-kern@.
2019-12-24 14:50:59 +00:00
..
aoutm68k regen 2019-06-18 01:39:09 +00:00
common Remove clause 3 and 4 leftovers from TNF licenses in more sources. 2019-12-15 16:48:25 +00:00
freebsd regen 2019-06-18 01:42:44 +00:00
linux uvmexp.free -> uvm_free() 2019-12-21 13:00:20 +00:00
linux32 uvmexp.free -> uvm_free() 2019-12-21 13:00:20 +00:00
m68k4k Move all non-emulation-specific coredump code into the coredump module, 2019-11-20 19:37:51 +00:00
net Remove clause 3 and 4 leftovers from TNF licenses in more sources. 2019-12-15 16:48:25 +00:00
netbsd32 Introduce PT_LWPSTATUS + PT_LWPNEXT, obsolete PT_LWPINFO 2019-12-24 14:50:59 +00:00
netinet6 Remove clause 3 and 4 leftovers from TNF licenses in more sources. 2019-12-15 16:48:25 +00:00
ossaudio Use record field for recording even on 2019-11-03 11:13:45 +00:00
sunos Rather than keeping a separate mutex, condvar, and pserialize for each 2019-12-12 02:15:42 +00:00
sunos32 Rather than keeping a separate mutex, condvar, and pserialize for each 2019-12-12 02:15:42 +00:00
sys 8-byte objects on i386 or arm-oabi are aligned in 4-byte boundary. 2019-11-18 12:06:26 +00:00
ultrix Remove clause 3 and 4 leftovers from TNF licenses in more sources. 2019-12-15 16:48:25 +00:00
vax1k Move all non-emulation-specific coredump code into the coredump module, 2019-11-20 19:37:51 +00:00
Makefile Remove compat_osf1, discussed on tech-kern@. 2019-03-25 19:24:29 +00:00
Makefile.syscall Remove compat_osf1, discussed on tech-kern@. 2019-03-25 19:24:29 +00:00