From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2085.outbound.protection.outlook.com [40.107.93.85]) by sourceware.org (Postfix) with ESMTPS id 0F295382F9B0 for ; Fri, 7 Oct 2022 14:21:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0F295382F9B0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jnatxg43z83r3HwWC6kFBVRRmqeDkxQ1tKbZZZNq+lG69AQjSnsreNi/ZtNrxd6VzEiLW03G0Y62RYJy4p6fqAdXCctZNFxRpjH43Wr39EKvzavSA9RIkCgL61sVnOqLMUiVto+sDARzz3f/sIaE2ZB2IN/jUrnGHMBb+n6DT6Xoe/+Y2qYXdK1SezXrjk+H0rmQcHP/5M8CxfX3IGQyur1mgOfkAzFUDlrVasuzF0sITC9WBaXLgU30T/qq16ekPs5gsjI43DK8+vXIAlwNMo6fSl47VhjTeCNlv2lC+q8OJ6XRgpkcI5EYubcjkZ+LdAWYRJClkf+D7KNgf57qNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0G13bGj3wrS5XwCGWH05HSH6UG5XvT/2x3xETvV1pzU=; b=LGa9HNj8vVauMB0zuhArKioEjlqXkZnoh1pwtbjNB/OPORm7k3Z7admG42kditxCZ9cv+bZGE7LowkeVZ80n+i9MhMn9OqbCJufyWZidXRKUNcecH/J+vW/XOIWxYs1Xx9vqUy3iHhljJFY+ikqrmgIaoHlFsSFbjFJgaiMSNecHQBGyU+kkFtU8u9oui383eaaqB93rRbYgCSeLSzLIbXOU0WbVzbW+bSV7yBmlFXEl1l1RS0y5ZV5RxTAL7qBA4u8BjdMpVjtuKgOoEf30eI0z2PDy2hhZ7mIgKMdpvI6RHw0KjaIr1k/1JadwERBM8J3L9+ZzGCD6S4SsHkZHEQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none Received: from DS7PR05CA0064.namprd05.prod.outlook.com (2603:10b6:8:57::26) by DM4PR12MB5748.namprd12.prod.outlook.com (2603:10b6:8:5f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.36; Fri, 7 Oct 2022 14:21:22 +0000 Received: from DM6NAM11FT027.eop-nam11.prod.protection.outlook.com (2603:10b6:8:57:cafe::a3) by DS7PR05CA0064.outlook.office365.com (2603:10b6:8:57::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.10 via Frontend Transport; Fri, 7 Oct 2022 14:21:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT027.mail.protection.outlook.com (10.13.172.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5709.10 via Frontend Transport; Fri, 7 Oct 2022 14:21:22 +0000 Received: from khazad-dum.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 7 Oct 2022 09:21:21 -0500 From: Lancelot SIX To: CC: , Lancelot SIX Subject: [PATCH] gdb/testsuite: fix gdb.threads/linux-dp.exp regex Date: Fri, 7 Oct 2022 15:21:04 +0100 Message-ID: <20221007142104.261240-1-lancelot.six@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT027:EE_|DM4PR12MB5748:EE_ X-MS-Office365-Filtering-Correlation-Id: ffaca845-db86-4794-fec7-08daa86f360d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UCvsq9HKrF0xi1cUajQBMgqx7gsKQaCVWAwLOzXgwSI/uE4jh9RT8UFkfmdZcf3BtToxDSIHIAwqjFKw4wXC09nNDP6FjwjNowPmcYpRmBaxzwh8n5N+2OEe+u9OdSt4dSGK3IIPVJbUBSyg2DcRmBiBId73fHi07x4uXiBWYky3gCvaHK+gHaBPl0da36a3PiDHUgdtoiHpJt/e8FBuzS69ETm6ojWXDsdVt2xqUHHTYn7su2D5RS1stev5bltg3qOCx0xFdfUSIWuE9XTZBQ4fPqssOnT0dBa3bqR2MxGVH+KSahGpD7ABakB9MkmhHU0azNWCUjv4dVEJgYS0G+SnRdsxEGSh84hH09vuadVJ/WvqlDBZxVKqG5IhF1O76ikgV36vimQtLZuF3Nivq+BtUBRs7dFf5XYu1SC0lZ3eQU5soK/yuINsiJjS6H6gxmNg6P1EiLLMyYsSApdekcYS9AxTJ31+ZCzFFZcUwgAO9F7tjj1gWQ0+3+UeAOki1jcKQiIPuxn9nkK9eKDzn+Px2+uYv6aC2opUf4XREW/JFz3uUpsMdDHHBe+iPpkcebZSdGbx87fYnS/Q4N0xuZUNvWUWU/2avClVcy/veCVT/Z7jG8uQd3DId/8afIYyqUJjJD6wlRiLPmA2R8lRXPRCzGCV8h5ewTEBP/NpytNAwYl+qaixH4VPabr4fbcBmDWPXWRW+P70MygBYhHBZdiTYaHJl/yB5Lcd5/3Rx+k9qbcfAxJSwxhJ7pcynEE6WwXVZKGSZRBY9F3Ce5L8mGCF8aP1j4WqIcoBspzFgj+dZyuWSagBfRFOkUU279S99cIIg8s7pBPi5JusDAOHTw== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(396003)(376002)(346002)(136003)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(36756003)(6916009)(84970400001)(86362001)(2616005)(36860700001)(82310400005)(16526019)(186003)(83380400001)(81166007)(82740400003)(356005)(47076005)(336012)(5660300002)(1076003)(7696005)(26005)(6666004)(426003)(316002)(54906003)(4326008)(478600001)(8676002)(70586007)(70206006)(8936002)(2906002)(40460700003)(40480700001)(41300700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2022 14:21:22.6975 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ffaca845-db86-4794-fec7-08daa86f360d X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT027.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5748 X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2022 14:21:29 -0000 On ubuntu 22.04 with debug the libc6-dbg package installed, I have the following failure: where #0 print_philosopher (n=3, left=33 '!', right=33 '!') at .../gdb/testsuite/gdb.threads/linux-dp.c:105 #1 0x000055555555576a in philosopher (data=0x55555555937c) at .../gdb/testsuite/gdb.threads/linux-dp.c:148 #2 0x00007ffff7e11b43 in start_thread (arg=) at ./nptl/pthread_create.c:442 #3 0x00007ffff7ea3a00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 (gdb) FAIL: gdb.threads/linux-dp.exp: first thread-specific breakpoint hit The regex for this test accounts for different situations (with / without debug symbol) but assumes that if debug info is present the backtrace shows execution under pthread_create. However, for the implementation under test, we are under start_thread. Update the regex to accept start_thread. Tested on Ubuntu-22.04 x86_64 with and without libc6-dbg debug symbols available. Change-Id: I1e1536279890bca2cd07f038e026b41e46af44e0 --- gdb/testsuite/gdb.threads/linux-dp.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.threads/linux-dp.exp b/gdb/testsuite/gdb.threads/linux-dp.exp index 0805aa06664..953e6a9756b 100644 --- a/gdb/testsuite/gdb.threads/linux-dp.exp +++ b/gdb/testsuite/gdb.threads/linux-dp.exp @@ -226,7 +226,7 @@ gdb_continue_to_breakpoint "thread 5's print" # If you do have debug info, the output obviously depends more on the # exact library in use; under NPTL, you get: # #2 0x0012b7fc in start_thread (arg=0x21) at pthread_create.c:264 -gdb_test "where" "print_philosopher.*philosopher.* \(from .*libpthread\|at pthread_create\|in pthread_create|from .*libc\\.\).*" \ +gdb_test "where" "print_philosopher.*philosopher.* \(from .*libpthread\|at pthread_create\|in pthread_create\|in start_thread\|from .*libc\\.\).*" \ "first thread-specific breakpoint hit" # Make sure it's catching the right thread. Try hitting the base-commit: ea4e4a19b7f6c192c307b5a37c67d141f3aea074 -- 2.34.1