title: In gdb, how do I disassemble the previous instruction of an address?
body: <p>We know that disassembling instructions after a given <em>address</em> (inclusive) can be achieved by something like:</p>
  
  <pre><code>x/5i address
  </code></pre>
  
  <p>which will print 5 instructions, but how do I disassemble the previous instruction?</p>
  
  <p>I am debugging JIT code so things like <a href="https://stackoverflow.com/a/1245679/1939274">disassembling a line</a> doesn't work. I could disassemble a random range containing <em>address</em> like:</p>
  
  <pre><code>disas address-10 address+10
  </code></pre>
  
  <p>but this is very awkward and you'll see <code>(bad)</code> (hopefully not in the middle!) and start to worry that you are not getting something right. What I am looking for is something like:</p>
  
  <pre><code>x/-5i address
  </code></pre>
  
  <p>, but the above won't work.</p>