From patchwork Mon Dec 16 13:47:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malaschonok X-Patchwork-Id: 13909751 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9E980E7717F for ; Mon, 16 Dec 2024 13:48:29 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNBS4-0008My-AR; Mon, 16 Dec 2024 08:48:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNBRv-0008M8-Cl for qemu-devel@nongnu.org; Mon, 16 Dec 2024 08:47:54 -0500 Received: from mail-edgemuc218.fraunhofer.de ([192.102.154.218]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNBRr-0004c5-0F for qemu-devel@nongnu.org; Mon, 16 Dec 2024 08:47:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sit.fraunhofer.de; i=@sit.fraunhofer.de; q=dns/txt; s=emailbd1; t=1734356867; x=1765892867; h=message-id:date:from:subject:to:cc: content-transfer-encoding:mime-version; bh=O6Fp/SkmBpCvwRmweyp+HZyGUnh/9nt0bsjaxUvAfF0=; b=qklxB4dDnVl9y4DGBJc4BNNMgIbB+0Ik4nUUb8XTwjAuyCfU90X08d+a Q8Q6BQ5HzNRpY6NDHmBaj2CcBPYHQpswbAUT2vaUGvpxWMUAGMjDx+Weq 1fyKKHWyN1llL1qf2/irhaQL+jUgMZAEpvuSgi/wB623jhH3V9QResE+4 g9qJyNMyppCzwrBo9k1HZ+7ihi2RfEUuoDzwJSy6XHOrKBYuwLHj0rMr9 LV/W36z5GCZ0ARd1Ei70MqRumS+vgfDNb6j3EK0SraA4ql952WLbK3okf 7WYtSdqATEb64u6UzNyAkueg5R3v/VhcEKYD9QEiHZBarplzaNvlQV7z0 Q==; X-CSE-ConnectionGUID: 2bv82GtYQzaRK3RcxK3GtA== X-CSE-MsgGUID: S75+IMyLSwGeqYYDEVBfhA== Authentication-Results: mail-edgeMUC218.fraunhofer.de; dkim=pass (signature verified) header.i=@fraunhofer.onmicrosoft.com X-IPAS-Result: A2ERBwA1lN9m/8ejZsBDF4EJgU+CHCiCYYRWkUEtnGqBLBSBEQNWDwEBAQEBAQEBAQcBAUQEAQEDBIUAiXonNQgOAQIBAwEBAQEDAgMBAQEBAQEBAQEFAQEGAQEBAQEBBgcCgR2FL0YNhAaBJgEBAQEBAQEBAQEBAR0CNX8VCAEBNwE0AiYCMysOBQIBAYJ8gjEDMbMvW4EygQGCDAEBBoJn2D0YYYFjCQkBgRAug3uEUAGLEYFVRIE8CwOBBoE3doQqZoMOgmmGXoESgnSEH4JyDQ6CCgYKiT0XJYExiCeOY4FNHANZIRMBVRMXCwkFiTmDKSmBa4QYgUcBg1+BZwlgiVeBPoFagzhLhVCBBoJUa048Ag0CN4IpgROCXoEvBAWBTB1AAgELbT01CQsbQ6wdgmgHexSBeDwpCwtOo2ahMjQHgjeBYoFdBp9dBhMvl0ySeAGYcqMdTIUKAgQCBAUCDwiBaAGCFHGDNlIZD44tFoEMAQKCSctcdwI5AgcLAQEDCY01AQE IronPort-PHdr: A9a23:DPaoDBF8AhJz0PaItVYRXJ1Gf3JNhN3EVzX9l7I53usdOq325Y/re Vff7K8w0gyBVtDB5vZNm+fa9LrtXWUQ7JrS1RJKfMlCTRYYj8URkQE6RsmDDEzwNvnxaCImW s9FUQwt5CSgPExYE9r5fQeXrGe78DgSHRvyL09yIOH0EZTVlMO5y6W5/JiABmcAhG+Te7R3f jm/sQiDjdQcg4ZpNvQUxwDSq3RFPsV6l0hvI06emQq52tao8cxG0gF9/sws7dVBVqOoT+Edd vl1HD8mOmY66YjQuB/PQBGmylAcX24VwX8qSwLFuRPafLb4kAzEirVxiDa2OPerdrdkexSM1 LxMajbUzzUmaQwEqGDqsJBZ15MO83fD7xYq4b7ee4awG8puL5HXfotEHlFgVfRcVy9CLriFN LQyBeYaGv1ojZPgnHUT9wHnFQuoJKTEyRVjmX/044AQj90wHSLvjQcJBNYK6XbfitTyaKYQe +G4zrHp1xWeYP4Ihx72t7jBXQ8bh8qjWJdZLNDXxmM3KgzovgWahZPCIDHF+uQyqXij8tFyd smGhXFg9gt7gBiU/J4SqNTRo6lKm2r60yB62IU7C9i2Ex58NI3sAN5RrSacL4xsXoY4Tnp1v Dpv0rQdos3TlEkizZ0mw1vSZ/OKVrWjuEuzEuiLKCp+hHVrdaj5ixvhuUSjy+ipTsCvyx4Kt StKlNDQq2oAnwLe8MmJS/Zxvw+h1D+D2hqV67RsL1o9iKzbLJAs2Pg3kJ8Sul7EBSj4hAP9i 6r+Sw== X-Talos-CUID: 9a23:s8bhTW1qsEbDnoC6pkaYybxfQMo7Iify0EbpMUaCKj1TQ622EnCM0fYx X-Talos-MUID: 9a23:s/Iw5AaiWbSiFeBTjGCxxxBHJeNT/IujEXE8vbg4kceEHHkl X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.10,215,1719871200"; d="scan'208";a="6261441" Received: from mail-mtabi199.fraunhofer.de ([192.102.163.199]) by mail-edgeMUC218.fraunhofer.de with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 16 Dec 2024 14:47:36 +0100 X-CSE-ConnectionGUID: MLWVjENvS0uOq1MCDOPyOQ== X-CSE-MsgGUID: a+Wp9ac+Q6Wk7nLNXnI9+A== IronPort-SDR: 67602f77_n6tUcESzjqxLTzcBAVKKiWS16j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+QwLZuY61RG9RqxLYEcI730LGg u9x/ddPU67wNA9OgqgBC4Wf0bc0TUmELkNsU8A7/L0DGDDGQRGUwTSldkW6f+0ULfnK7329N d1KI/hLdhWh1RShqiIQKr4MLoRVwt8oxosmUZH6KVEWt4CwqmJSj6vR0SzllkoHfs5Ik80tD q/wLhWsSnexg1lQkE/z9Ph0AHKyO4Q4VVetzdKL//UsPLNdluNVKGUZ8Ka+5leROytZpyOkh hvJPfLq/rYz2LZXvtXeF4tYDF+JMvL1buOD9T6zv/lobd/iNcTvtRsfmmL4PjZ5bKcgZNBqq Yuj6NLH/lvJnLITYVDrn5OsE6po58LreMF1NsnxDmdRnArcecvKziYAxVuFKs1yoIsA3vWke gq2VpLhP5pdEdJQ32ZcZCViAg4QQfa/JLvpoSSm6e+AEF4B2AjAN8mq7mLtcXodTCITJpniE UXhjp5CPDyDQFhkX3fo381bPqI= IronPort-HdrOrdr: A9a23:UDeWxKG9voKcLQ+3pLqE4MeALOsnbusQ8zAXPiFKJCC9F/by/f xG885rtiMc9wxhPU3I9eruBEDiewK/yXcW2+ks1N6ZNWHbUQCTTb2Kg7GN/9V7cxeTygdV79 YFT5RD X-Talos-CUID: 9a23:Tiz2JG/kUHp36IYvs/KVv2swJf4nX1vD9y/NBFbhLE1Fb4WEbmbFrQ== X-Talos-MUID: 9a23:XENBEQz+a2Zlasu7lVm/ySfSfYmaqK3tN1hcmJ5Fgpe7NnN2HxGtihXmAaZyfw== X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.12,238,1728943200"; d="scan'208";a="13422280" Received: from 153-97-179-127.vm.c.fraunhofer.de (HELO smtp.exch.fraunhofer.de) ([153.97.179.127]) by mail-mtaBI199.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2024 14:47:35 +0100 Received: from XCH-HYBRID-04.ads.fraunhofer.de (10.225.9.46) by XCH-HYBRID-03.ads.fraunhofer.de (10.225.9.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 16 Dec 2024 14:47:35 +0100 Received: from FR4P281CU032.outbound.protection.outlook.com (40.93.78.48) by XCH-HYBRID-04.ads.fraunhofer.de (10.225.9.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11 via Frontend Transport; Mon, 16 Dec 2024 14:47:35 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VPaW1gaS2bviTmtO7d0WtjVuDMiYor/isexdKcmXFBEYDC2ugh0cOFgr7/HJXS5fggvi+eR9V4rmrtaTStHdSyA9378/7CMSwuPie6tUWOl99uIuj3R1kzLGNif25wOIq1FCrATIVxeCAp5haXUT14vhQkGMGjYPmb+LhfpNE50vA5un3NVWbpjpuZ0laTOEHvCIpvkPsXPbhpDKqEsXL/yxCY/3+1xnGh7kNQxjCpSlW2hM2S7I9dCyVx11zPDszenGxSUawhBQUR6Pxc39OZIfkIntskUrAG4S4M8sI0oLi9IaRVrJuxPqEyLJzvE1wRcDS+xik/Ca7EO/YG5q3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=jHJIaJOVT7d8wDmR5So8JHFSsOJAT/zI6ZU0iUR4A3Y=; b=A712NNCjbKAPoqQ1QOKEY3PNW5pLOpWKe5eRXeGrrYh/EKKN7qbw6AolulXMmG2puA6/Df+k5GBKYbAdjW49SlTEyd5fckXFXiuD7bQXQK/KyLx4D863GNJ4LhRtFuzi/CRiInVhzKCD8QkEmKqUaOVfRlX8Sca0XwhhlnWF1U0ybuzdfCu3oKqZQCzqBVp6wfQ65Jfa2a+u8o/zEL6l2HRn0xdNS4kpLgoQuN8TP4aWKh8PhRKj1/2Vb19JaDfOComSW5yIwUJVATJPn5zuvmNST5iG/HQNa2utdI5DlTikqMe7lF/nDSAG0BotOBSWIejpVolyq//vpW3qsEG5vg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sit.fraunhofer.de; dmarc=pass action=none header.from=sit.fraunhofer.de; dkim=pass header.d=sit.fraunhofer.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fraunhofer.onmicrosoft.com; s=selector2-fraunhofer-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jHJIaJOVT7d8wDmR5So8JHFSsOJAT/zI6ZU0iUR4A3Y=; b=JXbsoMGXx9Zbk063SIcZehkkDSQ3WUbdsOsXJruSFu2r1xjlH/CkBCwhjVEB4QydKA9cAsll1jcNio4ijBiejpIrH5ge66Ac7XaGwRNSGmMA5rngBpUgEX8bDwOwj8DhWrxPuSzKCAfw/5bbJHSR1VJ5pMC79RVNmkpkfFmf38o= Received: from FR3P281MB2064.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:2b::14) by FR0P281MB1579.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:83::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Mon, 16 Dec 2024 13:47:35 +0000 Received: from FR3P281MB2064.DEUP281.PROD.OUTLOOK.COM ([fe80::a96f:2c20:d1b2:5c91]) by FR3P281MB2064.DEUP281.PROD.OUTLOOK.COM ([fe80::a96f:2c20:d1b2:5c91%7]) with mapi id 15.20.8251.015; Mon, 16 Dec 2024 13:47:34 +0000 Message-ID: <99ec7cb0-1ed9-4761-8aff-e109862939c6@sit.fraunhofer.de> Date: Mon, 16 Dec 2024 14:47:34 +0100 User-Agent: Mozilla Thunderbird Content-Language: en-US, de-DE From: David Malaschonok Subject: [PATCH] gdbstub: implement reset in system mode Autocrypt: addr=david.malaschonok@sit.fraunhofer.de; keydata= xjMEZlBMqRYJKwYBBAHaRw8BAQdAwX7WP5WU2bLmrnUTPDlHqM9OKrtiEQOABoLH6CScK5TN N0RhdmlkIE1hbGFzY2hvbm9rIDxkYXZpZC5tYWxhc2Nob25va0BzaXQuZnJhdW5ob2Zlci5k ZT7CjwQTFggANxYhBKtyZqNlaP89AoqNOFlMnlKDpXHtBQJmUEypBQkB4TOAAhsDBAsJCAcF FQgJCgsFFgIDAQAACgkQWUyeUoOlce3/FwEAseQh1jB+OSmuV89sE9h1f/zaxs/ofYc7Myey uIwHAuYA/2VHheBvKA1O4HUchdZLNasYE/kjeuC69Y874sdU840NzjgEZlBMqRIKKwYBBAGX VQEFAQEHQMQrx70qy5iQWUYGT40i3+wSNRbTNmYdM+QTXQObekkRAwEIB8J+BBgWCAAmFiEE q3Jmo2Vo/z0Cio04WUyeUoOlce0FAmZQTKkFCQHhM4ACGwwACgkQWUyeUoOlce0E9gD/eqoX eVBRgUPeTVpbN3yWc/MFq8E6PQvNvWzQf8hLRbgBAPkAfwfx6/9fGrzSgqYTnx2hI0zRsnF/ anPQGY36Z8cJ Organization: Fraunhofer SIT To: CC: , X-ClientProxiedBy: FR0P281CA0215.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:ac::19) To FR3P281MB2064.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:2b::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: FR3P281MB2064:EE_|FR0P281MB1579:EE_ X-MS-Office365-Filtering-Correlation-Id: 6fa78a84-74a6-44c6-5764-08dd1dd8321c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hB/m/Xdbcd5IYReJJIlZnLqledgg6hi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?= =?utf-8?q?+Lq81xsg7GXYQA1LUJ0EeSaxXRN3sdzWOS2CJ2Yd0YHFCLUyVsLwXOBbelP2sCrtA?= =?utf-8?q?oguIYzK/OEe/MHDb4YxwjNqDqDjKm3tMu6sX6yayBY6JhNoitkRfmrjaT+Hy2cEcr?= =?utf-8?q?XoZVU9lTqvQKkVHmLSHc1a94gp9LOQ5ZZerZ0UBYxeuWYJAU3XlHkRm09TfiVwDH1?= =?utf-8?q?Hs2N6jYPkoYekErpRD6dyER3F/yf/2OBZsuXSbigYwSr1CiNbiovTkK5uyoa3yRPm?= =?utf-8?q?9ulA9m4eWAAOg+YRnRfMyFG5ljpzWkMZzcyEXx4piNaDxF6/V9apOmc8uVUHnensL?= =?utf-8?q?433djp44l1WWx3OdzunC3ppULJIXbsOmqlCFFLhALH6gM7h1rgPtPWbnNElMZpW/F?= =?utf-8?q?7Hn+NNrUZ/ta0CM7lVm8hqmpQYDHTwMIrSsz85fV4Js4ouvtA8XlvW0y1HKU3xg1w?= =?utf-8?q?KAkyPphKv9xw?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:FR3P281MB2064.DEUP281.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?U40GcXC65BUT4/UhtajwiWeLyYAw?= =?utf-8?q?5GjpXTqnzwqVbpEc+hbb+M4LBhoCj8gPHKhves2pSLG1/cOXTbSJbvrOb//uO9WGP?= =?utf-8?q?XPLyXkOVS05glCBRPV+A2IlujyvtaP6vG1rDuPhHDrMvCHXnZVlikDi1kizsyG2NB?= =?utf-8?q?0smXZJwYC6syiJHuwP6hQamI9hScz48H817rt8pry1gonlcmq18Fa8jtBpWF//Ciw?= =?utf-8?q?FqZfRibnji3D5ywVN/885IjON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wziNqPGkpA5uA9zPxNfDViphGiViMdv4y?= =?utf-8?q?Q7w00JvIzlcbX7RfPgCHFd7TxYmpikg1g8wuzIM9vrRJtDxsWWAxPjhtC42PjwXMK?= =?utf-8?q?xvF2/FFAKsqgFjCl0B/QcWIF44Vp3MxvoFJp/R5f7tOjUPRGUwjqYExtq1T3nHotS?= =?utf-8?q?opHz0uSRjNbAhLBWjmZOXndY+WMEyZGyTN8LAnaIqDdQclT2gwPpzKT2izSkUrk91?= =?utf-8?q?pAGhGiu7WCirwmwGMtuprL2P7uNH6gEZc/YkNO6kYN5d1SxORp++VN5L+kBG5lTOS?= =?utf-8?q?lPOJbNtGGG5xpPCI/KOTPuV7jDkAIcTcB6JgK9/d+Bqq6v/viu8zNux3i9MMNRbDY?= =?utf-8?q?J9Ywx2gztwfhJDPfGOMIoePkWstXPQe/xyULSpAY08ujNXJJAWx5neMAskEsmjcSV?= =?utf-8?q?h7oelhJdb1QuTSJpw3wpbBYmTK2xcQ8iIzf9Zs/fR9Dzo2BWAgwQm4E=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 6fa78a84-74a6-44c6-5764-08dd1dd8321c X-MS-Exchange-CrossTenant-AuthSource: FR3P281MB2064.DEUP281.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2024 13:47:34.8731 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f930300c-c97d-4019-be03-add650a171c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ta+4F8wkuKJJfTAtkUxSiyejTTKjNvztGxwymNRP7BKpsLHQ+HlrU1TW1O+YrwLnEYLUIF6iK6WyxvXHEKF4WOgShIx0qN4rKpwZSSYjsJLl/WKjXutrOAW20AGxUC9r X-MS-Exchange-Transport-CrossTenantHeadersStamped: FR0P281MB1579 X-OriginatorOrg: sit.fraunhofer.de Received-SPF: pass client-ip=192.102.154.218; envelope-from=david.malaschonok@sit.fraunhofer.de; helo=mail-edgeMUC218.fraunhofer.de X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Added a handler for RSP reset commands `R` and `r`. In system mode, we call qemu_system_reset_request. In user mode, no reset is implemented. An error packet is sent instead. Signed-off-by: David Malaschonok --- gdbstub/gdbstub.c | 5 +++++ gdbstub/internals.h | 5 +++++ gdbstub/system.c | 9 +++++++++ gdbstub/user.c | 13 +++++++++++++ 4 files changed, 32 insertions(+) * Memory access helpers */ @@ -751,6 +763,7 @@ void gdb_breakpoint_remove_all(CPUState *cs) cpu_breakpoint_remove_all(cs, BP_GDB); } + /* * For user-mode syscall support we send the system call immediately * and then return control to gdb for it to process the syscall request. diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index b1def7e71d..ce2e2e8291 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -2093,6 +2093,11 @@ static int gdb_handle_packet(const char *line_buf) gdb_exit(0); gdb_qemu_exit(0); break; + case 'r': + case 'R': + /* Reset the target */ + gdb_reset(); + break; case 'D': { static const GdbCmdParseEntry detach_cmd_desc = { diff --git a/gdbstub/internals.h b/gdbstub/internals.h index bf5a5c6302..c5b448e38d 100644 --- a/gdbstub/internals.h +++ b/gdbstub/internals.h @@ -154,6 +154,11 @@ void gdb_continue(void); */ int gdb_continue_partial(char *newstates); +/** + * gdb_reset() - reset target in mode specific way. + */ +void gdb_reset(void); + /* * Helpers with separate system and user implementations */ diff --git a/gdbstub/system.c b/gdbstub/system.c index c9f236e94f..3636502c6d 100644 --- a/gdbstub/system.c +++ b/gdbstub/system.c @@ -603,6 +603,15 @@ int gdb_continue_partial(char *newstates) return res; } +/* + * Reset the system. + */ + +void gdb_reset(void) +{ + qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET); +} + /* * Signal Handling - in system mode we only need SIGINT and SIGTRAP; other * signals are not yet supported. diff --git a/gdbstub/user.c b/gdbstub/user.c index 0b4bfa9c48..6886cbfc20 100644 --- a/gdbstub/user.c +++ b/gdbstub/user.c @@ -657,6 +657,18 @@ int gdb_continue_partial(char *newstates) return res; } +/* + * Reset target. (currently not implemented) + */ + +void gdb_reset(void) +{ + // Not implemented. + // By default, the RSP reset command does not trigger a response. We respond with an + // error code here, so the client does not assume the system has been reset. + gdb_put_packet("E00"); +} + /*