开发者

Watchpoint a fixed address

开发者 https://www.devze.com 2023-01-14 18:45 出处:网络
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开发者_C百科 following address: 0x10793ad0. In order to be s

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开发者_C百科 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:

  1. Can I really put watch at a fixed address? I didn't come across any such example online.
  2. Is this the right way or am I missing something?


The right way to set watchpoint on address is watch *0x10793ad0. See gdb doc

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号