How do I print the value of %eax and %ebp?
%eax
%ebp
(gdb) p $eax $1 = void
info registers shows all the registers; info registers eax shows just the register eax. The command can be abbreviated as i r
info registers
info registers eax
eax
i r