public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: satyaakam@yahoo.co.in To: gdb-gnats@sources.redhat.com Subject: fortran/2284: gdb v6.6 adresses fortran arrays incorrectly. Date: Tue, 10 Jul 2007 18:28:00 -0000 [thread overview] Message-ID: <20070710181853.29282.qmail@sourceware.org> (raw) >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:
next reply other threads:[~2007-07-10 18:28 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-07-10 18:28 satyaakam [this message] 2007-10-11 2:28 Bud Davis 2007-10-11 13:41 drow
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20070710181853.29282.qmail@sourceware.org \ --to=satyaakam@yahoo.co.in \ --cc=gdb-gnats@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).