Skip to content

Instantly share code, notes, and snippets.

@jthmiranda
Created December 17, 2014 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthmiranda/4d67005b755f6f4e3a8a to your computer and use it in GitHub Desktop.
Save jthmiranda/4d67005b755f6f4e3a8a to your computer and use it in GitHub Desktop.
salida en la terminal en mi maquina ubuntu 14.04 x64
(gdb) disassemble
Dump of assembler code for function _start:
0x00000000004000b0 <+0>: mov eax,0x4
0x00000000004000b5 <+5>: mov ebx,0x1
0x00000000004000ba <+10>: mov ecx,0x6000d4
0x00000000004000bf <+15>: mov edx,0x26
0x00000000004000c4 <+20>: int 0x80
0x00000000004000c6 <+22>: mov eax,0x1
=> 0x00000000004000cb <+27>: mov ebx,0x6
0x00000000004000d0 <+32>: int 0x80
End of assembler dump.
(gdb) stepi
0x00000000004000d0 in _start ()
(gdb) info registers
rax 0x1 1
rbx 0x6 6
rcx 0x6000d4 6291668
rdx 0x26 38
rsi 0x0 0
rdi 0x0 0
rbp 0x0 0x0
rsp 0x7fffffffdfc0 0x7fffffffdfc0
r8 0x0 0
r9 0x0 0
r10 0x0 0
r11 0x0 0
r12 0x0 0
r13 0x0 0
r14 0x0 0
r15 0x0 0
rip 0x4000d0 0x4000d0 <_start+32>
eflags 0x202 [ IF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) disassemble
Dump of assembler code for function _start:
0x00000000004000b0 <+0>: mov eax,0x4
0x00000000004000b5 <+5>: mov ebx,0x1
0x00000000004000ba <+10>: mov ecx,0x6000d4
0x00000000004000bf <+15>: mov edx,0x26
0x00000000004000c4 <+20>: int 0x80
0x00000000004000c6 <+22>: mov eax,0x1
0x00000000004000cb <+27>: mov ebx,0x6
=> 0x00000000004000d0 <+32>: int 0x80
End of assembler dump.
(gdb) stepi
[Inferior 1 (process 20216) exited with code 06]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment