Quote:
Originally Posted by kronus
I am seeing this issue, where few memory location within a page are not accessible from GDB, but others are.
|
I am not sure which of two things you are misunderstanding:
1) There is a default size for the memory reference
*(address) in gdb. I couldn't found that described in gdb documentation (probably is there and I don't read such documentation well). But a google search found a "hacking" site that at least told me that default size in 32 bit Linux is 32 bits.
2) Each 8 bits has its own address. A 32 bit memory reference is effectively accessing four sequential addresses starting at the one you specify. All four need to be mapped, not just the first one.