I am trying to use the pt_regs
struct to get and set registers such as eax
, but compilation errors tell me that pt_regs
has no such member eax
.
However, I am able to get the ax
register. Can anybody tell me what is happening?
I am using 32-bit Ubuntu linux with the 3.0.0
kernel. Thank you again.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…