1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| (gdb) disas foo
Dump of assembler code for function foo(int):
0x0000000000400bb0 <+0>: push rbx
0x0000000000400bb1 <+1>: sub rsp,0x10
0x0000000000400bb5 <+5>: test edi,edi
0x0000000000400bb7 <+7>: jle 0x400bd1 <foo(int)+33>
0x0000000000400bb9 <+9>: sub edi,0x1
0x0000000000400bbc <+12>: call 0x400bb0 <foo(int)>
0x0000000000400bc1 <+17>: lea rdi,[rsp+0xf]
0x0000000000400bc6 <+22>: call 0x400b40 <S::~S()>
0x0000000000400bcb <+27>: add rsp,0x10
0x0000000000400bcf <+31>: pop rbx
0x0000000000400bd0 <+32>: ret
0x0000000000400bd1 <+33>: mov edi,0x8
0x0000000000400bd6 <+38>: call 0x4009b0 <__cxa_allocate_exception@plt>
0x0000000000400bdb <+43>: xor edx,edx
0x0000000000400bdd <+45>: mov QWORD PTR [rax],0x400cb7
0x0000000000400be4 <+52>: mov esi,0x6013e0
0x0000000000400be9 <+57>: mov rdi,rax
0x0000000000400bec <+60>: call 0x4009c0 <__cxa_throw@plt>
0x0000000000400bf1 <+65>: lea rdi,[rsp+0xf]
0x0000000000400bf6 <+70>: mov rbx,rax
0x0000000000400bf9 <+73>: call 0x400b40 <S::~S()>
0x0000000000400bfe <+78>: mov rdi,rbx
0x0000000000400c01 <+81>: call 0x4009e0 <_Unwind_Resume@plt>
End of assembler dump. |
Partager