title: GDB and Assembly: how to examine consts variables defined in heap?
body: <p>For example in the following code
  "justatest" and the format "%s" is defined in heap:</p>
  
  <pre><code>char str[15]="justatest";
  int main(){
      printf("%s",str);
      return 0;
  }
  </code></pre>
  
  <p>in GDB,i got the assembly code before call to printf as:</p>
  
  <pre><code>=&gt; 0x0804841f &lt;+14&gt;:    movl   $0x804a020,0x4(%esp)
     0x08048427 &lt;+22&gt;:    movl   $0x80484d8,(%esp)
     0x0804842e &lt;+29&gt;:    call   0x80482f0 &lt;printf@plt&gt;
  </code></pre>
  
  <p>Do i have to examine the parameter 1by1 using "x/s 0x804a020" and "x/s 0x80484d8"</p>
  
  <p>or is there a Table of constants defined in heap that i can directly refer to?</p>
  
  <p>thanks!</p>