相是什么生肖|
心肌损伤是什么意思|
侄女结婚送什么礼物最好|
吃什么补充维生素b6|
打醮是什么意思|
包子都有什么馅|
姝是什么意思|
血浆是什么颜色|
凤梨和菠萝的区别是什么|
尿酸高可以吃什么|
女生爱出汗是什么原因|
孕妇血糖高可以吃什么水果|
无花果和什么煲汤好|
2月29日是什么星座|
孝喘吃什么药好|
什么是韧性|
想一出是一出什么意思|
老是口腔溃疡是什么原因|
绿色食品是什么意思|
你有毒是什么意思|
郭德纲什么学历|
菊花是什么季节开的|
平肝什么意思|
为什么一照相脸就歪了|
白矾是什么东西|
吃瓜什么意思|
苟且是什么意思|
不锈钢肥皂是什么原理|
骨密度t值是什么意思|
亲子鉴定需要什么材料|
小孩记忆力差什么原因|
儿童拉肚子挂什么科|
梦见白菜是什么预兆|
回笼是什么意思|
肺结节吃什么药最好|
糖类抗原50是什么指标|
净高是什么意思|
十一月什么星座|
什么样的人着床晚|
梦见别人受伤流血是什么预兆|
柿子不能和什么同吃|
香五行属什么|
什么是瞬时速度|
干巴爹什么意思|
木屐是什么意思|
肚脐眼上方是什么器官|
甲亢不能吃什么食物|
1984年什么命|
摔跤擦伤破皮擦什么药|
血红蛋白偏高说明了什么|
头痛做什么检查|
翘楚是什么意思|
处女座男生喜欢什么样的女生|
胆囊切除后需要注意什么|
行李箱什么材质的好|
羊水偏少对胎儿有什么影响|
金牛座是什么象|
盗墓笔记的结局是什么|
血管瘤有什么危害|
树挪死人挪活是什么意思|
曼波是什么意思|
归元寺求什么最灵验|
市公安局长什么级别|
有什么症状是肯定没怀孕|
属龙五行属什么|
喝什么茶可以降血糖|
生辰八字查五行缺什么|
naps是什么意思|
意外流产有什么症状|
燥热是什么意思|
min是什么|
午睡睡不着是什么原因|
赫依病是什么病|
高铁为什么会晚点|
飞机下降时耳朵疼是什么原因|
频繁是什么意思|
瑞舒伐他汀钙片什么时候吃|
十月底是什么星座|
饣与什么有关|
洋姜有什么功效与作用|
高血压一级是什么意思|
滋阴补肾是什么意思|
什么的云朵|
不是省油的灯是什么意思|
肚子里的蛔虫是什么意思|
包茎不割会有什么影响|
脯氨酸氨基肽酶阳性是什么意思|
塌陷是什么意思|
什么是丹毒|
pdrn是什么|
哔哩哔哩是什么|
等不到天黑烟火不会太完美什么歌|
突然发胖要警惕什么病|
吃黑芝麻有什么好处|
笃怎么读什么意思|
咖啡是什么做的|
手术后能吃什么水果|
人尽可夫什么意思|
早上起床眼屎多是什么原因|
什么是五常大米|
model是什么牌子|
新生儿贫血是什么原因造成的|
为什么会得阴虱|
脚臭用什么药|
拉尿有泡沫是什么原因|
什么鱼炖豆腐好吃|
黑眼圈是什么原因|
肝血不足吃什么食补最快|
吃冬瓜有什么好处|
检车需要什么手续|
玉米属于什么类食物|
清新是什么意思|
什么是生粉|
额娘是什么意思|
试管婴儿长方案是什么|
扒拉是什么意思|
白酒配什么饮料好喝|
想请假找什么理由好|
12580是什么号码|
胰岛素偏高是什么意思|
爱做梦是什么原因|
中药饮片是什么|
丑五行属什么|
身上起红疙瘩是什么原因|
diptyque属于什么档次|
名字五行属什么|
醋酸是什么|
梦见抓龙虾是什么意思|
窝里横是什么意思|
蚂蚁咬了用什么药|
千里莺啼什么映什么|
纵容是什么意思|
骨刺是什么症状|
胰腺炎用什么药|
澳门是什么时候回归的|
甲功六项检查什么|
手脚热吃什么药效果好|
尿酸高吃什么食物好|
心力衰竭吃什么药最好|
外阴炎什么症状|
送对象什么礼物好|
人体缺钾是什么症状|
7.22是什么星座|
雍正为什么只在位13年|
卵泡是什么东西|
5月13号是什么星座|
夏天什么颜色最防晒|
正团级是什么军衔|
刺猬的刺有什么作用|
荨麻疹抹什么药膏|
迪桑特属于什么档次的|
tvb是什么|
繁衍的衍是什么意思|
单宁是什么意思|
成都人民公园有什么好玩的|
肾小球是什么|
腿抽筋吃什么钙片好|
手机暂停服务是什么意思|
万圣节为什么要送糖果|
减肥为什么不让吃茄子|
梦见很多人是什么意思|
身宫是什么意思|
utc是什么|
飞行员妻子有什么待遇|
汉堡里面的白色酱是什么酱|
什么是热感冒|
什么叫窦性心律不齐|
spank是什么意思|
504是什么错误|
7岁属什么|
什么东西最补肾|
非礼什么意思|
mr检查是什么|
喉咙有白点是什么原因|
什么病不能吃牛肉|
徐长卿是什么药|
小鸟喜欢吃什么食物|
真正的朋友是什么|
喜什么自什么|
胰岛素起什么作用|
碱性食物都有什么|
立本是什么意思|
一望无际是什么意思|
转的第三笔是什么|
膝盖后面叫什么部位|
蹒跚什么意思|
尿液臭味很重什么原因|
前来是什么意思|
消融手术是什么意思|
大力丸是什么药|
hb是什么意思|
儿童舌系带短挂什么科|
梦见猪下崽预兆什么|
鸽子单眼伤风用什么药|
高血压早餐吃什么好|
拉肚子能吃什么食物|
胃糜烂吃什么药最好|
脸上过敏用什么药膏|
巴宝莉是什么品牌|
心肌炎做什么检查|
北京户口有什么用|
什么蓝牙耳机好|
口了又一是什么字|
凝血酶原时间是什么意思|
梦见金项链是什么意思|
ebv病毒是什么|
咳黄痰是什么原因|
阿尔马尔是什么药|
牛欢喜是什么|
甲亢是什么原因造成的|
什么的小毛虫|
麦冬的功效与作用是什么|
绿色搭配什么颜色好看|
阴道有味道是什么原因|
乙肝两对半25阳性是什么意思|
岁月蹉跎是什么意思|
NT是检查什么|
姓彭的女孩子取什么名字好|
梅花什么时候开放|
间质瘤是什么病|
孝服是什么意思|
头七是什么意思|
一月八号是什么星座|
用激素药有什么副作用|
油炸食品用什么油最好|
217是什么意思|
考护师需要什么条件|
女人阴虚火旺吃什么药|
胃疼喝什么粥|
扁扁的鱼叫什么鱼|
妇科活检是什么意思|
为什么会得中耳炎|
女生什么时候容易怀孕|
耳耵聍是什么东西|
2017年属鸡的是什么命|
女人左手掌有痣代表什么|
香水什么味道好闻|
今天是什么节日吗|
农历9月21日是什么星座|
缓刑什么意思|
鸡黍是什么意思|
中午1点是什么时辰|
3月份是什么季节|
什么天长地久|
睡醒后口苦是什么原因|
闹乌龙是什么意思|
梦见小孩生病什么预兆|
什么牌子的蜂蜜比较好|
天珺手表什么档次|
骨钙素是什么|
女性尿道口有小疙瘩是什么原因|
头皮长痘痘是什么原因|
感冒吃什么水果比较好|
植树造林的好处是什么|
世态炎凉是什么意思|
杏花什么时候开|
八月三日是什么星座|
917是什么意思|
kaws是什么牌子|
姊妹什么意思|
胃酸吃什么食物好|
莫拉古是什么意思|
查甲状腺应该挂什么科|
排湿气最快的方法吃什么|
百度
马林辽足一队青训一把抓 心理辅导助球员轻装上阵
百度 如果有携带武器的歹徒企图闯入我们任何一间教室,等待他的将是教室里人手一块石头的学生们。
PTRACE(2) NetBSD System Calls Manual PTRACE(2)
NAME
ptrace - process tracing and debugging
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <sys/ptrace.h>
int
ptrace(int request, pid_t pid, caddr_t addr, int data);
DESCRIPTION
ptrace() provides tracing and debugging facilities. It allows one
process (the tracing process) to control another (the traced process).
Most of the time, the traced process runs normally, but when it receives
a signal (see sigaction(2)), it stops. The tracing process is expected
to notice this via wait(2) or the delivery of a SIGCHLD signal, examine
the state of the stopped process, and cause it to terminate or continue
as appropriate. ptrace() is the mechanism by which all this happens.
The request argument specifies what operation is being performed; the
meaning of the rest of the arguments depends on the operation, but except
for one special case noted below, all ptrace() calls are made by the
tracing process, and the pid argument specifies the process ID of the
traced process. request can be:
PT_TRACE_ME This request is the only one used by the traced process; it
declares that the process expects to be traced by its par-
ent. All the other arguments are ignored. (If the parent
process does not expect to trace the child, it will proba-
bly be rather confused by the results; once the traced
process stops, it cannot be made to continue except via
ptrace().) When a process has used this request and calls
execve(2) or any of the routines built on it (such as
execv(3)), it will stop before executing the first instruc-
tion of the new image. Also, any setuid or setgid bits on
the executable being executed will be ignored.
PT_READ_I, PT_READ_D
These requests read a single int of data from the traced
process' address space. Traditionally, ptrace() has
allowed for machines with distinct address spaces for
instruction and data, which is why there are two requests:
conceptually, PT_READ_I reads from the instruction space
and PT_READ_D reads from the data space. In the current
NetBSD implementation, these two requests are completely
identical. The addr argument specifies the address (in the
traced process' virtual address space) at which the read is
to be done. This address does not have to meet any align-
ment constraints. The value read is returned as the return
value from ptrace().
PT_WRITE_I, PT_WRITE_D
These requests parallel PT_READ_I and PT_READ_D, except
that they write rather than read. The data argument sup-
plies the value to be written.
PT_CONTINUE The traced process continues execution. addr is an address
specifying the place where execution is to be resumed (a
new value for the program counter), or (caddr_t)1 to indi-
cate that execution is to pick up where it left off. data
provides a signal number to be delivered to the traced
process as it resumes execution, or 0 if no signal is to be
sent.
PT_KILL The traced process terminates, as if PT_CONTINUE had been
used with SIGKILL given as the signal to be delivered.
PT_ATTACH This request allows a process to gain control of an other-
wise unrelated process and begin tracing it. It does not
need any cooperation from the to-be-traced process. In
this case, pid specifies the process ID of the to-be-traced
process, and the other two arguments are ignored. This
request requires that the target process must have the same
real UID as the tracing process, and that it must not be
executing a setuid or setgid executable. (If the tracing
process is running as root, these restrictions do not
apply.) The tracing process will see the newly-traced
process stop and may then control it as if it had been
traced all along.
Three other restrictions apply to all tracing processes,
even those running as root. First, no process may trace a
system process. Second, no process may trace the process
running init(8). Third, if a process has its root direc-
tory set with chroot(2), it may not trace another process
unless that process's root directory is at or below the
tracing process's root.
PT_DETACH This request is like PT_CONTINUE, except that after it suc-
ceeds, the traced process is no longer traced and continues
execution normally.
PT_IO This request is a more general interface that can be used
instead of PT_READ_D, PT_WRITE_D, PT_READ_I, and
PT_WRITE_I. The I/O request is encoded in a ``struct
ptrace_io_desc'' defined as:
struct ptrace_io_desc {
int piod_op;
void *piod_offs;
void *piod_addr;
size_t piod_len;
};
where piod_offs is the offset within the traced process
where the I/O operation should take place, piod_addr is the
buffer in the tracing process, and piod_len is the length
of the I/O request. The piod_op field specifies which type
of I/O operation to perform. Possible values are:
PIOD_READ_D
PIOD_WRITE_D
PIOD_READ_I
PIOD_WRITE_I
See the description of PT_READ_I for the difference between
I and D spaces. A pointer to the I/O descriptor is passed
in the addr argument to ptrace(). On return, the piod_len
field in the I/O descriptor will be updated with the actual
number of bytes transferred. If the requested I/O could
not be successfully performed, ptrace() will return -1 and
set errno.
Additionally, the following requests exist but are not available on all
machine architectures. The file <machine/ptrace.h> lists which requests
exist on a given machine.
PT_STEP Execution continues as in request PT_CONTINUE; however as
soon as possible after execution of at least one instruc-
tion, execution stops again.
PT_GETREGS This request reads the traced process' machine registers
into the ``struct reg'' (defined in <machine/reg.h>)
pointed to by addr.
PT_SETREGS This request is the converse of PT_GETREGS; it loads the
traced process' machine registers from the ``struct reg''
(defined in <machine/reg.h>) pointed to by addr.
PT_GETFPREGS This request reads the traced process' floating-point reg-
isters into the ``struct fpreg'' (defined in
<machine/reg.h>) pointed to by addr.
PT_SETFPREGS This request is the converse of PT_GETFPREGS; it loads the
traced process' floating-point registers from the ``struct
fpreg'' (defined in <machine/reg.h>) pointed to by addr.
ERRORS
Some requests can cause ptrace() to return -1 as a non-error value; to
disambiguate, errno can be set to 0 before the call and checked after-
wards. The possible errors are:
[EAGAIN]
Process is currently exec'ing and cannot be traced.
[ESRCH]
No process having the specified process ID exists.
[EINVAL]
?/b> A process attempted to use PT_ATTACH on itself.
?/b> The request was not a legal request on this machine architec-
ture.
?/b> The signal number (in data) to PT_CONTINUE was neither 0 nor a
legal signal number.
?/b> PT_GETREGS, PT_SETREGS, PT_GETFPREGS, or PT_SETFPREGS was
attempted on a process with no valid register set. (This is
normally true only of system processes.)
[EBUSY]
?/b> PT_ATTACH was attempted on a process that was already being
traced.
?/b> A request attempted to manipulate a process that was being
traced by some process other than the one making the request.
?/b> A request (other than PT_ATTACH) specified a process that
wasn't stopped.
[EPERM]
?/b> A request (other than PT_ATTACH) attempted to manipulate a
process that wasn't being traced at all.
?/b> An attempt was made to use PT_ATTACH on a process in violation
of the requirements listed under PT_ATTACH above.
SEE ALSO
sigaction(2), signal(7)
BUGS
On the SPARC, the PC is set to the provided PC value for PT_CONTINUE and
similar calls, but the NPC is set willy-nilly to 4 greater than the PC
value. Using PT_GETREGS and PT_SETREGS to modify the PC, passing
(caddr_t)1 to ptrace(), should be able to sidestep this.
NetBSD 2.0 November 7, 1994 NetBSD 2.0
Powered by man-cgi (2025-08-07).
Maintained for NetBSD
by Kimmo Suominen.
Based on man-cgi by Panagiotis Christias.
荷花什么时候开花xianpinbao.com |
交工是什么意思hcv8jop6ns9r.cn |
早期教育是什么hcv9jop4ns0r.cn |
黄喉是什么动物身上的hcv8jop2ns3r.cn |
额头出汗是什么原因adwl56.com |
口干吃什么药hcv8jop2ns3r.cn |
贫血吃什么好hcv7jop9ns4r.cn |
腋下有异味是什么原因hcv8jop8ns7r.cn |
0206是什么星座hcv9jop2ns3r.cn |
鉴定是什么意思hcv8jop5ns3r.cn |
为什么没人敢动景甜hcv7jop9ns6r.cn |
护理专业是什么hcv9jop6ns8r.cn |
舟字五行属什么96micro.com |
属羊的跟什么属相犯冲zsyouku.com |
什么水果对皮肤好祛痘hcv7jop9ns3r.cn |
his系统是什么zhongyiyatai.com |
心脏不舒服做什么检查hcv9jop6ns8r.cn |
盥洗是什么意思hcv9jop2ns1r.cn |
什么牌子的洗衣机最好hcv8jop0ns0r.cn |
顺字五行属什么hcv8jop6ns4r.cn |
百度