title: GDB examine memory permissions
body: <p>I've an address in memory and I want to find out the permissions (r/w/x) of that memory address.</p>
  
  <p>E.g.</p>
  
  <pre><code>char *s = "hello";
  </code></pre>
  
  <p>Here, the string literal "hello" is stored in read-only memory. When running the program through gdb, is there a possibility to check out the permissions for that memory address (whether only read is permitted or etc) ?</p>