From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by sourceware.org (Postfix) with ESMTP id 15AC63945062 for ; Tue, 14 Apr 2020 17:54:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 15AC63945062 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-19-Fhmjqh-nMJmiVv1kaN3DRg-1; Tue, 14 Apr 2020 13:54:51 -0400 X-MC-Unique: Fhmjqh-nMJmiVv1kaN3DRg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5BF07801A0E for ; Tue, 14 Apr 2020 17:54:50 +0000 (UTC) Received: from cascais.Home (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id EBB1F9F9AC for ; Tue, 14 Apr 2020 17:54:49 +0000 (UTC) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 19/28] Don't write to inferior_ptid in btrace_fetch Date: Tue, 14 Apr 2020 18:54:25 +0100 Message-Id: <20200414175434.8047-20-palves@redhat.com> In-Reply-To: <20200414175434.8047-1-palves@redhat.com> References: <20200414175434.8047-1-palves@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-29.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Tue, 14 Apr 2020 17:54:54 -0000 AFAICT, this isn't required nowadays. gdb/ChangeLog: yyyy-mm-dd Pedro Alves =09* btrace.c (btrace_fetch): Don't save/restore inferior_ptid. --- gdb/btrace.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gdb/btrace.c b/gdb/btrace.c index bbf8749649..889507bfd2 100644 --- a/gdb/btrace.c +++ b/gdb/btrace.c @@ -1908,12 +1908,6 @@ btrace_fetch (struct thread_info *tp, const struct b= trace_cpu *cpu) if (btinfo->replay !=3D NULL) return; =20 - /* With CLI usage, TP->PTID always equals INFERIOR_PTID here. Now that = we - can store a gdb.Record object in Python referring to a different thre= ad - than the current one, temporarily set INFERIOR_PTID. */ - scoped_restore save_inferior_ptid =3D make_scoped_restore (&inferior_pti= d); - inferior_ptid =3D tp->ptid; - /* We should not be called on running or exited threads. */ gdb_assert (can_access_registers_thread (tp)); =20 --=20 2.14.5