Script started on Fri Sep 19 13:19:22 2003 linux3% nasm -f elf index2.asm linux3% ld index2.o linux3% 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 *alldone Breakpoint 2 at 0x80480a7 (gdb) run Starting program: /afs/umbc.edu/users/c/h/chang/home/asm/a.out Breakpoint 1, 0x08048081 in init1 () (gdb) x/10wd &twodim 0x80490b4 : 0 1 2 3 0x80490c4 : 4 5 6 7 0x80490d4 : 8 9 (gdb) x/10wd &twodim+60 0x80491a4 : 60 61 62 63 0x80491b4 : 64 65 66 67 0x80491c4 : 68 69 (gdb) 0x80491cc : 70 71 72 73 0x80491dc : 74 75 76 77 0x80491ec : 78 79 (gdb) 0x80491f4 : 80 81 82 83 0x8049204 : 84 85 86 87 0x8049214 : 88 89 (gdb) cont Continuing. Breakpoint 2, 0x080480a7 in done1 () (gdb) x/10wd &twodim+60 0x80491a4 : 60 61 62 63 0x80491b4 : 64 65 66 67 0x80491c4 : 68 69 (gdb) 0x80491cc : 75 76 77 78 0x80491dc : 79 80 81 82 0x80491ec : 83 84 (gdb) 0x80491f4 : 80 81 82 83 0x8049204 : 84 85 86 87 0x8049214 : 88 89 (gdb) cont Continuing. Program exited normally. (gdb) quit linux3% exit exit Script done on Fri Sep 19 13:20:35 2003