From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2080.outbound.protection.outlook.com [40.107.247.80]) by sourceware.org (Postfix) with ESMTPS id 962AF3858D28 for ; Mon, 9 Oct 2023 11:23:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 962AF3858D28 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=zZEU2178m8FNtDqmPAj4puhNutEctXHJwfBAOqPqliM=; b=I6Ms8WpmRL4LF8oAgYOKW6//ms7wRXu0jVMRdQoiO4zy4L6XHWjzKK+OdMOxGR4bcfQMySlDgpY/Nh1FHOxolIOUm2q7GNLPBqvT0vI2mDKR76Se+I004/s8zQA384YIYMpbwu2kY1daZAnqTnyrm8nrFJMWmJnCKGGI2qyzKM4= Received: from AS8PR07CA0035.eurprd07.prod.outlook.com (2603:10a6:20b:459::27) by AS2PR08MB9101.eurprd08.prod.outlook.com (2603:10a6:20b:5fd::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.41; Mon, 9 Oct 2023 11:23:13 +0000 Received: from AM7EUR03FT048.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:459:cafe::a9) by AS8PR07CA0035.outlook.office365.com (2603:10a6:20b:459::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.20 via Frontend Transport; Mon, 9 Oct 2023 11:23:13 +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 AM7EUR03FT048.mail.protection.outlook.com (100.127.140.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.20 via Frontend Transport; Mon, 9 Oct 2023 11:23:13 +0000 Received: ("Tessian outbound fdf44c93bd44:v211"); Mon, 09 Oct 2023 11:23:13 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 0f7cdb50ed52c785 X-CR-MTA-TID: 64aa7808 Received: from 9c1842c03c17.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1C112EA8-EBF5-4D50-B07F-A857FBB4E536.1; Mon, 09 Oct 2023 11:23:06 +0000 Received: from EUR02-AM0-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 9c1842c03c17.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 09 Oct 2023 11:23:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VnOR4nTEA1mgYNf9MQUw1rdRBK0+iSyusXS2V4DJ5Ss3e1G8CwDkxPMoZDj95MsHEHyzaZIdYmDId9uMawHWnVpSoeUuPBp8C3FaBN5tRzNwnO2giPYCmikZOsKtothbOJFR3VT7/8iUthm1sbAeHkUNkYCO5bagpqbUpXIBjuojbRcj1owYJlNEgR1AXGkUgs2lh8HmwUvZTwkYCJ3lt7nEhayRSLZuYGBzyacAnRAg5eg4RziE1vGY2hylSjVyXs5Sk++8JkYszsr8+gh6nnaYLmStuBEfgrpqYJIW9zdVmQUjSiWguGxFg4ot/RJPIwsu2bKtsCYr9Kac57GRBw== 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=zZEU2178m8FNtDqmPAj4puhNutEctXHJwfBAOqPqliM=; b=bvOk1syN91jHhTWmHzkOXym0p63piOFb6UZCBgvxsrP5y2W05cUTIB1EuC+Eu7FMzD6KPTOCd3hZGiCfYe8UsmFgCXL+/O7cld0jHoEw1GQyNJp55GxonWHaFkDCcW+UOE8b4oBcolPPbb2wfWhdO3FHjJ26ytOZNXwKMM5W4Lb6CApcmcM28cT6u9E5c76VeFOupQDHiDsmzI6RwNUa5vyZKlYiBf23y+u/8LxcyOJInfYu6ayKrpuWI63cg6vypNSD4sj0oDMNMiCHCowTH3zphF/LjPJSOyPv6fqahbodKzkWMbKnSG3hUWHKaCnsbi84xqgxSfNc9RdtYRFIUQ== 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=zZEU2178m8FNtDqmPAj4puhNutEctXHJwfBAOqPqliM=; b=I6Ms8WpmRL4LF8oAgYOKW6//ms7wRXu0jVMRdQoiO4zy4L6XHWjzKK+OdMOxGR4bcfQMySlDgpY/Nh1FHOxolIOUm2q7GNLPBqvT0vI2mDKR76Se+I004/s8zQA384YIYMpbwu2kY1daZAnqTnyrm8nrFJMWmJnCKGGI2qyzKM4= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AM6PR08MB3911.eurprd08.prod.outlook.com (2603:10a6:20b:80::27) by AS8PR08MB10347.eurprd08.prod.outlook.com (2603:10a6:20b:57f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.36; Mon, 9 Oct 2023 11:23:02 +0000 Received: from AM6PR08MB3911.eurprd08.prod.outlook.com ([fe80::146d:342:e715:2475]) by AM6PR08MB3911.eurprd08.prod.outlook.com ([fe80::146d:342:e715:2475%7]) with mapi id 15.20.6838.040; Mon, 9 Oct 2023 11:23:02 +0000 Message-ID: Date: Mon, 9 Oct 2023 12:23:00 +0100 User-Agent: Mozilla Thunderbird Subject: Re: warning: Target-supplied registers are not supported by the current architecture Content-Language: en-US To: William Tambe , "Aktemur, Tankut Baris" Cc: "gdb@sourceware.org" References: From: Luis Machado In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0271.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:195::6) To AM6PR08MB3911.eurprd08.prod.outlook.com (2603:10a6:20b:80::27) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AM6PR08MB3911:EE_|AS8PR08MB10347:EE_|AM7EUR03FT048:EE_|AS2PR08MB9101:EE_ X-MS-Office365-Filtering-Correlation-Id: 47c2b503-33eb-4c13-93e2-08dbc8ba205f 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: F+nf5/Pdby59Q4FMOxKG01B/GtARHyOsjBifcF9SBD/8G78R6jQLpYKPgTV05PoCzIBDdz5soVTEEzj2l/ELSXnu90oj1g3QWb9HQo4LCesIia2XojVwi3DLzip2+RQw70xrPYcvRJ/hiAIf0CxYHP39dRZvessbzgiAv11bDbSobBwl1x3z08q7atJXO3N4ITYxunrj4RwN9msGffpqwW63ZRRO/BolIRnh1LgW7EW4N5Nxg/4IBu61dDnn5EGZowIAlbXfj3apkOV0abifr8gz1B3lvAVT+Tio9SlVm8dE9CTZS9bVqkcZ7fEIPDzOf9xUG9o+bwWPHgAdbihno8VfeH2FpQBALiZ9nsHyeTkYGYnr/RtX89fuav9LOJHCkctTlDGOR76VF6J2Kq009Xw9qxIkJdVByiAysyfJu8tQDOzNOY/j5U5g5jS5WhkHW6o0NQmtyzNhZYXVFZU4lAHLaRXB5+R5hGZx9HsSzwDzdckkqznJzhgO7E3tpFIQzemU17Nhj+yoxZUa57DTX9jnKtPh79Oltg20vjQPJgb0nXF/CqsHRL7YtAIndjV/WR0Q2OZXpcLc5USWX9cmv9v9TBvLNkpe421pTwUuS+VT55PNQbfV/cazghI1WfdxW2CdPgUaAJk3FIcHu+5J1g== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR08MB3911.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(396003)(346002)(39860400002)(136003)(366004)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(53546011)(2616005)(26005)(478600001)(6506007)(8676002)(6512007)(21490400003)(8936002)(83380400001)(2906002)(4326008)(66556008)(110136005)(66476007)(66946007)(966005)(6486002)(5660300002)(41300700001)(44832011)(316002)(38100700002)(36756003)(31696002)(86362001)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB10347 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: AM7EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 074ccdc0-a730-45d4-824c-08dbc8ba19be X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bt60tjMj2ia1fvEukSEgqAsEk8ckBpKJKA7I4VIcVFdjzIvhQHAqGT5psZ3+Vw0NCV/eybyLXQmYD168NcCf7j0zR3UN1Tw5Fq6Lon3TZe39/Sn+wTIUmoHaHEdpq2dl3t5WVKUi1EuQeYO+0PlfqSnYNZLMA17vP7LZjUaD7ugNsxYTgG1f1AuDUNO3GQv1sFm3gYiuOd5gKv3Ur1oelEMANaCXP/pOK75KwJG0oSF0/HKlEzzyDj3nn9WQm6oxAf+uDGxH4g2VrjW1aK/gHgo9gpI8fIppflNTfXAPmGC1eRjUGyniKbitb748cU3D+TcMb26IycWUMUGuYLbKgYkbe0Ajxod15kZRvOSQAb9oWM7I/2rI6pwHrOPG+YrtitpGu3YAG3yLgWYJLNtT5LJKP3WWyv+9wOKqXY1C6pAImIY7Jy3oPFw75ox7b9hIpPnM1IL36rrsZ2k1PltWV4qBO70gpIjrYPtx9pnN3FNLYivwDfk9idYWCGtTXd8zq7CfiRzoKmkjHOvi5G1gFb2D7hWC4bcdK9OK/1EDEa4KnKl2FFtLjUoVpA5zljnJubtLt71LiR1P+KR89wnHtXKFQlFmiR5w9Qzps1I63BiSIUmaOaXwqETwfMVHDJk8RuKytQSnuDdHmwUf2T/7xZxb6foY3ghQsAmTZdcDvJ0CFNLi6J9x/Is0j+idWtuknY/zrKOLx47AjyUquKWKJSb0DujrMePZh67MZpM51WXq/aCdfR8jBMbycRfZzjDb 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)(396003)(376002)(136003)(39860400002)(346002)(230922051799003)(451199024)(1800799009)(82310400011)(186009)(64100799003)(46966006)(36840700001)(40470700004)(40460700003)(6512007)(53546011)(6486002)(478600001)(6506007)(2616005)(2906002)(966005)(47076005)(336012)(26005)(83380400001)(21490400003)(44832011)(5660300002)(110136005)(70206006)(4326008)(8676002)(8936002)(41300700001)(316002)(70586007)(40480700001)(82740400003)(356005)(81166007)(36860700001)(36756003)(31696002)(86362001)(31686004)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2023 11:23:13.5039 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47c2b503-33eb-4c13-93e2-08dbc8ba205f 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: AM7EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9101 X-Spam-Status: No, score=-5.8 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,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 10/9/23 11:46, William Tambe via Gdb wrote: > On Mon, Oct 9, 2023 at 1:45 AM Aktemur, Tankut Baris > wrote: >> >> On Monday, October 9, 2023 1:14 AM, William Tambe wrote: >>> I am working on gdbserver support. >>> >>> I am able to remotely execute the executable and set breakpoints, >>> however right after issuing the `target remote` command, I am getting >>> following warning: >>> >>> (gdb) target remote 192.168.1.164:2000 >>> Remote debugging using 192.168.1.164:2000 >>> warning: Target-supplied registers are not supported by the current architecture >>> >>> Error message is coming from gdb/target-descriptions.c at line 576, >>> due to data->arch_regs.empty () return true. >>> >>> Any idea what I might have missed causing data->arch_regs.empty () to >>> return true ? >> >> When gdbserver is started with the --remote-debug flag, it prints the >> received and sent RSP packages. There, the target description XML would >> be seen. I'd suggest starting with inspecting if the contents of that XML >> look right. > > Below snippet of the prints when using --remote-debug shows the target > description XML. > I see a star in front of blocks; any idea whether > that could be the issue ? > In the source code, I am not using an actual XML file, instead, I am > manually building the target description XML through calls to > tdesc_create_reg: > https://github.com/fontamsoc/binutils-gdb/blob/main/gdbserver/linux-pu32-low.cc#L63 > > [remote] getpkt: getpkt ("qXfer:features:read:target.xml:0,1000"); > [no ack sent] > [remote] putpkt_binary_1: putpkt ("$l > > > pu32 > GNU/Linux > > * > * > * > * > * > * > * > * > * > * > * > * > * > * > * > * > * > > > #ae"); [noack mode] > [remote] getpkt: getpkt ("qXfer:auxv:read::0,1000"); [no ack sent] > > > Any ideas on what I am doing wrong ? What architecture is this out of curiosity? Are you enabling a new architecture called pu32?