From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 3F609385802F for ; Tue, 28 Mar 2023 19:01:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3F609385802F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phEZX-0007qy-M6; Tue, 28 Mar 2023 15:01:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=eNiPFpFysYKcspPBI9zE67yt6mVi5KamOnXXO54EQ5s=; b=M2C1UUQA81M9 JdbxgN/lNgaTLYVh0BMZNylSkT+Usaah/SXIVnCf6bg2dhTRZVefby9QvOhp1WBNOYr1JiwAwozyQ Id2LT04PzRRRaMHRuAZpXSQXIf+LkOkaKVWqOs2OjC0aQ58lEp6+EVKGCyN5EBzqSUAZ/Q5l0mkyM QwqRdH1jVb0ji5er2VvSwvIhcQIkOTX0DCS0X21LbHJiKismhnc59++Z1Jb+QblYsTVFX7uNm2lfT SxIXJvq3MyOOFKhE8C5oUXUbF3e3XKWN9RHVdcmH49qVhwHFtL+ibDrinV0pD4XXOpbkgWOfBAS2t rvVYnNCUPpoP+MSX25lG7A==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phEZX-0000PZ-4k; Tue, 28 Mar 2023 15:01:31 -0400 Date: Tue, 28 Mar 2023 22:01:36 +0300 Message-Id: <83r0t87l9r.fsf@gnu.org> From: Eli Zaretskii To: "Maciej W. Rozycki" Cc: gdb-patches@sourceware.org, richard.bunt@linaro.org In-Reply-To: (macro@embecosm.com) Subject: Re: [PATCH v2 3/3] GDB: Add `info main' command References: X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > Date: Tue, 28 Mar 2023 19:49:02 +0100 (BST) > From: "Maciej W. Rozycki" > cc: Richard Bunt > > From: Richard Bunt > > Allow consumers of GDB to extract the name of the main method. This is > most useful for Fortran programs which have a variable main method. > > Used by both MAP and DDT e.g. it is used to detect the presence of debug > information. > > Co-Authored-By: Maciej W. Rozycki > --- > Changes from v1: > > - Add documentation pieces. > --- > gdb/NEWS | 3 ++ > gdb/doc/gdb.texinfo | 6 ++++ > gdb/symtab.c | 11 ++++++++ > gdb/testsuite/gdb.fortran/info-main.exp | 42 ++++++++++++++++++++++++++++++++ > gdb/testsuite/gdb.fortran/info-main.f90 | 19 ++++++++++++++ > 5 files changed, 81 insertions(+) Thanks, the documentation parts are OK. Reviewed-By: Eli Zaretskii