title: Why does GDB 'x/w' and 'x/g' show different values?
body: <p>In my program, there is a point where it compares a variable (stored at rbp-0x84) to 0x1.
  However, when I go to view what is there, I get conflicting results.</p>
  
  <pre><code>gef➤  x/w $rbp-0x84
  0x7fffffffdf5c: 0x00000000
  gef➤  x/g $rbp-0x84
  0x7fffffffdf5c: 0x0000000500000000
  </code></pre>
  
  <p>How does the first 8 bits change from 0x0 to 0x5?</p>
  
  <p>Which leads me to my next problem... when I try:</p>
  
  <pre><code>gef➤  set $rbp-0x84 = 0x1
  gef➤  x $rbp-0x84
  0xffffffffffffff7d: Cannot access memory at address 0xffffffffffffff7d
  </code></pre>
  
  <p>How did the address go from 0x7fffffffdf5c to 0xffffffffffffff7d?</p>