From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id tNWKD3dUrmcZBDAAWB0awg (envelope-from ) for ; Thu, 13 Feb 2025 15:22:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1739478135; bh=c/XAjh4SuIILA8KkaV+/afUOVGa6FPYVp+E0aPbaW7s=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ZS7g/v1jisXOfIcEBC1uDuUqNst+6i7aJmgycMNnsh0XtAdemYP0DPi4HxLh0xtY/ rj1L/U8Rdia7NPYAVqto+xRd21dMizd/TwsLLqIVM2GvOIOwS24Sl6xiLp2cx/XY2z rJRIPa0pV0ft2Z06rrBmXcP4WugSeOnT/QgQOrfQ= Received: by simark.ca (Postfix, from userid 112) id 2D1611E105; Thu, 13 Feb 2025 15:22:15 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable autolearn_force=no version=4.0.0 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=uYtfGY/a; dkim=pass (1024-bit key) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=cmuD0rBL; dkim-atps=neutral Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7DBA41E08E for ; Thu, 13 Feb 2025 15:22:11 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 27FDC3858C41 for ; Thu, 13 Feb 2025 20:22:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 27FDC3858C41 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=uYtfGY/a; dkim=pass (1024-bit key) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=cmuD0rBL Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id F1C523858C53 for ; Thu, 13 Feb 2025 20:21:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F1C523858C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F1C523858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739478098; cv=none; b=KY3RD1b0SekPbdiXgszTv8KAYCkuwz1VcrcIqafGHOYW8bKm+M+TEEuu5q+E7erX2xp0sN+s5kor5UG+FYxEPFU2ATWFXBR8rFFxJgys18zKRX7jGi8tFX32+1jo9ALUgjx9igVOTfCZvVOsHLpb2/UBzyEaT8JMJQg05W33VIo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739478098; c=relaxed/simple; bh=c/XAjh4SuIILA8KkaV+/afUOVGa6FPYVp+E0aPbaW7s=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version: Subject:To:From; b=SN5/7HhOvy49bg3IowOkp6H8kaDDhJ/B7qaGp05vPFxB2tI5Fd4zed6e3aKKyMx9PFjuA0Z+eGV57Yjy3YWJECM9/90oDMXoPyBDd1DYWHNHVJxeeSN5I+FTtWfx3/iMDOD32j0buQL6PAGQSZ7ZVkBmNaM7hyjac1GnJDeDhSg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1C523858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1739478097; bh=c/XAjh4SuIILA8KkaV+/afUOVGa6FPYVp+E0aPbaW7s=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=uYtfGY/aqoWH3CeZa39Jr7Jv64NVCJ/AFP6vcxem2R2fyBIZPvz3BZpkxw9Yhw8ii b9nrRAbIo2JjAHIuARen+tbrIoWZ2UEaM11v2guGcYQaOf34hsXfyrwexKW1SiW9J7 /7p1GbDSht1ru2hF4YkbiSkypnxravbGMUkDIQDU= Received: by simark.ca (Postfix, from userid 112) id A85121E10A; Thu, 13 Feb 2025 15:21:37 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1739478095; bh=c/XAjh4SuIILA8KkaV+/afUOVGa6FPYVp+E0aPbaW7s=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cmuD0rBLg93BI4wAfcW++eBAdioPjCUxID4Q4h8p6kK5chDzwJp6ZCayMT08V4/Dp j2pyygDYutmypUuCP0Z5ee4N0C3dO4XOQb/W+doq4xGAdqaP8Nh82jWYulw/QGkfZC HRanIzihszi5FyQn/ePcUl+imestyhpurL/ixiNE= Received: from [10.0.0.11] (modemcable238.237-201-24.mc.videotron.ca [24.201.237.238]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 72B661E08E; Thu, 13 Feb 2025 15:21:35 -0500 (EST) Message-ID: <35754735-34f5-4aca-99e4-3862f8cde5b9@simark.ca> Date: Thu, 13 Feb 2025 15:21:35 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Follow up to stabs deprecation - AIX regressions To: Guinevere Larsen , Kevin Buettner Cc: gdb-patches@sourceware.org References: <20250213094829.2b6f73d5@f41-zbm-amd> <54acfac1-ac30-4012-9a64-8b3070338b11@redhat.com> <20250213104321.71331304@f41-zbm-amd> Content-Language: en-US From: Simon Marchi In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On 2025-02-13 12:58, Guinevere Larsen wrote: > On 2/13/25 2:43 PM, Kevin Buettner wrote: >> On Thu, 13 Feb 2025 14:21:01 -0300 >> Guinevere Larsen wrote: >> >>> On 2/13/25 1:48 PM, Kevin Buettner wrote: >>>> On Thu, 13 Feb 2025 09:25:44 -0300 >>>> Guinevere Larsen wrote: >>>> >>>>> * DWARF reading can sometimes fail in AIX. Currently, reading dwarf for >>>>> xcoff inferiors is called on it's own, with no warning if dwarf fails >>>>> (which probably makes sense, considering the default format in aix is >>>>> still stabs). I added a warning when failing to read dwarf and noticed >>>>> it being triggered on inferiors compiled with -gdwarf >>>> I assume that you mean that stabs is the default when compiling with >>>> gcc. Is stabs still also the default format for XLC (IBM Open XL C/C++) ? >>> Yes, sorry, I meant gcc. The compile farm had versions 10 and 12, both >>> with the same behavior. >>> >>> I don't think the compile farm has XLC compilers available for testing, >>> or if they do I don't know how to use it, so I couldn't tell you... >> I think it'd be good to find out XLC's preferred debug format. If it >> uses/prefers DWARF, that'd be a good argument for gcc (on AIX) >> switching to DWARF for it's preferred format too. >> >> Kevin >> > I just looked over at the GCC releases, and the GCC12 changelog says the following: > > * *STABS:* Support for emitting the STABS debugging format is deprecated and will be removed in the next release. All ports now default to emit DWARF (version 2 or later) debugging info or are obsoleted. > > Since the default is supposed to have changed *in* gcc 12 - which is the version that AIX has - or the port be obsolete, it looks to me like that gcc on AIX is obsoleted... > > In other words, gcc already knows it should change but seems to have given up on AIX? Given this commit (present in gcc 11): https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=56b5d13e27891ed1caec07826a07bb2e0621f914 I would expect gcc 12 to produce DWARF by default, I'm not sure why you don't see that. Simon