title: Is $fp == $rbp in gdb?
body: <p>Is $fp supposed to be equal $rbp in gdb? In other words, is frame pointer (in gdb terminology) equal to base pointer (in x86 terminology)?</p>
  
  <p>According to <a href="https://sourceware.org/gdb/onlinedocs/gdb/Registers.html" rel="nofollow noreferrer">https://sourceware.org/gdb/onlinedocs/gdb/Registers.html</a>,</p>
  
  <blockquote>
    <p>$fp is used for a register that contains a pointer to the current stack frame</p>
  </blockquote>
  
  <p>In my C++ program they are not equal (stopped in a thread):</p>
  
  <pre><code>(gdb) p $fp
  $12 = (void *) 0x7fffffffdae8
  (gdb) p $rbp
  $13 = (void *) 0x7fffffffdb20
  </code></pre>
  
  <p>gdb version is "GNU gdb (GDB) 7.12" if it matters</p>