is there a way to get GDB to dump memory map so I can see if certain parts of the memory is executable or not (i.e : if heap/stack is executable).
Do you know of a way to do this within GDB session?
Thanks
EDIT :
Solved. Just didn't use gdb, and did instead :
cat /proc/$PID/maps
Cheers. if anyone got a way of doing it within a GDB, feel free to post it here

Thanks.