distinguish load and store instruction given a segmentation fault# Programming - 葵花宝典
b*s
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
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