From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id BvV7AkNB8WKr3CIAWB0awg (envelope-from ) for ; Mon, 08 Aug 2022 13:00:51 -0400 Received: by simark.ca (Postfix, from userid 112) id ECA1C1EA06; Mon, 8 Aug 2022 13:00:50 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=rdlIFdlv; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 9BA701E9ED for ; Mon, 8 Aug 2022 13:00:50 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E7FD63857377 for ; Mon, 8 Aug 2022 17:00:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7FD63857377 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1659978047; bh=o6ryyc4ZFVn+lKiOAM0neUV/40PtNYg9qQDZkkxvstA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=rdlIFdlvGeeC9T3ob20CadpWrRjV5Him4XpMX/E/RAz1Bumux7i3Oj5lydw6nzmNv 6ojver8TY7pXrVcdWUjuuVQFWFFipS++r2O1iU5db6+SyW2AyEWLr4nCVHJBVLdV3K dmfSQPSVMaWmfp/w881np2XXWU7TSvUWETcCb4oU= Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by sourceware.org (Postfix) with ESMTPS id 9D6D2385736E for ; Mon, 8 Aug 2022 17:00:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9D6D2385736E X-IronPort-AV: E=McAfee;i="6400,9594,10433"; a="291880279" X-IronPort-AV: E=Sophos;i="5.93,222,1654585200"; d="scan'208";a="291880279" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2022 10:00:26 -0700 X-IronPort-AV: E=Sophos;i="5.93,222,1654585200"; d="scan'208";a="632974011" Received: from labpcdell3650-003.iul.intel.com (HELO localhost) ([172.28.49.87]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2022 10:00:25 -0700 To: gdb-patches@sourceware.org Subject: [PATCH v5 0/3] Fortran entry and DW_TAG_entry_point Date: Mon, 8 Aug 2022 19:00:16 +0200 Message-Id: <20220808170019.86052-1-nils-christian.kempke@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Nils-Christian Kempke via Gdb-patches Reply-To: Nils-Christian Kempke Cc: jinisusan.george@amd.com, tom@tromey.com, aburgess@redhat.com Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi, please find attached v5 of this series. Changes since v4 incorporate Tom's feedback here https://sourceware.org/pipermail/gdb-patches/2022-July/190798.html Namely, I added a special case to cooked_indexer::index_dies for DW_TAG_entry_point entries that sets its parent correctly. v1 can be found here: https://sourceware.org/pipermail/gdb-patches/2022-March/186900.html v2 can be found here: https://sourceware.org/pipermail/gdb-patches/2022-April/187853.html v3 can be found here: https://sourceware.org/pipermail/gdb-patches/2022-July/190556.html v4 can be found here: https://sourceware.org/pipermail/gdb-patches/2022-July/190691.html Any feedback is highly appreciated, thanks! Nils Nils-Christian Kempke (3): gdb, dwarf: move part of dwarf2_get_pc_bounds into separate function gdb, dwarf: add assert to dwarf2_get_pc_bounds dwarf, fortran: add support for DW_TAG_entry_point gdb/dwarf2/abbrev.c | 1 + gdb/dwarf2/cooked-index.h | 3 +- gdb/dwarf2/index-write.c | 3 +- gdb/dwarf2/read.c | 137 +++++++++-- gdb/testsuite/gdb.dwarf2/dw2-entry-points.c | 43 ++++ gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp | 215 ++++++++++++++++++ gdb/testsuite/gdb.fortran/entry-point.exp | 84 +++++++ gdb/testsuite/gdb.fortran/entry-point.f90 | 67 ++++++ 8 files changed, 529 insertions(+), 24 deletions(-) create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-entry-points.c create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp create mode 100644 gdb/testsuite/gdb.fortran/entry-point.exp create mode 100644 gdb/testsuite/gdb.fortran/entry-point.f90 -- 2.25.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928