From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 4byfJxdl4GhVWB4AWB0awg (envelope-from ) for ; Fri, 03 Oct 2025 20:06:47 -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=REvICy9J; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9E18C1E04C; Fri, 03 Oct 2025 20:06:47 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no 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 5194E1E04C for ; Fri, 03 Oct 2025 20:06:47 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EE6EC3857B94 for ; Sat, 4 Oct 2025 00:06:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE6EC3857B94 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=REvICy9J Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id B27EA3858D33 for ; Sat, 4 Oct 2025 00:02:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B27EA3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine 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 B27EA3858D33 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=1759536171; cv=none; b=e0zDdZvipPgZSXXpie+GgnojpqnASDeLdncNsoAiqgH4xPttxp3k+qCmGqpJMnFy0H/iS0eKe4XPHwHlL4MEb/VlxgjP01tppeeV+tFHz3y36QKDIbft7sCEOEmolFUqnMIFiRl/D9KDZ0mYFhogoA32u2ZTNdIVpJyl+Q+K5Js= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759536171; c=relaxed/simple; bh=pNcjyMmOcf2IYoWEv/i0fivdH/oLgCPQykyKPuoEVAI=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=JUltS3ypt2iALFZmwIsWLIYT7wV+fOCmyt9uUaslGM1H1HVfNhvsO5TubZqK+MXZUnDL0k8OfpQFzJldei3JbObSPN3kvEvokqU7VgBPdHeXRnIWHsb8zDcLq7YjtgB2UAl/Ft7RVoiCad0gNYkz7grsDt8Ra+Itumf0eBpe2lc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B27EA3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1759536171; 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: in-reply-to:in-reply-to:references:references; bh=iQUoVbS9IdrAkH2KUiBFxtlZboyKaFzaHGDmL6qBfKg=; b=REvICy9JaIEESXI4tmnbuH4QzCxcQK6RxfH/q/jHx9fXUgp3G2O2CjhavLElbHkEOquOa2 nO3x4rA214ZOXadIGnmkdEW118rffJ7+Sy4g1nxbx7ctk9Zk0/DDw1vtsfV8sY/nuO0Y95 AT0xnT5jOshQa8spIQ+VULL/l6Fbizo= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-587-3XJDYZEjPAWsTAalp6M85A-1; Fri, 03 Oct 2025 20:02:50 -0400 X-MC-Unique: 3XJDYZEjPAWsTAalp6M85A-1 X-Mimecast-MFC-AGG-ID: 3XJDYZEjPAWsTAalp6M85A_1759536169 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4609A180048E; Sat, 4 Oct 2025 00:02:49 +0000 (UTC) Received: from f41-zbm-amd (unknown [10.22.64.96]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6B6951800578; Sat, 4 Oct 2025 00:02:48 +0000 (UTC) Date: Fri, 3 Oct 2025 17:02:45 -0700 From: Kevin Buettner To: =?ISO-8859-1?Q?S=E9bastien?= Darche Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] [gdb/testsuite] fix gdb.multi/checkpoint-multi.exp without symbols Message-ID: <20251003170245.66b31978@f41-zbm-amd> In-Reply-To: <20250930190130.1614990-1-sdarche@efficios.com> References: <20250930190130.1614990-1-sdarche@efficios.com> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: YIHwaVzjuUAhmONv1umlohHEJSXej9jz3b0X1SAaIP4_1759536169 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 On Tue, 30 Sep 2025 15:01:30 -0400 S=C3=A9bastien Darche wrote: > 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. >=20 > On most systems this works fine : >=20 > =09(gdb) info checkpoints > =09 Id Active Target Id Frame > =09* 1.0 y process 1546841 at 0x00007ffff7ceca7a, > =09 1.1 n process 1547177 at 0x00005555555551f0, file /home/sdarche= /binutils-gdb/build-x86/gdb/testsuite/../../../gdb/testsuite/gdb.multi/hell= o.c, line 51 > =09 2.0 y process 1547076 at 0x0000555555555243, file /home/sdarche= /binutils-gdb/build-x86/gdb/testsuite/../../../gdb/testsuite/gdb.multi/good= bye.c, line 46 > =09 2.1 n process 1547120 at 0x0000555555555285, file /home/sdarche= /binutils-gdb/build-x86/gdb/testsuite/../../../gdb/testsuite/gdb.multi/good= bye.c, line 61 >=20 > I have found however that the output from `info checkpoints` is > different on some systems with (stripped) versions of the libc without > debug infos : >=20 > =09(gdb) info checkpoints > =09 Id Active Target Id Frame > =09* 1.0 y process 979642 at 0x00007ffff7e49687 > =09 1.1 n process 979647 at 0x00005555555551ac, file /home/sdarche/= binutils-gdb/build/gdb/testsuite/../../../gdb/testsuite/gdb.multi/hello.c, = line 51 > =09 2.0 y process 979645 at 0x000055555555523b, file /home/sdarche/= binutils-gdb/build/gdb/testsuite/../../../gdb/testsuite/gdb.multi/goodbye.c= , line 46 > =09 2.1 n process 979646 at 0x0000555555555271, file /home/sdarche/= binutils-gdb/build/gdb/testsuite/../../../gdb/testsuite/gdb.multi/goodbye.c= , line 61 >=20 > 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. >=20 > This patch removes the comma from the regex that matches with the frame > number. The test now passes fine on the system. This is okay. Approved-by: Kevin Buettner