GNU DDD 3.3.9 (i686-pc-cygwin) Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany. Copyright (C) 1999-2001 Universität Passau, Germany. Copyright (C) 2001 Universität des Saarlandes, Germany. Copyright (C) 2001-2004 Free Software Foundation, Inc. Compiled with GCC 3.3.1 (cygming special) Requires X11R6, Xt11R6, Motif 2.1 (GNU/LessTif Version 2.1 Release 0.93.91) Includes XPM 3.4.11, Athena Panner (7000002L), DDD core Built 2004-07-15 by U-HUNTHARO . $ ddd test + /bin/sh -c 'exec gdb -q -fullname '\''test'\''' # Hello, world! # Starting GDB... # Running GDB (pid 2968, tty /dev/tty2)... # Current language: C/C++ # Searching "vsllib/ddd.vsl"... # Trying "/home/Richard Morrow/.ddd/vsllib/ddd.vsl" # Trying "/usr/share/ddd-3.3.9/vsllib/ddd.vsl" # Searching "vsllib/ddd.vsl"..."/usr/share/ddd-3.3.9/vsllib/ddd.vsl". 2004.11.25 09:43:49 <- "(gdb) " 2004.11.25 09:43:49 -> "set prompt (gdb) \n" 2004.11.25 09:43:49 <- "(gdb) " 2004.11.25 09:43:49 -> "set height 0\n" 2004.11.25 09:43:49 <- "(gdb) " 2004.11.25 09:43:49 -> "set width 0\n" 2004.11.25 09:43:49 <- "(gdb) " 2004.11.25 09:43:49 -> "set annotate 1\n" 2004.11.25 09:43:49 <- "(gdb) " 2004.11.25 09:43:49 -> " set verbose off\n" 2004.11.25 09:43:50 <- "(gdb) " 2004.11.25 09:43:50 -> "info line\n" 2004.11.25 09:43:50 <- "No line number information available.\n" 2004.11.25 09:43:50 <- "(gdb) " 2004.11.25 09:43:50 -> "list\n" 2004.11.25 09:43:50 <- "1\t#include \n" 2004.11.25 09:43:50 <- "2\t\n" 2004.11.25 09:43:50 <- "3\tusing namespace std;\n" 2004.11.25 09:43:50 <- "4\t\n" 2004.11.25 09:43:50 <- "5\tint main(){\n" 2004.11.25 09:43:50 <- "6\t\n" 2004.11.25 09:43:50 <- "7\t\tdouble temp[50];\n" 2004.11.25 09:43:50 <- "8\t\n" 2004.11.25 09:43:50 <- "9\t\tfor (int i = 0; i < 50; i++)\n" 2004.11.25 09:43:50 <- "10\t\t\ttemp[i] = i;\n" 2004.11.25 09:43:50 <- "(gdb) " 2004.11.25 09:43:50 -> "info line\n" 2004.11.25 09:43:50 <- "Line 10 of \"test.cpp\" starts at address 0x40109c and ends at 0x4010af .\n" 2004.11.25 09:43:50 <- "\032\032/home/Richard Morrow/work/test.cpp:10:105:beg:0x40109c\n" 2004.11.25 09:43:50 <- "(gdb) " 2004.11.25 09:43:50 -> "output 4711\n" 2004.11.25 09:43:50 <- "4711" 2004.11.25 09:43:50 <- "(gdb) " 2004.11.25 09:43:50 -> "show language\n" 2004.11.25 09:43:50 <- "The current source language is \"auto; currently c++\".\n" 2004.11.25 09:43:50 <- "(gdb) " 2004.11.25 09:43:50 -> "show version\n" 2004.11.25 09:43:50 <- "GNU gdb 2003-09-20-cvs (cygwin-special)\n" 2004.11.25 09:43:50 <- "Copyright 2003 Free Software Foundation, Inc.\n" 2004.11.25 09:43:50 <- "GDB is free software, covered by the GNU General Public License, and you are\n" 2004.11.25 09:43:51 <- "welcome to change it and/or distribute copies of it under certain conditions.\n" 2004.11.25 09:43:51 <- "Type \"show copying\" to see the conditions.\n" 2004.11.25 09:43:51 <- "There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n" 2004.11.25 09:43:51 <- "This GDB was configured as \"i686-pc-cygwin\".\n" 2004.11.25 09:43:51 <- "(gdb) " 2004.11.25 09:43:51 -> "pwd\n" 2004.11.25 09:43:51 <- "Working directory /home/Richard Morrow/work.\n" 2004.11.25 09:43:51 <- "(gdb) " 2004.11.25 09:43:51 -> "info breakpoints\n" 2004.11.25 09:43:51 <- "No breakpoints or watchpoints.\n" 2004.11.25 09:43:51 <- "(gdb) " 2004.11.25 09:43:51 -> "show history filename\n" 2004.11.25 09:43:51 <- "The filename in which to record the command history is \"/home/Richard Morrow/work/.gdb_history\".\n" 2004.11.25 09:43:51 <- "(gdb) " 2004.11.25 09:43:51 -> "show history size\n" 2004.11.25 09:43:51 <- "The size of the command history is 256.\n" 2004.11.25 09:43:51 <- "(gdb) " # Reading file "/home/Richard Morrow/work/test.cpp"... # Reading file "/home/Richard Morrow/work/test.cpp"...done. # File "/home/Richard Morrow/work/test.cpp" 15 lines, 229 characters # Setting buttons... # Setting buttons...done. 2004.11.25 09:43:53 -> "set confirm off\n" 2004.11.25 09:43:53 <- "(gdb) " 2004.11.25 09:43:53 -> "source /tmp/ddd003500\n" 2004.11.25 09:43:53 <- "(gdb) " 2004.11.25 09:43:53 -> "info breakpoints\n" 2004.11.25 09:43:53 <- "No breakpoints or watchpoints.\n" 2004.11.25 09:43:53 <- "(gdb) " 2004.11.25 09:43:53 -> "info source\n" 2004.11.25 09:43:53 <- "Current source file is test.cpp\n" 2004.11.25 09:43:53 <- "Compilation directory is /home/Richard Morrow/work/\n" 2004.11.25 09:43:53 <- "Located in /home/Richard Morrow/work/test.cpp\n" 2004.11.25 09:43:53 <- "Contains 15 lines.\n" 2004.11.25 09:43:53 <- "Source language is c++.\n" 2004.11.25 09:43:53 <- "Compiled with stabs debugging format.\n" 2004.11.25 09:43:53 <- "Does not include preprocessor macro info.\n" 2004.11.25 09:43:53 <- "(gdb) " 2004.11.25 09:43:53 -> "# reset\n" 2004.11.25 09:43:53 <- "(gdb) " 2004.11.25 09:43:53 -> "info breakpoints\n" 2004.11.25 09:43:53 <- "No breakpoints or watchpoints.\n" 2004.11.25 09:43:53 <- "(gdb) " 2004.11.25 09:43:53 -> "display\n" 2004.11.25 09:43:53 <- "(gdb) " 2004.11.25 09:43:53 -> "info display\n" 2004.11.25 09:43:53 <- "There are no auto-display expressions now.\n" 2004.11.25 09:43:53 <- "(gdb) " 2004.11.25 09:43:53 -> "set environment TERM dumb\n" 2004.11.25 09:43:53 <- "(gdb) " 2004.11.25 09:43:53 -> "info files\n" 2004.11.25 09:43:54 <- "Symbols from \"/home/Richard Morrow/work/test.exe\".\n" 2004.11.25 09:43:54 <- "Local exec file:\n" 2004.11.25 09:43:54 <- "\t`/home/Richard Morrow/work/test.exe\', file type pei-i386.\n" 2004.11.25 09:43:54 <- "\tEntry point: 0x401000\n" 2004.11.25 09:43:54 <- "\t0x00401000 - 0x0043170c is .text\n" 2004.11.25 09:43:54 <- "\t0x00432000 - 0x00432194 is .data\n" 2004.11.25 09:43:54 <- "\t0x00433000 - 0x00435304 is .rdata\n" 2004.11.25 09:43:54 <- "\t0x00436000 - 0x0043a8c0 is .bss\n" 2004.11.25 09:43:54 <- "\t0x0043b000 - 0x0043b718 is .idata\n" 2004.11.25 09:43:54 <- "(gdb) " 2004.11.25 09:43:54 -> "info program\n" 2004.11.25 09:43:54 <- "The program being debugged is not being run.\n" 2004.11.25 09:43:54 <- "(gdb) " 2004.11.25 09:43:54 -> "help detach\n" 2004.11.25 09:43:54 <- "Detach a process or file previously attached.\n" 2004.11.25 09:43:54 <- "If a process, it is no longer traced, and it continues its execution. If\n" 2004.11.25 09:43:54 <- "you were debugging a file, the file is closed and gdb no longer accesses it.\n" 2004.11.25 09:43:54 <- "(gdb) " # Starting GDB...done. # Welcome to DDD 3.3.9 "Perky" (i686-pc-cygwin) 2004.11.25 09:43:54 -> "help run\n" 2004.11.25 09:43:54 <- "Start debugged program. You may specify arguments to give it.\n" 2004.11.25 09:43:54 <- "Args may include \"*\", or \"[...]\"; they are expanded using \"sh\".\n" 2004.11.25 09:43:54 <- "Input and output redirection with \">\", \"<\", or \">>\" are also allowed.\n" 2004.11.25 09:43:54 <- "\n" 2004.11.25 09:43:54 <- "With no arguments, uses arguments last specified (with \"run\" or \"set args\").\n" 2004.11.25 09:43:54 <- "To cancel previous arguments and run with no arguments,\n" 2004.11.25 09:43:54 <- "use \"set args\" without arguments.\n" 2004.11.25 09:43:54 <- "(gdb) " 2004.11.25 09:43:54 -> "help step\n" 2004.11.25 09:43:54 <- "Step program until it reaches a different source line.\n" 2004.11.25 09:43:54 <- "Argument N means do this N times (or till program stops for another reason).\n" 2004.11.25 09:43:54 <- "(gdb) " 2004.11.25 09:43:54 -> "help stepi\n" 2004.11.25 09:43:54 <- "Step one instruction exactly.\n" 2004.11.25 09:43:54 <- "Argument N means do this N times (or till program stops for another reason).\n" 2004.11.25 09:43:54 <- "(gdb) " 2004.11.25 09:43:55 -> "help next\n" 2004.11.25 09:43:55 <- "Step program, proceeding through subroutine calls.\n" 2004.11.25 09:43:55 <- "Like the \"step\" command as long as subroutine calls do not happen;\n" 2004.11.25 09:43:55 <- "when they do, the call is treated as one instruction.\n" 2004.11.25 09:43:55 <- "Argument N means do this N times (or till program stops for another reason).\n" 2004.11.25 09:43:55 <- "(gdb) " 2004.11.25 09:43:55 -> "help nexti\n" 2004.11.25 09:43:55 <- "Step one instruction, but proceed through subroutine calls.\n" 2004.11.25 09:43:55 <- "Argument N means do this N times (or till program stops for another reason).\n" 2004.11.25 09:43:55 <- "(gdb) " 2004.11.25 09:43:55 -> "help until\n" 2004.11.25 09:43:55 <- "Execute until the program reaches a source line greater than the current\n" 2004.11.25 09:43:55 <- "or a specified location (same args as break command) within the current frame.\n" 2004.11.25 09:43:55 <- "(gdb) " 2004.11.25 09:43:55 -> "help finish\n" 2004.11.25 09:43:55 <- "Execute until selected stack frame returns.\n" 2004.11.25 09:43:55 <- "Upon return, the value returned is printed and put in the value history.\n" 2004.11.25 09:43:55 <- "(gdb) " 2004.11.25 09:43:55 -> "help cont\n" 2004.11.25 09:43:55 <- "Continue program being debugged, after signal or breakpoint.\n" 2004.11.25 09:43:55 <- "If proceeding from breakpoint, a number N may be used as an argument,\n" 2004.11.25 09:43:55 <- "which means to set the ignore count of that breakpoint to N - 1 (so that\n" 2004.11.25 09:43:55 <- "the breakpoint won\'t break until the Nth time it is reached).\n" 2004.11.25 09:43:55 <- "(gdb) " 2004.11.25 09:43:55 -> "help signal\n" 2004.11.25 09:43:55 <- "Continue program giving it signal specified by the argument.\n" 2004.11.25 09:43:55 <- "An argument of \"0\" means continue program without giving it a signal.\n" 2004.11.25 09:43:55 <- "(gdb) " 2004.11.25 09:43:55 -> "help kill\n" 2004.11.25 09:43:55 <- "Kill execution of program being debugged.\n" 2004.11.25 09:43:55 <- "(gdb) " 2004.11.25 09:43:55 -> "help up\n" 2004.11.25 09:43:55 <- "Select and print stack frame that called this one.\n" 2004.11.25 09:43:55 <- "An argument says how many frames up to go.\n" 2004.11.25 09:43:55 <- "(gdb) " 2004.11.25 09:43:55 -> "help down\n" 2004.11.25 09:43:55 <- "Select and print stack frame called by this one.\n" 2004.11.25 09:43:55 <- "An argument says how many frames down to go.\n" 2004.11.25 09:43:55 <- "(gdb) " 2004.11.25 09:43:58 -> "set environment TERM dumb\n" 2004.11.25 09:43:58 <- "(gdb) " 2004.11.25 09:43:58 -> "run\n" 2004.11.25 09:43:59 <- "Hello World\n" 2004.11.25 09:43:59 <- "\n" 2004.11.25 09:43:59 <- "Program exited normally.\n" 2004.11.25 09:43:59 <- "(gdb) " 2004.11.25 09:43:59 -> "info breakpoints\n" 2004.11.25 09:43:59 <- "No breakpoints or watchpoints.\n" 2004.11.25 09:43:59 <- "(gdb) " 2004.11.25 09:43:59 -> "output temp\n" 2004.11.25 09:43:59 <- "No symbol \"temp\" in current context.\n" 2004.11.25 09:43:59 <- "(gdb) " 2004.11.25 09:44:03 -> "output cout\n" 2004.11.25 09:44:03 <- "No symbol \"cout\" in current context.\n" 2004.11.25 09:44:03 <- "(gdb) " 2004.11.25 09:44:04 -> "break test.cpp:13\n" 2004.11.25 09:44:04 <- "Breakpoint 1 at 0x4010dd: file test.cpp, line 13.\n" 2004.11.25 09:44:04 <- "(gdb) " 2004.11.25 09:44:04 -> "info breakpoints\n" 2004.11.25 09:44:04 <- "Num Type Disp Enb Address What\n" 2004.11.25 09:44:04 <- "1 breakpoint keep y 0x004010dd in main at test.cpp:13\n" 2004.11.25 09:44:04 <- "(gdb) " 2004.11.25 09:44:06 -> "set environment TERM dumb\n" 2004.11.25 09:44:06 <- "(gdb) " 2004.11.25 09:44:06 -> "run\n" 2004.11.25 09:44:06 <- "Hello World\n" 2004.11.25 09:44:06 <- "\n" 2004.11.25 09:44:06 <- "Breakpoint 1, main () at test.cpp:14\n" 2004.11.25 09:44:06 <- "\032\032/home/Richard Morrow/work/test.cpp:14:150:beg:0x4010dd\n" 2004.11.25 09:44:06 <- "(gdb) " 2004.11.25 09:44:06 -> "info breakpoints\n" 2004.11.25 09:44:06 <- "Num Type Disp Enb Address What\n" 2004.11.25 09:44:06 <- "1 breakpoint keep y 0x004010dd in main at test.cpp:13\n" 2004.11.25 09:44:06 <- "\tbreakpoint already hit 1 time\n" 2004.11.25 09:44:06 <- "(gdb) " 2004.11.25 09:44:07 -> "output temp\n" 2004.11.25 09:44:07 <- "{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49}(gdb) " 2004.11.25 09:44:12 -> "frame\n" 2004.11.25 09:44:12 <- "#0 main () at test.cpp:14\n" 2004.11.25 09:44:12 <- "\032\032/home/Richard Morrow/work/test.cpp:14:150:beg:0x4010dd\n" 2004.11.25 09:44:12 <- "(gdb) " 2004.11.25 09:44:12 -> "display temp\n" 2004.11.25 09:44:12 <- "(gdb) " 2004.11.25 09:44:12 -> "display\n" 2004.11.25 09:44:12 <- "1: temp = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49}\n" 2004.11.25 09:44:12 <- "(gdb) " # Creating display... # Creating display...done. 2004.11.25 09:44:12 -> "output &temp\n" # Display 1: temp (enabled, scope main) 2004.11.25 09:44:12 <- "(double (*)[50]) 0x22ee00" 2004.11.25 09:44:12 <- "(gdb) " # Display 1: temp (enabled, scope main, address 0x22ee00) # Display 1: temp (enabled, scope main, address 0x22ee00) >> "set term xlib\n" "set parametric\n" "set urange [0:1]\n" "set vrange [0:1]\n" "set trange [0:1]" >> "set noborder\n" "plot \"/tmp/ddd003500\" title \"temp\"" << "G0 6291470\n" "QD\n" "A90\n" "A0\n" "W0001\n" "L-002\n" "M02810326\n" "V03080326\n" "M39340326\n" "V39070326\n" "J0002\n" "QF\n" "T02410326 0\n" "W0001\n" "L-002\n" "M02810695\n" "V03080695\n" "M39340695\n" "V39070695\n" "J0002\n" "T02410695 5\n" "W0001\n" "L-002\n" "M02811064\n" "V03081064\n" "M39341064\n" "V39071064\n" "J0002\n" "T02411064 10\n" "W0001\n" "L-002\n" "M02811433\n" "V03081433\n" "M39341433\n" "V39071433\n" "J0002\n" "T02411433 15\n" "W0001\n" "L-002\n" "M02811802\n" "V03081802\n" "M39341802\n" "V39071802\n" "J0002\n" "T02411802 20\n" "W0001\n" "L-002\n" "M02812171\n" "V03082171\n" "M39342171\n" "V39072171\n" "J0002\n" "T02412171 25\n" "W0001\n" "L-002\n" "M02812540\n" "V03082540\n" "M39342540\n" "V39072540\n" "J0002\n" "T02412540 30\n" "W0001\n" "L-002\n" "M02812909\n" "V03082909\n" "M39342909\n" "V39072909\n" "J0002\n" "T02412909 35\n" "W0001\n" "L-002\n" "M02813278\n" "V03083278\n" "M39343278\n" "V39073278\n" "J0002\n" "T02413278 40\n" "W0001\n" "L-002\n" "M02813647\n" "V03083647\n" "M39343647\n" "V39073647\n" "J0002\n" "T02413647 45\n" "W0001\n" "L-002\n" "M02814016\n" "V03084016\n" "M39344016\n" "V39074016\n" "J0002\n" "T02414016 50\n" "W0001\n" "L-002\n" "A0\n" "M02810326\n" "V02810366\n" "M02814016\n" "V02813976\n" "J0001\n" "T02810163 0\n" "W0001\n" "L-002\n" "M06460326\n" "V06460366\n" "M06464016\n" "V06463976\n" "J0001\n" "T06460163 5\n" "W0001\n" "L-002\n" "M10120326\n" "V10120366\n" "M10124016\n" "V10123976\n" "J0001\n" "T10120163 10\n" "W0001\n" "L-002\n" "M13770326\n" "V13770366\n" "M13774016\n" "V13773976\n" "J0001\n" "T13770163 15\n" "W0001\n" "L-002\n" "M17420326\n" "V17420366\n" "M17424016\n" "V17423976\n" "J0001\n" "T17420163 20\n" "W0001\n" "L-002\n" "M21080326\n" "V21080366\n" "M21084016\n" "V21083976\n" "J0001\n" "T21080163 25\n" "W0001\n" "L-002\n" "M24730326\n" "V24730366\n" "M24734016\n" "V24733976\n" "J0001\n" "T24730163 30\n" "W0001\n" "L-002\n" "M28380326\n" "V28380366\n" "M28384016\n" "V28383976\n" "J0001\n" "T28380163 35\n" "W0001\n" "L-002\n" "M32030326\n" "V32030366\n" "M32034016\n" "V32033976\n" "J0001\n" "T32030163 40\n" "W0001\n" "L-002\n" "M35690326\n" "V35690366\n" "M35694016\n" "V35693976\n" "J0001\n" "T35690163 45\n" "W0001\n" "L-002\n" "M39340326\n" "V39340366\n" "M39344016\n" "V39343976\n" "J0001\n" "T39340163 50\n" "W0001\n" "L-002\n" "A0\n" "P-2 13 20\n" "P-2 13 20\n" "W0001\n" "L0000\n" "L-002\n" "J0002\n" "T36273895temp\n" "L0000\n" "P0 281 326\n" "P0 354 400\n" "P0 427 474\n" "P0 500 547\n" "P0 573 621\n" "P0 646 695\n" "P0 719 769\n" "P0 792 843\n" "P0 865 916\n" "P0 939 990\n" "P0 1012 1064\n" "P0 1085 1138\n" "P0 1158 1212\n" "P0 1231 1285\n" "P0 1304 1359\n" "P0 1377 1433\n" "P0 1450 1507\n" "P0 1523 1581\n" "P0 1596 1654\n" "P0 1669 1728\n" "P0 1742 1802\n" "P0 1815 1876\n" "P0 1888 1950\n" "P0 1961 2023\n" "P0 2034 2097\n" "P0 2108 2171\n" "P0 2181 2245\n" "P0 2254 2319\n" "P0 2327 2392\n" "P0 2400 2466\n" "P0 2473 2540\n" "P0 2546 2614\n" "P0 2619 2688\n" "P0 2692 2761\n" "P0 2765 2835\n" "P0 2838 2909\n" "P0 2911 2983\n" "P0 2984 3057\n" "P0 3057 3130\n" "P0 3130 3204\n" "P0 3203 3278\n" "P0 3276 3352\n" "P0 3350 3426\n" "P0 3423 3499\n" "P0 3496 3573\n" "P0 3569 3647\n" "P0 3642 3721\n" "P0 3715 3795\n" "P0 3788 3868\n" "P0 3861 3942\n" "P0 3760 3895\n" "P-2 13 20\n" "E" ! X error X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 10 (X_UnmapWindow) Resource id in failed request: 0x0 Serial number of failed request: 15015 Current serial number in output stream: 15018 ! X error # Saving options in "/home/Richard Morrow/.ddd/init"... # Saving options in "/home/Richard Morrow/.ddd/init"...done. # Saving history in "/home/Richard Morrow/.ddd/history"... # Saving history in "/home/Richard Morrow/.ddd/history"...done. # Thanks for using DDD 3.3.9! (We apologize for the inconvenience.) X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 10 (X_UnmapWindow) Resource id in failed request: 0x0 Serial number of failed request: 15017 Current serial number in output stream: 15140