Examining mmaped addresses using GDB

后端 未结 7 1924
[愿得一人]
[愿得一人] 2020-12-13 21:19

I\'m using the driver I posted at Direct Memory Access in Linux to mmap some physical ram into a userspace address. However, I can\'t use GDB to look at any of the address;

7条回答
  •  囚心锁ツ
    2020-12-13 21:45

    If you open an AF_PACKET socket and mmap it, gdb can't access this memory. So there isn't a problem with your driver. It's either a problem with ptrace or with gdb.

提交回复
热议问题