GNU DDD 3.3.1 (i386-redhat-linux-gnu) Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany. Copyright (C) 1999-2001 Universität Passau, Germany. Compiled with GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-20), GNU libc 2.3 Requires X11R6, Xt11R6, Motif 2.2.3 (Motif Version 2.2.2) Includes XPM 3.4.11, Athena Panner, DDD core Built 2004-02-27 by centos . $ ddd wordSearch + /bin/sh -c 'exec gdb -q -fullname '\''wordSearch'\''' # Hello, world! # Starting GDB... # Warning: core dumps are disabled # Running GDB (pid 18211, tty /dev/pts/36)... # Current language: C/C++ # Searching "vsllib/ddd.vsl"... # Trying "/home/csmajs/elyon/.ddd/vsllib/ddd.vsl" # Trying "/usr/share/ddd-3.3.1/vsllib/ddd.vsl" # Searching "vsllib/ddd.vsl"..."/usr/share/ddd-3.3.1/vsllib/ddd.vsl". <- "Using host libthread_db library \"/lib/tls/libthread_db.so.1\".\n" <- "(gdb) " -> "set prompt (gdb) \n" <- "(gdb) " -> "set height 0\n" <- "(gdb) " -> "set width 0\n" <- "(gdb) " -> "set annotate 1\n" <- "(gdb) " -> " set verbose off\n" <- "(gdb) " -> "info line\n" <- "No line number information available.\n" <- "(gdb) " -> "list\n" <- "2\t#include \n" "3\t\n" "4\tusing namespace std;\n" "5\t\n" "6\tbool startsAt(const vector& grid, string s, \n" <- "7\t\t int row, int col);\n" "8\tvoid findIt(const vector& grid, string s);\n" "9\t\n" "10\tint main() {\n" "11\t int rows, count(0);\n" <- "(gdb) " -> "info line\n" <- "Line 11 of \"main.cc\" starts at address 0x8048c0d and ends at 0x8048c14 .\n" "\032\032/home/csmajs/elyon/cs14_05sum/as1/main.cc:11:205:beg:0x8048c0d\n" <- "(gdb) " -> "output 4711\n" <- "4711" <- "(gdb) " -> "show language\n" <- "The current source language is \"auto; currently c++\".\n" <- "(gdb) " -> "show version\n" <- "GNU gdb Red Hat Linux (6.1post-1.20040607.52rh)\n" "Copyright 2004 Free Software Foundation, Inc.\n" "GDB is free software, covered by the GNU General Public License, and you are\n" "welcome to change it and/or distribute copies of it under certain conditions.\n" "Type \"show copying\" to see the conditions.\n" "There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n" "This GDB was configured as \"i386-redhat-linux-gnu\".\n" <- "(gdb) " -> "pwd\n" <- "Working directory /home/csmajs/elyon/cs14_05sum/as1.\n" <- "(gdb) " -> "info breakpoints\n" <- "No breakpoints or watchpoints.\n" <- "(gdb) " -> "show history filename\n" <- "The filename in which to record the command history is \"/home/csmajs/elyon/cs14_05sum/as1/.gdb_history\".\n" <- "(gdb) " -> "show history size\n" <- "The size of the command history is 100.\n" <- "(gdb) " # Reading file "/home/csmajs/elyon/cs14_05sum/as1/main.cc"... # Reading file "/home/csmajs/elyon/cs14_05sum/as1/main.cc"...done. # File "/home/csmajs/elyon/cs14_05sum/as1/main.cc" 93 lines, 2273 characters ! X error X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 3 (X_GetWindowAttributes) Resource id in failed request: 0xa48079 Serial number of failed request: 5627 Current serial number in output stream: 5628 Widget hierarchy of resource: unknown # Setting buttons... # Setting buttons...done. -> "info source\n" <- "Current source file is main.cc\n" "Compilation directory is /home/csmajs/elyon/cs14_05sum/as1\n" "Located in /home/csmajs/elyon/cs14_05sum/as1/main.cc\n" "Contains 93 lines.\n" "Source language is c++.\n" "Compiled with DWARF 2 debugging format.\n" "Does not include preprocessor macro info.\n" <- "(gdb) " -> "info files\n" <- "Symbols from \"/home/csmajs/elyon/cs14_05sum/as1/wordSearch\".\n" "Local exec file:\n" "\t`/home/csmajs/elyon/cs14_05sum/as1/wordSearch\', file type elf32-i386.\n" <- "\tEntry point: 0x8048b50\n" "\t0x08048134 - 0x08048147 is .interp\n" "\t0x08048148 - 0x08048168 is .note.ABI-tag\n" "\t0x08048168 - 0x08048238 is .hash\n" "\t0x08048238 - 0x08048448 is .dynsym\n" "\t0x08048448 - 0x080487c3 is .dynstr\n" "\t0x080487c4 - 0x08048806 is .gnu.version\n" "\t0x08048808 - 0x08048888 is .gnu.version_r\n" "\t0x08048888 - 0x080488a0 is .rel.dyn\n" "\t0x080488a0 - 0x08048978 is .rel.plt\n" "\t0x08048978 - 0x0804898f is .init\n" "\t0x08048990 - 0x08048b50 is .plt\n" "\t0x08048b50 - 0x08049cb8 is .text\n" "\t0x08049cb8 - 0x08049cd3 is .fini\n" "\t0x08049cd4 - 0x08049d45 is .rodata\n" "\t0x08049d48 - 0x08049e7c is .eh_frame_hdr\n" "\t0x08049e7c - 0x0804a440 is .eh_frame\n" "\t0x0804a440 - 0x0804a4e4 is .gcc_except_table\n" "\t0x0804b4e4 - 0x0804b4f0 is .data\n" "\t0x0804b4f0 - 0x0804b5d0 is .dynamic\n" "\t0x0804b5d0 - 0x0804b5dc is .ctors\n" "\t0x0804b5dc - 0x0804b5e4 is .dtors\n" "\t0x0804b5e4 - 0x0804b5e8 is .jcr\n" "\t0x0804b5e8 - 0x0804b664 is .got\n" "\t0x0804b668 - 0x0804b790 is .bss\n" <- "(gdb) " -> "info program\n" <- "The program being debugged is not being run.\n" <- "(gdb) " -> "set confirm off\n" <- "(gdb) " -> "source /tmp/ddd45di1M\n" <- "(gdb) " -> "info breakpoints\n" <- "No breakpoints or watchpoints.\n" <- "(gdb) " -> "# reset\n" <- "(gdb) " -> "info breakpoints\n" <- "No breakpoints or watchpoints.\n" <- "(gdb) " -> "display\n" <- "(gdb) " -> "info display\n" <- "There are no auto-display expressions now.\n" <- "(gdb) " -> "set environment TERM dumb\n" <- "(gdb) " -> "info files\n" <- "Symbols from \"/home/csmajs/elyon/cs14_05sum/as1/wordSearch\".\n" "Local exec file:\n" "\t`/home/csmajs/elyon/cs14_05sum/as1/wordSearch\', file type elf32-i386.\n" "\tEntry point: 0x8048b50\n" "\t0x08048134 - 0x08048147 is .interp\n" "\t0x08048148 - 0x08048168 is .note.ABI-tag\n" "\t0x08048168 - 0x08048238 is .hash\n" "\t0x08048238 - 0x08048448 is .dynsym\n" "\t0x08048448 - 0x080487c3 is .dynstr\n" "\t0x080487c4 - 0x08048806 is .gnu.version\n" "\t0x08048808 - 0x08048888 is .gnu.version_r\n" "\t0x08048888 - 0x080488a0 is .rel.dyn\n" "\t0x080488a0 - 0x08048978 is .rel.plt\n" "\t0x08048978 - 0x0804898f is .init\n" "\t0x08048990 - 0x08048b50 is .plt\n" "\t0x08048b50 - 0x08049cb8 is .text\n" "\t0x08049cb8 - 0x08049cd3 is .fini\n" "\t0x08049cd4 - 0x08049d45 is .rodata\n" "\t0x08049d48 - 0x08049e7c is .eh_frame_hdr\n" "\t0x08049e7c - 0x0804a440 is .eh_frame\n" "\t0x0804a440 - 0x0804a4e4 is .gcc_except_table\n" "\t0x0804b4e4 - 0x0804b4f0 is .data\n" "\t0x0804b4f0 - 0x0804b5d0 is .dynamic\n" "\t0x0804b5d0 - 0x0804b5dc is .ctors\n" "\t0x0804b5dc - 0x0804b5e4 is .dtors\n" "\t0x0804b5e4 - 0x0804b5e8 is .jcr\n" "\t0x0804b5e8 - 0x0804b664 is .got\n" "\t0x0804b668 - 0x0804b790 is .bss\n" <- "(gdb) " -> "info program\n" <- "The program being debugged is not being run.\n" <- "(gdb) " ! X error X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 3 (X_GetWindowAttributes) Resource id in failed request: 0xa4822d Serial number of failed request: 6374 Current serial number in output stream: 6375 Widget hierarchy of resource: unknown # Starting GDB...done. # Welcome to DDD 3.3.1 "Blue Gnu" (i386-redhat-linux-gnu) -> "help detach\n" <- "Detach a process or file previously attached.\n" "If a process, it is no longer traced, and it continues its execution. If\n" "you were debugging a file, the file is closed and gdb no longer accesses it.\n" <- "(gdb) " -> "help run\n" <- "Start debugged program. You may specify arguments to give it.\n" "Args may include \"*\", or \"[...]\"; they are expanded using \"sh\".\n" "Input and output redirection with \">\", \"<\", or \">>\" are also allowed.\n" "\n" "With no arguments, uses arguments last specified (with \"run\" or \"set args\").\n" "To cancel previous arguments and run with no arguments,\n" "use \"set args\" without arguments.\n" <- "(gdb) " -> "help step\n" <- "Step program until it reaches a different source line.\n" "Argument N means do this N times (or till program stops for another reason).\n" <- "(gdb) " -> "help stepi\n" <- "Step one instruction exactly.\n" "Argument N means do this N times (or till program stops for another reason).\n" <- "(gdb) " -> "help next\n" <- "Step program, proceeding through subroutine calls.\n" "Like the \"step\" command as long as subroutine calls do not happen;\n" "when they do, the call is treated as one instruction.\n" "Argument N means do this N times (or till program stops for another reason).\n" <- "(gdb) " -> "help nexti\n" <- "Step one instruction, but proceed through subroutine calls.\n" "Argument N means do this N times (or till program stops for another reason).\n" <- "(gdb) " -> "help until\n" <- "Execute until the program reaches a source line greater than the current\n" "or a specified location (same args as break command) within the current frame.\n" <- "(gdb) " -> "help finish\n" <- "Execute until selected stack frame returns.\n" "Upon return, the value returned is printed and put in the value history.\n" <- "(gdb) " -> "help cont\n" <- "Continue program being debugged, after signal or breakpoint.\n" "If proceeding from breakpoint, a number N may be used as an argument,\n" "which means to set the ignore count of that breakpoint to N - 1 (so that\n" "the breakpoint won\'t break until the Nth time it is reached).\n" <- "(gdb) " -> "help signal\n" <- "Continue program giving it signal specified by the argument.\n" "An argument of \"0\" means continue program without giving it a signal.\n" <- "(gdb) " -> "help kill\n" <- "Kill execution of program being debugged.\n" <- "(gdb) " -> "help up\n" <- "Select and print stack frame that called this one.\n" "An argument says how many frames up to go.\n" <- "(gdb) " -> "help down\n" <- "Select and print stack frame called by this one.\n" "An argument says how many frames down to go.\n" <- "(gdb) " ! X error X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 3 (X_GetWindowAttributes) Resource id in failed request: 0xa4822d Serial number of failed request: 9242 Current serial number in output stream: 9243 Widget hierarchy of resource: unknown ! X error # Saving history in "/home/csmajs/elyon/.ddd/history"... # Saving history in "/home/csmajs/elyon/.ddd/history"...done. # Thanks for using DDD 3.3.1! (We apologize for the inconvenience.) X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 3 (X_GetWindowAttributes) Resource id in failed request: 0xa4822d Serial number of failed request: 10105 Current serial number in output stream: 10591 Widget hierarchy of resource: unknown