From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2086.outbound.protection.outlook.com [40.107.22.86]) by sourceware.org (Postfix) with ESMTPS id 67C753858C60 for ; Wed, 7 Feb 2024 09:00:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 67C753858C60 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 67C753858C60 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.22.86 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1707296404; cv=pass; b=gx5n0sOAhV5kt1O6kZJiuvTpdjq/NC4Fl2g0dKeS3xvxYfFyJEb8cvZi2hwDzK8AenOuIwXRn/Fas6FGpn3iqK74AUcJg1AaKupOVLTarSqYXCK21ikGN77L4joHAh/8Cy4Z3cMil5muiHOzLhyKfBGHpltAMrYhnGERMdzt2lA= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1707296404; c=relaxed/simple; bh=DbDs44N+GE3QhLWwHO3/SGG78IvJthUR6bL0G1t2AO8=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=WDMXmqEWOMylY+TwmczXFjYxshBJsXzb8aeQtSfrHVc19NFEWAWqxsl7t8mHFIALFb+bQQQ5Es+E9O70sdqCFCKgnNMacaH6FpqXaivAFl1LgL0tAYcjWRCD+Wpqa7uNsxq2pbSldwDBal6/VgwViIqrbqOscVamEfoqLx1kujg= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=KECtuEnMjG4OOYy63lOa/UGijKjft7vgOoCZsCKdJVf7x6tH3mamFhAgEv0QPEm0Sb9LmklGLn8m+JAQua6NMaljvSoqhsZzVNArEIrFQ+pNxzj9NgQZJT3HYlWva2goCi/WBo5NLw4zpMe5AT9DWrg3izvnpwaBs486yB+KbP9BmtUVOa1EyzXwtH+LDIUxoxxKMxs1Z2DW0S0oZi0O5Za/W4wbwFvHDYKqE+snQPQowmBiAaWw4KZRn6j8dZk6TsSJL2L4ohlZi8PZq+8P+qYvOMRfVho1KaeruHDgUaGyUDofL7/co+rJmQiT7+YvjD2CyZXVFgnx38qx0ehpxQ== ARC-Message-Signature: i=2; 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=rmi0ZoW9BWO1SZ66QuCh6hJoUxY5WuFSr4qhrkCtJFY=; b=Xyj5T8SyJny9IoENssB/13vjzQArRL/WXZRjUOfuhj115ie7Nb+VugyocEv1vHE/72QKkcKd9d8sfm9PjEHj/YyBiNZMIDib+qXZIggYNAqmy7ZNrzA3v25ujGwrvbUChigsXi9s88KH7kpWZh7pWuxggbAYz43gZMBjT3V97M9esqZ3LZqdHEVgH5bqleLx7juzRyq2x7T5L1XgwgzhdJHSvzbSWZU9z8IY2u6y/SZHLi9uVwdkWmtPUcV71E8e2m2RZznczeXmwVCYTJ3nqlatsTCWx7EIIKRJUtCQnSVWq91XbI5CO942wJhwpbwYvTxZKep421Nho4TjPcp7oQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rmi0ZoW9BWO1SZ66QuCh6hJoUxY5WuFSr4qhrkCtJFY=; b=1ca4P3/+KF4GiSxs6A1z7rDJXkvZ/MRPCkQC888WHCGMVFXCNtyxa9pO4RPiMkyE0QF95Kl3Q9vcMHIRI3/NCMMJSuGJ+DPXaGh4J1okqaLHEvucZVnB0PenIhbsGbOsgqlp/WveWiZp0jYsK8jQva+ZQe5zDievfLMouUJar5s= Received: from DBBPR09CA0019.eurprd09.prod.outlook.com (2603:10a6:10:c0::31) by DB8PR08MB5530.eurprd08.prod.outlook.com (2603:10a6:10:11f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36; Wed, 7 Feb 2024 08:59:57 +0000 Received: from DB1PEPF000509F7.eurprd02.prod.outlook.com (2603:10a6:10:c0:cafe::a8) by DBBPR09CA0019.outlook.office365.com (2603:10a6:10:c0::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36 via Frontend Transport; Wed, 7 Feb 2024 08:59:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB1PEPF000509F7.mail.protection.outlook.com (10.167.242.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.19 via Frontend Transport; Wed, 7 Feb 2024 08:59:56 +0000 Received: ("Tessian outbound 94d82ba85b1d:v228"); Wed, 07 Feb 2024 08:59:56 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 57bfa83d9a487e67 X-CR-MTA-TID: 64aa7808 Received: from c5dd01248235.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 70A363A3-518B-4779-BD4B-1D8050AC7829.1; Wed, 07 Feb 2024 08:59:50 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c5dd01248235.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 07 Feb 2024 08:59:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dKiPSE1pvEaelRotfivUDzrfbBUnazFuIkOSw6n3ybXyGzvhx5+TAuo46TaINWVbmzmVPUNrvR+lzH3TqVrGa6iuwPqqWx1YWQbR6TZ0XjF6EXwjLsATRw7u9UGmiWUJe02MyT2pBa3xGits6GjNVVkEWIVPzTlb6kgfVGjYzPAumnIYSdea4n6aK0Tem9uDZUhbPoKEgQKQMTEQf+BCaz1Hc2PtAjGvvYZNCdi9DIEBhKuF2mUpxmJkSHmSi5PQsdN+EXhmXlPSdjTg8vQDrMQUTX9ZaZH5HBeU/SJo1a/WpHUuYLnLRDbdTX0w8U5U+2F19ZvKwIlM/CTDQeZ9+A== 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=rmi0ZoW9BWO1SZ66QuCh6hJoUxY5WuFSr4qhrkCtJFY=; b=XxFkb70LGQjHn5Bu8BdpDI3fWSepnONFkjHP2x8Zm7NVM73ANYP5rknJQDMsY2OjLTRDCdApxlnBgh/cW9gsSSECv5NdvpnUzu61uFPgHKta77mxZBfFIeg7G5pgT0EHVrnwitiVXtKeq6AWEtg7xeNttSEx2vEs464ezzffiC4LQqDUA+sDVf35PBzp6zMPVdg2yGpuy3yWEPY5Nvhfq7dL8YQxasONHtWot4DYDzFuL1KcvWkIOlvwnE7QpSTCzz26YHxNjY6aSZS6xllEQ6WdAX+fPrMYDTMWkYuWd1/keGhsRArhmlyx80X8j8zMX4gg1HVoNbioUT9GciWWSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rmi0ZoW9BWO1SZ66QuCh6hJoUxY5WuFSr4qhrkCtJFY=; b=1ca4P3/+KF4GiSxs6A1z7rDJXkvZ/MRPCkQC888WHCGMVFXCNtyxa9pO4RPiMkyE0QF95Kl3Q9vcMHIRI3/NCMMJSuGJ+DPXaGh4J1okqaLHEvucZVnB0PenIhbsGbOsgqlp/WveWiZp0jYsK8jQva+ZQe5zDievfLMouUJar5s= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by AM8PR08MB6625.eurprd08.prod.outlook.com (2603:10a6:20b:357::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.37; Wed, 7 Feb 2024 08:59:49 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::935e:b3a1:b0fd:99ac]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::935e:b3a1:b0fd:99ac%4]) with mapi id 15.20.7249.035; Wed, 7 Feb 2024 08:59:48 +0000 Message-ID: <2e61811c-ff0f-44d0-bf6f-e98a9de87c33@arm.com> Date: Wed, 7 Feb 2024 08:59:45 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [FYI/pushed v4 08/25] Thread options & clone events (Linux GDBserver) To: Tom Tromey Cc: Pedro Alves , gdb-patches@sourceware.org, Andrew Burgess References: <20231113150427.477431-1-pedro@palves.net> <20231113150427.477431-9-pedro@palves.net> <87eddpej3r.fsf@tromey.com> Content-Language: en-US From: Luis Machado In-Reply-To: <87eddpej3r.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0347.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:d::23) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|AM8PR08MB6625:EE_|DB1PEPF000509F7:EE_|DB8PR08MB5530:EE_ X-MS-Office365-Filtering-Correlation-Id: 8347329b-a195-42b0-c0b1-08dc27bb284d x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Lo3bvE4oQVpB9XZjmOWGLnvl3VAQA1kGEtptZj54wf6fL9hfhpi3tgu6+1Bl09PWzif7T7/a0GesZgJC5bsWZlibQO2k2XbxKGeouFBg06bf7EllwMmja4T5aCzeJn+OmCVsaeu595dolSpYzAzUQwQicw3Ri/9reaqAQ8i0Ug8UhFRo0/tMnanwfEodFe80w7wewAD1rVgvHR14tMdJzckn/fis1UPxSjJt4WosWS8TazVzDqWwqTcxEPu5ZEJp4JhTVei4IZ1za2gSVR42iWdpx4nSs7urQKSD/3i0zxJXqIeQXHt5Av8CHZanl5Q90pQMBpWvqSThmqrjgZALKpmcqM5BarBfilE3L3bGriUf1OHTwaOSQCx0vdcJ3qAfTXwKP9eUiIugKTP57UGp1kpnsna00JOuleeSuaDD09ppe6x5iiURWqiSGHkUZNoI9rdsG8qrS2+wmg8oBaOr/GfWOiGJQJkARaaIpIeZkmRTgIqZM8+Z1J/F34fSAU9tkJF69+XlAqOfw8iQTZEuRhgW5FBaLJKIc0hqpB6HNLbHsvuYV6+uZbbtgBbg+z53HdxetnWQDTMuzQP+VJ5Qj2LXKEq7C8noFqY1PW7skCrS+kFuSsm+ZIlFja79lf65lsQDChiITJQpTvV2THUAZQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB3919.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(396003)(136003)(346002)(39860400002)(366004)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(83380400001)(38100700002)(5660300002)(2906002)(4744005)(26005)(6506007)(6666004)(6486002)(478600001)(2616005)(53546011)(6512007)(8936002)(8676002)(4326008)(44832011)(66556008)(66476007)(54906003)(6916009)(316002)(66946007)(86362001)(31696002)(66899024)(36756003)(41300700001)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6625 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB1PEPF000509F7.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 31c4222c-0d48-4bab-0319-08dc27bb2327 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +q4iKO4IR+XjgPMkjhr57r3QGFavQ7x9omEtDK/2KfEKMGELf6x/HeYjQoxpmqjRnd0uSuejatxup6so45ABH0BYXQm36F3rnQ80SHIps0c51D0N8CmNPuWixKph5m9rBFCf3ySlmElkV6kxDVDTHSRKQZS6dgct6vlt9UEXhA/kNlgwwF/iVM7jS4XNLJZthnu1Lu59MxWl4m/7fFkE2c+3Z9j5mC4JnaJp3UI9+U1A83Mlv1Gy1xcQ65J9DIFKLkKu4LLbI+aovgp8V5svLUxgCS2FtpJrAl0HP0DCSTs/YGHIrW17qkTiBRXjfLFGYplFJ0wsQ9Aq8TlyB/IBY6fTqRp4mIrq0ccSe51dPq6DdipwZ0yoCmLE6j3GEd/yqs7EDJ4DAaSWXtuwP3gaABIxquh+Ir/QNQp3CoJe4tQfhyxdME9URmvC0qpHAEJZfoLYnkI8/ImZQeervq/k8Nh1Hwo1W59IZV1OCtudadamZTUO47QQCOOstPdLJMjv4/UGqaTjrubvJgwlux6bSoqcilaCQVO1p+H5WBd+wekVhhvWLA1xY5jfr7iomYK3Vjw1WnyRiONRtydODjMYQsvXm/NiDDwRXZMBVyOBblP6IzQt9OE5NCWrDrGKrJAFH7nqkIZCZQzmMP0PLK8DN5uz/oRc4LoPhmzLEbGzzl1Egx5UubowVPSBsfxWDqP+nNvZld46CXIfbbyTDgHCsWHNdfVp6uRncX5wniO2WtVwmX4L3F/eDEq8xD8Yrm1sZM4/Jkw7FFCj6lh9clSi/Q== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230031)(4636009)(39860400002)(346002)(396003)(376002)(136003)(230922051799003)(451199024)(1800799012)(82310400011)(64100799003)(186009)(36840700001)(40470700004)(46966006)(47076005)(41300700001)(66899024)(86362001)(6862004)(4326008)(8936002)(8676002)(44832011)(336012)(31696002)(4744005)(36756003)(478600001)(107886003)(2616005)(6486002)(6506007)(6512007)(6666004)(53546011)(5660300002)(26005)(70206006)(54906003)(316002)(70586007)(2906002)(83380400001)(40460700003)(40480700001)(356005)(36860700001)(81166007)(31686004)(82740400003)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2024 08:59:56.8319 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8347329b-a195-42b0-c0b1-08dc27bb284d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509F7.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5530 X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2/6/24 14:57, Tom Tromey wrote: >>>>>> "Luis" == Luis Machado writes: > > Luis> Tromey had pointed out, on IRC, gdbserver was crashing when > Luis> stepping over a fork on aarch64. I went to investigate it and > Luis> noticed the testsuite run for --target_board=native-gdbserver was > Luis> really bad in terms of FAIL's (over 700). This is Ubuntu 20.04. > > I didn't try this, but I do have a fix for the fork bug. > I'll send it in a few days, I hope. > > Tom I was checking this today. Turns out we're trying to locate the process PID of the process in this function, line 405: 402 struct aarch64_debug_reg_state * 403 aarch64_get_debug_reg_state (pid_t pid) 404 { 405 struct process_info *proc = find_process_pid (pid); 406 407 return &proc->priv->arch_private->debug_reg_state; 408 } But find_process_pid returns nullptr. I wonder if it is one of those cases where we have to deal with the tid rather than the pid. Does this look like the same case you were chasing?