1 //===-- MICmdCmd.h ----------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Overview: CMICmdCmdEnablePrettyPrinting interface.
11 // CMICmdCmdSource interface.
13 // To implement new MI commands derive a new command class from the
15 // class. To enable the new command for interpretation add the new
17 // to the command factory. The files of relevance are:
21 // For an introduction to adding a new command see
22 // CMICmdCmdSupportInfoMiCmdQuery
23 // command class as an example.
26 MI commands implemented are:
32 // Third party headers:
33 #include "lldb/API/SBBreakpoint.h"
34 #include "lldb/API/SBCommandReturnObject.h"
38 #include "MICmdBase.h"
39 #include "MICmnMIValueList.h"
40 #include "MICmnMIValueTuple.h"
43 //============================================================================
44 // Details: MI command class. MI commands derived from the command base class.
45 // *this class implements MI command "enable-pretty-printing".
46 // Enables Python base pretty printing.
48 // http://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Variable-Objects.html
50 class CMICmdCmdEnablePrettyPrinting : public CMICmdBase {
53 // Required by the CMICmdFactory when registering *this command
54 static CMICmdBase *CreateSelf();
58 /* ctor */ CMICmdCmdEnablePrettyPrinting();
62 // From CMICmdInvoker::ICmd
63 bool Execute() override;
64 bool Acknowledge() override;
66 /* dtor */ ~CMICmdCmdEnablePrettyPrinting() override;
70 //============================================================================
71 // Details: MI command class. MI commands derived from the command base class.
72 // *this class implements MI command "source".
74 class CMICmdCmdSource : public CMICmdBase {
77 // Required by the CMICmdFactory when registering *this command
78 static CMICmdBase *CreateSelf();
82 /* ctor */ CMICmdCmdSource();
86 // From CMICmdInvoker::ICmd
87 bool Execute() override;
88 bool Acknowledge() override;
90 /* dtor */ ~CMICmdCmdSource() override;