GNU DDD 3.2.1 (i686-pc-linux-gnu) Copyright (C) 1995-1999 Technische Universitaet Braunschweig, Germany. Copyright (C) 1999-2000 Universitaet Passau, Germany. Compiled with GCC 2.95.2 20000220 (Debian GNU/Linux), GNU libc 2.1 Requires X11R6, Xt11R6, Motif 1.2 (GNU/LessTif Version 1.2 Release 0.89.4) Includes DDD core, XPM 3.4.11, Athena Panner Built 2000-04-02 by J.H.M. Dassen (Ray) . $ ddd a.out + /bin/sh -c 'exec gdb -q -fullname '\''a.out'\''' # Hello, world! # Starting GDB... # Enabling core dumps... # Enabling core dumps...done. # Running GDB (pid 1336, tty /dev/pts/1)... # Current language: c/c++ <- "(gdb) " -> "set prompt (gdb) " <- "(gdb) " -> "set height 0" <- "(gdb) " -> "set width 0" <- "(gdb) " -> "set annotate 1" <- "(gdb) " -> " set verbose off" <- "(gdb) " -> "info line" <- "No line number information available.\n" "(gdb) " -> "list" <- "1\t#include \n" "2\t#include \"lab.h\"\n" "3\t#include \"messages.h\"\n" "4\t#include \"errormsg.h\"\n" "5\t\n" "6\tint main()\n" "7\t{\n" "8\t\tLab my_lab;\n" "9\t\n" "10\treturn 0;\n" "(gdb) " -> "info line" <- "Line 10 of \"test_lab.cxx\" starts at address 0x80491f5 and ends at 0x8049245 .\n" "\032\032/home/xucaen/projects/lab/test_lab.cxx:10:111:beg:0x80491f5\n" "(gdb) " -> "output 4711" <- "4711(gdb) " -> "show language" <- "The current source language is \"auto; currently c++\".\n" "(gdb) " -> "pwd" <- "Working directory /home/xucaen/projects/lab.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "show history filename" <- "The filename in which to record the command history is \"/home/xucaen/projects/lab/.gdb_history\".\n" "(gdb) " -> "show history size" <- "The size of the command history is 256.\n" "(gdb) " # Reading file "/home/xucaen/projects/lab/test_lab.cxx"... # Reading file "/home/xucaen/projects/lab/test_lab.cxx"...done. # File "/home/xucaen/projects/lab/test_lab.cxx" 11 lines, 185 characters # Setting buttons... # Setting buttons...done. -> "set confirm on" <- "(gdb) " -> "set confirm off" <- "(gdb) " -> "set confirm on" <- "(gdb) " -> "source /tmp/fileYOX3zU" <- "Byte order is not selectable.The target endianness is set automatically (currently little endian)\n" "/tmp/fileYOX3zU:38: Error in sourced command file:\n" "Ambiguous item \"parent\".\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "# reset" <- "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "display" <- "(gdb) " -> "info display" <- "There are no auto-display expressions now.\n" "(gdb) " -> "set environment TERM dumb" <- "(gdb) " -> "info files" <- "Symbols from \"/home/xucaen/projects/lab/a.out\".\n" "Local exec file:\n" "\t`/home/xucaen/projects/lab/a.out\', file type elf32-i386.\n" "\tEntry point: 0x8049120\n" "\t0x080480f4 - 0x08048107 is .interp\n" "\t0x08048108 - 0x08048128 is .note.ABI-tag\n" "\t0x08048128 - 0x080482c4 is .hash\n" "\t0x080482c4 - 0x080486c4 is .dynsym\n" "\t0x080486c4 - 0x08048cc9 is .dynstr\n" "\t0x08048cca - 0x08048d4a is .gnu.version\n" "\t0x08048d4c - 0x08048d6c is .gnu.version_r\n" "\t0x08048d6c - 0x08048d74 is .rel.got\n" "\t0x08048d74 - 0x08048d8c is .rel.bss\n" "\t0x08048d8c - 0x08048ea4 is .rel.plt\n" "\t0x08048ea4 - 0x08048ed5 is .init\n" "\t0x08048ed8 - 0x08049118 is .plt\n" "\t0x08049120 - 0x0804d132 is .text\n" "\t0x0804d134 - 0x0804d150 is .fini\n" "\t0x0804d160 - 0x0804e030 is .rodata\n" "\t0x0804f040 - 0x0804f0c8 is .data\n" "\t0x0804f0c8 - 0x08050d64 is .eh_frame\n" "\t0x08050d64 - 0x080511b4 is .gcc_except_table\n" "\t0x080511b4 - 0x080511bc is .ctors\n" "\t0x080511bc - 0x080511c4 is .dtors\n" "\t0x080511c4 - 0x08051260 is .got\n" "\t0x08051260 - 0x08051310 is .dynamic\n" "\t0x08051310 - 0x08051384 is .bss\n" "(gdb) " -> "info program" <- "The program being debugged is not being run.\n" "(gdb) " -> "help detach" <- "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" <- "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) " # Starting GDB...done. # Welcome to DDD 3.2.1 "Liftoff" (i686-pc-linux-gnu) -> "help step" <- "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" <- "Step one instruction exactly.\n" "Argument N means do this N times (or till program stops for another reason).\n" "(gdb) " -> "help next" <- "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" <- "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" <- "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" <- "Execute until selected stack frame returns.\n" "Upon return, the value returned is printed and put in the value history.\n" "(gdb) " -> "help cont" <- "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" <- "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" <- "Kill execution of program being debugged.\n" "(gdb) " -> "help up" <- "Select and print stack frame that called this one.\n" "An argument says how many frames up to go.\n" "(gdb) " -> "help down" <- "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" <- "Symbols from \"/home/xucaen/projects/lab/a.out\".\n" "Local exec file:\n" "\t`/home/xucaen/projects/lab/a.out\', file type elf32-i386.\n" "\tEntry point: 0x8049120\n" "\t0x080480f4 - 0x08048107 is .interp\n" "\t0x08048108 - 0x08048128 is .note.ABI-tag\n" "\t0x08048128 - 0x080482c4 is .hash\n" "\t0x080482c4 - 0x080486c4 is .dynsym\n" "\t0x080486c4 - 0x08048cc9 is .dynstr\n" "\t0x08048cca - 0x08048d4a is .gnu.version\n" "\t0x08048d4c - 0x08048d6c is .gnu.version_r\n" "\t0x08048d6c - 0x08048d74 is .rel.got\n" "\t0x08048d74 - 0x08048d8c is .rel.bss\n" "\t0x08048d8c - 0x08048ea4 is .rel.plt\n" "\t0x08048ea4 - 0x08048ed5 is .init\n" "\t0x08048ed8 - 0x08049118 is .plt\n" "\t0x08049120 - 0x0804d132 is .text\n" "\t0x0804d134 - 0x0804d150 is .fini\n" "\t0x0804d160 - 0x0804e030 is .rodata\n" "\t0x0804f040 - 0x0804f0c8 is .data\n" "\t0x0804f0c8 - 0x08050d64 is .eh_frame\n" "\t0x08050d64 - 0x080511b4 is .gcc_except_table\n" "\t0x080511b4 - 0x080511bc is .ctors\n" "\t0x080511bc - 0x080511c4 is .dtors\n" "\t0x080511c4 - 0x08051260 is .got\n" "\t0x08051260 - 0x08051310 is .dynamic\n" "\t0x08051310 - 0x08051384 is .bss\n" "(gdb) " -> "info program" <- "The program being debugged is not being run.\n" "(gdb) " -> "info files" <- "Symbols from \"/home/xucaen/projects/lab/a.out\".\n" "Local exec file:\n" "\t`/home/xucaen/projects/lab/a.out\', file type elf32-i386.\n" "\tEntry point: 0x8049120\n" "\t0x080480f4 - 0x08048107 is .interp\n" "\t0x08048108 - 0x08048128 is .note.ABI-tag\n" "\t0x08048128 - 0x080482c4 is .hash\n" "\t0x080482c4 - 0x080486c4 is .dynsym\n" "\t0x080486c4 - 0x08048cc9 is .dynstr\n" "\t0x08048cca - 0x08048d4a is .gnu.version\n" "\t0x08048d4c - 0x08048d6c is .gnu.version_r\n" "\t0x08048d6c - 0x08048d74 is .rel.got\n" "\t0x08048d74 - 0x08048d8c is .rel.bss\n" "\t0x08048d8c - 0x08048ea4 is .rel.plt\n" "\t0x08048ea4 - 0x08048ed5 is .init\n" "\t0x08048ed8 - 0x08049118 is .plt\n" "\t0x08049120 - 0x0804d132 is .text\n" "\t0x0804d134 - 0x0804d150 is .fini\n" "\t0x0804d160 - 0x0804e030 is .rodata\n" "\t0x0804f040 - 0x0804f0c8 is .data\n" "\t0x0804f0c8 - 0x08050d64 is .eh_frame\n" "\t0x08050d64 - 0x080511b4 is .gcc_except_table\n" "\t0x080511b4 - 0x080511bc is .ctors\n" "\t0x080511bc - 0x080511c4 is .dtors\n" "\t0x080511c4 - 0x08051260 is .got\n" "\t0x08051260 - 0x08051310 is .dynamic\n" "\t0x08051310 - 0x08051384 is .bss\n" "(gdb) " -> "info program" <- "The program being debugged is not being run.\n" "(gdb) " -> "core-file /home/xucaen/projects/lab/core" <- "warning: core file may not match specified executable file.\n" "Core was generated by `ddd a.out\'.\n" "Program terminated with signal 11, Segmentation fault.\n" "#0 0x81c4701 in ?? ()\n" "(gdb) " -> "where" <- "#0 0x81c4701 in ?? ()\n" "#1 0x401d339e in ?? ()\n" "#2 0x401d3738 in ?? ()\n" "#3 0x816c7f8 in ?? ()\n" "#4 0x80e7fe4 in ?? ()\n" "#5 0x80e8425 in ?? ()\n" "#6 0x810ff9c in ?? ()\n" "#7 0x8055713 in ?? ()\n" "#8 0x4037da42 in ?? ()\n" "(gdb) " -> "frame" <- "#0 0x81c4701 in ?? ()\n" "(gdb) " -> "info threads" <- "* 1 Pid 1329 0x81c4701 in ?? ()\n" "(gdb) " -> "display" <- "(gdb) " -> "set environment TERM dumb" <- "(gdb) " -> "run" <- "Starting program: /home/xucaen/projects/lab/a.out \n" "\n" "Program exited normally." <- "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints." <- "(gdb) " -> "set environment TERM dumb" <- "(gdb) " -> "run" <- "Starting program: /home/xucaen/projects/lab/a.out " <- "\n" "Program exited normally." <- "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints." <- "(gdb) " -> "set environment TERM dumb" <- "(gdb) " -> "run" <- "Starting program: /home/xucaen/projects/lab/a.out " <- "\n" "Program exited normally." <- "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints." <- "(gdb) " -> "set environment TERM dumb" <- "(gdb) " -> "run" <- "Starting program: /home/xucaen/projects/lab/a.out " <- "\n" "Program exited normally." <- "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints." <- "(gdb) " -> "set environment TERM dumb" <- "(gdb) " -> "run" <- "Starting program: /home/xucaen/projects/lab/a.out " <- "\n" "Program exited normally." <- "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints." <- "(gdb) " -> "set environment TERM dumb" <- "(gdb) " -> "run" <- "Starting program: /home/xucaen/projects/lab/a.out " <- "\n" "Program exited normally." <- "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints." <- "(gdb) " -> "set environment TERM dumb" <- "(gdb) " -> "run" <- "Starting program: /home/xucaen/projects/lab/a.out " <- "\n" "Program exited normally." <- "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints." <- "(gdb) " -> "info source" <- "Current source file is test_lab.cxx" <- "Compilation directory is /home/xucaen/projects/lab/" <- "Located in /home/xucaen/projects/lab/test_lab.cxx" <- "Contains 11 lines." <- "Source language is c++." <- "Compiled with stabs debugging format." <- "(gdb) " -> "break test_lab.cxx:8" <- "Breakpoint 1 at 0x80491e6: file test_lab.cxx, line 8." <- "(gdb) " -> "info breakpoints" <- "Num Type Disp Enb Address What" <- "1 breakpoint keep y 0x080491e6 in main at test_lab.cxx:8" <- "(gdb) " -> "set environment TERM dumb" <- "(gdb) " -> "run" <- "Starting program: /home/xucaen/projects/lab/a.out \n" "\n" "Breakpoint 1, main () at test_lab.cxx:8\n" "\032\032/home/xucaen/projects/lab/test_lab.cxx:8:97:beg:0x80491e6" <- "(gdb) " -> "info breakpoints" <- "Num Type Disp Enb Address What" <- "1 breakpoint keep y 0x080491e6 in main at test_lab.cxx:8" <- "\tbreakpoint already hit 1 time" <- "(gdb) " -> "next" <- "\032\032/home/xucaen/projects/lab/test_lab.cxx:10:111:beg:0x80491f5" <- "(gdb) " -> "info breakpoints" <- "Num Type Disp Enb Address What" <- "1 breakpoint keep y 0x080491e6 in main at test_lab.cxx:8" <- "\tbreakpoint already hit 1 time" <- "(gdb) " -> "next" <- "\032\032/home/xucaen/projects/lab/test_lab.cxx:11:121:beg:0x8049245" <- "(gdb) " -> "info breakpoints" <- "Num Type Disp Enb Address What" <- "1 breakpoint keep y 0x080491e6 in main at test_lab.cxx:8" <- "\tbreakpoint already hit 1 time" <- "(gdb) " -> "next" <- "0x40092a42 in __libc_start_main () from /lib/libc.so.6" <- "(gdb) " -> "info breakpoints" <- "Num Type Disp Enb Address What" <- "1 breakpoint keep y 0x080491e6 in main at test_lab.cxx:8" <- "\tbreakpoint already hit 1 time" <- "(gdb) " -> "next" <- "Single stepping until exit from function __libc_start_main, \n" "which has no line number information.\n" "\n" "Program exited normally." <- "(gdb) " -> "info breakpoints" <- "Num Type Disp Enb Address What" <- "1 breakpoint keep y 0x080491e6 in main at test_lab.cxx:8" <- "\tbreakpoint already hit 1 time" <- "(gdb) " -> "set environment TERM dumb" <- "(gdb) " -> "run" <- "Starting program: /home/xucaen/projects/lab/a.out \n" "\n" "Breakpoint 1, main () at test_lab.cxx:8\n" "\032\032/home/xucaen/projects/lab/test_lab.cxx:8:97:beg:0x80491e6" <- "(gdb) " -> "info breakpoints" <- "Num Type Disp Enb Address What" <- "1 breakpoint keep y 0x080491e6 in main at test_lab.cxx:8" <- "\tbreakpoint already hit 1 time" <- "(gdb) " -> "step" <- "Lab::Lab (this=0xbffffaf8) at lab.cxx:10\n" "\032\032/home/xucaen/projects/lab/lab.cxx:10:105:beg:0x804925a" <- "(gdb) " -> "info breakpoints" <- "Num Type Disp Enb Address What" <- "1 breakpoint keep y 0x080491e6 in main at test_lab.cxx:8" <- "\tbreakpoint already hit 1 time" <- "(gdb) " # Reading file "/home/xucaen/projects/lab/lab.cxx"... # Reading file "/home/xucaen/projects/lab/lab.cxx"...done. # File "/home/xucaen/projects/lab/lab.cxx" 229 lines, 9188 characters -> "info source" <- "Current source file is lab.cxx" <- "Compilation directory is /home/xucaen/projects/lab/" <- "Located in /home/xucaen/projects/lab/lab.cxx" <- "Contains 229 lines." <- "Source language is c++." <- "Compiled with stabs debugging format." <- "(gdb) " ! Segmentation fault -> "\003" <- "Quit\n" "(gdb) " ! Segmentation fault + /bin/sh -c 'gdb -x /tmp/file7695UQ ddd core' GNU gdb 19990928 Copyright 1998 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"... (no debugging symbols found)... Core was generated by `ddd a.out'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/X11R6/lib/libXm.so.1... (no debugging symbols found)...done. Reading symbols from /usr/X11R6/lib/libXp.so.6... (no debugging symbols found)...done. Reading symbols from /usr/X11R6/lib/libXpm.so.4... (no debugging symbols found)...done. Reading symbols from /usr/X11R6/lib/Xaw3d/libXaw.so.6... (no debugging symbols found)...done. Reading symbols from /usr/X11R6/lib/libXmu.so.6... (no debugging symbols found)...done. Reading symbols from /usr/X11R6/lib/libXext.so.6... (no debugging symbols found)...done. Reading symbols from /usr/X11R6/lib/libXt.so.6... (no debugging symbols found)...done. Reading symbols from /usr/X11R6/lib/libSM.so.6... (no debugging symbols found)...done. Reading symbols from /usr/X11R6/lib/libICE.so.6... (no debugging symbols found)...done. Reading symbols from /usr/X11R6/lib/libX11.so.6... (no debugging symbols found)...done. Reading symbols from /lib/libncurses.so.5...(no debugging symbols found)... done. Reading symbols from /usr/lib/libstdc++-libc6.1-2.so.3... (no debugging symbols found)...done. Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done. Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols found)... done. Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done. Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)... done. #0 0x81c4701 in glob_pattern_p () #0 0x81c4701 in glob_pattern_p () #1 0x401d31e6 in _XtOnGrabList () from /usr/X11R6/lib/libXt.so.6 #2 0x401d343b in _XtOnGrabList () from /usr/X11R6/lib/libXt.so.6 #3 0x401d3738 in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6 #4 0x816c7f8 in glob_pattern_p () #5 0x80e7fe4 in glob_pattern_p () #6 0x80e8425 in glob_pattern_p () #7 0x810ff9c in glob_pattern_p () #8 0x8055713 in strcpy () #9 0x4037da42 in __libc_start_main () from /lib/libc.so.6 # Running GDB (pid 1336, tty /dev/pts/1)...Exit 0. # Saving history in "/home/xucaen/.ddd/history"... # Saving history in "/home/xucaen/.ddd/history"...done. # Thanks for using DDD 3.2.1! (We apologize for the inconvenience.)