From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by sourceware.org (Postfix) with ESMTPS id 2D44A3858D32 for ; Thu, 7 Jul 2022 08:36:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2D44A3858D32 X-IronPort-AV: E=McAfee;i="6400,9594,10400"; a="284709722" X-IronPort-AV: E=Sophos;i="5.92,252,1650956400"; d="scan'208";a="284709722" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2022 01:36:16 -0700 X-IronPort-AV: E=Sophos;i="5.92,252,1650956400"; d="scan'208";a="626234730" Received: from labpcdell3650-003.iul.intel.com (HELO localhost) ([172.28.49.87]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2022 01:36:14 -0700 From: Nils-Christian Kempke To: gdb-patches@sourceware.org Cc: tom@tromey.com, jinisusan.george@amd.com, kevinb@redhat.com, Nils-Christian Kempke Subject: [PATCH v3 0/1] Fortran entry and DW_TAG_entry_point Date: Thu, 7 Jul 2022 10:36:05 +0200 Message-Id: <20220707083606.1531583-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-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_STOCKGEN, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: , X-List-Received-Date: Thu, 07 Jul 2022 08:36:19 -0000 Hi, please find attached v3 of this series. 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 Since v2 I adapted the series to Tom's comment here https://sourceware.org/pipermail/gdb-patches/2022-May/189479.html Changes since v2: * In dwarf2/index-write.c (write_cooked_index): I added DW_TAG_entry_point to the GDB_INDEX_SYMBOL_KIND_FUNCTION when writing the GDB index. * In dwarf2/cooked-index.h (cooked_index_entry::matches): I added the DW_TAG_entry_point to the FUNCTIONS_DOMAIN which enabled me to break on entry points when compiled in a different CU than the one containing main (as was pointed out by Tom). * In testsuite/gdb.dwarf2/dw2-entry-points.exp: I added a second CU to the test DWARF containing an entry point which I used to test the changes in cooked-index.h Cheers! Nils Nils-Christian Kempke (1): 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 | 72 +++++- gdb/testsuite/gdb.dwarf2/dw2-entry-points.c | 39 ++++ 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, 481 insertions(+), 3 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