title: Where to view the program counter (PC) and instruction register (IR) in gdb
body: <p>Is it possible to view the current program counter and instruction register in gdb? Here is the output of a basic C program (add an int and return it) in gdb on ubuntu14:</p>
  
  <p><a href="https://i.stack.imgur.com/Fjjpg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Fjjpg.png" alt="enter image description here"></a></p>
  
  <p>I thought I'd see something like <code>pc</code> or <code>ir</code> but perhaps it's either stored as something else or not shown at all in the register. Where would I see that?</p>