From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2050.outbound.protection.outlook.com [40.107.21.50]) by sourceware.org (Postfix) with ESMTPS id 8B5F43857B98 for ; Fri, 3 Feb 2023 11:22:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8B5F43857B98 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=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=6jZf315pJ31s/97S2/Av/5i1CvTYEs68Ffie5P1DJ2A=; b=lTZEJxAoOrf2gBYzOiiD+mJmNj748aPBJYx4tct2mFfb1wcmyWhb9JGB2kwM/wmD1voZd+cOBJbpcyYnbAK/7dNt+Y/+mxRPSNasyZbeTyMEIlVJo0VH5424sG4EDFfi1R8EedAjb98to1Z91KSXqY52R6fd7OGqhB9tx8xabbQ= Received: from DUZPR01CA0235.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b5::19) by AS4PR08MB7656.eurprd08.prod.outlook.com (2603:10a6:20b:4f2::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22; Fri, 3 Feb 2023 11:22:51 +0000 Received: from DBAEUR03FT014.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4b5:cafe::ea) by DUZPR01CA0235.outlook.office365.com (2603:10a6:10:4b5::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.28 via Frontend Transport; Fri, 3 Feb 2023 11:22:51 +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 DBAEUR03FT014.mail.protection.outlook.com (100.127.143.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.28 via Frontend Transport; Fri, 3 Feb 2023 11:22:51 +0000 Received: ("Tessian outbound b1d3ffe56e73:v132"); Fri, 03 Feb 2023 11:22:51 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e5d180956350aa44 X-CR-MTA-TID: 64aa7808 Received: from 315ebad9112d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B1C3DCF6-D45C-49D9-BFF6-E64818769FC0.1; Fri, 03 Feb 2023 11:22:44 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 315ebad9112d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 03 Feb 2023 11:22:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hJ8byyF3c5wyAbJNlvUJSiVK58iZevAz9udVHiTRyOZSAy7O4OIOCRZNTyGt7FVS7TJdnorRW9E2IAwMqVmMVq2ogsvQTC9IxRQvIYNXsuAd4TmR5sEZqmLsKag4MQJCyU0MaZOAR+Ttpn4uaVN7uNmyu1ke6X09ZSlL4VyrTIessDW3vFHixD2DLVIyCHdSw5nNs2IFuRektIeFf67b/SVVBozfXox55IeLTKnI1hBlGPtLI5b7LHZ7RKMJZRhAtPQfQYFgvFNoXN9i1WsaP9XbZ8J5LrZb/ejScqP5pGG60UXZVMeFHDhlF4AcWKuxUvoFULsfZHLq47+FR5Db8A== 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=6jZf315pJ31s/97S2/Av/5i1CvTYEs68Ffie5P1DJ2A=; b=cbs+/4artmDn4EnLhUZfoc2x7PUH66+hGtddWOTQT8wFddD3NuYBXe/4EWoeetXTS0WLIx0rQAVB3rTmMeMGq3tj6vELVZYE+D7Y6ly0V4qU2jhzOVaRmEAJ8E77PD4HbByrYaPUpYXJL8sSB6oqTLCRf0PRFckeOP9y4MkBjdXx8yuPO+voQ3611Aykflg5vg1K8EOoC2Dgbtv18fLHLefr8vz8mNs9xChp+ZFUM/gTxjDQBZQXO8AQRYTj+ntIajqzyVpm8GKPS1h6koG9oLJjaeJAPjO2bg2hFjOr7iSyTRpQvy4FVP3psLtnKjAY0s52tW7GYoI3TXlHtJgsyQ== 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=6jZf315pJ31s/97S2/Av/5i1CvTYEs68Ffie5P1DJ2A=; b=lTZEJxAoOrf2gBYzOiiD+mJmNj748aPBJYx4tct2mFfb1wcmyWhb9JGB2kwM/wmD1voZd+cOBJbpcyYnbAK/7dNt+Y/+mxRPSNasyZbeTyMEIlVJo0VH5424sG4EDFfi1R8EedAjb98to1Z91KSXqY52R6fd7OGqhB9tx8xabbQ= 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 DB9PR08MB8675.eurprd08.prod.outlook.com (2603:10a6:10:3d1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.23; Fri, 3 Feb 2023 11:22:42 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::bced:32a3:b77e:90a6]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::bced:32a3:b77e:90a6%3]) with mapi id 15.20.6064.028; Fri, 3 Feb 2023 11:22:42 +0000 Message-ID: <00ce7adf-90fa-d478-77b5-73693ffc2a01@arm.com> Date: Fri, 3 Feb 2023 11:22:39 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v3 5/8] gdbserver: Transmit target description ID in thread list and stop reply Content-Language: en-US To: Simon Marchi , Andrew Burgess , Thiago Jung Bauermann via Gdb-patches Cc: Thiago Jung Bauermann , Simon Marchi References: <20230130044518.3322695-1-thiago.bauermann@linaro.org> <20230130044518.3322695-6-thiago.bauermann@linaro.org> <87bkmdtp4n.fsf@redhat.com> <502f0bd0-9b18-9a31-0094-7a9bd4778bd2@simark.ca> From: Luis Machado In-Reply-To: <502f0bd0-9b18-9a31-0094-7a9bd4778bd2@simark.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LNXP123CA0017.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:d2::29) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|DB9PR08MB8675:EE_|DBAEUR03FT014:EE_|AS4PR08MB7656:EE_ X-MS-Office365-Filtering-Correlation-Id: d11bee21-d376-4718-30a8-08db05d8fcbb 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: 05dkSAC8hXIb1h1g4XNEbNAOanhMOxo+lBPgj80Ng5LPxzlDYnw/dpd7WlT4nvCdtI9dDzMR3yahlswkHRW3lj1dm5niT26RVlIyehCkowGLKd7+XqTAOmsD8E/K8LNnCPh65vZI6YratfkaXzVMSFLTVW6GVmQnlraYaRpSZtEt/Cao2EG+JTHD6ihGxm7Y0Z1ksLHZeKPUwlV5npaVvTUqI/ZrkLzk/rJKxbHP9e/wBbaGi0QVFfYYKXvGuqeDdM6on7QErfzSrsMo7SETH7YlwTkpjJz7UeD2LwT0nGRb8u1l/IhywnNpFxhaG6se0YNFbM3DrLn5SEf5Y7C+v4N+fbURblDJFdhDO7KhSD3hH8BJO/IAWUvFzHfN0GuEm7Jz9p1pxcCWzS6o50Ho637W8s7wfMNdH9a1XCVvq7ngCzZ26wL8QYJvtiUcVpvpRfjUPuxACItmIrUiPGw6/auwOgFg0ucWwjTkpzQvSDaaiwRm5bxIENSevuQw0glbVDASeOtXZ33/x02Ja7jyBMmWscONjB4HH9e8a+nfmg2Nil7OWmpyHQBuW7ZkywqgUZw21c5g+ge0suoJnDz/xk5EXnAUC6WZxJNcQwpejwVhpLhMrOvkn+o2MLCiAshcLgLYCoCo3Cjj0tXAlYMCL81u8/QhMzXqXSYDqeDPZRwtBJZQBDPX+4eBUo7AkccBA1tsMhiTkDJK8bveXfFlWC/X4U6avMprGDVL4zJNCT8= 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:(13230025)(4636009)(376002)(136003)(366004)(39860400002)(346002)(396003)(451199018)(31686004)(2906002)(110136005)(53546011)(26005)(6506007)(44832011)(41300700001)(86362001)(316002)(31696002)(6486002)(5660300002)(4326008)(8936002)(54906003)(478600001)(8676002)(36756003)(6666004)(186003)(66946007)(38100700002)(6512007)(66556008)(2616005)(66476007)(83380400001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8675 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: DBAEUR03FT014.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 9a0964de-5ed4-43f0-3b0e-08db05d8f6b8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R48FHlrbjLzU13yBXytilZKbVzfn3p8yObG35K0b/6qVizcfOnB3FFBpoUQl2ahNplTDxgqGYKJY+U5r2g+99jhkuCqUYSGQRF3dqkuB7MLgzXFg7rkl3TdQfa3Zzn+4jQsyaKZz26k+Sr94ClrPwHvhjuzFXA5z77/kU5fOS96pfqTq8dyp0E+CAVZ6o86ePR2VNxlxXiHonrNaNCq91MkOhVblfll8uA2zalnW2R26b6K3wAtlpIpKO6d2FxXnyVVRjSo5g8zFGD5PFQIWSn1eNk3pNjJO8CPunm28bSTvScKH5/lIcnURj13SxMUmPTVJ1cMSPsTIVO8zmVarBXK738XJjp+YQs9Pa5CbYc+0i3kHtMRpQIKjD0WiBMCfR7fFiwS5UCCW25FTToVqkFL9feprXfwkHHQ2sA6Ho/LpCgsjYq7bOBhp5OdrMY2ome1l2UUTcHeOJb+wsNIOR36ba6MqwlGrDgZVHc3xNKYvtqzeGvHsJBfo/TYoUhVZ3D033fXbnQH4WLslc+2OZRWE4nta2EB+pYJ+dHWXhS6BGfqHWxlzQCThDRxj0w0Uj1YYywTUamsdhns+Y6n2zmWctXzLci8MauGzFY19jPCxl48LTlIqIMMUD3pvN669WyG+uupdVb790l0ZWOHsENplt5R5vl/HJlzuRYSyqYh57dlo/VixgT2YdkSb6Ufx0NsR8y1lZhgSXk1jk1hjgD2MWXw8DlOtwNCwxkmSF9U= 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:(13230025)(4636009)(346002)(136003)(396003)(39860400002)(376002)(451199018)(36840700001)(40470700004)(46966006)(36860700001)(41300700001)(44832011)(4326008)(8676002)(70586007)(70206006)(82740400003)(31696002)(356005)(82310400005)(36756003)(86362001)(8936002)(2906002)(81166007)(40480700001)(5660300002)(40460700003)(336012)(478600001)(2616005)(6486002)(53546011)(6512007)(26005)(186003)(54906003)(110136005)(6666004)(107886003)(31686004)(6506007)(316002)(47076005)(83380400001)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2023 11:22:51.4258 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d11bee21-d376-4718-30a8-08db05d8fcbb 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: DBAEUR03FT014.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7656 X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,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/1/23 17:03, Simon Marchi via Gdb-patches wrote: > >> Having read some of the later patches, I have some additional thoughts >> here: >> >> I think we should make it explicit here that IDs are connection wide, >> not per-process. We should also make it clear that GDB might[1] cache >> target descriptions per remote connection, and so a remote target should >> not reuse a target description ID except where the target description is >> identical. >> >> [1] I say "GDB might" here because if we say "GDB will" then this would >> imply each target description will only be asked for once. And I >> figure, why be overly restrictive. > > Thanks for pointing this out, I had the same thought while reading the > patch. > > In my original idea, I imagined that target description IDs could be > some hashes computed from the XML content (a bit like git hashes or ELF > build IDs), such that a given target description would always have the > same ID. This would give clients the possibility to cache target > descriptions locally, a bit like the index cache. It did sound nice, > but perhaps it's not really important. Are you considering an encoded block of data that gdbserver sends to gdb, which in turn unpacks it on its end and use it to compute a target description? Something along the lines of gdb/arch/aarch64.h:"struct aarch64_features" and how we encode features through bits? > > Simon