This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug fortran/11104] gdb 7.0 does not print two dimensional Fortran arrays correctly.
- From: "aburgess at broadcom dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 12 Sep 2010 14:43:57 -0000
- Subject: [Bug fortran/11104] gdb 7.0 does not print two dimensional Fortran arrays correctly.
- References: <20091217184247.11104.at_gdb@mathalacarte.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From aburgess at broadcom dot com 2010-09-12 14:43 -------
Created an attachment (id=4976)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4976&action=view)
Proposed patch
Fortran multi-dimensional arrays are of type:
ARRAY of ( ARRAY of ( BASETYPE ) )
Nested to the required depth.
The code used to fetch a single element out of an array could previously only
handle (ARRAY of BASETYPE), and so before calling this we would modify the type
of the array. However, this was leading to other problems when we try to bounds
check the array access.
This patch changes the array access code so that is can peel off all the layers
of ARRAY of ARRAY of ... to get to the BASETYPE.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11104
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.