Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created March 6, 2013 02:46
Show Gist options
  • Save alexcrichton/5096308 to your computer and use it in GitHub Desktop.
Save alexcrichton/5096308 to your computer and use it in GitHub Desktop.
(gdb) disassemble
Dump of assembler code for function main:
=> 0x0000000100000f90 <+0>: mov $0x8,%al
0x0000000100000f92 <+2>: movsbl %al,%eax
End of assembler dump.
(gdb) stepi
0x0000000100000f92 in main ()
(gdb) print $eax
$1 = 3848
(gdb) stepi
0x0000000100000f95 in ?? ()
(gdb) print $eax
$2 = 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment