开发者

page level watchpoints in gdb

开发者 https://www.devze.com 2022-12-19 16:31 出处:网络
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 wa

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

精彩评论

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