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 3028C3858D34 for ; Sun, 14 Apr 2024 03:27:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3028C3858D34 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 3028C3858D34 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=1713065274; cv=none; b=MyqO0KMMaBBecH/iyBxmN0plJKGhwmCoJMJ6w7XG1dQWb1HjNithXUhvQN3jJnbxPzoEQpaEFzcSdoyctHN5dCzeG+IETsK5QsEkAe/Tlaloug9tz44rSrCbw3iuS4pt1SDyaKmMZ3/zfD7aYN+E0jf+tLeMku2Gywk1pY6DHvo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713065274; c=relaxed/simple; bh=ehugE7mdO+ru3aIHpNVUczXwEQN5K3CbyVg1FgOcB0I=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=R7gVygkeO2yDHqTBkkft0a/KI8/me2FM0nsaLDNpaaxEtfrCD91MOl7ykJqXRw2ML7PAt6Zx0qgOB2NvaixPSqJcn4rBwOAFZoF3VOT3qGpjAZdRT0b3CGkMaWNy1K9mhZvuU0hoVX6UjxlRCQ8/sjUt/odr62iFiz466NosQM0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713065271; 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=2PWZhQ9MJQssDCQ4oynqQsTFZE+aqkTZ+hONER39TYM=; b=CCvu9F3rIOB544UWMalbLLKKnpqf2Av9njRhFBsm3WTMlZF+YUypnbTbfvStKj0pYt2qM2 dZrRFOcdqKbmqTAvXpMb+sQwzzIpcBVnN3fnZfPA9vnOQcdiN+FBbQLeBlchlOOjH8kMWq LM7gAScjofGIlyGHl86oz1ET2uzmELo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-681-0gSgC-vaNSWc0EKEILS1wQ-1; Sat, 13 Apr 2024 23:27:49 -0400 X-MC-Unique: 0gSgC-vaNSWc0EKEILS1wQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 6F2991887313; Sun, 14 Apr 2024 03:27:49 +0000 (UTC) Received: from f39-1.lan (unknown [10.22.16.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id E8399C13FA0; Sun, 14 Apr 2024 03:27:48 +0000 (UTC) From: Kevin Buettner To: gdb-patches@sourceware.org Cc: Pedro Alves , Kevin Buettner Subject: [PATCH v2 0/2] Make linux checkpoints work with multiple inferiors Date: Sat, 13 Apr 2024 20:24:25 -0700 Message-ID: <20240414032731.130266-1-kevinb@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 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.7 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 patch fixes a nit with the way that checkpoints are sometimes printed. This 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. Kevin Buettner (2): Make linux checkpoints work with multiple inferiors Make thread_db_target::pid_to_str checkpoint-aware gdb/linux-fork.c | 517 +++++++++----- 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.multi/checkpoint-multi.exp | 687 +++++++++++++++++++ 6 files changed, 1082 insertions(+), 187 deletions(-) create mode 100644 gdb/testsuite/gdb.multi/checkpoint-multi.exp -- 2.44.0