gpt4 book ai didi

ios - osx 上的 ‘I Space’ 和 ‘D Space’ 是什么以及它们之间的区别

转载 作者:塔克拉玛干 更新时间:2023-11-02 10:15:59 36 4
gpt4 key购买 nike

在 sys/ptrace.h 中,我看到类似这样的内容:

@define PT_READ_I  1 /* read world in child's I space*/
@define PT_READ_D 2 /* read world in child's D space*/
@define PT_READ_U 3 /* read world in child's user structure*/

什么是“I Space”和“D 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.

现在关于 PT_READ_U:

This space contains the registers and other information about the process; its layout corresponds to the user structure in the system.

关于ios - osx 上的 ‘I Space’ 和 ‘D Space’ 是什么以及它们之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10187624/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com