public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: fortran/2284: gdb v6.6 adresses fortran arrays incorrectly.
@ 2007-10-11 13:41 drow
  0 siblings, 0 replies; 3+ messages in thread
From: drow @ 2007-10-11 13:41 UTC (permalink / raw)
  To: gdb-prs, nobody, satyaakam

Synopsis: gdb v6.6 adresses fortran arrays incorrectly.

State-Changed-From-To: open->closed
State-Changed-By: drow
State-Changed-When: Thu Oct 11 13:41:44 2007
State-Changed-Why:
    I tried a newer GDB with gfortran 4.1.3 and gfortran 4.2.1.  Both worked fine, so I agree with Bud.  Please let us know if you can reproduce this with a newer gfortran.

http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2284


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: fortran/2284: gdb v6.6 adresses fortran arrays incorrectly.
@ 2007-10-11  2:28 Bud Davis
  0 siblings, 0 replies; 3+ messages in thread
From: Bud Davis @ 2007-10-11  2:28 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR fortran/2284; it has been noted by GNATS.

From: Bud Davis <bdavis9659@sbcglobal.net>
To: gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: fortran/2284: gdb v6.6 adresses fortran arrays incorrectly.
Date: Wed, 10 Oct 2007 19:25:33 -0700 (PDT)

  below is gdb6.6 output.
 
 
 if i was to guess, i would say it was a gfortran problem.
 gfortran version used:
 
 gcc version 4.3.0 20071009 (experimental) (GCC) 
 
 
 may i recomend closure with no further action taken ?
 
 --bud davis
 
 
 
 
 
 [bdavis@localhost current]$ gdb a.out
 GNU gdb 6.6
 Copyright (C) 2006 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 "i686-pc-linux-gnu"...
 Using host libthread_db library "/lib/libthread_db.so.1".
 (gdb) break b.f:4
 Breakpoint 1 at 0x8048245: file b.f, line 4.
 (gdb) run
 Starting program: /home/bdavis/gcc/current/a.out 
 
 Breakpoint 1, MAIN__ () at b.f:4
 4             print *, myarr(1)
 Current language:  auto; currently fortran
 (gdb) p myarr
 $1 = (1, 2, 3, 4, 5, 6, 7, 8, 9, 0)
 (gdb) p myarr(1)
 $2 = 1
 (gdb) p myarr(2)
 $3 = 2
 (gdb) p myarr(10)
 $4 = 0
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* fortran/2284: gdb v6.6 adresses fortran arrays incorrectly.
@ 2007-07-10 18:28 satyaakam
  0 siblings, 0 replies; 3+ messages in thread
From: satyaakam @ 2007-07-10 18:28 UTC (permalink / raw)
  To: gdb-gnats


>Number:         2284
>Category:       fortran
>Synopsis:       gdb v6.6 adresses fortran arrays incorrectly.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 10 18:28:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     satyaakam@yahoo.co.in
>Release:        6.6
>Organization:
>Environment:

>Description:
gdb v6.6 can adress directly to fortran arrays, but do it incorrectly.

Here is a log that can be used as a testcase
1> cat main.F
      program test
      integer myarr(10)
      data myarr /1,2,3,4,5,6,7,8,9,0/
      print *, myarr(1)
      end
>How-To-Repeat:
$/gcc/v4.1.2/bin/gfortran -g main.F
$/gdb/v6.6/bin/gdb ./a.out
(gdb) b main.F:4
Breakpoint 1 at 0x8048569: file main.F, line 4.
(gdb) run
Starting program: /home/satyag/test/gf/a.out
Breakpoint 1, MAIN__ () at main.F:4
4             print *, myarr(1)
Current language:  auto; currently fortran
(gdb) p myarr(1)
$1 = 2
(gdb) quit
The program is running.  Exit anyway? (y or n) y
$gcc/v3.2.3/bin/g77  -g main.F
$gdb/v6.6/bin/gdb ./a.out
(gdb)  b main.F:4
Breakpoint 1 at 0x8048806: file main.F, line 4.
(gdb) run
Starting program: /home/satyag/test/gf/a.out

Breakpoint 1, MAIN__ () at main.F:4
4             print *, myarr(1)
Current language:  auto; currently fortran
(gdb) p myarr(1)
$1 = 1
(gdb) quit
The program is running.  Exit anyway? (y or n) y



>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-11 13:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-11 13:41 fortran/2284: gdb v6.6 adresses fortran arrays incorrectly drow
  -- strict thread matches above, loose matches on Subject: below --
2007-10-11  2:28 Bud Davis
2007-07-10 18:28 satyaakam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).