Skip to content

Instantly share code, notes, and snippets.

@hhc0null
Created December 28, 2013 13:59
Show Gist options
  • Save hhc0null/8159779 to your computer and use it in GitHub Desktop.
Save hhc0null/8159779 to your computer and use it in GitHub Desktop.
debugging on x86_64
0x00007ffff780ccae in __libc_start_main () from /lib64/libc.so.6
10: /x $eax = 0xf7b7ef60
9: /x $ecx = 0x0
8: /x $edx = 0xffffe658
7: /x $ebx = 0x400e90 # <- main address
6: /x $esi = 0xffffe648
5: /x $edi = 0x1
2: /t $ps = 1000000110
1: x/4i $pc
=> 0x7ffff780ccae <__libc_start_main+142>: callq *%rbx # call main
0x7ffff780ccb0 <__libc_start_main+144>: mov 0x36f1d9(%rip),%rax # 0x7ffff7b7be90
0x7ffff780ccb7 <__libc_start_main+151>: mov 0x110(%rax),%ebx
0x7ffff780ccbd <__libc_start_main+157>: test %ebx,%ebx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment