Redian新闻
>
distinguish load and store instruction given a segmentation fault
avatar
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
avatar
t*t
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。