Guest User

Untitled

a guest
Oct 18th, 2013
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDB 1.03 KB | None | 0 0
  1. (gdb) disassemble a
  2. Dump of assembler code for function a():
  3.    0x0000000000400cd0 <+0>: xor    %eax,%eax
  4.    0x0000000000400cd2 <+2>: mov    $0x6020c0,%edx
  5.    0x0000000000400cd7 <+7>: nopw   0x0(%rax,%rax,1)
  6.    0x0000000000400ce0 <+16>:    movzbl (%rdx),%ecx
  7.    0x0000000000400ce3 <+19>:    add    $0x1,%rdx
  8.    0x0000000000400ce7 <+23>:    add    %ecx,%eax
  9.    0x0000000000400ce9 <+25>:    cmp    $0x6020c6,%rdx
  10.    0x0000000000400cf0 <+32>:    jne    0x400ce0 <a()+16>
  11.    0x0000000000400cf2 <+34>:    repz retq
  12. End of assembler dump.
  13. (gdb) disassemble b
  14. Dump of assembler code for function b():
  15.    0x0000000000400ca0 <+0>: xor    %eax,%eax
  16.    0x0000000000400ca2 <+2>: mov    $0x6020c0,%edx
  17.    0x0000000000400ca7 <+7>: nopw   0x0(%rax,%rax,1)
  18.    0x0000000000400cb0 <+16>:    movzbl (%rdx),%ecx
  19.    0x0000000000400cb3 <+19>:    add    $0x1,%rdx
  20.    0x0000000000400cb7 <+23>:    add    %ecx,%eax
  21.    0x0000000000400cb9 <+25>:    cmp    $0x6020c6,%rdx
  22.    0x0000000000400cc0 <+32>:    jne    0x400cb0 <b()+16>
  23.    0x0000000000400cc2 <+34>:    repz retq
  24. End of assembler dump.
Advertisement
Add Comment
Please, Sign In to add comment