Related questions
How to use gdb with LD_PRELOAD
I run a program with LD_PRELOADing a specific library. Like this.
LD_PRELOAD=./my.so ./my_program
How do I run this program with gdb?
GDB examine memory permissions
I've an address in memory and I want to find out the permissions (r/w/x) of that memory address.
E.g.
char *s = "hello";
Here, the string literal "hello" is stored in read-only memory. When running the program through …