GDB examine command shows different value than value loaded from the same address
I tried to make a function that finds all existing PCIe device's functions and saves the physical address of their config space to an allocated memory for my os, but I noticed that I got WAY too much saved addresses for the simple qemu vm I was testing this on so I tried to use gdb to check if it detects non existing functions correctly, but when testing the vendor ID I found something very weird: I have an address pointing to the vendor id stored in RDX and when I use the gdb examine command it shows the vendor id is 0x8086 and after the mov instruction to move the vendor id from whats RDX po
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.