From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22845 invoked by alias); 18 Mar 2010 11:24:21 -0000 Received: (qmail 22836 invoked by uid 22791); 18 Mar 2010 11:24:20 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mx.southnet.co.nz (HELO viper.snap.net.nz) (202.37.101.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 11:24:12 +0000 Received: from totara (33.63.255.123.dynamic.snap.net.nz [123.255.63.33]) by viper.snap.net.nz (Postfix) with ESMTP id 12FA93DAC51; Thu, 18 Mar 2010 23:55:10 +1300 (NZDT) Received: by totara (Postfix, from userid 1000) id AB16FC172; Thu, 18 Mar 2010 23:55:07 +1300 (NZDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19362.1675.602867.813844@totara.tehura.co.nz> Date: Thu, 18 Mar 2010 11:24:00 -0000 To: Chandru Cc: gdb-patches@sourceware.org Subject: Re: gdb can't print array element for fortran From: nickrob@snap.net.nz (Nick Roberts) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00655.txt.bz2 > This mail pertains to the discussion had on gdb mailing list sometime > back here http://sourceware.org/ml/gdb-patches/2009-01/msg00251.html. > After a small discussion with Jan I made the following changes and > these didn't seem to work. Any inputs or thoughts would be helpful. Hmm, the example given in January works with GDB 6.8. It looks like a regression due to this change: 2008-04-22 Markus Deuling * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for multi_f77_subscript to support values from registers. * valarith.c (value_subscripted_rvalue): Remove prototype and static. * value.h (value_subscripted_rvalue): Add prototype. * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION. Fix output. * f-valprint.c (f_val_print): Likewise. -- Nick http://users.snap.net.nz/~nickrob