bug-ddd
[Top][All Lists]
Advanced

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

DDD asks for a init.c file


From: Enda Dimitri Vieira Bigarelli
Subject: DDD asks for a init.c file
Date: Sat, 2 Mar 2002 18:52:48 -0300

Hy!

Whenever trying to run DDD 3.3.1, I get the following message:

/home/user/.../init.c: No such file or directory

where '/home/user/...' is where the program file was generated
by
# g77 -g -o out file.f

There are no other special situation. This happens all the time.
I really don't know what file should this be for I not even
program in C but Fortran.

I hope itthis problem can be solved. However, I have searched
the internet an loas of people had the same problem (or a bit
worst) and there were no answers.

Thanks in advance,
Enda Bigarelli

PS.: I'm sending a copy of the ddd log file:

GNU DDD 3.3.1 (i386-redhat-linux-gnu)
Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany.
Copyright (C) 1999-2001 Universität Passau, Germany.

Compiled with GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-94), GNU libc 2.2
Requires X11R6, Xt11R6, Motif 1.2 (GNU/LessTif Version 1.2 Release 0.92.32)
Includes XPM 3.4.11, Athena Panner, DDD core
Built 2001-07-19 by Compile Server <bhcompile@stripples.devel.redhat.com>.
$  ddd platet
+  /bin/sh -c 'exec gdb -q -fullname '\''platet'\'''
#  Hello, world!
#  Opening session "117f000001000101510585200000010200055"...
#  Enabling core dumps...
#  Enabling core dumps...done.
#  Running GDB (pid 2014, tty /dev/pts/2)...
#  Current language: C/C++
#  Searching "vsllib/ddd.vsl"...
#  Trying "/home/biga/.ddd/vsllib/ddd.vsl"
#  Trying "/usr/share/ddd-3.3.1/vsllib/ddd.vsl"
#  Searching "vsllib/ddd.vsl"..."/usr/share/ddd-3.3.1/vsllib/ddd.vsl".
<- "(gdb) "
-> "set prompt (gdb) \n"
#  Creating "/home/biga/.ddd/sessions/117f000001000101510585200000010200055/"...
#  Creating 
"/home/biga/.ddd/sessions/117f000001000101510585200000010200055/"...done.
#  Copying "/home/biga/.ddd/init" to 
"/home/biga/.ddd/sessions/117f000001000101510585200000010200055/init"...
#  Copying "/home/biga/.ddd/init" to 
"/home/biga/.ddd/sessions/117f000001000101510585200000010200055/init"...done.
#  Copying "/home/biga/.ddd/history" to
"/home/biga/.ddd/sessions/117f000001000101510585200000010200055/history"...
#  Copying "/home/biga/.ddd/history" to
"/home/biga/.ddd/sessions/117f000001000101510585200000010200055/history"...done.
#  Saving session in 
"/home/biga/.ddd/sessions/117f000001000101510585200000010200055/init"...
#  Saving session in 
"/home/biga/.ddd/sessions/117f000001000101510585200000010200055/init"...done.
<- "(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"
<- "1\tinit.c: No such file or directory.\n"
   "\tin init.c\n"
   "(gdb) "
-> "info line\n"
<- "Line number 0 is out of range for \"init.c\".\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 Red Hat Linux 7.x (5.0rh-15) (MI_OUT)\n"
   "Copyright 2001 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-redhat-linux\".\n"
   "(gdb) "
-> "pwd\n"
<- "Working directory /home/biga/cfd/work/grid/plate.\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/biga/cfd/work/grid/plate/.gdb_history\".\n"
   "(gdb) "
-> "show history size\n"
<- "The size of the command history is 1000.\n"
   "(gdb) "
#  Reading file "/home/biga/cfd/work/grid/plate/init.c"...
#  Reading file "/home/biga/cfd/work/grid/plate/init.c"...No such file or
directory.
-> "info source\n"
<- "Current source file is init.c\n"
   "Compilation directory is /usr/src/build/40453-i386/BUILD/glibc-2.2.4/csu/\n"
   "Source language is c.\n"
   "Compiled with stabs debugging format.\n"
   "(gdb) "
#  Reading file "init.c" from GDB...
-> "list init.c:1,1000000\n"
<- "1\tin init.c\n"
   "(gdb) "
#  Reading file "init.c" from GDB...failed.
#  Reading file "/home/biga/cfd/work/grid/plate/init.c"...
!  /home/biga/cfd/work/grid/plate/init.c: No such file or directory
#  Reading file "/home/biga/cfd/work/grid/plate/init.c"...No such file or
directory.
-> "info source\n"
<- "Current source file is init.c\n"
   "Compilation directory is /usr/src/build/40453-i386/BUILD/glibc-2.2.4/csu/\n"
   "Source language is c.\n"
   "Compiled with stabs debugging format.\n"
   "(gdb) "
-> "info sources\n"
<- "Source files for which symbols have been read in:\n"
   "\n"
   "init.c, ../include/libc-symbols.h,
/usr/src/build/40453-i386/BUILD/glibc-2.2.4/build-i386-linux/config.h,
../sysdeps/gnu/_G_config.h, ../sysdeps/unix/sysv/linux/bits/types.h,
../include/features.h, ../include/sys/cdefs.h, ../misc/sys/cdefs.h,
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stddef.h,
../linuxthreads/sysdeps/pthread/bits/pthreadtypes.h,
../sysdeps/unix/sysv/linux/bits/sched.h, ../include/wchar.h,
../wcsmbs/wchar.h, ../sysdeps/unix/sysv/linux/i386/bits/wchar.h,
../include/gconv.h, ../iconv/gconv.h\n"
   "\n"
   "Source files for which symbols will be read in on demand:\n"
   "\n"
   "exit.h, ../stdlib/alloca.h, ../include/alloca.h,
../sysdeps/unix/sysv/linux/sys/sysmacros.h,
../sysdeps/unix/sysv/linux/i386/bits/time.h, ../time/time.h,
../sysdeps/unix/sysv/linux/bits/sigset.h, ../sysdeps/i386/bits/select.h,
../misc/sys/select.h, ../include/sys/select.h,
../sysdeps/unix/sysv/linux/bits/types.h, ../include/time.h,
../posix/sys/types.h, ../include/sys/types.h, ../locale/xlocale.h,
../include/xlocale.h, ../sysdeps/i386/bits/endian.h, ../string/endian.h,
../include/endian.h, ../sysdeps/generic/bits/waitstatus.h,
../sysdeps/unix/sysv/linux/bits/waitflags.h,
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stddef.h,
../stdlib/stdlib.h, ../include/stdlib.h, atexit.c, ../../gcc/libgcc2.c,
../../gcc/longlong.h, ../../gcc/libgcc2.h, ../../gcc/defaults.h,
../../gcc/machmode.def, ../../gcc/machmode.h, /usr/include/bits/time.h,
/usr/include/time.h, /usr/include/bits/posix2_lim.h,
/usr/include/linux/limits.h, /usr/include/bits/local_lim.h,
/usr/include/bits/posix1_lim.h, /usr/include/limits.h,
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h,
include/syslimits.h, include/limits.h, ../../include/getopt.h,
/usr/include/bits/confname.h, /usr/include/bits/posix_opt.h,
/usr/include/unistd.h, /usr/include/alloca.h, /usr/include/sys/types.h,
/usr/include/stdlib.h, /usr/include/bits/string2.h,
/usr/include/bits/string.h, /usr/include/string.h,
/usr/include/asm/errno.h, /usr/include/linux/errno.h,
/usr/include/bits/errno.h, /usr/include/errno.h,
/usr/include/sys/sysmacros.h, /usr/include/bits/sigset.h,
/usr/include/bits/select.h, /usr/include/sys/select.h,
/usr/include/bits/endian.h, /usr/include/endian.h,
/usr/include/bits/stdio.h, /usr/include/bits/stdio_lim.h, include/stdarg.h,
/usr/include/wchar.h, /usr/include/gconv.h, /usr/include/bits/wchar.h,
include/stddef.h, /usr/include/bits/types.h, /usr/include/_G_config.h,
/usr/include/libio.h, /usr/include/bits/sched.h,
/usr/include/bits/pthreadtypes.h, /usr/include/gnu/stubs.h,
/usr/include/sys/cdefs.h, /usr/include/features.h, /usr/include/stdio.h,
../../gcc/tsystem.h, ../../gcc/config/i386/perform.h,
../../gcc/config/dbxelf.h, ../../gcc/config/elfos.h,
../../gcc/config/svr4.h, ../../gcc/config/linux.h,
../../gcc/config/i386/unix.h, ../../gcc/config/i386/att.h,
../../gcc/config/i386/i386.h, ../../gcc/config/i386/linux.h, tm.h,
../../gcc/config/i386/xm-i386.h, ../../include/ansidecl.h,
../../gcc/gansidecl.h, tconfig.h, plate.f, ../wcsmbs/wchar.h,
../iconv/gconv.h, ../include/gconv.h,
../sysdeps/unix/sysv/linux/i386/bits/wchar.h, ../include/wchar.h,
../sysdeps/unix/sysv/linux/bits/sched.h,
../linuxthreads/sysdeps/pthread/bits/pthreadtypes.h, ../misc/sys/cdefs.h,
../include/sys/cdefs.h, ../include/features.h, ../sysdeps/gnu/_G_config.h,
/usr/src/build/40453-i386/BUILD/glibc-2.2.4/build-i386-linux/config.h,
../include/libc-symbols.h\n"
   "(gdb) "
-> "info line main\n"
<- "No line number information available for address 0x804d890 <main>\n"
   "(gdb) "
-> "info source\n"
<- "Current source file is init.c\n"
   "Compilation directory is /usr/src/build/40453-i386/BUILD/glibc-2.2.4/csu/\n"
   "Source language is c.\n"
   "Compiled with stabs debugging format.\n"
   "(gdb) "
-> "info line MAIN\n"
<- "Function \"MAIN\" not defined.\n"
   "(gdb) "
-> "info files\n"
<- "Symbols from \"/home/biga/cfd/work/grid/plate/platet\".\n"
   "Local exec file:\n"
   "\t`/home/biga/cfd/work/grid/plate/platet\', file type elf32-i386.\n"
   "\tEntry point: 0x8048dc0\n"
   "\t0x080480f4 - 0x08048107 is .interp\n"
   "\t0x08048108 - 0x08048128 is .note.ABI-tag\n"
   "\t0x08048128 - 0x080482a4 is .hash\n"
   "\t0x080482a4 - 0x08048624 is .dynsym\n"
   "\t0x08048624 - 0x0804884d is .dynstr\n"
   "\t0x0804884e - 0x080488be is .gnu.version\n"
   "\t0x080488c0 - 0x08048900 is .gnu.version_r\n"
   "\t0x08048900 - 0x08048930 is .rel.dyn\n"
   "\t0x08048930 - 0x08048aa8 is .rel.plt\n"
   "\t0x08048aa8 - 0x08048ac0 is .init\n"
   "\t0x08048ac0 - 0x08048dc0 is .plt\n"
   "\t0x08048dc0 - 0x08050df0 is .text\n"
   "\t0x08050df0 - 0x08050e0e is .fini\n"
   "\t0x08050e20 - 0x0805225e is .rodata\n"
   "\t0x08053260 - 0x08053624 is .data\n"
   "\t0x08053624 - 0x08053628 is .eh_frame\n"
   "\t0x08053628 - 0x08053630 is .ctors\n"
   "\t0x08053630 - 0x08053638 is .dtors\n"
   "\t0x08053638 - 0x08053708 is .got\n"
   "\t0x08053708 - 0x080537d8 is .dynamic\n"
   "\t0x080537e0 - 0x0a6f5d0c is .bss\n"
   "(gdb) "
-> "info line main_\n"
<- "Function \"main_\" not defined.\n"
   "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
   "(gdb) "
-> "info line MAIN_\n"
<- "Function \"MAIN_\" not defined.\n"
   "(gdb) "
-> "info source\n"
<- "Current source file is init.c\n"
   "Compilation directory is /usr/src/build/40453-i386/BUILD/glibc-2.2.4/csu/\n"
   "Source language is c.\n"
   "Compiled with stabs debugging format.\n"
   "(gdb) "
-> "info line main__\n"
<- "Function \"main__\" not defined.\n"
   "(gdb) "
-> "info source\n"
<- "Current source file is init.c\n"
   "Compilation directory is /usr/src/build/40453-i386/BUILD/glibc-2.2.4/csu/\n"
   "Source language is c.\n"
   "Compiled with stabs debugging format.\n"
   "(gdb) "
-> "info line MAIN__\n"
<- "Line 4 of \"plate.f\" starts at address 0x8048ec0 <MAIN__> and ends at
0x8048eca <MAIN__+10>.\n"
   "\032\032/home/biga/cfd/work/grid/plate/plate.f:4:52:beg:0x8048ec0\n"
   "(gdb) "
#  Reading file "/home/biga/cfd/work/grid/plate/plate.f"...
#  Reading file "/home/biga/cfd/work/grid/plate/plate.f"...done.
#  File "/home/biga/cfd/work/grid/plate/plate.f" 136 lines, 2890 characters
#  Setting buttons...
#  Setting buttons...done.
-> "set confirm off\n"
<- "(gdb) "
-> "source /tmp/dddSQTmjk\n"
<- "(gdb) "
-> "info breakpoints\n"
<- "No breakpoints or watchpoints.\n"
<- "(gdb) "
-> "info source\n"
<- "Current source file is plate.f\n"
   "Compilation directory is /home/biga/cfd/work/grid/plate/\n"
   "Located in /home/biga/cfd/work/grid/plate/plate.f\n"
   "Contains 136 lines.\n"
   "Source language is fortran.\n"
   "Compiled with stabs debugging format.\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 files\n"
<- "Symbols from \"/home/biga/cfd/work/grid/plate/platet\".\n"
   "Local exec file:\n"
   "\t`/home/biga/cfd/work/grid/plate/platet\', file type elf32-i386.\n"
   "\tEntry point: 0x8048dc0\n"
   "\t0x080480f4 - 0x08048107 is .interp\n"
   "\t0x08048108 - 0x08048128 is .note.ABI-tag\n"
   "\t0x08048128 - 0x080482a4 is .hash\n"
   "\t0x080482a4 - 0x08048624 is .dynsym\n"
   "\t0x08048624 - 0x0804884d is .dynstr\n"
   "\t0x0804884e - 0x080488be is .gnu.version\n"
   "\t0x080488c0 - 0x08048900 is .gnu.version_r\n"
   "\t0x08048900 - 0x08048930 is .rel.dyn\n"
   "\t0x08048930 - 0x08048aa8 is .rel.plt\n"
   "\t0x08048aa8 - 0x08048ac0 is .init\n"
   "\t0x08048ac0 - 0x08048dc0 is .plt\n"
   "\t0x08048dc0 - 0x08050df0 is .text\n"
   "\t0x08050df0 - 0x08050e0e is .fini\n"
   "\t0x08050e20 - 0x0805225e is .rodata\n"
   "\t0x08053260 - 0x08053624 is .data\n"
   "\t0x08053624 - 0x08053628 is .eh_frame\n"
   "\t0x08053628 - 0x08053630 is .ctors\n"
   "\t0x08053630 - 0x08053638 is .dtors\n"
   "\t0x08053638 - 0x08053708 is .got\n"
   "\t0x08053708 - 0x080537d8 is .dynamic\n"
   "\t0x080537e0 - 0x0a6f5d0c is .bss\n"
   "(gdb) "
-> "info program\n"
<- "The program being debugged is not being run.\n"
   "(gdb) "
-> "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\n"
   "you were debugging a file, the file is closed and gdb no longer
accesses it.\n"
   "(gdb) "
#  Opening session "117f000001000101510585200000010200055"...done.
#  Welcome to DDD 3.3.1 "Blue Gnu" (i386-redhat-linux-gnu)
-> "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) "
-> "output c\n"
<- "No symbol \"c\" in current context.\n"
<- "(gdb) "
-> "output normal\n"
<- "No symbol \"normal\" in current context.\n"
<- "(gdb) "
#  Deleting session "117f000001000101510585200000010200055"...
#  Current session is [none].
#  Deleting session "117f000001000101510585200000010200055"...done.
-> "quit\n"
#  Running GDB (pid 2014, tty /dev/pts/2)...Exit 0.
#  Saving history in "/home/biga/.ddd/history"...
#  Saving history in "/home/biga/.ddd/history"...done.
#  Thanks for using DDD 3.3.1!



reply via email to

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