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 and ends at 0x804870d .\n" "\032\032/home/lesnik/LDAP/ldap/c/ldapAdd.c:25:478:beg:0x8048706\n" "(gdb) " -> "info breakpoints" <- "No breakpoints or watchpoints.\n" "(gdb) " -> "display" <- "(gdb) " -> "info display" <- "There are no auto-display expressions now.\n" "(gdb) " # Reading file "/home/lesnik/LDAP/ldap/c/ldapAdd.c"... # Reading file "/home/lesnik/LDAP/ldap/c/ldapAdd.c"...done. # File "/home/lesnik/LDAP/ldap/c/ldapAdd.c" 77 lines, 2713 characters # Setting buttons... # Setting buttons...done. -> "info source" <- "Current source file is ldapAdd.c\n" "Compilation directory is /home/lesnik/LDAP/ldap/c/\n" "Located in /home/lesnik/LDAP/ldap/c/ldapAdd.c\n" "Contains 77 lines.\n" "Source language is c.\n" "Compiled with stabs debugging format.\n" "(gdb) " -> "info files" <- "Symbols from \"/home/lesnik/LDAP/ldap/c/ldapAdd\".\n" "Local exec file:\n" "\t`/home/lesnik/LDAP/ldap/c/ldapAdd\', file type elf32-i386.\n" "\tEntry point: 0x8048620\n" "\t0x080480f4 - 0x08048107 is .interp\n" "\t0x08048108 - 0x08048128 is .note.ABI-tag\n" "\t0x08048128 - 0x080481cc is .hash\n" "\t0x080481cc - 0x0804832c is .dynsym\n" "\t0x0804832c - 0x0804846b is .dynstr\n" "\t0x0804846c - 0x08048498 is .gnu.version\n" "\t0x08048498 - 0x080484b8 is .gnu.version_r\n" "\t0x080484b8 - 0x080484c0 is .rel.got\n" "\t0x080484c0 - 0x080484c8 is .rel.bss\n" "\t0x080484c8 - 0x08048520 is .rel.plt\n" "\t0x08048520 - 0x08048551 is .init\n" "\t0x08048554 - 0x08048614 is .plt\n" "\t0x08048620 - 0x0804889c is .text\n" "\t0x0804889c - 0x080488b8 is .fini\n" "\t0x080488c0 - 0x0804899f is .rodata\n" "\t0x080499a0 - 0x080499ac is .data\n" "\t0x080499ac - 0x080499b0 is .eh_frame\n" "\t0x080499b0 - 0x080499b8 is .ctors\n" "\t0x080499b8 - 0x080499c0 is .dtors\n" "\t0x080499c0 - 0x080499fc is .got\n" "\t0x080499fc - 0x08049ab4 is .dynamic\n" "\t0x08049ab4 - 0x08049ad0 is .bss\n" "(gdb) " -> "info program" <- "The program being debugged is not being run.\n" "(gdb) " ! Neoprávnìný pøístup do pamìti (SIGSEGV) -> "\003" <- "Quit\n" "(gdb) " + /bin/sh -c 'gdb -x /tmp/fileeoNddh ddd core' GNU gdb 4.18 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 "i386-suse-linux"...(no debugging symbols found)... Core was generated by `ddd'. Program terminated with signal 11, Neoprávnìný pøístup do pamìti (SIGSEGV). 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/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...done. Reading symbols from /usr/lib/libstdc++-libc6.1-2.so.3...done. Reading symbols from /lib/libm.so.6...done. Reading symbols from /lib/libc.so.6...done. Reading symbols from /lib/ld-linux.so.2...done. Reading symbols from /lib/libnss_files.so.2...done. Reading symbols from /usr/lib/gconv/ISO8859-2.so...done. #0 0x0 in ?? () #0 0x0 in ?? () -> "quit" # Running GDB (pid 540, tty /dev/pts/1)...Exit 0. # Saving history in "/home/lesnik/.ddd/history"... # Saving history in "/home/lesnik/.ddd/history"...done. # Thanks for using DDD 3.2.1! (We apologize for the inconvenience.) ! Neoprávnìný pøístup do pamìti (SIGSEGV) + /bin/sh -c 'gdb -x /tmp/filewf9465 ddd core' GNU gdb 4.18 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 "i386-suse-linux"...(no debugging symbols found)... Core was generated by `ddd'. Program terminated with signal 11, Neoprávnìný pøístup do pamìti (SIGSEGV). 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/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...done. Reading symbols from /usr/lib/libstdc++-libc6.1-2.so.3...done. Reading symbols from /lib/libm.so.6...done. Reading symbols from /lib/libc.so.6...done. Reading symbols from /lib/ld-linux.so.2...done. Reading symbols from /lib/libnss_files.so.2...done. Reading symbols from /usr/lib/gconv/ISO8859-2.so...done. #0 0x0 in ?? () #0 0x0 in ?? ()