From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6723 invoked by alias); 31 Jul 2017 22:09:45 -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 6617 invoked by uid 89); 31 Jul 2017 22:09:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=onetime, one-time, H*r:sk:static., HContent-Transfer-Encoding:8bit X-HELO: mail-io0-f195.google.com Received: from mail-io0-f195.google.com (HELO mail-io0-f195.google.com) (209.85.223.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 31 Jul 2017 22:09:43 +0000 Received: by mail-io0-f195.google.com with SMTP id o9so229713iod.5 for ; Mon, 31 Jul 2017 15:09:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=9Vrnb2FoSZA6v6jxKjcNEgMN+BLmDSZFZg6a2RBgeFg=; b=MaIoNN2cqhZEZwbhb/CTw8NgnitFmOD4toLxPqhB0fYiV3USJ2sLhGT0jyoOHJ7fC+ CiCr40xnvi9LUvP9VHdvdPpmBPR9h9u15ixmJBDBBP/yVwnaUEYodldJa1d6iqX1pyW+ eY9D0/4qqIJIGxx5gnkQKKfio8+f9A3aBqASvMjSh7nC8MWXZ8tDmQN55nG6LCMh1CFs KNGYKfA1HvcAZ6WYLzA+SxNUDXMRsvaB9OqH0aeeHuXqrWOrBGJjZcRgVu2tbW58qr5r cn25O+/pzuEQhs7yJ7Hox/fbyuiqbTHvxYBeJbYT3MfRBqF92bZb/Va6MfQe21lCcmGa cxgQ== X-Gm-Message-State: AIVw110uMrTnGr7BJ2T1f3yqnz+/OEWmfZuKG0AlYgHGjGXZhHkCRMxx ZqAnNc/4Vr3cpg== X-Received: by 10.107.183.17 with SMTP id h17mr21955295iof.188.1501538981490; Mon, 31 Jul 2017 15:09:41 -0700 (PDT) Received: from 1170ee0b50d5 (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id e66sm3903441ioe.82.2017.07.31.15.09.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Jul 2017 15:09:40 -0700 (PDT) Date: Mon, 31 Jul 2017 22:09:00 -0000 From: Yao Qi To: Tim Wiederhake Cc: gdb-patches@sourceware.org, Bernhard Heckel Subject: Re: [PATCH 1/6] DWARF: Don't add nameless modules to partial symbol table. Message-ID: <20170731220938.GB8039@1170ee0b50d5> References: <1500629040-12972-1-git-send-email-tim.wiederhake@intel.com> <1500629040-12972-2-git-send-email-tim.wiederhake@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1500629040-12972-2-git-send-email-tim.wiederhake@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00461.txt.bz2 On 17-07-21 11:23:55, Tim Wiederhake wrote: > From: Bernhard Heckel > > A name for BLOCK DATA in Fortran is optional. If no name has been assigned, > GDB will crash during read-in of DWARF when BLOCK DATA is represented via > DW_TAG_module. What is your Fortran compiler? I used gfortran 4.9.4, it doesn't generate DW_TAG_module in debug information. So, I run block-data.exp with unpatched GDB, all tests pass. > > BLOCK DATA is used for one-time initialization of non-pointer variables in > named common blocks. > > xxxx-yy-zz Bernhard Heckel > > gdb/ChangeLog: > * dwarf2read.c (add_partial_symbol): Skip nameless modules. > > gdb/testsuite/ChangeLog: > * gdb.fortran/block-data.f: New file. > * gdb.fortran/block-data.exp: New file. > -- Yao (齐尧)