程序计数器的零值
程序计数器(PC)具有当前正在执行的指令或下一条指令的地址。对于ARMV5来说,是前一种情况。
我遇到过 PC (R15) 值为零的崩溃情况。我想知道是否有人可以告诉我这的意义。是否有某种方法(其他寄存器)来找出当前指令的地址。
任何帮助将不胜感激。
program counter (PC) has the address of the currently executing instruction or next instruction in line. for ARMV5, its the former case.
I have encountered the crashes where PC (R15) value is zero. I was wondering if someone can tell me the significance of that. And is there some way (some other register) to find out the address of current instruction.
Any help would be highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
某些代码可能尝试调用空函数指针。检查堆栈以查看调用来自何处。
Some code probably tried to call a null function-pointer. Check the stack to see where the call came from.
一般来说(ARM 术语)这将是预取中止。
意味着 cpu 正在尝试从 illgela 地址读取(预取)指令,这导致了这种情况。
您可以尝试查看内存位置如何变得无效,以找出更多原因!
In general (ARM terminology ) it would be a prefetch abort.
Means cpu is trying to read (pre-fetch) instruction from illgela address which caused this.
you can try to see how tht mem location has become invlid to find out more on the cause !