From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 44AED3858434 for ; Thu, 7 Apr 2022 01:53:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 44AED3858434 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 2371rBsd018343 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 6 Apr 2022 21:53:16 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 2371rBsd018343 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 1871E1ED17; Wed, 6 Apr 2022 21:53:11 -0400 (EDT) Message-ID: <85c999ff-b78e-83bc-fffa-98e1d22d4179@polymtl.ca> Date: Wed, 6 Apr 2022 21:53:10 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] gdb/testsuite: add "macros" option to gdb_compile Content-Language: en-US To: gdb-patches@sourceware.org Cc: Simon Marchi References: <20220406154433.1447101-1-simon.marchi@polymtl.ca> From: Simon Marchi In-Reply-To: <20220406154433.1447101-1-simon.marchi@polymtl.ca> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Thu, 7 Apr 2022 01:53:11 +0000 X-Spam-Status: No, score=-3034.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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 Apr 2022 01:53:25 -0000 On 2022-04-06 11:44, Simon Marchi via Gdb-patches wrote: > From: Simon Marchi > > Make gdb_compile handle a new "macros" option, which makes it pass the > appropriate flag to make the compiler include macro information in the > debug info. This will help simplify tests using macros, reduce > redundant code, and make it easier to add support for a new compiler. > > Right now it only handles clang specially (using -fdebug-macro) and > falls back to -g3 otherwise (which works for gcc). Other compilers can > be added as needed. > > Change-Id: I50cd6ab1bfbb478c1005486408e214b551364c9b I integrated this patch in the following series: https://sourceware.org/pipermail/gdb-patches/2022-April/187550.html Simon