From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4540 invoked by alias); 31 Jul 2017 22:20:53 -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 4529 invoked by uid 89); 31 Jul 2017 22:20:52 -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=child's, childs, H*r:sk:static., HContent-Transfer-Encoding:8bit X-HELO: mail-it0-f45.google.com Received: from mail-it0-f45.google.com (HELO mail-it0-f45.google.com) (209.85.214.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 31 Jul 2017 22:20:51 +0000 Received: by mail-it0-f45.google.com with SMTP id v127so2172725itd.0 for ; Mon, 31 Jul 2017 15:20:50 -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=P/OT+qBoQuZ8/KiDLUKa6NRDuKqtn25j6mJ0bc/dnjo=; b=SZzs228ns2r9CG1mEJnJqaEOY3EhS0Yshr/N4zLSKaJ/tlnxxTXzZm997/5U3YziVG 5Ks6Do5Ch8mjn2fpK+uFsgdkHhxruuBg5JjYlTyJTqx0pqOKTbn4ttWvd/0dp7tHt4Py ZW8GZ5cfSCvqt34f/pkvybF5sGIfL2aCobAW9NUnZTPBT3P+5SUJOhIkgMFI/zZwnRxw JwsffntxMWf2XCLfsRTbmBX07H5Sj95Q9WnykuSPgnvO+fjfEOWi04vuqK3R9h8rjA5J zWOr2rsjy+7MqPyIX8IzBBniZvyBlP9cJ533oGSl3JV5I/DoLc0pEl1PjXdIbU0PCHgd GAeQ== X-Gm-Message-State: AIVw110FBCfazsy0xvovCOm+ZEmoHn6m79omNqTJVAw5ylZ5mb9fPvEs 7P+TRqgSZQsAL80c X-Received: by 10.36.0.77 with SMTP id 74mr20889739ita.155.1501539649405; Mon, 31 Jul 2017 15:20:49 -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 h13sm5957482ith.20.2017.07.31.15.20.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Jul 2017 15:20:48 -0700 (PDT) Date: Mon, 31 Jul 2017 22:20:00 -0000 From: Yao Qi To: Tim Wiederhake Cc: gdb-patches@sourceware.org, Bernhard Heckel Subject: Re: [PATCH 4/6] Dwarf: Fortran, support DW_TAG_entry_point. Message-ID: <20170731222045.GC8039@1170ee0b50d5> References: <1500629040-12972-1-git-send-email-tim.wiederhake@intel.com> <1500629040-12972-5-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-5-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/msg00465.txt.bz2 On 17-07-21 11:23:58, Tim Wiederhake wrote: > From: Bernhard Heckel > > Fortran provides additional entry-points to an subprogram. Those entry-points > may have only a subset of parameters of the original subprogram as well. > > Add support for parsing DW_TAG_entry_point's for Fortran. Again, what is the fortran compiler? I use gfortran, which doesn't generate DW_TAG_sub_program in debug information. > > xxxx-yy-zz Bernhard Heckel > Tim Wiederhake > > gdb/ChangeLog: > * gdb/dwarf2read.c (add_partial_symbol): Handle DW_TAG_entry_point. > (add_partial_entry_point): New function. > (add_partial_subprogram): Search for entry_points. > (process_die): Handle DW_TAG_entry_point. > (dwarf2_get_pc_bounds): Update low pc from DWARF. > (load_partial_dies): Save DW_TAG_entry_point's. > (load_partial_dies): Save DW_TAG_entry_point to hash table. > (load_partial_dies): Look into child's of DW_TAG_sub_program > for fortran. > (new_symbol_full): Process DW_TAG_entry_point. > (read_type_die_1): Handle DW_TAG_entry_point. > > gdb/testsuite/ChangeLog: > * gdb.fortran/entry_point.f90: New file. > * gdb.fortran/entry_point.exp: New file. -- Yao (齐尧)