bug-ddd
[Top][All Lists]
Advanced

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

problem with a blank line in an include file (fortran)


From: Alain Cochard
Subject: problem with a blank line in an include file (fortran)
Date: Thu, 15 May 2003 16:59:04 +0200

Hello.  I try to follow the "Bugs and How To Report Them" section of
the manual.
Alain Cochard


[cochtest@beryl DDD]$  ddd --check-configuration
Creating "/home/cochtest/.ddd/"...
Creating "/home/cochtest/.ddd/"...done.
Creating "/home/cochtest/.ddd/sessions/"...
Creating "/home/cochtest/.ddd/sessions/"...done.
Creating "/home/cochtest/.ddd/themes/"...
Creating "/home/cochtest/.ddd/themes/"...done.
Checking for XKeysymDB... /usr/X11R6/lib/X11/XKeysymDB
No configuration problems found.


As for the inferior debugger and 'ddd --trace', I do not understand
what to do from "Compare the debugger output to the output of DDD and
determine which one is wrong."


    * Your DDD configuration. 

[cochtest@beryl DDD]$ ddd --configuration
GNU DDD 3.3.1 (i386-redhat-linux-gnu)
Copyright (C) 1995-1999 Technische Universit\xE4t Braunschweig, Germany.
Copyright (C) 1999-2001 Universit\xE4t Passau, Germany.

Compiled with GCC 3.2.1 20021207 (Red Hat Linux 8.0 3.2.1-2), GNU libc 2.3
Requires X11R6, Xt11R6, Motif 2.2.3 (Motif Version 2.2.2)
Includes XPM 3.4.11, Athena Panner, DDD core
Built 2003-01-25 by Compile Server <bhcompile@porky.devel.redhat.com>.


    * The debugger you are using and its version:

[cochtest@beryl DDD]$ rpm -qa | grep -i gdb
gdbm-1.8.0-20
gdbm-devel-1.8.0-20
gdb-5.3post-0.20021129.18

        It came with a RedHat9 (nine) GNU/Linux distribution


    * The compiler you used to compile DDD and its version 

I do not know since I did not install ddd myself (was part of my
RedHat9 distribution.  I hope the info is provided in the output of
ddd --configuration above.


Now the "facts":

[cochtest@beryl DDD]$ ls
include1.f  p1.f
[cochtest@beryl DDD]$ cat p1.f 
      include 'include1.f'              
      integer nx
      nx=1
      print *, 'nx  = ', nx
      end
[cochtest@beryl DDD]$ cat include1.f 
      implicit none 
                               <<<<<  there is a blank line here
[cochtest@beryl DDD]$ f77 -g p1.f -o p1.x
[cochtest@beryl DDD]$ ddd p1.x

The ddd main window pops up, but it contains the contents of the
include file (i.e., the "implicit none" line), not those of the main
program.  I then exit ddd.  [Note that if I delete the blank line,
then everything works as I expect, with the contents of the main
program in the ddd window; I can put a breakpoint etc.]


Here is the log file:

GNU DDD 3.3.1 (i386-redhat-linux-gnu)
Copyright (C) 1995-1999 Technische Universit

reply via email to

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