1 //
2 // Copyright (c) 2010-2023 Antmicro
3 //
4 //  This file is licensed under the MIT License.
5 //  Full license text is available in 'licenses/MIT.txt'.
6 //
7 using Antmicro.Renode.Utilities.GDB;
8 
9 namespace Antmicro.Renode.Extensions.Utilities.GDB.Commands
10 {
11     public class DetachCommand : Command, IMultithreadCommand
12     {
DetachCommand(CommandsManager manager)13         public DetachCommand(CommandsManager manager) : base(manager)
14         {
15         }
16 
17         // This command is only there so that GDB doesn't report that the
18         // "Remote doesn't know how to detach". It doesn't need to do anything,
19         // the actual detaching/cleanup is done when the connection is closed.
20         [Execute("D")]
Execute()21         public PacketData Execute()
22         {
23             return PacketData.Success;
24         }
25     }
26 }
27