bug-ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DDD bug -- Very short Fortran program


From: Fred Krogh
Subject: DDD bug -- Very short Fortran program
Date: Thu, 16 Feb 2006 15:32:15 -0800
User-agent: Mail/News 1.5 (X11/20060206)

Here is the program.

c Program to show problem in ddd
      integer I, IA(5)
      call sub1(IA)
      print *, (IA(I), I = 1, 5)
      stop
      end
      subroutine sub1(II)
      integer I, II(*)
      do 10 I = 1, 5
        II(I) = I
 10   continue
      return
      end

To see the bug run the code and stop on the return second line from the
bottom.
Move the cursor over the array name II.  DDD then crashes.

Note that I have had the same problem using lesstif in place of motif,
and have had this problem for more than two years with frequent updates
as provided by gentoo.

Thanks,
    Fred

PS.
g77  --version
GNU Fortran (GCC) 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)

gdb --version
GNU gdb 6.4


Crash documented near end of ~/.ddd/log.


=============== ddd --configuration =============

GNU DDD 3.3.11 (x86_64-pc-linux-gnu)
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.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9), GNU
libc 2.3
Requires X11R6, Xt11R6, Motif 2.2.3 (Motif Version 2.2.3)
Includes XPM 3.4.11, Athena Panner (7000002L), DDD core
Built 2006-01-13 by root <root@192.168.0.1>.


================ ~/.ddd/log ==================

GNU DDD 3.3.11 (x86_64-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universit<E4>t Braunschweig, Germany.
Copyright (C) 1999-2001 Universit<E4>t Passau, Germany.
Copyright (C) 2001 Universit<E4>t des Saarlandes, Germany.
Copyright (C) 2001-2004 Free Software Foundation, Inc.

Compiled with GCC 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9), GNU
libc 2.3
Requires X11R6, Xt11R6, Motif 2.2.3 (Motif Version 2.2.3)
Includes XPM 3.4.11, Athena Panner (7000002L), DDD core
Built 2006-01-13 by root <root@192.168.0.1>.
$  ddd test
+  /bin/sh -c 'exec gdb -q -fullname '\''test'\'''
#  Hello, world!
#  Opening session "11c0a80001000114013156700000131130044"...
#  Enabling core dumps...
#  Enabling core dumps...done.
#  Running GDB (pid 6227, tty /dev/pts/8)...
#  Current language: C/C++
#  Searching "vsllib/ddd.vsl"...
#  Trying "/home/m/.ddd/vsllib/ddd.vsl"
#  Trying "/usr/share/ddd-3.3.11/vsllib/ddd.vsl"
#  Searching "vsllib/ddd.vsl"..."/usr/share/ddd-3.3.11/vsllib/ddd.vsl".
2006.02.16 15:12:47
<- "Using host libthread_db library \"/lib/tls/libthread_db.so.1\".\n"
#  Creating
"/home/m/.ddd/sessions/11c0a80001000114013156700000131130044/"...
#  Creating
"/home/m/.ddd/sessions/11c0a80001000114013156700000131130044/"...done.
#  Copying "/home/m/.ddd/init" to
"/home/m/.ddd/sessions/11c0a8000100011401315670000013113
0044/init"...
#  Copying "/home/m/.ddd/init" to
"/home/m/.ddd/sessions/11c0a8000100011401315670000013113
0044/init"...done.
#  Copying "/home/m/.ddd/history" to
"/home/m/.ddd/sessions/11c0a8000100011401315670000013
1130044/history"...
#  Copying "/home/m/.ddd/history" to
"/home/m/.ddd/sessions/11c0a8000100011401315670000013
1130044/history"...done.
#  Saving session in
"/home/m/.ddd/sessions/11c0a80001000114013156700000131130044/init"...
#  Saving session in
"/home/m/.ddd/sessions/11c0a80001000114013156700000131130044/init"...
done.
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "set prompt (gdb) \n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "set height 0\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "set width 0\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "set annotate 1\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> " set verbose off\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info line\n"
2006.02.16 15:12:47
<- "No line number information available.\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "list\n"
2006.02.16 15:12:47
<-
"1\t/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/c
su/crti.S: No such file or directory.\n"
   "\tin
/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads
/csu/crti.S\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info line\n"
2006.02.16 15:12:47
<- "Line number 0 is out of range for
\"/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x
86_64-pc-linux-gnu-linuxthreads/csu/crti.S\".\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "output 4711\n"
2006.02.16 15:12:47
<- "4711"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "show language\n"
2006.02.16 15:12:47
<- "The current source language is \"auto; currently c\".\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "show version\n"
2006.02.16 15:12:47
<- "GNU gdb 6.4\n"
   "Copyright 2005 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 \"x86_64-pc-linux-gnu\".\n"
   "(gdb) "
2006.02.16 15:12:47
-> "pwd\n"
2006.02.16 15:12:47
<- "Working directory /tmp/test.\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info breakpoints\n"
2006.02.16 15:12:47
<- "No breakpoints or watchpoints.\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "show history filename\n"
2006.02.16 15:12:47
<- "The filename in which to record the command history is
\"/tmp/test/.gdb_history\".\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "show history size\n"
2006.02.16 15:12:47
<- "The size of the command history is 256.\n"
2006.02.16 15:12:47
<- "(gdb) "
#  Reading file
"/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linu
xthreads/csu/crti.S"...
#  Reading file
"/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linu
xthreads/csu/crti.S"...No such file or directory.
2006.02.16 15:12:47
-> "info source\n"
2006.02.16 15:12:47
<- "Current source file is
/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linu
x-gnu-linuxthreads/csu/crti.S\n"
   "Compilation directory is
/var/tmp/portage/glibc-2.3.6-r2/work/glibc-2.3.6/csu\n"
   "Source language is asm.\n"
   "Compiled with DWARF 2 debugging format.\n"
   "Does not include preprocessor macro info.\n"
2006.02.16 15:12:47
<- "(gdb) "
#  Reading file
"/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linu
xthreads/csu/crti.S" from GDB...
2006.02.16 15:12:47
-> "list
/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads
/csu/crti.S:1,1000000\n"
2006.02.16 15:12:47
<- "1\tin
/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthread
s/csu/crti.S\n"
2006.02.16 15:12:47
<- "(gdb) "
#  Reading file
"/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linu
xthreads/csu/crti.S" from GDB...failed.
#  Reading file
"/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linu
xthreads/csu/crti.S"...
! 
/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/csu/c
rti.S: No such file or directory
#  Reading file
"/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linu
xthreads/csu/crti.S"...No such file or directory.
2006.02.16 15:12:47
-> "info source\n"
2006.02.16 15:12:47
<- "Current source file is
/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linu
x-gnu-linuxthreads/csu/crti.S\n"
   "Compilation directory is
/var/tmp/portage/glibc-2.3.6-r2/work/glibc-2.3.6/csu\n"
   "Source language is asm.\n"
   "Compiled with DWARF 2 debugging format.\n"
   "Does not include preprocessor macro info.\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info sources\n"
2006.02.16 15:12:47
<- "Source files for which symbols have been read in:\n"
   "\n"
2006.02.16 15:12:47
<-
"/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/csu/
crti.S\n"
   "\n"
   "Source files for which symbols will be read in on demand:\n"
   "\n"
2006.02.16 15:12:47
<-
"/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linux-gnu-linuxthreads/csu/
crtn.S, /tmp/test/test.f\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info line main\n"
2006.02.16 15:12:47
<- "No line number information available for address 0x4009b0 <main>\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info source\n"
2006.02.16 15:12:47
<- "Current source file is
/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linu
x-gnu-linuxthreads/csu/crti.S\n"
   "Compilation directory is
/var/tmp/portage/glibc-2.3.6-r2/work/glibc-2.3.6/csu\n"
   "Source language is asm.\n"
   "Compiled with DWARF 2 debugging format.\n"
2006.02.16 15:12:47
<- "Does not include preprocessor macro info.\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info line MAIN\n"
2006.02.16 15:12:47
<- "Function \"MAIN\" not defined.\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info files\n"
2006.02.16 15:12:47
<- "Symbols from \"/tmp/test/test\".\n"
   "Local exec file:\n"
   "\t`/tmp/test/test\', file type elf64-x86-64.\n"
2006.02.16 15:12:47
<- "\tEntry point: 0x400820\n"
   "\t0x0000000000400238 - 0x0000000000400254 is .interp\n"
   "\t0x0000000000400254 - 0x0000000000400274 is .note.ABI-tag\n"
   "\t0x0000000000400278 - 0x0000000000400314 is .hash\n"
   "\t0x0000000000400318 - 0x00000000004004f8 is .dynsym\n"
   "\t0x00000000004004f8 - 0x00000000004005d8 is .dynstr\n"
   "\t0x00000000004005d8 - 0x0000000000400600 is .gnu.version\n"
   "\t0x0000000000400600 - 0x0000000000400620 is .gnu.version_r\n"
   "\t0x0000000000400620 - 0x0000000000400638 is .rela.dyn\n"
   "\t0x0000000000400638 - 0x0000000000400740 is .rela.plt\n"
   "\t0x0000000000400740 - 0x0000000000400758 is .init\n"
   "\t0x0000000000400758 - 0x0000000000400818 is .plt\n"
   "\t0x0000000000400820 - 0x0000000000400ad8 is .text\n"
   "\t0x0000000000400ad8 - 0x0000000000400ae6 is .fini\n"
   "\t0x0000000000400ae8 - 0x0000000000400af4 is .rodata\n"
   "\t0x0000000000400af4 - 0x0000000000400b30 is .eh_frame_hdr\n"
   "\t0x0000000000400b30 - 0x0000000000400c1c is .eh_frame\n"
   "\t0x0000000000500c20 - 0x0000000000500c30 is .ctors\n"
   "\t0x0000000000500c30 - 0x0000000000500c40 is .dtors\n"
   "\t0x0000000000500c40 - 0x0000000000500c48 is .jcr\n"
   "\t0x0000000000500c48 - 0x0000000000500e08 is .dynamic\n"
   "\t0x0000000000500e08 - 0x0000000000500e18 is .got\n"
   "\t0x0000000000500e18 - 0x0000000000500e88 is .got.plt\n"
   "\t0x0000000000500ea0 - 0x0000000000500ee0 is .data\n"
   "\t0x0000000000500ee0 - 0x0000000000500ee8 is .bss\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info line main_\n"
2006.02.16 15:12:47
<- "Function \"main_\" not defined."
2006.02.16 15:12:47
<- "\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info program\n"
2006.02.16 15:12:47
<- "The program being debugged is not being run.\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info line MAIN_\n"
2006.02.16 15:12:47
<- "Function \"MAIN_\" not defined.\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info source\n"
2006.02.16 15:12:47
<- "Current source file is
/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linu
x-gnu-linuxthreads/csu/crti.S\n"
   "Compilation directory is
/var/tmp/portage/glibc-2.3.6-r2/work/glibc-2.3.6/csu\n"
   "Source language is asm.\n"
   "Compiled with DWARF 2 debugging format.\n"
   "Does not include preprocessor macro info.\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info line main__\n"
2006.02.16 15:12:47
<- "Function \"main__\" not defined.\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info source\n"
2006.02.16 15:12:47
<- "Current source file is
/var/tmp/portage/glibc-2.3.6-r2/work/build-amd64-x86_64-pc-linu
x-gnu-linuxthreads/csu/crti.S\n"
   "Compilation directory is
/var/tmp/portage/glibc-2.3.6-r2/work/glibc-2.3.6/csu\n"
   "Source language is asm.\n"
   "Compiled with DWARF 2 debugging format.\n"
   "Does not include preprocessor macro info.\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info line MAIN__\n"
2006.02.16 15:12:47
<- "Line 2 of \"test.f\" starts at address 0x4008d8 <MAIN__> and ends at
0x4008e0 <MAIN__+
8>.\n"
2006.02.16 15:12:47
<- "\032\032/tmp/test/test.f:2:33:beg:0x4008d8\n"
2006.02.16 15:12:47
<- "(gdb) "
#  Reading file "/tmp/test/test.f"...
#  Reading file "/tmp/test/test.f"...done.
#  File "/tmp/test/test.f" 13 lines, 321 characters
#  Setting buttons...
#  Setting buttons...done.
2006.02.16 15:12:47
-> "set confirm off\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "source /tmp/dddQxVrAJ\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info breakpoints\n"
2006.02.16 15:12:47
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
2006.02.16 15:12:47
-> "info source\n"
2006.02.16 15:12:47
<- "Current source file is test.f\n"
   "Compilation directory is /tmp/test\n"
   "Located in /tmp/test/test.f\n"
   "Contains 13 lines.\n"
   "Source language is fortran.\n"
   "Compiled with DWARF 2 debugging format.\n"
   "Does not include preprocessor macro info.\n"
   "(gdb) "
2006.02.16 15:12:47
-> "# reset\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info breakpoints\n"
2006.02.16 15:12:47
<- "No breakpoints or watchpoints.\n"
   "(gdb) "
2006.02.16 15:12:47
-> "display\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info display\n"
2006.02.16 15:12:47
<- "There are no auto-display expressions now.\n"
   "(gdb) "
2006.02.16 15:12:47
-> "set environment TERM dumb\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "info files\n"
2006.02.16 15:12:47
<- "Symbols from \"/tmp/test/test\".\n"
   "Local exec file:\n"
   "\t`/tmp/test/test\', file type elf64-x86-64.\n"
   "\tEntry point: 0x400820\n"
   "\t0x0000000000400238 - 0x0000000000400254 is .interp\n"
   "\t0x0000000000400254 - 0x0000000000400274 is .note.ABI-tag\n"
   "\t0x0000000000400278 - 0x0000000000400314 is .hash\n"
   "\t0x0000000000400318 - 0x00000000004004f8 is .dynsym\n"
   "\t0x00000000004004f8 - 0x00000000004005d8 is .dynstr\n"
   "\t0x00000000004005d8 - 0x0000000000400600 is .gnu.version\n"
   "\t0x0000000000400600 - 0x0000000000400620 is .gnu.version_r\n"
   "\t0x0000000000400620 - 0x0000000000400638 is .rela.dyn\n"
   "\t0x0000000000400638 - 0x0000000000400740 is .rela.plt\n"
   "\t0x0000000000400740 - 0x0000000000400758 is .init\n"
   "\t0x0000000000400758 - 0x0000000000400818 is .plt\n"
   "\t0x0000000000400820 - 0x0000000000400ad8 is .text\n"
   "\t0x0000000000400ad8 - 0x0000000000400ae6 is .fini\n"
   "\t0x0000000000400ae8 - 0x0000000000400af4 is .rodata\n"
   "\t0x0000000000400af4 - 0x0000000000400b30 is .eh_frame_hdr\n"
   "\t0x0000000000400b30 - 0x0000000000400c1c is .eh_frame\n"
   "\t0x0000000000500c20 - 0x0000000000500c30 is .ctors\n"
   "\t0x0000000000500c30 - 0x0000000000500c40 is .dtors\n"
   "\t0x0000000000500c40 - 0x0000000000500c48 is .jcr\n"
   "\t0x0000000000500c48 - 0x0000000000500e08 is .dynamic\n"
   "\t0x0000000000500e08 - 0x0000000000500e18 is .got\n"
   "\t0x0000000000500e18 - 0x0000000000500e88 is .got.plt\n"
   "\t0x0000000000500ea0 - 0x0000000000500ee0 is .data\n"
   "\t0x0000000000500ee0 - 0x0000000000500ee8 is .bss\n"
   "(gdb) "
2006.02.16 15:12:47
-> "info program\n"
2006.02.16 15:12:47
<- "The program being debugged is not being run.\n"
   "(gdb) "
#  Opening session "11c0a80001000114013156700000131130044"...done.
#  Welcome to DDD 3.3.11 "Rhubarb" (x86_64-pc-linux-gnu)
2006.02.16 15:12:47
-> "help detach\n"
2006.02.16 15:12:47
<- "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) "
2006.02.16 15:12:47
-> "help run\n"
2006.02.16 15:12:47
<- "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"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "help step\n"
2006.02.16 15:12:47
<- "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"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:47
-> "help stepi\n"
2006.02.16 15:12:47
<- "Step one instruction exactly.\n"
   "Argument N means do this N times (or till program stops for another
reason).\n"
2006.02.16 15:12:47
<- "(gdb) "
2006.02.16 15:12:48
-> "help next\n"
2006.02.16 15:12:48
<- "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"
2006.02.16 15:12:48
<- "(gdb) "
2006.02.16 15:12:48
-> "help nexti\n"
2006.02.16 15:12:48
<- "Step one instruction, but proceed through subroutine calls.\n"
   "Argument N means do this N times (or till program stops for another
reason).\n"
2006.02.16 15:12:48
<- "(gdb) "
2006.02.16 15:12:48
-> "help until\n"
2006.02.16 15:12:48
<- "Execute until the program reaches a source line greater than the
current\n"
   "or a specified location (same args as break command) within the
current frame.\n"
2006.02.16 15:12:48
<- "(gdb) "
2006.02.16 15:12:48
-> "help finish\n"
2006.02.16 15:12:48
<- "Execute until selected stack frame returns.\n"
   "Upon return, the value returned is printed and put in the value
history.\n"
2006.02.16 15:12:48
<- "(gdb) "
2006.02.16 15:12:48
-> "help cont\n"
2006.02.16 15:12:48
<- "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"
2006.02.16 15:12:48
<- "(gdb) "
2006.02.16 15:12:48
-> "help signal\n"
2006.02.16 15:12:48
<- "Continue program giving it signal specified by the argument.\n"
   "An argument of \"0\" means continue program without giving it a
signal.\n"
2006.02.16 15:12:48
<- "(gdb) "
2006.02.16 15:12:48
-> "help kill\n"
2006.02.16 15:12:48
<- "Kill execution of program being debugged.\n"
2006.02.16 15:12:48
<- "(gdb) "
2006.02.16 15:12:49
-> "help up\n"
2006.02.16 15:12:49
<- "Select and print stack frame that called this one.\n"
   "An argument says how many frames up to go.\n"
2006.02.16 15:12:49
<- "(gdb) "
2006.02.16 15:12:49
-> "help down\n"
2006.02.16 15:12:49
<- "Select and print stack frame called by this one.\n"
   "An argument says how many frames down to go.\n"
2006.02.16 15:12:49
<- "(gdb) "
2006.02.16 15:12:52
-> "output II\n"
2006.02.16 15:12:52
<- "No symbol \"II\" in current context.\n"
2006.02.16 15:12:52
<- "(gdb) "
2006.02.16 15:12:55
-> "break test.f:12\n"
2006.02.16 15:12:55
<- "Breakpoint 1 at 0x4009a0: file test.f, line 12.\n"
2006.02.16 15:12:55
<- "(gdb) "
2006.02.16 15:12:55
-> "info breakpoints\n"
2006.02.16 15:12:55
<- "Num Type           Disp Enb Address            What\n"
   "1   breakpoint     keep y   0x00000000004009a0 in sub1_ at test.f:12\n"
2006.02.16 15:12:55
<- "(gdb) "
2006.02.16 15:12:58
-> "set environment TERM dumb\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "run\n"
2006.02.16 15:12:58
<- "\n"
2006.02.16 15:12:58
<- "Breakpoint 1, sub1_ (ii=0x7fffff92c3d0) at test.f:12\n"
   "\032\032/tmp/test/test.f:12:233:beg:0x4009a0\n"
   "Current language:  auto; currently fortran\n"
#  Current language: Fortran
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "info breakpoints\n"
2006.02.16 15:12:58
<- "Num Type           Disp Enb Address            What\n"
2006.02.16 15:12:58
<- "1   breakpoint     keep y   0x00000000004009a0 in sub1_ at test.f:12\n"
   "\tbreakpoint already hit 1 time\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output return\n"
2006.02.16 15:12:58
<- "No symbol \"return\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output RETURN\n"
2006.02.16 15:12:58
<- "No symbol \"RETURN\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output return_\n"
2006.02.16 15:12:58
<- "No symbol \"return_\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output return__\n"
2006.02.16 15:12:58
<- "No symbol \"return__\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output RETURN_\n"
2006.02.16 15:12:58
<- "No symbol \"RETURN_\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output RETURN__\n"
2006.02.16 15:12:58
<- "No symbol \"RETURN__\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output continue\n"
2006.02.16 15:12:58
<- "No symbol \"continue\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output CONTINUE\n"
2006.02.16 15:12:58
<- "No symbol \"CONTINUE\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output continue_\n"
2006.02.16 15:12:58
<- "No symbol \"continue_\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output continue__\n"
2006.02.16 15:12:58
<- "No symbol \"continue__\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output CONTINUE_\n"
2006.02.16 15:12:58
<- "No symbol \"CONTINUE_\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:58
-> "output CONTINUE__\n"
2006.02.16 15:12:58
<- "No symbol \"CONTINUE__\" in current context.\n"
2006.02.16 15:12:58
<- "(gdb) "
2006.02.16 15:12:59
-> "output I\n"
2006.02.16 15:12:59
<- "6"
2006.02.16 15:12:59
<- "(gdb) "
2006.02.16 15:13:00
-> "output II\n"
2006.02.16 15:13:00
<- "(PTR TO -> ( integer (-1))) 0x7fffff92c3d0"
2006.02.16 15:13:00
<- "(gdb) "
2006.02.16 15:13:00
-> "output *II\n"
2006.02.16 15:13:00
<- " 1 2 3 4 5\n"
#  Running GDB (pid 6227, tty /dev/pts/8)...Segmentation fault.   
###### Here it is! ########
#  Saving options in "/home/m/.ddd/init"...
#  Saving options in "/home/m/.ddd/init"...done.
#  Deleting session "11c0a80001000114013156700000131130044"...
#  Current session is [none].
#  Deleting session "11c0a80001000114013156700000131130044"...done.
#  Saving history in "/home/m/.ddd/history"...
#  Saving history in "/home/m/.ddd/history"...done.
#  Thanks for using DDD 3.3.11!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]