gdb lab0_cprog GNU gdb 6.2.1 Copyright 2004 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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) break main Breakpoint 1 at 0x8048487: file lab0_cprog.c, line 31. (gdb) r Starting program: /home/phoenix/hw/cs361/lab0/lab0_cprog Breakpoint 1, main () at lab0_cprog.c:31 31 n = get_number (MIN_ELEMENTS, MAX_ELEMENTS); (gdb) si 0x0804848a 31 n = get_number (MIN_ELEMENTS, MAX_ELEMENTS); (gdb) si 0x0804848f 31 n = get_number (MIN_ELEMENTS, MAX_ELEMENTS); (gdb) si 0x08048491 31 n = get_number (MIN_ELEMENTS, MAX_ELEMENTS); (gdb) si get_number (min=1, max=1000000) at input.c:23 23 { (gdb) si 0x08048571 23 { (gdb) si 0x08048573 23 { (gdb) si 27 valid = FALSE; (gdb) si 29 while (valid != TRUE) (gdb) si 0x08048580 29 while (valid != TRUE) (gdb) si 0x08048584 29 while (valid != TRUE) (gdb) si 31 printf ("How many elements of the pattern do you want to display " \ (gdb) si 0x0804858b 31 printf ("How many elements of the pattern do you want to display " \ (gdb) si 0x0804858e 31 printf ("How many elements of the pattern do you want to display " \ (gdb) si 0x0804858f 31 printf ("How many elements of the pattern do you want to display " \ (gdb) si 0x08048592 31 printf ("How many elements of the pattern do you want to display " \ (gdb) si 0x08048593 31 printf ("How many elements of the pattern do you want to display " \ (gdb) si 0x08048598 31 printf ("How many elements of the pattern do you want to display " \ (gdb) si 0x0804836c in ?? () (gdb) si 0x08048372 in ?? () (gdb) si 0x08048377 in ?? () (gdb) si 0x0804831c in ?? () (gdb) si 0x08048322 in ?? () (gdb) si 0x4000b6c0 in _dl_runtime_resolve () at dl-runtime.c:203 203 dl-runtime.c: No such file or directory. in dl-runtime.c (gdb) si 0x4000b6c1 203 in dl-runtime.c (gdb) si 0x4000b6c2 203 in dl-runtime.c (gdb) si 0x4000b6c3 203 in dl-runtime.c (gdb) si 0x4000b6c7 203 in dl-runtime.c (gdb) si 0x4000b6cb 203 in dl-runtime.c (gdb) si fixup (l=0xbffff914, reloc_offset=32) at dl-runtime.c:57 57 in dl-runtime.c (gdb) si 0x4000b3f1 57 in dl-runtime.c (gdb) si 0x4000b3f3 57 in dl-runtime.c (gdb) si 0x4000b3f4 57 in dl-runtime.c (gdb) si 0x4000b3f6 57 in dl-runtime.c (gdb) si 0x4000b3f7 57 in dl-runtime.c (gdb) si 0x4000b3f8 57 in dl-runtime.c (gdb) si 59 in dl-runtime.c (gdb) si 60 in dl-runtime.c (gdb) si 57 in dl-runtime.c (gdb) si 0x40011bcf in __i686.get_pc_thunk.bx () from /lib/ld-linux.so.2 (gdb) si 0x40011bd2 in __i686.get_pc_thunk.bx () from /lib/ld-linux.so.2 (gdb) si 0x4000b406 in fixup (l=0x40015988, reloc_offset=32) at dl-runtime.c:57 57 in dl-runtime.c (gdb) si 60 in dl-runtime.c (gdb) si 0x4000b40f 60 in dl-runtime.c (gdb) si 63 in dl-runtime.c (gdb) si 0x4000b415 63 in dl-runtime.c (gdb) si 0x4000b418 63 in dl-runtime.c (gdb) si 64 in dl-runtime.c (gdb) si 65 in dl-runtime.c (gdb) si 64 in dl-runtime.c (gdb) si 0x4000b421 64 in dl-runtime.c (gdb) si 0x4000b424 64 in dl-runtime.c (gdb) si 0x4000b427 64 in dl-runtime.c (gdb) si 0x4000b42a 64 in dl-runtime.c (gdb) si 65 in dl-runtime.c (gdb) si 0x4000b42f 65 in dl-runtime.c (gdb) si 64 in dl-runtime.c (gdb) si 70 in dl-runtime.c (gdb) si 65 in dl-runtime.c (gdb) si 70 in dl-runtime.c (gdb) si 74 in dl-runtime.c (gdb) si 0x4000b443 74 in dl-runtime.c (gdb) si 0x4000b445 74 in dl-runtime.c (gdb) si 76 in dl-runtime.c (gdb) si 0x4000b451 76 in dl-runtime.c (gdb) si 0x4000b453 76 in dl-runtime.c (gdb) si 82 in dl-runtime.c (gdb) si 80 in dl-runtime.c (gdb) si 82 in dl-runtime.c (gdb) si 83 in dl-runtime.c (gdb) si 82 in dl-runtime.c (gdb) si 83 in dl-runtime.c (gdb) si 0x4000b46d 83 in dl-runtime.c (gdb) si 85 in dl-runtime.c (gdb) si 0x4000b472 85 in dl-runtime.c (gdb) si 0x4000b474 85 in dl-runtime.c (gdb) si 87 in dl-runtime.c (gdb) si 0x4000b4d2 87 in dl-runtime.c (gdb) si 0x4000b4d4 87 in dl-runtime.c (gdb) si 0x4000b4d9 87 in dl-runtime.c (gdb) si 0x4000b4dc 87 in dl-runtime.c (gdb) si 0x4000b4e0 87 in dl-runtime.c (gdb) si 0x4000b4e6 87 in dl-runtime.c (gdb) si 0x4000b4ea 87 in dl-runtime.c (gdb) si 0x4000b4ed 87 in dl-runtime.c (gdb) si 0x4000b4f0 87 in dl-runtime.c (gdb) si 0x4000b4f3 87 in dl-runtime.c (gdb) si 0x4000b4f7 87 in dl-runtime.c (gdb) si 0x4000b4f9 87 in dl-runtime.c (gdb) si _dl_lookup_versioned_symbol (undef_name=0x40015988 "", undef_map=0x3, ref=0x400160b8, symbol_scope=0x4015e730, version=0x1, type_class=1, flags=1073830280) at dl-lookup.c:414 414 dl-lookup.c: No such file or directory. in dl-lookup.c (gdb) si 0x40008371 414 in dl-lookup.c (gdb) si 0x40008373 414 in dl-lookup.c (gdb) si 0x40008374 414 in dl-lookup.c (gdb) si 0x40008376 414 in dl-lookup.c (gdb) si 0x40008377 414 in dl-lookup.c (gdb) si 0x40008378 414 in dl-lookup.c (gdb) c Continuing. How many elements of the pattern do you want to display (1 to 1000000)? 2 Displaying 2 elements of pattern: 1 3 Program exited with code 01. (gdb) q