From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id tYIDFo5sB2sVRD4AWB0awg (envelope-from ) for ; Wed, 25 Nov 2026 18:17:34 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BL8rx1UZ; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 45D101E166; Wed, 25 Nov 2026 18:17:34 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_SBL_CSS autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (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 E8AA91E023 for ; Wed, 25 Nov 2026 18:17:27 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5379442158F2 for ; Wed, 25 Nov 2026 23:17:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5379442158F2 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BL8rx1UZ Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 76E4046A12C8 for ; Wed, 25 Nov 2026 23:17:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 76E4046A12C8 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 76E4046A12C8 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795648621; cv=none; b=LtcujjyCsUnEHlzVVR9WmCgutxWVO2s5YdQkCHcFX3GEFeCXisIGRCV3jjltVUY/+2oXVIb5AFUvUL8E4mLSvVLovsGl+oKKWj8Vjbmi0Uts5QCtlVvMvU0ZedEp68CIUNrM8g0w/lRrvZod8p2CI+VglGmEiNXhZxNgHl8f0nw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795648621; c=relaxed/simple; bh=w14nJH4D9TIlcTDAxzo3i4I1VP2ryGJGDVaqfO+Gi5U=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=EV/9ylKZmgpXvlDoP6fVAu7y++s4jrLhoHLVWd9rHk/7rAtfb++ggQlMlgbA0J/RSA37M/YbcUTSOUCRHjRAT1edKqFFG0rDK9jXAscl+3aHnalEyhc4cyCSg+3ElkLCwY40W3a+bXCZXN5QyMgxt1M6HomcfYNRJto6X+sGj5s= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BL8rx1UZ DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76E4046A12C8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795648621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oX+Fbxx936iQX21p6QLc9D5vrogBtscjpZbBxxEWyhg=; b=BL8rx1UZJyec2Wsucbri2RxR6fLZaYauTGHkkeMQOJqp+R4gY8ydYIU4ybIK2ZMGhESA2H Mj2kp+oS5O4b0JQBkaLxoy6c/DHDdLty8x/zyWxYgy7l4wTfmb0QEFfPF4dnPtaYaTGrVl PN1Yd5+RhqPaKCRG6byPWjSAD0MOM4o= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-147-DIPL-OISPv-A8ptYjjECNQ-1; Wed, 25 Nov 2026 23:16:59 +0000 X-MC-Unique: DIPL-OISPv-A8ptYjjECNQ-1 X-Mimecast-MFC-AGG-ID: DIPL-OISPv-A8ptYjjECNQ_1795648618 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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 mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4615E192DD63 for ; Wed, 25 Nov 2026 23:16:58 +0000 (UTC) Received: from [100.90.172.125] (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D2B773001DBD; Wed, 25 Nov 2026 23:16:56 +0000 (UTC) Message-ID: Date: Wed, 25 Nov 2026 16:16:54 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] gdb/record: remove PC member from record_full_instruction To: Guinevere Larsen , gdb-patches@sourceware.org References: <20261125192807.1153538-1-guinevere@redhat.com> From: Kevin Buettner In-Reply-To: <20261125192807.1153538-1-guinevere@redhat.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: lu1dZKcuPGrKI2FI9WMVnzuO4C4T5Pn82BMVqbRs75I_1795648618 X-Mimecast-Originator: redhat.com Content-Language: en-US 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 11/25/26 12:28 PM, Guinevere Larsen wrote: > The recent commit "4d0a9f412df gdb/record: extract the PC to > record_full_instruction" caused a regression on s390x, because the > recorded register is PSWA, whereas according to gdbarch the PC is a > pseudoregister. This was reported as PR record/34937. > > I tried to make s390 record the gdbarch version, but still got > hundreds of regressions in the sigall tests. I then tried to make > record ignore the PC member if the length was 0, but that caused > problems in the precsave functionality, as we were writing 0 bytes but > reading more than 0 as the reading GDB assumed the regnum of 0 was > valid. > > Considering the original motivation for that patch is a micro > optimization (a reg_entry is smaller than a generic entry, and the > vector is smaller) and improvement for a possible future fix of PR > record/18059, it doesn't seem worth it to keep this speculatively. > > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34937 I ran this through my AI patch review workflow. While it wasn't able to test on s390x, it did spot a minor problem - the lack of a version number bump for the record-save file layout. A NEWS file line mentioning this would probably be a good idea. (You should seek approval for the NEWS entry from Eli.) With the magic number bump, the coding parts of this change are approved. Approved-By: Kevin Buettner