From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 7FCF13846403 for ; Sun, 14 Apr 2024 19:58:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7FCF13846403 Authentication-Results: sourceware.org; dmarc=pass (p=none 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 7FCF13846403 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713124711; cv=none; b=PxcI9/L5FwQqtA0hcmymPex9HaNNTERkUAdqTNc3heXn7y0weI+HLB3LGgp/CTkwdE3r7JYONSWFbSvcx+0N78SlQDzEZ25QEdaw9z5toAjjgxNAk2mN2UVRNGz65F3u/WIu7BCkWOLpiJYEQSOFVIVXNYDf7dJDfBgdeEvl7Eg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713124711; c=relaxed/simple; bh=tlDrxVQeb5tGwVaN+tUqEN1UDg9guqGfJT+dvglTKqk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=IvyCJjQbTjY5NqEgChsVF6rLilFoif7Xlc/kJLykcTCH11J2bS41N+HJ0gddVa+7dZhMsSSGrcHri0ba4dTZ4cPdZuYH+Zl/t+6FKXStiVLi3/O5CSvV61poVK5T/DzRISKmeltHJzvUsZJz0Q7SRqPlI9zNinrIYchi62zi8qA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713124706; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9gmyyEf8hhEELNklBPKGPYJyPjuuofJROUw8oQDSk6s=; b=BYswbjdXBDXOqmFv/RJdGnuZ/Oh+BlKCD2HBtfsvczVc52jrBgu3DsPZpqFqK9lfCec3DC 6g9o6966sqvgKJLzbs11g3CrzYeKAjJ5QV0A3k6+KdZmcb8YZ78QCNdobso8Il0skO0dtk a6eOxJU5GWW49ogC2jJtUaeb76Acp74= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-507-YNkBhStYOq2fRV4HioyqSg-1; Sun, 14 Apr 2024 15:58:23 -0400 X-MC-Unique: YNkBhStYOq2fRV4HioyqSg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id B1FCE3806736; Sun, 14 Apr 2024 19:58:22 +0000 (UTC) Received: from f39-1.lan (unknown [10.22.16.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 40EB251EF; Sun, 14 Apr 2024 19:58:22 +0000 (UTC) From: Kevin Buettner To: gdb-patches@sourceware.org Cc: Pedro Alves , Kevin Buettner Subject: [PATCH v3 0/3] Make linux checkpoints work with multiple inferiors Date: Sun, 14 Apr 2024 12:44:41 -0700 Message-ID: <20240414195812.151224-1-kevinb@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This series fixes some problems with the current checkpoint code. The first patch makes the checkpoint code inferior aware, fixing a number of bugs. The second and third patches are largely cosmetic - they make changes to checkpoint related output. The v2 series incorporates Pedro's suggestions regarding the numbering of checkpoint ids. See the first patch for details. The tests have been revised to account for these changes and new tests have been added as well. This v3 series splits out a cosmetic change from the first patch. It capitalizes the output of a successful checkpoint command. This was prompted by the Linaro regression tester, which, due to the capitalization change, found two regressions in gdb.base/kill-during-detach.exp. (I thought I was running this test during my own testing, but found that it was not being run due to a typo in the TESTS= portion of the "make check" line.) Kevin Buettner (3): Make linux checkpoints work with multiple inferiors Capitalize output of successful checkpoint command Make thread_db_target::pid_to_str checkpoint-aware gdb/linux-fork.c | 519 +++++++++---- gdb/linux-fork.h | 15 +- gdb/linux-nat.c | 20 +- gdb/linux-thread-db.c | 4 +- gdb/testsuite/gdb.base/checkpoint.exp | 26 +- gdb/testsuite/gdb.base/kill-during-detach.exp | 2 +- gdb/testsuite/gdb.multi/checkpoint-multi.exp | 687 ++++++++++++++++++ 7 files changed, 1084 insertions(+), 189 deletions(-) create mode 100644 gdb/testsuite/gdb.multi/checkpoint-multi.exp -- 2.44.0