From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KKNFC9h2e2ZJDQ4AWB0awg (envelope-from ) for ; Tue, 25 Jun 2024 22:03:04 -0400 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=i+/bUrMB; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 21D8E1E0C1; Tue, 25 Jun 2024 22:03:04 -0400 (EDT) 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 029581E092 for ; Tue, 25 Jun 2024 22:03:01 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 33FE23870C2D for ; Wed, 26 Jun 2024 02:03:01 +0000 (GMT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 16D5038708D6 for ; Wed, 26 Jun 2024 02:02:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 16D5038708D6 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 16D5038708D6 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719367341; cv=none; b=QRTbmA7hwljETSY2zj8hxBlNe1ZTaBH+G4bl38yH21cNLaRTKN9ZyW64OP12RujYyp5ieEGAOkk4jkSW3JXNR1aZPSh1wd+EoTn5qo9+USB4T5SBzv7BEoP2zRAya2iLyhmns3bepPHLzO+2nmWjzpJO7m+xxDm0Bauo4iaYf0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719367341; c=relaxed/simple; bh=R6uKsEAFTbYpKrw1zF9yk6Cmpy2jS8E5RndkFwMYrTI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Psm7GJoyT2OweM4kKOajHCAtIQiC71U1n7GV/eVtO0xNpfv0y/ETYF3ygPlIJLJ6sHhc7Vn1xP714uv8MWyn/496zlXug2tEi5npayaJ/E2LJaL7ewR7vwFKJ6lABOkT6YRbeAtSealPZd9UCPTr2Z1WmUgdvFBrn7iUPXj7aJw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1719367339; 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=arPJaw5qpRjx4Z8BS4o7S0OMyVd3Xlkue9Gd6XsXP9I=; b=i+/bUrMBxl5ICtj/ofsMFEMDS9V4MaG5pe6Yzv8nx72zfiHJz+Z67qmLsxUYQaWowFwMpZ Vxyx/v3LvsPB2TfuRqor63hAQQZHIJvBfc0RaTq34isA8/nFcAqI/5mdEjkmtp/1HgC1bB EoAOKKMC8ZavJmXsrmnMobLrv7Q25yk= Received: from mx-prod-mc-05.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-610-0gAJMTw9Mcesf9cJelAEVQ-1; Tue, 25 Jun 2024 22:02:16 -0400 X-MC-Unique: 0gAJMTw9Mcesf9cJelAEVQ-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 461AA19560BF; Wed, 26 Jun 2024 02:02:15 +0000 (UTC) Received: from f40-1.lan (unknown [10.22.16.241]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3345A1956087; Wed, 26 Jun 2024 02:02:14 +0000 (UTC) From: Kevin Buettner To: gdb-patches@sourceware.org Cc: Pedro Alves , Kevin Buettner Subject: [PATCH v4 0/4] Make linux checkpoints work with multiple inferiors Date: Tue, 25 Jun 2024 18:55:51 -0700 Message-ID: <20240626020148.68109-1-kevinb@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 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=-2.0 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, RCVD_IN_SBL_CSS, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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 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. The 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 had made a mistake during my own testing causing this to not be caught.) This v4 series addresses Pedro's concerns from his review of the v3 series. It also adds a NEWS entry and updates the GDB manual with regard to checkpoint identifiers. Kevin Buettner (4): Make linux checkpoints work with multiple inferiors Capitalize output of successful checkpoint command Print only process ptids from linux-fork.c Linux checkpoints: Update NEWS and gdb.texinfo regarding multiple inferiors gdb/NEWS | 2 + gdb/doc/gdb.texinfo | 23 +- gdb/linux-fork.c | 557 +++++++++----- gdb/linux-fork.h | 15 +- gdb/linux-nat.c | 18 +- gdb/testsuite/gdb.base/checkpoint.exp | 26 +- gdb/testsuite/gdb.base/kill-during-detach.exp | 2 +- gdb/testsuite/gdb.multi/checkpoint-multi.exp | 689 ++++++++++++++++++ 8 files changed, 1134 insertions(+), 198 deletions(-) create mode 100644 gdb/testsuite/gdb.multi/checkpoint-multi.exp -- 2.45.2