From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12809 invoked by alias); 4 Jul 2016 15:01:17 -0000 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 Received: (qmail 12797 invoked by uid 89); 4 Jul 2016 15:01:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:cable.0, Dynamic, HX-HELO:eggs.gnu.org, Hx-spam-relays-external:208.118.235.92 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 04 Jul 2016 15:01:06 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bK5Mt-0007CS-FF for gdb-patches@sourceware.org; Mon, 04 Jul 2016 11:01:04 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK5Mo-0007B6-NC; Mon, 04 Jul 2016 11:00:58 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1934 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bK5Mn-0005Nz-LX; Mon, 04 Jul 2016 11:00:58 -0400 Date: Mon, 04 Jul 2016 15:01:00 -0000 Message-Id: <83bn2dphwp.fsf@gnu.org> From: Eli Zaretskii To: Bernhard Heckel CC: qiyaoltc@gmail.com, gdb-patches@sourceware.org, bernhard.heckel@intel.com In-reply-to: <1467625943-21294-4-git-send-email-bernhard.heckel@intel.com> (message from Bernhard Heckel on Mon, 4 Jul 2016 11:52:21 +0200) Subject: Re: [PATCH V2 3/5] Fortran: Resolve dynamic target types of pointers. Reply-to: Eli Zaretskii References: <1467625943-21294-1-git-send-email-bernhard.heckel@intel.com> <1467625943-21294-4-git-send-email-bernhard.heckel@intel.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00041.txt.bz2 > From: Bernhard Heckel > Cc: gdb-patches@sourceware.org, Bernhard Heckel > Date: Mon, 4 Jul 2016 11:52:21 +0200 > > Dynamic target types of pointers have to be resolved before > they can be further processed. If not, GDB wil show wrong > boundaries, size,... or even crash as it will access some > random memory. > > 2016-06-30 Bernhard Heckel > > gdb/Changelog: > * NEWS: Added new fortran feature. > * gdbtypes.c (resolve_dynamic_pointer_types): Resolve > dynamic target types. > * valops.c (value_ind): Throw error when pointer is > not associated. > > gdb/Testsuite/Changelog: > * gdb.fortran/pointers.f90: Add dynamic variables. > * gdb.fortran/pointers.exp: Test dynamic variables. > * gdb.fortran/print_type.exp: Test pointer to dynamic > types. OK for the NEWS part. Thanks.