GNU DDD 3.3 (i386-unknown-openbsd2.7) Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany. Copyright (C) 1999-2001 Universität Passau, Germany. Compiled with GCC 2.95.2 19991024 (release), libstdc++ 2.9.0 Requires X11R6, Xt11R6, Motif 2.0 (GNU/LessTif Version 2.0 Release 0.92.6) Includes XPM 3.4.11, Athena Panner, DDD core Built 2001-02-07 by Charlie . $ ddd + /bin/sh -c 'exec gdb -q -fullname' # Hello, world! # Starting GDB... # Running GDB (pid 25017, tty /dev/ttyp4)... # Current language: C/C++ # Searching "vsllib/ddd.vsl"... # Trying "/home/johns/.ddd/vsllib/ddd.vsl" # Trying "/usr/local/share/ddd-3.3/vsllib/ddd.vsl" # Searching "vsllib/ddd.vsl"..."/usr/local/share/ddd-3.3/vsllib/ddd.vsl". <- "(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" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info line\n" <- "No line number information available.\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 4.16.1\n" <- "Copyright 1996 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-unknown-openbsd2.7\".\n" <- "(gdb) " -> "pwd\n" <- "Working directory /home/johns/utils.\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/johns/utils/.gdb_history\".\n" <- "(gdb) " -> "show history size\n" <- "The size of the command history is 5000.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info sources\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info line main\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info line MAIN\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info files\n" <- "(gdb) " -> "info line main_\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info program\n" <- "The program being debugged is not being run.\n" <- "(gdb) " -> "info line MAIN_\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info line main__\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info line MAIN__\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info line _main\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info line _MAIN\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info line __main\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info line __MAIN\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info line my_main\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info line the_main\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info line vxworks_main\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\n" <- "(gdb) " -> "info line main_vxworks\n" <- "No symbol table is loaded. Use the \"file\" command.\n" <- "(gdb) " -> "set confirm off\n" <- "(gdb) " -> "source /tmp/tmp.0.BBRV26645\n" <- "(gdb) " -> "info breakpoints\n" <- "No breakpoints or watchpoints.\n" <- "(gdb) " -> "info source\n" <- "No current source file.\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 source\n" <- "No current source file.\n" <- "(gdb) " -> "info files\n" <- "(gdb) " -> "info program\n" <- "The program being debugged is not being run.\n" <- "(gdb) " # Starting GDB...done. # Welcome to DDD 3.3 "Blues by Night" (i386-unknown-openbsd2.7) -> "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 you\n" <- "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 line or address or function (same args as break command).\n" <- "Execution will also stop upon exit from the current stack 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) " # Filtering files... # Filtering files...done. -> "info files\n" <- "(gdb) " -> "info program\n" <- "The program being debugged is not being run.\n" <- "(gdb) " -> "file /home/johns/utils/hw\n" <- "(gdb) " -> "info line\n" <- "No line number information available.\n" <- "(gdb) " -> "list\n" <- "1\tint main()\n" <- "2\t{\n" <- "3\t\tprintf(\"hello world\\n" "\");\n" <- "4\t\treturn 0;\n" <- "5\t}\n" <- "(gdb) " -> "info line\n" <- "Line 5 of \"hw.c\" starts at address 0x17c7 and ends at 0x17cc <__do_global_dtors>.\n" <- "\032\032/home/johns/utils/hw.c:5:50:beg:0x17c7\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) " # Reading file "/home/johns/utils/hw.c"... # Reading file "/home/johns/utils/hw.c"...done. # File "/home/johns/utils/hw.c" 5 lines, 60 characters ! Segmentation fault ! Segmentation fault # Running GDB (pid 25017, tty /dev/ttyp4)...Exit 0. # Saving history in "/home/johns/.ddd/history"... # Saving history in "/home/johns/.ddd/history"...done. # Thanks for using DDD 3.3! (We apologize for the inconvenience.)