From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70057.outbound.protection.outlook.com [40.107.7.57]) by sourceware.org (Postfix) with ESMTPS id C5AE83858292 for ; Fri, 17 Jun 2022 10:41:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C5AE83858292 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Fsf4TF8PvUHJRoLezdJg7MYwToOzxJLsAJv4i7rA7KCtml0TfSbmNaLioJCUuWo3sbupoQ3aw72Dh6IdAlVhfpBCtG9eter8uZSUdD00KBVqcejg7NSfARHO5csc7a1zdjD/7TPmpfSdZDbWSZm7PVwPP2osd0pRER8B8y/XmQxVqQM+6AMX+ya6Eg3E1d+px132mSQ+jTgcipITfaXpntfkZYZ27H8JZOomlf7LlPOHlF97p1wVdTzEzqLV3qhZzxDut39YAHvfPCRKqWhyJoJZAGNXR6r3yTPfZr1sZ25UA1MmhEl2Biwx0xOcHoeOW4UyhJGlEfOl3543xixi+w== 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=VNw5tVsg3aM0n6na3ck0EgEPL1YIgx4zM8C6qynoEvM=; b=Fqpqlw5o4llwJZeYSYIDVC4fOwlo580LvWPTeRsW+ZbllT0mhRRjS+qsTb6xLEEPs/Kw8EEsUnGE0lPEAjnxOh3aSpQDccV3KBgesPwnKHP5l7u3li72txR2+psvvFfIvPDLGpo0HmTm6suvBKizN4yWD1wuKNGdDwLQI0loSebAoP0McLzRwgKPwUY1X+SvQi4NCcR5IvRwQcZ0/MQdQeE+P/zH3vqAamE/KP4YOsehqacXFlLe/7EXbRI5rtf01TY96DbSB9vmM3awtxTdS7DIhf1LgEen5rKcKjmge3kLVSsmzA5u+mtT5Z84FdKWHZcNbdXw6uHh7EBj01yMJQ== 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]) Received: from DB6P192CA0010.EURP192.PROD.OUTLOOK.COM (2603:10a6:4:b8::20) by VI1PR0802MB2398.eurprd08.prod.outlook.com (2603:10a6:800:af::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Fri, 17 Jun 2022 10:40:58 +0000 Received: from DBAEUR03FT023.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:b8:cafe::dd) by DB6P192CA0010.outlook.office365.com (2603:10a6:4:b8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14 via Frontend Transport; Fri, 17 Jun 2022 10:40:58 +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 DBAEUR03FT023.mail.protection.outlook.com (100.127.142.253) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14 via Frontend Transport; Fri, 17 Jun 2022 10:40:58 +0000 Received: ("Tessian outbound 5b5a41c043d3:v120"); Fri, 17 Jun 2022 10:40:58 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3cc89c17ac7c3eee X-CR-MTA-TID: 64aa7808 Received: from 8dff5c198cb3.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 661CABA8-2F07-4863-8FC3-69A80F968D5A.1; Fri, 17 Jun 2022 10:40:50 +0000 Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 8dff5c198cb3.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 17 Jun 2022 10:40:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NoMGRL36YrJj2sBdWPiLCp5+/G1ZtbGVvJnlGrhg70w2/8nuifhf/mdmoUuz25M2x+tTSFKo4SpanTbwuA1xhkHj9aPYm0f5OdMZUcthJHcxuEXDjRdWCGiLSe0nBBwX47KWGW+8rSSlT0WhkwQv5sfEKTIqYB98sTXceLK1XGYcDkEnxKkVH89jw5t7i9JchIARWScL9Tfmg4udmxgBntq0JbUXFEAhkFoboG1RGYLeITldYiiDqB/JWL6QgIt9zniwZog3rJE3avxd4TtWhAuMXI0n0NpPybY7JTAot1LQv+YfKMbWlSrkDmF7XcrKJ85yu6/nYuubHicwb9xaUg== 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=VNw5tVsg3aM0n6na3ck0EgEPL1YIgx4zM8C6qynoEvM=; b=eNABDnbuemO4cEKMsaEU+OtPA16He4Jb7bgG15wUHuDyT8D9diFU9ySJpF+yTEptV/pLuOWhtIP7sA2zoJ6NcKDOJvM5bTT2Mee4VtYC0sPiA89192s1Zquyww6gBEMySkMpSslGIFAnHkPKSrbmqVQZMVhtSTnm1TgHbjdsqvHAJ+DkZ8Pw7q/jd5K96HusNos935cOjSF/0oXO+hd07j/8+GrfKmZ6jw6ANVzcka8k+AJGcaES/+pu0RtWnUtj6TLNWuYOZdv2Fbv499wjRpp2imTvBNgJ0liN5gEHamS1Vw7qVpDzl8nsqS0vNgmPuFFGwiECQNKnkIPTyoue4w== 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 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 AM5PR0801MB1745.eurprd08.prod.outlook.com (2603:10a6:203:3a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Fri, 17 Jun 2022 10:40:48 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::1cda:8ca1:6353:572c]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::1cda:8ca1:6353:572c%4]) with mapi id 15.20.5353.016; Fri, 17 Jun 2022 10:40:48 +0000 Message-ID: <377d7fb9-445b-12d0-62f6-8c43c254bec8@arm.com> Date: Fri, 17 Jun 2022 11:40:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Some question about gdb unknown memory Content-Language: en-US To: joe jo , "gdb@sourceware.org" References: From: Luis Machado In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SN4PR0701CA0031.namprd07.prod.outlook.com (2603:10b6:803:2d::34) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 7f79aee9-1ee5-41cf-cc05-08da504ddd3f X-MS-TrafficTypeDiagnostic: AM5PR0801MB1745:EE_|DBAEUR03FT023:EE_|VI1PR0802MB2398:EE_ X-Microsoft-Antispam-PRVS: 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: MB/fY1giz8ZsxvSW/7S9EMTwQeq4xW18ftzaOR/ypM9y2EvdhCke2j2h9Dd1YToOZdekJU64j2xScsqFvl9n9lqWPG9vmkzv6cVWAcWhoG0Mls1gQDimTarILCaqYSXpUIN5j4hfXO1KMoq579XouPORUWIzSbVxctfU5c2UNfGSdXmUOBotzzdp5mZiNyQ6EUUsmQKpJLroaudZBbShb6LpLEdxo1R9iav0/eUKjoF7a+MBchn1fgFH0tlXwVLHX8J03bbND8oZFCgiRyv7nG8K5WWVVOEjNe1Vt8pindx7RkCHC0VQmj9/Zsi7rJmySG1/OEV/i6WzXGfXItoz5L92d4f2nfv5BqWuSEvwEbw6ygbcTKMy9yRlB3Kv8CeMb3CWEFqSoH+1cmmVyymIoaURQnwWrXjRee2vE7T2JfmwJRETnQfu0pY7aN9TcQC3sTq1WHa1Zv5DMgMUOC5a/UDLHji+u1LrV/LrehsL7Kio7kBRiCEN3RHJ/YmBVOhQa2IdBIizojfK8A0G+aHSpKxzqAnnpW2EvwWW8Axvpc8a9QgbWmvP6g0b5YlbIDACdcGtyOa/qpl7HKwP4rvUT0jikb+BzdEVfNSec0go+9lnKnVrJe7a32Gw6fLQNeWMs+9EezDxX17uji8RB705LQeW+c3dp9qPazbcpkFt+xz8j4qnnGqrqhmwxVhEfG4Asqs9yDFTe+XEmVQC4j0UH8MGc8v63i3xuW70MR7UEt8= 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:(13230016)(4636009)(366004)(8936002)(110136005)(6486002)(2906002)(508600001)(6506007)(53546011)(316002)(6666004)(66946007)(83380400001)(26005)(8676002)(66476007)(66556008)(36756003)(2616005)(5660300002)(86362001)(44832011)(31696002)(38100700002)(6512007)(31686004)(186003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1745 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: DBAEUR03FT023.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 56b2d01d-ba4e-4b89-4764-08da504dd743 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DWe0crD81LaU/edohhU8mCCM4M7PlkK8Iy6Yp6P55VaUzdrSW7E902pFMlXab6bo/Eabh6MyTMa+mqak7vz12kXAkXbfwaA59MAAVOkxkLHGDeSMIVJF0SSOqkJBO8boJTlk/uw7xhG5kXMNHFNXzLf7AGuEPkk0XnWi+xoM+LINWznlz4bZiIvHtpEQ6fqEYmnW+HtSqkd5hKCjj+3h40SEbFoKU4eSOFdyc83fVv3Zm3R8csVw8K/qj7CvQG/sd3aXyf1lt5Wuw0OnRFH7nAKC/ChgJA8BdkdrVG4M4D7VVkXftwj3afHTmMCmwwj1tkd1o2mSGyI2ZDUbH/FkgRCdAcJehTfR5/qCXC+D2HoSZV1bGkUb4Jy1hWW6it0YjhK6ggTLVP3yMFgkVl4oEOIDEKC/jcpE5hzPB05ytupRYRSsMM21lq2gCeKoysnU8q5kmJ3EeR4SzUoLmpT8LXriNMnl05kYLjDeM3L2opoRmRf4H1W7qiKj9c7K/cq2S9XtpolbSjP9kwSmgoBc9SqskGfkrG8cnGFdyEJYSXyUY3ZDu1ITuchhf7P4hVfh+2s+Lq1mTxkT2lITYoLeH54108Kco/Ln132twTAFMFw1jnSN3S9NdE6NuJc1qTL5NefZlR95FlmMAkMSjaH1SIvCu+oDCk0eszrcRtYk05oUUq8oiFzYWztjZaZbYIeCvoc88kwrh0vuQi+IJU/dDA== 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:(13230016)(4636009)(46966006)(40470700004)(36840700001)(86362001)(110136005)(82310400005)(53546011)(36860700001)(40460700003)(186003)(81166007)(31696002)(6512007)(508600001)(26005)(2906002)(6506007)(83380400001)(5660300002)(44832011)(316002)(356005)(8936002)(2616005)(70586007)(47076005)(6666004)(336012)(6486002)(31686004)(36756003)(8676002)(70206006)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 10:40:58.0996 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7f79aee9-1ee5-41cf-cc05-08da504ddd3f 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: DBAEUR03FT023.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2398 X-Spam-Status: No, score=-7.7 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, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY 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@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2022 10:41:14 -0000 [switching to gdb@] On 5/20/22 07:51, joe jo wrote: > Hi > > > I met some questions when I used GDB to debugging my project. I'm writing this mail for some help. > At first I set up my one gdb-server and use GDB to connect it. > The problem happened when I use 'x' command to observe some unknown memory. > In my design, when gdb ask for some unknown memorys or registers, my server will return '?' or some other signal. For instance, when my gdbserver receive command 'm90000000,4' and memory after 90000002 is unknown, the server will return XXXX????. Otherwise, the server will return unknown register like 1234???000?0000 when receive 'g' command > However, when recieve ?, GDB will report errors like "Invalid hex digit 63". > I have read the source code of binutils-gdb/gdb/remote.c to find the reason of error, but I still don't know how can I notice GDB about those unknown memory. > In addition, I wonder how to use MI to sent the information about unknow memory to a eclipse-based front-end > > > I look forward to hearing from you soon. > Joe Jo Only registers can have unknown/unavailable values, marked as lowercase 'x' in the register packet reply. Memory reads don't have such support, so '?' is essentially not recognized as something valid.