The NetBSD Project

CVS log for src/lib/libc/sys/ptrace.2

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / sys

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.86: download - view: text, markup, annotated - select for diffs
Sun May 12 23:55:57 2024 UTC (11 months, 1 week ago) by msaitoh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +2 -2 lines
s/unitialized/uninitialized/

Revision 1.85: download - view: text, markup, annotated - select for diffs
Thu May 14 13:40:49 2020 UTC (4 years, 11 months ago) by wiz
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +6 -3 lines
Use more markup.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Thu May 14 13:32:15 2020 UTC (4 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +27 -2 lines
Introduce new ptrace(2) operations: PT_SET_SIGPASS and PT_GET_SIGPASS

They deliver the logic of bypassing selected signals directly to the
debuggee, without informing the debugger.

This can be used to implement the QPassSignals GDB/LLDB protocol.

This call can be useful to avoid signal races in ATF ptrace tests.

Revision 1.69.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:11 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.69.2.1: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.2.1: +189 -63 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sat Jan 4 04:40:17 2020 UTC (5 years, 3 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +30 -28 lines
Document PT_LWPSTATUS and PT_LWPNEXT in ptrace(2)

Remove mentions of obsolete PT_LWPINFO.

Revision 1.79.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 15 19:13:22 2019 UTC (5 years, 6 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79: +31 -3 lines
Pull up following revision(s) (requested by kamil in ticket #326):

	lib/libc/sys/ptrace.2: revision 1.81

Document PT_STOP, update PT_KILL in the ptrace(2) man-page
Formatting by <mgorny>

Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed Oct 9 14:20:47 2019 UTC (5 years, 6 months ago) by wiz
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +2 -2 lines
Fix xref.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Wed Oct 9 13:42:37 2019 UTC (5 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +31 -3 lines
Document PT_STOP, update PT_KILL in the ptrace(2) man-page

Formatting by <mgorny>

Revision 1.80: download - view: text, markup, annotated - select for diffs
Tue Jul 30 20:18:11 2019 UTC (5 years, 8 months ago) by mgorny
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +6 -3 lines
Include pe_lwp member in 'struct ptrace_state'

Reviewed by kamil.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Jul 11 03:30:01 2019 UTC (5 years, 9 months ago) by mgorny
Branches: MAIN
CVS tags: netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -3 lines
Fix thinko: syscalls -> signals

Revision 1.78: download - view: text, markup, annotated - select for diffs
Wed Jul 10 19:51:14 2019 UTC (5 years, 9 months ago) by mgorny
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +17 -4 lines
Improve/fix doc of PT_SETSTEP and PT_CLEARSTEP.

Reviewed by kamil.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Jul 10 19:03:47 2019 UTC (5 years, 9 months ago) by mgorny
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +2 -2 lines
Fix typo: SIGRAP -> SIGTRAP

Revision 1.76: download - view: text, markup, annotated - select for diffs
Wed Jun 26 13:31:48 2019 UTC (5 years, 9 months ago) by wiz
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +35 -37 lines
Use Vt for variable types. New sentence, new line. Add a missing ')'.
Add/remove some articles or other missing words.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed Jun 26 12:30:12 2019 UTC (5 years, 9 months ago) by mgorny
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +75 -3 lines
Implement PT_GETXSTATE and PT_SETXSTATE

Introduce two new ptrace() requests: PT_GETXSTATE and PT_SETXSTATE,
that provide access to the extended (and extensible) set of FPU
registers on amd64 and i386.  At the moment, this covers AVX (YMM)
and AVX-512 (ZMM, opmask) registers.  It can be easily extended
to cover further register types without breaking backwards
compatibility.

PT_GETXSTATE issues the XSAVE instruction with all kernel-supported
extended components enabled.  The data is copied into 'struct xstate'
(which -- unlike the XSAVE area itself -- has stable format
and offsets).

PT_SETXSTATE issues the XRSTOR instruction to restore the register
values from user-provided 'struct xstate'.  The function replaces only
the specific XSAVE components that are listed in 'xs_rfbm' field,
making it possible to issue partial updates.

Both syscalls take a 'struct iovec' pointer rather than a direct
argument.  This requires the caller to explicitly specify the buffer
size.  As a result, existing code will continue to work correctly
when the structure is extended (performing partial reads/updates).

Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed Jun 12 12:33:42 2019 UTC (5 years, 10 months ago) by wiz
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +2 -2 lines
Fix typo.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Wed Jun 12 12:30:42 2019 UTC (5 years, 10 months ago) by kamil
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +6 -11 lines
Try to make posix_spawn(3) note in ptrace(2) less confusing

Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Jun 12 10:09:26 2019 UTC (5 years, 10 months ago) by wiz
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -2 lines
Use Xr.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Jun 11 23:27:46 2019 UTC (5 years, 10 months ago) by kamil
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +21 -7 lines
Document PTRACE_POSIX_SPAWN in man-page

Revision 1.69.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:21 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +29 -6 lines
Sync with HEAD

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat May 25 04:25:14 2019 UTC (5 years, 10 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +29 -6 lines
Update the ptrace(2) documentation

Document that TRAP_EXEC can be returned for PT_SYSCALL.
Document truncated byte transfers.

Revision 1.68.2.1: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:01 2018 UTC (6 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +2 -6 lines
Synch with HEAD

Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue May 1 16:37:23 2018 UTC (6 years, 11 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502
Branch point for: phil-wifi
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +2 -6 lines
Implement PTRACE_VFORK

Add support for tracing vfork(2) events in the context of ptrace(2).

This API covers other frontends to fork1(9) like posix_spawn(2) or clone(2),
if they cause parent to wait for exec(2) or exit(2) of the child.

Changes:
 - Add new argument to sigswitch() determining whether we need to acquire
   the proc_lock or whether it's already held.
 - Refactor fork1(9) for fork(2) and vfork(2)-like events.
   Call sigswitch() from fork(1) for forking or vforking parent, instead of
   emitting kpsignal(9). We need to emit the signal and suspend the parent,
   returning to user and relock proc_lock.
 - Add missing prototype for proc_stop_done() in kern_sig.c.
 - Make sigswitch a public function accessible from other kernel code
   including <sys/signalvar.h>.
 - Remove an entry about unimplemented PTRACE_VFORK in the ptrace(2) man page.
 - Permin PTRACE_VFORK in the ptrace(2) frontend for userland.
 - Remove expected failure for unimplemented PTRACE_VFORK tests in the ATF
   ptrace(2) test-suite.
 - Relax signal routing constraints under a debugger for a vfork(2)ed child.
   This intended to protect from signaling a parent of a vfork(2)ed child that
   called PT_TRACE_ME, but wrongly misrouted other signals in vfork(2)
   use-cases.

Add XXX comments about still existing problems and future enhancements:
 - correct vfork(2) + PT_TRACE_ME handling.
 - fork1(2) handling of scenarios when a process is collected in valid but
   rare cases.

All ATF ptrace(2) fork[1-8] and vfork[1-8] tests pass.

Fix PR kern/51630 by Kamil Rytarowski (myself).

Sponsored by <The NetBSD Foundation>

Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 6 09:52:09 2018 UTC (7 years, 1 month ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +1 -26 lines
Pull up following revision(s) (requested by kamil in ticket #602):
	doc/CHANGES{,.prev}: revision 1.138
	sys/sys/ptrace.h: revision 1.63
	lib/libc/sys/ptrace.2: revision 1.68
	sys/kern/sys_ptrace_common.c: revision 1.35 (via patch)
	tests/lib/libc/sys/t_ptrace_wait.c: revision 1.23

Remove PT_GET_SIGMASK / PT_SET_SIGMASK

These operations cloned Linux's specific PTRACE_GETSIGMASK /
PTRACE_SETSIGMASK.

This feature was useful in applications like rr/criu/reptyr-like, where
the ptrace(2) interface is abused for the purpose of constructing an
arbitrary
process. It's not reliable and not portable. For the NetBSD case it will =
be
better to invent something dedicated for serializing and deserializing a
process with threads.

Noted on tech-toolchain@ and blog entry
"LLDB restoration and return to ptrace(2)"
https://blog.netbsd.org/tnf/entry/lldb_restoration_and_return_to

Revision 1.68: download - view: text, markup, annotated - select for diffs
Mon Mar 5 11:24:35 2018 UTC (7 years, 1 month ago) by kamil
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +1 -26 lines
Remove PT_GET_SIGMASK / PT_SET_SIGMASK

These operations cloned Linux's specific PTRACE_GETSIGMASK / PTRACE_SETSIGMASK.
This feature was useful in applications like rr/criu/reptyr-like, where
the ptrace(2) interface is abused for the purpose of constructing an arbitrary
process. It's not reliable and not portable. For the NetBSD case it will be
better to invent something dedicated for serializing and deserializing a
process with threads.

Noted on tech-toolchain@ and blog entry

"LLDB restoration and return to ptrace(2)"
https://blog.netbsd.org/tnf/entry/lldb_restoration_and_return_to

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Jun 3 19:41:14 2017 UTC (7 years, 10 months ago) by abhinav
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3 lines
Fix typo: s/interrput/interrupt/

Revision 1.37.2.4: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:52:54 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.37.2.3: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.2.3: +19 -9 lines
Sync with HEAD

Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:09 2017 UTC (8 years ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +163 -11 lines
Sync with HEAD

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Apr 8 00:58:35 2017 UTC (8 years ago) by kamil
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, bouyer-socketcan-base1
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -2 lines
Fix typo in previous (ptrace(2))

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Apr 8 00:56:38 2017 UTC (8 years ago) by kamil
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +13 -1 lines
Document new calls and be more clear about PT_SYSCALL* in ptrace(2)

Document PT_SETSTEP and PT_CLEARSTEP in ptrace(2).

Try to explain more details of PT_SYSCALL and PT_SYSCALLEMU.

The description of PT_*STEP has been obtained from FreeBSD.

Sponsored by <The NetBSD Foundation>

Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Apr 7 07:21:58 2017 UTC (8 years ago) by pgoyette
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -4 lines
Fix typos and some grammar

Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri Apr 7 00:56:14 2017 UTC (8 years ago) by kamil
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +5 -6 lines
Correction in ptrace(2) about operations that emit signals

PT_STEP and PT_DETACH cannot emit signals
PT_CONTINUE and PT_SYSCALL can emit signals

Pointed out by <chs>

Revision 1.37.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:56:58 2017 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.37.2.2: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.2: +290 -17 lines
Sync with HEAD

Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu Feb 23 08:11:09 2017 UTC (8 years, 1 month ago) by wiz
Branches: MAIN
CVS tags: pgoyette-localcount-20170320
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +4 -5 lines
Formatting fix.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Feb 23 05:48:14 2017 UTC (8 years, 1 month ago) by kamil
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +71 -3 lines
Document PT_GETDBREGS and PT_SETDBRGS in ptrace(2)

Not this interface in MD part.
Explain design choices.

Sponsored by <The NetBSD Foundation>

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Feb 22 23:43:43 2017 UTC (8 years, 1 month ago) by kamil
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +39 -1 lines
Introduce new ptrace(2) API to allow/prevent exection of LWP

Introduce new API for debuggers to allow/prevent execution of the specified
thread.

New ptrace(2) operations:

     PT_RESUME     Allow execution of a specified thread, change its state
                   from suspended to continued.  The addr argument is unused.
                   The data argument specifies the LWP ID.

                   This call is equivalent to _lwp_continue(2) called by a
                   traced process.  This call does not change the general
                   process state from stopped to continued.

     PT_SUSPEND    Prevent execution of a specified thread, change its state
                   from continued to suspended.  The addr argument is unused.
                   The data argument specifies the requested LWP ID.

                   This call is equivalent to _lwp_suspend(2) called by a
                   traced process.  This call does not change the general
                   process state from continued to stopped.

This interface is modeled after FreeBSD, however with NetBSD specific arguments
passed to ptrace(2) -- FreeBSD passes only thread id, NetBSD passes process and
thread id.

Extend PT_LWPINFO operation in ptrace(2) to report suspended threads. In the
ptrace_lwpinfo structure in pl_event next to PL_EVENT_NONE and PL_EVENT_SIGNAL
add new value PL_EVENT_SUSPENDED.

Add new errno(2) value EDEADLK that might be returned by ptrace(2). It prevents
dead-locking in a scenario of resuming a process or thread that is prevented
from execution. This fixes bug that old API was vulnerable to this scenario.

Kernel bump delayed till introduction of PT_GETDBREGS/PT_SETDBREGS soon.

Add new ATF tests:
 - resume1
   Verify that a thread can be suspended by a debugger and later
   resumed by the debugger

 - suspend1
   Verify that a thread can be suspended by a debugger and later
   resumed by a tracee

 - suspend2
   Verify that the while the only thread within a process is
   suspended, the whole process cannot be unstopped

Sponsored by <The NetBSD Foundation>

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Feb 12 06:09:53 2017 UTC (8 years, 2 months ago) by kamil
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +27 -2 lines
Introduce new interface in ptrace(2) - PT_GET_SIGMASK and PT_SET_SIGMASK

Add new interface to add ability to get/set signal mask of a tracee.
It has been inspired by Linux PTRACE_GETSIGMASK and PTRACE_SETSIGMASK, but
adapted for NetBSD API.

This interface is used for checkpointing software to set/restore context
of a process including signal mask like criu or just to track this property
in reverse-execution software like Record and Replay Framework (rr).


Add new ATF tests for this interface
====================================
getsigmask1:
    Verify that plain PT_SET_SIGMASK can be called

getsigmask2:
    Verify that PT_SET_SIGMASK reports correct mask from tracee

setsigmask1:
    Verify that plain PT_SET_SIGMASK can be called with empty mask

setsigmask2:
    Verify that sigmask is preserved between PT_GET_SIGMASK and
    PT_SET_SIGMASK

setsigmask3:
    Verify that sigmask is preserved between PT_GET_SIGMASK, process
    resumed and PT_SET_SIGMASK

setsigmask4:
    Verify that new sigmask is visible in tracee


Kernel ABI bump delayed as there are more interfaces to come in ptrace(2).

Sponsored by <The NetBSD Foundation>

Revision 1.58: download - view: text, markup, annotated - select for diffs
Fri Jan 27 12:52:39 2017 UTC (8 years, 2 months ago) by wiz
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3 lines
Spelling fixes.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Jan 25 17:12:56 2017 UTC (8 years, 2 months ago) by kamil
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +9 -2 lines
Make the PIOD_READ_AUXV operation more clear

Describe how to set piod_offs.

Sponsored by <The NetBSD Foundation>

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Jan 15 22:18:11 2017 UTC (8 years, 3 months ago) by kamil
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +7 -2 lines
Fix one markup issue and add initial HISTORY section

Import HISTORY notes from FreeBSD.

Sponsored by <The NetBSD Foundation>

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Jan 14 14:33:18 2017 UTC (8 years, 3 months ago) by wiz
Branches: MAIN
CVS tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3 lines
Wording, macro use.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Jan 14 07:17:38 2017 UTC (8 years, 3 months ago) by kamil
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +6 -2 lines
Document PTRACE_LWP_CREATE and PTRACE_LWP_EXIT in ptrace(2)

Sponsored by <The NetBSD Foundation>

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Jan 14 00:02:40 2017 UTC (8 years, 3 months ago) by kamil
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +26 -4 lines
Document PTRACE_VFORK and PTRACE_VFORK_DONE in ptrace(2)

PTRACE_VFORK - report vfork(2)-like operations and trace child
PTRACE_VFORK_DONE - report unblocking the parent after vfork(2)-like call

Note that PTRACE_VFORK is currently unimplemented and returns ENOTSUP.

Sponsored by <The NetBSD Foundation>

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Jan 11 07:32:36 2017 UTC (8 years, 3 months ago) by kamil
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -2 lines
Correct man-page category of posix_spawn: is (3) not (2)

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Jan 11 07:31:14 2017 UTC (8 years, 3 months ago) by kamil
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +34 -3 lines
Document SIGTRAP with si_code TRAP_CHLD in ptrace(2)

Document the current behavior of TRAP_CHILD in NetBSD.
Add more notes on PTRACE_FORK events.

Sponsored by <The NetBSD Foundation>

Revision 1.37.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:03 2017 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.37.2.1: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.1: +121 -184 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Jan 7 05:51:14 2017 UTC (8 years, 3 months ago) by kamil
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +90 -16 lines
Add more notes explaining how debuggers work on NetBSD

Explain:
 - execve(2) handling and behavior, SIGTRAP & TRAP_EXEC
 - reference PaX MPROTECT restrictions for debuggers
 - software breakpoints handling and behavior, SIGTRAP & TRAP_BKPT
 - single step behavior, SIGTRAP & TRAP_TRACE
 - list predefined MI symbols for help debuggers in port specific headers
 - explain that PT_TRACE_ME does not send a SIGSTOP signal

Sponsored by <The NetBSD Foundation>

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Jan 7 03:41:25 2017 UTC (8 years, 3 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-localcount-20170107
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +52 -1 lines
Document PT_SET_SIGINFO and PT_GET_SIGINFO in ptrace(2)

PT_SET_SIGINFO - fake signal information emitted to tracee
PT_GET_SIGINFO - read signal information routed to tracee

Sponsored by <The NetBSD Foundation>

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Jan 7 01:32:35 2017 UTC (8 years, 3 months ago) by kamil
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3 lines
Fix swapped text between PT_GET_PROCESS_STATE and PT_GET_EVENT_MASK

Sponsored by <The NetBSD Foundation>

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Jan 7 01:29:18 2017 UTC (8 years, 3 months ago) by kamil
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +10 -3 lines
ptrace(2): Document addr and data argument usage for PT_GET_PROCESS_STATE


The PT_GET_PROCESS_STATE call in ptrace(2) has the following usage of addr
and data:

    A pointer to this structure is passed in addr.  The data
    argument should be set to sizeof(struct ptrace_event).

Sponsored by <The NetBSD Foundation>

Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Dec 29 22:17:51 2016 UTC (8 years, 3 months ago) by kamil
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +7 -2 lines
Reference siginfo(2) for a SIGCHLD signal

siginfo(2) describes appropriate signal specific information for SIGCHLD.

Sponsored by <The NetBSD Foundation>

Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Dec 19 07:17:45 2016 UTC (8 years, 4 months ago) by abhinav
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3 lines
Be consistent in using process' (vs process's).

Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Dec 15 15:03:17 2016 UTC (8 years, 4 months ago) by kamil
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +28 -1 lines
ptrace(2): Document PT_GETVECREGS and PT_SETVECREGS (ppc ports specific)

Sponsored by <The NetBSD Foundation>

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Dec 15 14:49:46 2016 UTC (8 years, 4 months ago) by kamil
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +28 -1 lines
ptrace(2): Document PT_GETXMMREGS and PT_SETXMMREGS (i386 port specific)

Sponsored by <The NetBSD Foundation>

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Dec 15 13:06:08 2016 UTC (8 years, 4 months ago) by kamil
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +1 -159 lines
ptrace(2): Remove dead text, some of it commented in this file for years

For example PT_READ_U/PT_WRITE_U has been removed by <mycroft> in 19950126.

Sponsored by <The NetBSD Foundation>

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Dec 10 20:02:07 2016 UTC (8 years, 4 months ago) by kamil
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +1 -5 lines
Remove outdated note in the PT_DUMPCORE call of the ptrace(2) man-page

Currently the PT_DUMPCORE call requires process to be stopped, therefore it
no longer need to warn about stoped tracee to generate consistent data.

Sponsored by <The NetBSD Foundation>

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Nov 24 00:12:52 2016 UTC (8 years, 4 months ago) by kamil
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +1 -19 lines
Remove duplicated PT_DUMPCORE description in machine-specific calls section

This function is part of the general ptrace(2) interface.

Sponsored by <The NetBSD Foundation>

Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:48:53 2016 UTC (8 years, 5 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +53 -2 lines
Sync with HEAD

Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Nov 1 15:30:47 2016 UTC (8 years, 5 months ago) by wiz
Branches: MAIN
CVS tags: pgoyette-localcount-20161104
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
Bump date for previous.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Nov 1 13:51:13 2016 UTC (8 years, 5 months ago) by kamil
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +52 -1 lines
Document PT_SET_EVENT_MASK, PT_GET_EVENT_MASK and PT_GET_PROCESS_STATE

These descriptions are imported from OpenBSD.

Approved by <christos>

Sponsored by <The NetBSD Foundation>

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Jul 2 03:50:21 2015 UTC (9 years, 9 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +6 -2 lines
document PIOD_READ_AUXV.

Revision 1.35.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:16 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +5 -5 lines
Rebase to HEAD as of a few days ago.

Revision 1.35.18.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:51:51 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +5 -5 lines
Rebase.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Jul 28 08:10:23 2014 UTC (10 years, 8 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -5 lines
PR/49045: Tetsuya Isaki: remove remaining caddr_t in ptrace(2)

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Aug 31 23:04:33 2011 UTC (13 years, 7 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +5 -2 lines
Document PT_SYSCALLEMU

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Apr 14 08:57:21 2010 UTC (15 years ago) by jruoho
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +9 -9 lines
Add offsets to the indentation in couple of places.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Apr 6 14:26:59 2010 UTC (15 years ago) by wiz
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +44 -38 lines
New sentence, new line. Sort errors. Remove trailing whitespace.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Apr 6 13:50:22 2010 UTC (15 years ago) by christos
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +41 -6 lines
PR/43128: Paul Koning: Threads support in ptrace() is insufficient for gdb to
debug threaded live apps: Add an optional lwpid in PT_STEP and PT_CONTINUE to
indicate which lwp to operate on, and implement the glue required to make it
work.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Mar 22 19:30:55 2010 UTC (15 years, 1 month ago) by joerg
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +9 -9 lines
Use .In for header files instead of .Ar Pa and variations.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Mar 12 12:50:42 2007 UTC (18 years, 1 month ago) by skrll
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, mjf-devfs2, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, christos-time_t-nbase, christos-time_t-base, christos-time_t
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
Correct the struct name for PT_LWPINFO

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Mar 6 16:07:22 2007 UTC (18 years, 1 month ago) by drochner
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2 lines
the "addr" argument to ptrace(2) is void* now

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Mar 11 12:03:03 2006 UTC (19 years, 1 month ago) by wiz
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +13 -13 lines
Use more markup.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Mar 6 15:47:42 2006 UTC (19 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +52 -2 lines
Add documentations for the 3 undocumented ptrace calls.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Jan 9 17:41:19 2005 UTC (20 years, 3 months ago) by christos
Branches: MAIN
CVS tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +20 -2 lines
document PT_DUMPCORE.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu May 13 10:20:58 2004 UTC (20 years, 11 months ago) by wiz
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -4 lines
\- is a minus, not -.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Jun 26 09:50:49 2003 UTC (21 years, 10 months ago) by wiz
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
Fix typo in macro.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Apr 16 13:34:55 2003 UTC (22 years ago) by wiz
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Mar 31 03:05:43 2003 UTC (22 years ago) by perry
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
avaliable->available (Igor Sobrado, PR misc/19810)

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Jan 18 11:33:10 2003 UTC (22 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +1 -1 lines
Merge the nathanw_sa branch.

Revision 1.13.2.6: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:17:09 2002 UTC (22 years, 6 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.13.2.5: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.5: +60 -38 lines
Catch up to -current.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Oct 1 18:10:45 2002 UTC (22 years, 6 months ago) by wiz
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +61 -39 lines
New sentence, new line. From Robert Elz.

Revision 1.13.2.5: download - view: text, markup, annotated - select for diffs
Thu Apr 25 04:01:46 2002 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.13.2.4: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.4: +5 -5 lines
Catch up to -current.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Apr 6 04:07:13 2002 UTC (23 years ago) by nathanw
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +5 -5 lines
The PT_IO operations are named PIOD_{READ,WRITE}_{I,D}, not
PIOD_OP_{READ,WRITE}_{I,D}.

Revision 1.13.2.4: download - view: text, markup, annotated - select for diffs
Fri Mar 22 20:42:42 2002 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.13.2.3: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.3: +55 -1 lines
Catch up to -current.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Mar 17 17:14:58 2002 UTC (23 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +55 -1 lines
Document PT_IO.

Revision 1.13.2.3: download - view: text, markup, annotated - select for diffs
Fri Mar 8 21:36:34 2002 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.13.2.2: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.2: +3 -3 lines
Catch up to -current.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Feb 8 01:28:20 2002 UTC (23 years, 2 months ago) by ross
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Mon Jan 28 20:51:30 2002 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.1: +3 -1 lines
Catch up to -current.

Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 14 15:19:44 2002 UTC (23 years, 3 months ago) by he
Branches: netbsd-1-4
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +3 -1 lines
Pull up revision 1.16 (requested by he):
  Fix a ptrace/execve race condition which could be used to modify
  the child process' image during execve.  This would be a security
  issue due to setuid programs.

Revision 1.10.4.2: download - view: text, markup, annotated - select for diffs
Sat Jan 12 01:03:32 2002 UTC (23 years, 3 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.10.4.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.4.1: +3 -1 lines
Pull up revision 1.16 (requested by christos):
  Fix a ptrace/execve race condition which could be used to modify
  the child process' image during execve.  This would be a security
  issue due to setuid programs.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Jan 11 21:17:30 2002 UTC (23 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -1 lines
document that ptrace() will return EAGAIN if the process that we are trying
to ptrace is currently in execve().

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:22:01 2001 UTC (23 years, 6 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -5 lines
Catch up to -current.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Sep 16 02:13:30 2001 UTC (23 years, 7 months ago) by wiz
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -4 lines
Sort sections, sort SEE ALSO, punctuation and miscellanous fixes.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Sep 16 01:39:02 2001 UTC (23 years, 7 months ago) by wiz
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Boring whitespace fixes.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Sep 27 22:31:43 2000 UTC (24 years, 6 months ago) by nathanw
Branches: MAIN
CVS tags: kqueue-base, kqueue
Branch point for: nathanw_sa
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +10 -6 lines
Note that we do support single-stepping, as a machine-dependant feature.
Don't be SPARC-specific about what features we support. Document how
to determine which requests are supported.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Sep 24 07:34:15 2000 UTC (24 years, 7 months ago) by erh
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -4 lines
Mention additional restriction on ptrace: you can't ptrace system processes since the assumptions made for normal processes don't always hold (such as p_pptr is non-NULL).

Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Sun Jul 30 09:39:50 2000 UTC (24 years, 8 months ago) by jdolecek
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -3 lines
pullup rev.1.11 from trunk (approved by thorpej):
PT_DETACH treats addr & data the same way as PT_CONTINUE, actually

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Jul 27 21:40:09 2000 UTC (24 years, 9 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -3 lines
parameters addr & data are actually treated same way
for PT_DETACH and PT_CONTINUE - the only difference between them is that
the child is detached from the parent for PT_DETACH

Revision 1.8.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:29:50 1999 UTC (25 years, 4 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +6 -1 lines
Pull up to last week's -current.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Dec 2 21:42:38 1999 UTC (25 years, 4 months ago) by kleink
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -1 lines
Add a LIBRARY section to system call manual pages.  While it's clear that the
libraries contain stubs only (with minor exceptions a la pipe(2)), the purpose
of this section is to provide linkage information.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Oct 6 17:14:55 1999 UTC (25 years, 6 months ago) by jdolecek
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -1 lines
Add SEE ALSO section and xref sigaction(2) and signal(7)

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Mar 26 23:37:27 1999 UTC (26 years, 1 month ago) by sommerfe
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: wrstuden-devbsize, netbsd-1-4
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +9 -1 lines
Document new chroot-related restrictions on fchdir, chroot, and ptrace
made possible by the kernel getcwd infrastructure

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Mar 22 19:45:07 1999 UTC (26 years, 1 month ago) by garbled
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
Last of the .Os cleanups.  .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Wheee!

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Mar 9 03:58:14 1999 UTC (26 years, 1 month ago) by ross
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -1 lines
More missing .El's.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Feb 6 05:41:35 1998 UTC (27 years, 2 months ago) by perry
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -3 lines
macroize BSD, NetBSD, FreeBSD and misc cleanup

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Mar 8 13:45:29 1997 UTC (28 years, 1 month ago) by mouse
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
alternate -> alternative, per PR 2643

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Feb 23 01:39:41 1996 UTC (29 years, 2 months ago) by jtc
Branches: MAIN
CVS tags: nsswitch, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, ivory_soap2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +150 -150 lines
comment out PT_READ_U, PT_WRITE_U, PT_SYSCALL descriptions

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Feb 27 12:35:37 1995 UTC (30 years, 2 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1 lines
merge with lite, keeping most local changes.  clean up Ids

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Nov 14 06:26:46 1994 UTC (30 years, 5 months ago) by deraadt
Branches: MAIN
CVS tags: ivory_soap
ptrace(2) by der mouse; not checked for accuracy

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>