From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id L8ShAC8p3GjmGhoAWB0awg (envelope-from ) for ; Tue, 30 Sep 2025 15:02:07 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=efficios.com header.i=@efficios.com header.a=rsa-sha256 header.s=smtpout1 header.b=TkFlugLZ; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E38CB1E04C; Tue, 30 Sep 2025 15:02:06 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 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 68ACF1E04C for ; Tue, 30 Sep 2025 15:02:06 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 008CC3857BA0 for ; Tue, 30 Sep 2025 19:02:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 008CC3857BA0 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=efficios.com header.i=@efficios.com header.a=rsa-sha256 header.s=smtpout1 header.b=TkFlugLZ Received: from smtpout.efficios.com (smtpout.efficios.com [158.69.130.18]) by sourceware.org (Postfix) with ESMTPS id DD12F385734D for ; Tue, 30 Sep 2025 19:01:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DD12F385734D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DD12F385734D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.130.18 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759258892; cv=none; b=KRQQh5ZZuwKEqdCy4lQAOuFM7yYti7Y6KoqilOQEaTtn6FhPzxydGjtdU0cFHDtvLJJ0uqZPJtWXxNF1ayUVHiyPRPyyy4VWmSSE3od8Xgvh0hWBPCERAwh2t97LwtKU0Cvcm0I37ukDSq0+o1F5ARvmvRfkeEgQF2wh5bnAUkM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759258892; c=relaxed/simple; bh=sC2Aj3X1OgJ+JdxxuiosJwxngbzmJr4Qg83GlNxNpZ4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=IV9nP1uzG8C/HrqnLx7GmazuNE1S89kmbQj0CaEVhG+AfBvSgvSNAhX2OWreBVmtkHKEowJ7IPW5QDz1x9wiJjGdofQN36YlYyq6nPGFrkvlo+G7zBf2Zhi5ST2wSaWya7tZe9oTzadvj3V/YTYOZQhoakhOmyXc7lEm7z8N7G4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD12F385734D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1759258892; bh=likP+0obh/Es3juUvEqvCLBcgyr/s2voU/r71YhEnTs=; h=From:To:Cc:Subject:Date:From; b=TkFlugLZ8cgoGa6yLc9oWe/rubF+UY01+1M9XIRP327LBKlRJOKrAOf4VErAm2qPr ZZMauCBJbw2cMRnJsnyK6k2nXflRo91hu41oTbeR33EYS7hLv3t/gx516/v7LJb36K MaxC9bNWTDiOLi7yntoG0q7uZ958tkHvGk63BxXhRZwyUFJrSr198ELMqB+odCzcGk 0mve0FuwKtrEDW96e3+1McPlXdxiAkL19FXaicjLibTllTX13GSUuyHs0h7OgUsyvq Z+vzGpdqxWCj4I72XVS8QdI1BXzX/LllTsrWf77ODrcLxbnPBIGi4oObo++YKUA5+L DvZLa2x7p9tyg== Received: from smtpout01.internal.efficios.com (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4cbnTm460KzKf0 for ; Tue, 30 Sep 2025 15:01:32 -0400 (EDT) Received: from epycamd.internal.efficios.com (epycamd.internal.efficios.com [172.18.0.16]) by smtpout01.internal.efficios.com (Postfix) with ESMTP id 71CA62A046; Tue, 30 Sep 2025 15:01:32 -0400 (EDT) From: =?UTF-8?q?S=C3=A9bastien=20Darche?= To: gdb-patches@sourceware.org Cc: =?UTF-8?q?S=C3=A9bastien=20Darche?= Subject: [PATCH] [gdb/testsuite] fix gdb.multi/checkpoint-multi.exp without symbols Date: Tue, 30 Sep 2025 15:01:30 -0400 Message-ID: <20250930190130.1614990-1-sdarche@efficios.com> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The checkpoint-multi.exp test stops a program while it is sleeping using a call to the usleep() function from libc. The test checks whether the inferior is running by matching for "" (if the inferior is running) or a hex address followed by a function name, ideally, if the inferior is stopped. On most systems this works fine : (gdb) info checkpoints Id Active Target Id Frame * 1.0 y process 1546841 at 0x00007ffff7ceca7a, 1.1 n process 1547177 at 0x00005555555551f0, file /home/sdarche/binutils-gdb/build-x86/gdb/testsuite/../../../gdb/testsuite/gdb.multi/hello.c, line 51 2.0 y process 1547076 at 0x0000555555555243, file /home/sdarche/binutils-gdb/build-x86/gdb/testsuite/../../../gdb/testsuite/gdb.multi/goodbye.c, line 46 2.1 n process 1547120 at 0x0000555555555285, file /home/sdarche/binutils-gdb/build-x86/gdb/testsuite/../../../gdb/testsuite/gdb.multi/goodbye.c, line 61 I have found however that the output from `info checkpoints` is different on some systems with (stripped) versions of the libc without debug infos : (gdb) info checkpoints Id Active Target Id Frame * 1.0 y process 979642 at 0x00007ffff7e49687 1.1 n process 979647 at 0x00005555555551ac, file /home/sdarche/binutils-gdb/build/gdb/testsuite/../../../gdb/testsuite/gdb.multi/hello.c, line 51 2.0 y process 979645 at 0x000055555555523b, file /home/sdarche/binutils-gdb/build/gdb/testsuite/../../../gdb/testsuite/gdb.multi/goodbye.c, line 46 2.1 n process 979646 at 0x0000555555555271, file /home/sdarche/binutils-gdb/build/gdb/testsuite/../../../gdb/testsuite/gdb.multi/goodbye.c, line 61 Where the frame can be found, but GDB cannot find the function. This fails the last two tests in checkpoint-multi.exp on those system, even though the behaviour is as expected. This patch removes the comma from the regex that matches with the frame number. The test now passes fine on the system. Change-Id: Iced4931d77f647046c87889455264cb169f480ff --- gdb/testsuite/gdb.multi/checkpoint-multi.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.multi/checkpoint-multi.exp b/gdb/testsuite/gdb.multi/checkpoint-multi.exp index 8439b8dfbb4..54fd3ca9787 100644 --- a/gdb/testsuite/gdb.multi/checkpoint-multi.exp +++ b/gdb/testsuite/gdb.multi/checkpoint-multi.exp @@ -781,7 +781,7 @@ with_test_prefix "background execution" { gdb_test "info checkpoints" \ [multi_line \ "$checkpoints_header_re" \ - "\\* 1\\.0 y +$proc_re +at $::hex,.*" \ + "\\* 1\\.0 y +$proc_re +at $::hex.*" \ " 1\\.1 n +$proc_re +at $::hex, file.*?$hello_c.*?" \ " 2\\.0 y +$proc_re +at $::hex, file.*?$goodbye_c.*?" \ " 2\\.1 n +$proc_re +at $::hex, file.*?$goodbye_c.*?"] @@ -792,7 +792,7 @@ with_test_prefix "background execution" { gdb_test "info checkpoints" \ [multi_line \ "$checkpoints_header_re" \ - " 1\\.0 y +$proc_re +at $::hex,.*" \ + " 1\\.0 y +$proc_re +at $::hex.*" \ " 1\\.1 n +$proc_re +at $::hex, file.*?$hello_c.*?" \ " 2\\.0 n +$proc_re +at $::hex, file.*?$goodbye_c.*?" \ "\\* 2\\.1 y +$proc_re +at $::hex, file.*?$goodbye_c.*?"] -- 2.51.0