2014-05-16 18:51:01 +08:00
|
|
|
//===-- MICmdCmdFile.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: CMICmdCmdFileExecAndSymbols 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"
|
|
|
|
#include "MICmnMIValueList.h"
|
2016-09-07 04:57:50 +08:00
|
|
|
#include "MICmnMIValueTuple.h"
|
2014-05-16 18:51:01 +08:00
|
|
|
|
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 "file-exec-and-symbols".
|
|
|
|
// This command does not follow the MI documentation exactly.
|
2015-07-07 22:04:40 +08:00
|
|
|
// Gotchas: This command has additional flags that were not available in GDB MI.
|
2015-03-13 02:35:54 +08:00
|
|
|
// See MIextensions.txt for details.
|
2014-05-16 18:51:01 +08:00
|
|
|
//--
|
2016-09-07 04:57:50 +08:00
|
|
|
class CMICmdCmdFileExecAndSymbols : 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 */ CMICmdCmdFileExecAndSymbols();
|
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;
|
|
|
|
bool ParseArgs() override;
|
|
|
|
// From CMICmnBase
|
|
|
|
/* dtor */ ~CMICmdCmdFileExecAndSymbols() override;
|
|
|
|
bool GetExitAppOnCommandFailure() const override;
|
2014-05-16 18:51:01 +08:00
|
|
|
|
2016-09-07 04:57:50 +08:00
|
|
|
// Attributes:
|
|
|
|
private:
|
|
|
|
const CMIUtilString m_constStrArgNameFile;
|
|
|
|
const CMIUtilString
|
|
|
|
m_constStrArgNamedPlatformName; // Added to support iOS platform selection
|
|
|
|
const CMIUtilString m_constStrArgNamedRemotePath; // Added to support iOS
|
|
|
|
// device remote file
|
|
|
|
// location
|
2014-06-25 00:35:50 +08:00
|
|
|
};
|