1 //===-- MICmdCmdGdbThread.h -------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // Overview: CMICmdCmdGdbThread interface. 11 // 12 // To implement new MI commands derive a new command class from the 13 // command base 14 // class. To enable the new command for interpretation add the new 15 // command class 16 // to the command factory. The files of relevance are: 17 // MICmdCommands.cpp 18 // MICmdBase.h / .cpp 19 // MICmdCmd.h / .cpp 20 // For an introduction to adding a new command see 21 // CMICmdCmdSupportInfoMiCmdQuery 22 // command class as an example. 23 24 #pragma once 25 26 // In-house headers: 27 #include "MICmdBase.h" 28 29 //++ 30 //============================================================================ 31 // Details: MI command class. MI commands derived from the command base class. 32 // *this class implements GDB command "thread". 33 //-- 34 class CMICmdCmdGdbThread : public CMICmdBase { 35 // Statics: 36 public: 37 // Required by the CMICmdFactory when registering *this command 38 static CMICmdBase *CreateSelf(); 39 40 // Methods: 41 public: 42 /* ctor */ CMICmdCmdGdbThread(); 43 44 // Overridden: 45 public: 46 // From CMICmdInvoker::ICmd 47 bool Execute() override; 48 bool Acknowledge() override; 49 // From CMICmnBase 50 /* dtor */ ~CMICmdCmdGdbThread() override; 51 }; 52