Examining mmaped addresses using GDB

后端 未结 7 1961
[愿得一人]
[愿得一人] 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:25

    It is my understanding that GDB will be using ptrace to poke around in your process's memory. Perhaps you should write a simple program that just attaches to your process and uses ptrace to read from that memory. This might help narrow down what the underlying problem is. If that has no issues, then you know either I'm wrong :), or something else fishy is happening with GDB.

提交回复
热议问题