GNU DDD 3.2.1 (i386-suse-linux-gnu) Copyright (C) 1995-1999 Technische Universitaet Braunschweig, Germany. Copyright (C) 1999-2000 Universitaet Passau, Germany. Compiled with GCC 2.95.2 19991024 (release), GNU libc 2.1 Requires X11R6, Xt11R6, Motif 1.2 (GNU/LessTif Version 1.2 Release 0.89.9) Includes DDD core, Manual, App defaults, XPM 3.4.11, Athena Panner Built 2000-03-25 by root
. $ ddd + /bin/sh -c 'exec gdb -q -fullname' # Hello, world! # Starting GDB... # Enabling core dumps... # Enabling core dumps...done. # Running GDB (pid 540, 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" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info line" <- "No line number information available.\n" "(gdb) " -> "output 4711" <- "4711(gdb) " -> "show language" <- "The current source language is \"auto; currently c\".\n" "(gdb) " -> "pwd" <- "Working directory /home/lesnik/.ddd.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "show history filename" <- "The filename in which to record the command history is \"/home/lesnik/.ddd/.gdb_history\".\n" "(gdb) " -> "show history size" <- "The size of the command history is 256.\n" "(gdb) " -> "info source" <- "No current source file.\n" "(gdb) " -> "info sources" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info files" <- "(gdb) " -> "info program" <- "The program being debugged is not being run.\n" "(gdb) " -> "info line main" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "info source" <- "No current source file.\n" "(gdb) " -> "info line MAIN" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "info source" <- "No current source file.\n" "(gdb) " -> "info line main_" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "info source" <- "No current source file.\n" "(gdb) " -> "info line MAIN_" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "info source" <- "No current source file.\n" "(gdb) " -> "info line main__" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "info source" <- "No current source file.\n" "(gdb) " -> "info line MAIN__" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "info source" <- "No current source file.\n" "(gdb) " -> "info line _main" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "info source" <- "No current source file.\n" "(gdb) " -> "info line _MAIN" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "info source" <- "No current source file.\n" "(gdb) " -> "info line __main" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "info source" <- "No current source file.\n" "(gdb) " -> "info line __MAIN" <- "No symbol table is loaded. Use the \"file\" command.\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "source /tmp/fileHSjpOs" <- "(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" <- "(gdb) " -> "info program" <- "The program being debugged is not being run.\n" "(gdb) " # Starting GDB...done. # Welcome to DDD 3.2.1 "Liftoff" (i386-suse-linux-gnu) -> "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) " -> "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" <- "(gdb) " -> "info program" <- "The program being debugged is not being run.\n" "(gdb) " ! Please open a program first. -> "info files" <- "(gdb) " -> "info program" <- "The program being debugged is not being run.\n" "(gdb) " -> "file /home/lesnik/LDAP/ldap/c/ldapAdd" <- "Reading symbols from /home/lesnik/LDAP/ldap/c/ldapAdd...done.\n" "(gdb) " -> "info line" <- "No line number information available.\n" "(gdb) " -> "list" <- "16\t#define CHANGED_DN LOGIN_DN \n" "17\t\n" "18\ttypedef char *string;\n" "19\t\n" "20\tint main(void)\n" "21\t{\n" "22\t int err;\n" "23\t\n" "24\t // declaring a variable as an access point to LDAP\n" "25\t LDAP *ldapCon=NULL;\n" "(gdb) " -> "info line" <- "Line 25 of \"ldapAdd.c\" starts at address 0x8048706