Watchpoint一个固定的地址 [英] Watchpoint a fixed address
本文介绍了Watchpoint一个固定的地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于我目前的嵌入式应用程序,我试图将GDB观察点放在一个固定的内存地址。
例如,我的应用程序更新以下地址:0x10793ad0。为了确定代码的哪一部分正在损坏该值,我尝试了 watch 0x10793ad0
即使GDB在此之后没有输出任何错误,它仍然无法在执行期间中断,即使我已验证该值正在修改在开始和结束执行之间。
问题:
- 我真的可以把手表放在固定的地址吗?
- 这是正确的方式还是我错过了一些东西?
div class =h2_lin>解决方案
在地址上设置观察点的正确方法是 watch * 0x10793ad0 。请参阅 gdb文档
For my current embedded application I am trying to put GDB watch point at a fixed memory address.
As an example, my application updates the following address: 0x10793ad0. In order to be sure which part of the code is corrupting the value, I tried
watch 0x10793ad0
Even though GDB does not print any error after this, it is not able to break during execution even though I verified the value is getting modified at between start and end of execution.
Questions:
- Can I really put watch at a fixed address? I didn't come across any such example online.
- Is this the right way or am I missing something?
解决方案
The right way to set watchpoint on address is watch *0x10793ad0. See gdb doc
这篇关于Watchpoint一个固定的地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文