2014-05-16 18:51:01 +08:00
|
|
|
//===-- MICmdCmdTrace.h -----------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-11-18 02:06:21 +08:00
|
|
|
// Overview: CMICmdCmdTraceStatus interface.
|
2014-05-16 18:51:01 +08:00
|
|
|
//
|
2016-09-07 04:57:50 +08:00
|
|
|
// To implement new MI commands derive a new command class from the
|
|
|
|
// command base
|
|
|
|
// class. To enable the new command for interpretation add the new
|
|
|
|
// command class
|
2014-11-18 02:06:21 +08:00
|
|
|
// to the command factory. The files of relevance are:
|
|
|
|
// MICmdCommands.cpp
|
|
|
|
// MICmdBase.h / .cpp
|
|
|
|
// MICmdCmd.h / .cpp
|
2016-09-07 04:57:50 +08:00
|
|
|
// For an introduction to adding a new command see
|
|
|
|
// CMICmdCmdSupportInfoMiCmdQuery
|
2014-11-18 02:06:21 +08:00
|
|
|
// command class as an example.
|
2014-05-16 18:51:01 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// In-house headers:
|
|
|
|
#include "MICmdBase.h"
|
|
|
|
|
2016-09-07 04:57:50 +08:00
|
|
|
//++
|
|
|
|
//============================================================================
|
2014-11-18 02:06:21 +08:00
|
|
|
// Details: MI command class. MI commands derived from the command base class.
|
|
|
|
// *this class implements MI command "trace-status".
|
2014-05-16 18:51:01 +08:00
|
|
|
//--
|
2016-09-07 04:57:50 +08:00
|
|
|
class CMICmdCmdTraceStatus : public CMICmdBase {
|
|
|
|
// Statics:
|
|
|
|
public:
|
|
|
|
// Required by the CMICmdFactory when registering *this command
|
|
|
|
static CMICmdBase *CreateSelf();
|
2014-05-16 18:51:01 +08:00
|
|
|
|
2016-09-07 04:57:50 +08:00
|
|
|
// Methods:
|
|
|
|
public:
|
|
|
|
/* ctor */ CMICmdCmdTraceStatus();
|
2014-05-16 18:51:01 +08:00
|
|
|
|
2016-09-07 04:57:50 +08:00
|
|
|
// Overridden:
|
|
|
|
public:
|
|
|
|
// From CMICmdInvoker::ICmd
|
|
|
|
bool Execute() override;
|
|
|
|
bool Acknowledge() override;
|
|
|
|
// From CMICmnBase
|
|
|
|
/* dtor */ ~CMICmdCmdTraceStatus() override;
|
2014-05-16 18:51:01 +08:00
|
|
|
};
|