return to first page linux journal archive
keywordscontents

Listing 1. gdb Output

(gdb) disassemble main
Dump of assembler code for function main:
0x80484a0 <main>:	pushl  %ebp
0x80484a1 <main+1>:	movl   %esp,%ebp
0x80484a3 <main+3>:	subl   $0x4,%esp
0x80484a6 <main+6>:	movl   $0x0,0xfffffffc(%ebp)
0x80484ad <main+13>:	pushl  $0x2
0x80484af <main+15>:	pushl  $0x1
0x80484b1 <main+17>:	call   0x8048474 <func>
0x80484b6 <main+22>:	addl   $0x8,%esp
0x80484b9 <main+25>:	movl   $0x1,0xfffffffc(%ebp)
0x80484c0 <main+32>:	movl   %ebp,%esp
0x80484c2 <main+34>:	popl   %ebp
0x80484c3 <main+35>:	ret    
End of assembler dump.