b***s 发帖数: 2 | 1 Hi there,
I'm programming segmentation fault signal handling.
I can catch the memory address and also the instruction which causes the fault
. Is there an easy
way to tell whether that instruction is a load or store instruction? Of course
, a solution would be to
derive that by decoding the instruction. Even for that solution, I'm not clear
on how to do it quickly
given the big instruction set of IA32...
Gaven | t****t 发帖数: 6806 | 2 grab an intel IA-32 manual, and look at the instruction code map.
it may not be as complex as you imagine.
the manual is free on intel's website. you can read online, or let them
send you a copy.
fault
course
clear
【在 b***s 的大作中提到】 : Hi there, : I'm programming segmentation fault signal handling. : I can catch the memory address and also the instruction which causes the fault : . Is there an easy : way to tell whether that instruction is a load or store instruction? Of course : , a solution would be to : derive that by decoding the instruction. Even for that solution, I'm not clear : on how to do it quickly : given the big instruction set of IA32... : Gaven
|
|