Results 1 to 2 of 2
Hello all,
Can anybody tell me that -
"How to obtain pt_regs from pid?"
i.e. - I know pid of a process A. Now in process B, i want to ...
- 03-24-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 2
How to obtain pt_regs from pid?
Hello all,
Can anybody tell me that -
"How to obtain pt_regs from pid?"
i.e. - I know pid of a process A. Now in process B, i want to obtain pt_regs of process A. How to do this?
Thanks.
NIsarg.
- 04-16-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,961
I think you can use ptrace(PTRACE_GETREGS, pid, 0, buffer) where buffer is a void* pointing to a pt_regs structure.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
