Disassembling Hello World…
December 22nd, 2005
(gdb) disassemble main
Dump of assembler code for function main:
0×08048368 : push %ebp
0×08048369 : mov %esp,%ebp
0×0804836b : sub $0×8,%esp
0×0804836e : and $0xfffffff0,%esp
0×08048371 : mov $0×0,%eax
0×08048376 : add $0xf,%eax
0×08048379 : add $0xf,%eax
0×0804837c : shr $0×4,%eax
0×0804837f : shl $0×4,%eax
0×08048382 : sub %eax,%esp
0×08048384 : sub $0xc,%esp
0×08048387 : push $0×804847c
0×0804838c : call 0×80482b0 <_init+56>
0×08048391 : add $0×10,%esp
0×08048394 : mov $0×0,%eax
0×08048399 : leave
0×0804839a : ret
End of assembler dump.
(gdb) x/51xb 0×08048368
0×8048368 : 0×55 0×89 0xe5 0×83 0xec 0×08 0×83 0xe4
0×8048370 : 0xf0 0xb8 0×00 0×00 0×00 0×00 0×83 0xc0
0×8048378 : 0×0f 0×83 0xc0 0×0f 0xc1 0xe8 0×04 0xc1
0×8048380 : 0xe0 0×04 0×29 0xc4 0×83 0xec 0×0c 0×68
0×8048388 : 0×7c 0×84 0×04 0×08 0xe8 0×1f 0xff 0xff
0×8048390 : 0xff 0×83 0xc4 0×10 0xb8 0×00 0×00 0×00
0×8048398 : 0×00 0xc9 0xc3
(gdb) disassemble main
Dump of assembler code for function main:
0×08048368
0×08048369
0×0804836b
0×0804836e
0×08048371
0×08048376
0×08048379
0×0804837c
0×0804837f
0×08048382
0×08048384
0×08048387
0×0804838c
0×08048391
0×08048394
0×08048399
0×0804839a
End of assembler dump.
(gdb) x/51xb 0×08048368
0×8048368
0×8048370
0×8048378
0×8048380
0×8048388
0×8048390
0×8048398
Posted in Sticker | Comments (0)