开发者

page level watchpoints in gdb

Is there anyway in GDB to put a memory watchpoints on page level? I want to break on first access to a page, 开发者_高级运维this access can be anywhere on that page, so i can't put a normal memory watchpoints - since I don't know the address - Also, is there anyway to change the page protection of memory page in GDB ( say change from r/w to no access ), this way any access to that page will cause an A/V and I can catch it Thanks


No. But a bit of arranging with mprotect and sigaction can give you the same effect.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜