1: /*
2: * Copyright (c) 1987 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: */
6:
7: #ifdef SYSLIBC_SCCS
8: _sccsid: <@(#)ptrace.s 2.6 (2.11BSD GTE) 1995/05/08\0>
9: .even
10: #endif SYSLIBC_SCCS
11:
12: #include "SYS.h"
13:
14: ENTRY(ptrace)
15: clr _errno / -1 is a legitimate return value so we must
16: SYS(ptrace) / clear errno so the caller may
/
/ trap 26 -> [kernel] -> syscall() -> via sysent[] -> handler: ptrace
/
17: bes error / disambiguate
18: rts pc
19: error:
20: jmp x_error
Defined functions
_ptrace
defined in line
14; used 42 times
- in /usr/src/bin/adb/access.c line
64-66(2)
- in /usr/src/bin/adb/command.c line
179
- in /usr/src/bin/adb/runpcs.c line
56,
81,
95,
117-121(3),
190,
199,
223-224(2),
272,
279,
295
- in /usr/src/ucb/PORT/pascal/pdx/process/ptrace.c line
53,
93,
143,
163,
262-279(9),
298-320(7),
435,
449,
456-459(2),
488,
499
error
defined in line
19; used 1 times