blob: 4607f748cba5c2b75ce839638005e16458e52d74 [file] [log] [blame]
Deepak Panickal6f9c4682014-05-16 10:51:01 +00001//===-- MICmdCmdFile.h ------------------------------------------*- C++ -*-===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Deepak Panickal6f9c4682014-05-16 10:51:01 +00006//
7//===----------------------------------------------------------------------===//
8
Zachary Turner1d6af022014-11-17 18:06:21 +00009// Overview: CMICmdCmdFileExecAndSymbols interface.
Deepak Panickal6f9c4682014-05-16 10:51:01 +000010//
Kate Stoneb9c1b512016-09-06 20:57:50 +000011// To implement new MI commands derive a new command class from the
12// command base
13// class. To enable the new command for interpretation add the new
14// command class
Zachary Turner1d6af022014-11-17 18:06:21 +000015// to the command factory. The files of relevance are:
16// MICmdCommands.cpp
17// MICmdBase.h / .cpp
18// MICmdCmd.h / .cpp
Kate Stoneb9c1b512016-09-06 20:57:50 +000019// For an introduction to adding a new command see
20// CMICmdCmdSupportInfoMiCmdQuery
Zachary Turner1d6af022014-11-17 18:06:21 +000021// command class as an example.
Deepak Panickal6f9c4682014-05-16 10:51:01 +000022
23#pragma once
24
25// In-house headers:
26#include "MICmdBase.h"
Deepak Panickal6f9c4682014-05-16 10:51:01 +000027#include "MICmnMIValueList.h"
Kate Stoneb9c1b512016-09-06 20:57:50 +000028#include "MICmnMIValueTuple.h"
Deepak Panickal6f9c4682014-05-16 10:51:01 +000029
Kate Stoneb9c1b512016-09-06 20:57:50 +000030//++
31//============================================================================
Zachary Turner1d6af022014-11-17 18:06:21 +000032// Details: MI command class. MI commands derived from the command base class.
33// *this class implements MI command "file-exec-and-symbols".
34// This command does not follow the MI documentation exactly.
Bruce Mitchenerae4c0262015-07-07 14:04:40 +000035// Gotchas: This command has additional flags that were not available in GDB MI.
Hafiz Abid Qadeer5f86f212015-03-12 18:35:54 +000036// See MIextensions.txt for details.
Deepak Panickal6f9c4682014-05-16 10:51:01 +000037//--
Kate Stoneb9c1b512016-09-06 20:57:50 +000038class CMICmdCmdFileExecAndSymbols : public CMICmdBase {
39 // Statics:
40public:
41 // Required by the CMICmdFactory when registering *this command
42 static CMICmdBase *CreateSelf();
Deepak Panickal6f9c4682014-05-16 10:51:01 +000043
Kate Stoneb9c1b512016-09-06 20:57:50 +000044 // Methods:
45public:
46 /* ctor */ CMICmdCmdFileExecAndSymbols();
Deepak Panickal6f9c4682014-05-16 10:51:01 +000047
Kate Stoneb9c1b512016-09-06 20:57:50 +000048 // Overridden:
49public:
50 // From CMICmdInvoker::ICmd
51 bool Execute() override;
52 bool Acknowledge() override;
53 bool ParseArgs() override;
54 // From CMICmnBase
55 /* dtor */ ~CMICmdCmdFileExecAndSymbols() override;
56 bool GetExitAppOnCommandFailure() const override;
Deepak Panickal6f9c4682014-05-16 10:51:01 +000057
Kate Stoneb9c1b512016-09-06 20:57:50 +000058 // Attributes:
59private:
60 const CMIUtilString m_constStrArgNameFile;
61 const CMIUtilString
62 m_constStrArgNamedPlatformName; // Added to support iOS platform selection
63 const CMIUtilString m_constStrArgNamedRemotePath; // Added to support iOS
64 // device remote file
65 // location
Deepak Panickal877569c2014-06-24 16:35:50 +000066};