Script started on Fri Sep 19 13:06:02 2003 linux3% nasm -f elf index1.asm linux3% ld index1.o linux3% gdb a.out GNU gdb Red Hat Linux (5.2-2) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"...(no debugging symbols found)... (gdb) break *init1 Breakpoint 1 at 0x8048081 (gdb) break *init2 Breakpoint 2 at 0x8048099 (gdb) break *init3 Breakpoint 3 at 0x80480ac (gdb) break * alldone Breakpoint 4 at 0x80480bf (gdb) run Starting program: /afs/umbc.edu/users/c/h/chang/home/asm/a.out Breakpoint 1, 0x08048081 in init1 () (gdb) x/10wd &arr 0x80490cc : 0 1 2 3 0x80490dc : 4 5 6 7 0x80490ec : 8 9 (gdb) cont Continuing. Breakpoint 2, 0x08048099 in init2 () (gdb) x/10wd &arr 0x80490cc : 5 6 7 8 0x80490dc : 9 10 11 12 0x80490ec : 13 14 (gdb) cont Continuing. Breakpoint 3, 0x080480ac in init3 () (gdb) x/10wd &arr 0x80490cc : 10 11 12 13 0x80490dc : 14 15 16 17 0x80490ec : 18 19 (gdb) cont Continuing. Breakpoint 4, 0x080480bf in alldone () (gdb) x/10wd &arr 0x80490cc : 15 16 17 18 0x80490dc : 19 20 21 22 0x80490ec : 23 24 (gdb) cont Continuing. Program exited normally. (gdb) quit linux3% exit exit Script done on Fri Sep 19 13:07:41 2003