Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: anma@geo.palmod.uni-bremen.de (Andreas Manschke)
To: orrie@rintintin.Colorado.EDU (G. Orrie Gartner)
Subject: Re: dbx and OSF1
Date: 1998/04/15	[thread overview]
Message-ID: <6h286g$m8i$1@kohl.informatik.uni-bremen.de> (raw)
In-Reply-To: 6h1a5r$n3i@lace.colorado.edu


Hi Orrie,

I have tried a little with your program.
At first, I used the program which is listed
from the dbx. It differs a little from your source.

Are you using the DEC Fortran Compiler V 5.0 ? On my
systems, your "feature" exists for that version only.
When I try with

f77_410 -g x.f

on the same machine I get:

.
.
.

[2] stopped at   [tmp:13 ,0x12000165c]  var = var-1.
(dbx) print a[1,1,1]
1.000000 

Perhaps you have still the old compiler version ?

Hope this helps,

Andreas



orrie@rintintin.Colorado.EDU (G. Orrie Gartner) writes:
> 
> 
> Hello,
> 
>   I was curious if anyone has any insight into this "feature" of OSF1.
> We are running version 4.0c of Digital Unix and compile a simple
> Fortran program which looks as follows:
> 
>       program tmp
>       real a(5, 5)
>       real var
>       integer i,j,k
>       var=1.
>       do 10 i=1,5
>          do 10 j=1,5
>          a(i,j)=var
>       print*,i,j,k,a(i,j)
>                var = var+1.
>   10  continue
>       var = var-1.
>       end
> 
> Then, using the dbx debugger we try examining the array:
> 
>  (dbx) list
>      6        do 10 i=1,5
>      7           do 10 j=1,5
>      8              do 10 k=1,5
>      9                 a(i,j,k)=var
>     10        print*,i,j,k,a(i,j,k)
>     11                 var = var+1.
>     12    10  continue
>     13        var = var-1.
>     14        end
> (dbx) stop at 13
> [2] stop at "tmp.f":13
> (dbx) run
>         ...
> [2] stopped at   [tmp:13 ,0x12000165c]  var = var-1.
> (dbx) print i
> 6
> (dbx) print a[1,1,1]
> Denormalized number 0x800df588
> (dbx) &a[1,1,1]/1f
> 00000001400001d0:  -0.0000000
> (dbx) print var
> 126.000000
> (dbx) quit
> 
> It seems dbx does not print the array values although the other information
> is fine.  Does anyone have any thoughts on this?  Thanks so much!
> 
>   Orrie Gartner
>   UnixOps/ITS
>   University of Colorado at Boulder
> 

-- 
|  manschke@uni-bremen.de        |
|  Dr. Andreas Manschke          |
|  University of Bremen, Germany |



  reply	other threads:[~1998-04-15  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-15  4:00 dbx and OSF1 G. Orrie Gartner
1998-04-15  4:00 ` Andreas Manschke [this message]
1998-04-15  4:00 ` Peter Thompson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox