diff options
Diffstat (limited to 'tools/lldb-mi/MICmdCmdData.h')
-rw-r--r-- | tools/lldb-mi/MICmdCmdData.h | 156 |
1 files changed, 59 insertions, 97 deletions
diff --git a/tools/lldb-mi/MICmdCmdData.h b/tools/lldb-mi/MICmdCmdData.h index 576441024a37..028c71387f31 100644 --- a/tools/lldb-mi/MICmdCmdData.h +++ b/tools/lldb-mi/MICmdCmdData.h @@ -42,29 +42,26 @@ //++ ============================================================================ // Details: MI command class. MI commands derived from the command base class. // *this class implements MI command "data-evaluate-expression". -// Gotchas: None. -// Authors: Illya Rudkin 26/03/2014. -// Changes: None. //-- class CMICmdCmdDataEvaluateExpression : public CMICmdBase { // Statics: public: // Required by the CMICmdFactory when registering *this command - static CMICmdBase *CreateSelf(void); + static CMICmdBase *CreateSelf(); // Methods: public: - /* ctor */ CMICmdCmdDataEvaluateExpression(void); + /* ctor */ CMICmdCmdDataEvaluateExpression(); // Overridden: public: // From CMICmdInvoker::ICmd - bool Execute(void) override; - bool Acknowledge(void) override; - bool ParseArgs(void) override; + bool Execute() override; + bool Acknowledge() override; + bool ParseArgs() override; // From CMICmnBase - /* dtor */ ~CMICmdCmdDataEvaluateExpression(void) override; + /* dtor */ ~CMICmdCmdDataEvaluateExpression() override; // Methods: private: @@ -76,47 +73,39 @@ class CMICmdCmdDataEvaluateExpression : public CMICmdBase bool m_bEvaluatedExpression; // True = yes is expression evaluated, false = failed CMIUtilString m_strValue; CMICmnMIValueTuple m_miValueTuple; - bool m_bCompositeVarType; // True = yes composite type, false = internal type bool m_bFoundInvalidChar; // True = yes found unexpected character in the expression, false = all ok char m_cExpressionInvalidChar; - const CMIUtilString m_constStrArgThread; // Not specified in MI spec but Eclipse gives this option. Not handled by command. - const CMIUtilString m_constStrArgFrame; // Not specified in MI spec but Eclipse gives this option. Not handled by command. const CMIUtilString m_constStrArgExpr; }; //++ ============================================================================ // Details: MI command class. MI commands derived from the command base class. // *this class implements MI command "data-disassemble". -// Gotchas: None. -// Authors: Illya Rudkin 19/05/2014. -// Changes: None. //-- class CMICmdCmdDataDisassemble : public CMICmdBase { // Statics: public: // Required by the CMICmdFactory when registering *this command - static CMICmdBase *CreateSelf(void); + static CMICmdBase *CreateSelf(); // Methods: public: - /* ctor */ CMICmdCmdDataDisassemble(void); + /* ctor */ CMICmdCmdDataDisassemble(); // Overridden: public: // From CMICmdInvoker::ICmd - bool Execute(void) override; - bool Acknowledge(void) override; - bool ParseArgs(void) override; + bool Execute() override; + bool Acknowledge() override; + bool ParseArgs() override; // From CMICmnBase - /* dtor */ ~CMICmdCmdDataDisassemble(void) override; + /* dtor */ ~CMICmdCmdDataDisassemble() override; // Attributes: private: - const CMIUtilString m_constStrArgThread; // Not specified in MI spec but Eclipse gives this option. Not handled by command. const CMIUtilString m_constStrArgAddrStart; // MI spec non mandatory, *this command mandatory const CMIUtilString m_constStrArgAddrEnd; // MI spec non mandatory, *this command mandatory - const CMIUtilString m_constStrArgConsume; const CMIUtilString m_constStrArgMode; CMICmnMIValueList m_miValueList; }; @@ -124,34 +113,29 @@ class CMICmdCmdDataDisassemble : public CMICmdBase //++ ============================================================================ // Details: MI command class. MI commands derived from the command base class. // *this class implements MI command "data-read-memory-bytes". -// Gotchas: None. -// Authors: Illya Rudkin 20/05/2014. -// Changes: None. //-- class CMICmdCmdDataReadMemoryBytes : public CMICmdBase { // Statics: public: // Required by the CMICmdFactory when registering *this command - static CMICmdBase *CreateSelf(void); + static CMICmdBase *CreateSelf(); // Methods: public: - /* ctor */ CMICmdCmdDataReadMemoryBytes(void); + /* ctor */ CMICmdCmdDataReadMemoryBytes(); // Overridden: public: // From CMICmdInvoker::ICmd - bool Execute(void) override; - bool Acknowledge(void) override; - bool ParseArgs(void) override; + bool Execute() override; + bool Acknowledge() override; + bool ParseArgs() override; // From CMICmnBase - /* dtor */ ~CMICmdCmdDataReadMemoryBytes(void) override; + /* dtor */ ~CMICmdCmdDataReadMemoryBytes() override; // Attributes: private: - const CMIUtilString m_constStrArgThread; // Not in the MI spec but implemented by GDB. - const CMIUtilString m_constStrArgFrame; // Not in the MI spec but implemented by GDB. const CMIUtilString m_constStrArgByteOffset; const CMIUtilString m_constStrArgAddrExpr; const CMIUtilString m_constStrArgNumBytes; @@ -163,56 +147,50 @@ class CMICmdCmdDataReadMemoryBytes : public CMICmdBase //++ ============================================================================ // Details: MI command class. MI commands derived from the command base class. // *this class implements MI command "data-read-memory". -// Gotchas: None. -// Authors: Illya Rudkin 21/05/2014. -// Changes: None. //-- class CMICmdCmdDataReadMemory : public CMICmdBase { // Statics: public: // Required by the CMICmdFactory when registering *this command - static CMICmdBase *CreateSelf(void); + static CMICmdBase *CreateSelf(); // Methods: public: - /* ctor */ CMICmdCmdDataReadMemory(void); + /* ctor */ CMICmdCmdDataReadMemory(); // Overridden: public: // From CMICmdInvoker::ICmd - bool Execute(void) override; - bool Acknowledge(void) override; + bool Execute() override; + bool Acknowledge() override; // From CMICmnBase - /* dtor */ ~CMICmdCmdDataReadMemory(void) override; + /* dtor */ ~CMICmdCmdDataReadMemory() override; }; //++ ============================================================================ // Details: MI command class. MI commands derived from the command base class. // *this class implements MI command "data-list-register-names". -// Gotchas: None. -// Authors: Illya Rudkin 21/05/2014. -// Changes: None. //-- class CMICmdCmdDataListRegisterNames : public CMICmdBase { // Statics: public: // Required by the CMICmdFactory when registering *this command - static CMICmdBase *CreateSelf(void); + static CMICmdBase *CreateSelf(); // Methods: public: - /* ctor */ CMICmdCmdDataListRegisterNames(void); + /* ctor */ CMICmdCmdDataListRegisterNames(); // Overridden: public: // From CMICmdInvoker::ICmd - bool Execute(void) override; - bool Acknowledge(void) override; - bool ParseArgs(void) override; + bool Execute() override; + bool Acknowledge() override; + bool ParseArgs() override; // From CMICmnBase - /* dtor */ ~CMICmdCmdDataListRegisterNames(void) override; + /* dtor */ ~CMICmdCmdDataListRegisterNames() override; // Methods: private: @@ -220,7 +198,6 @@ class CMICmdCmdDataListRegisterNames : public CMICmdBase // Attributes: private: - const CMIUtilString m_constStrArgThreadGroup; // Not specified in MI spec but Eclipse gives this option const CMIUtilString m_constStrArgRegNo; // Not handled by *this command CMICmnMIValueList m_miValueList; }; @@ -228,38 +205,34 @@ class CMICmdCmdDataListRegisterNames : public CMICmdBase //++ ============================================================================ // Details: MI command class. MI commands derived from the command base class. // *this class implements MI command "data-list-register-values". -// Gotchas: None. -// Authors: Illya Rudkin 21/05/2014. -// Changes: None. //-- class CMICmdCmdDataListRegisterValues : public CMICmdBase { // Statics: public: // Required by the CMICmdFactory when registering *this command - static CMICmdBase *CreateSelf(void); + static CMICmdBase *CreateSelf(); // Methods: public: - /* ctor */ CMICmdCmdDataListRegisterValues(void); + /* ctor */ CMICmdCmdDataListRegisterValues(); // Overridden: public: // From CMICmdInvoker::ICmd - bool Execute(void) override; - bool Acknowledge(void) override; - bool ParseArgs(void) override; + bool Execute() override; + bool Acknowledge() override; + bool ParseArgs() override; // From CMICmnBase - /* dtor */ ~CMICmdCmdDataListRegisterValues(void) override; + /* dtor */ ~CMICmdCmdDataListRegisterValues() override; // Methods: private: lldb::SBValue GetRegister(const MIuint vRegisterIndex) const; - bool AddToOutput(const MIuint vnIndex, const lldb::SBValue &vrValue, CMICmnLLDBDebugSessionInfoVarObj::varFormat_e veVarFormat); + void AddToOutput(const MIuint vnIndex, const lldb::SBValue &vrValue, CMICmnLLDBDebugSessionInfoVarObj::varFormat_e veVarFormat); // Attributes: private: - const CMIUtilString m_constStrArgThread; // Not specified in MI spec but Eclipse gives this option const CMIUtilString m_constStrArgSkip; // Not handled by *this command const CMIUtilString m_constStrArgFormat; const CMIUtilString m_constStrArgRegNo; @@ -269,60 +242,53 @@ class CMICmdCmdDataListRegisterValues : public CMICmdBase //++ ============================================================================ // Details: MI command class. MI commands derived from the command base class. // *this class implements MI command "data-list-changed-registers". -// Gotchas: None. -// Authors: Illya Rudkin 22/05/2014. -// Changes: None. //-- class CMICmdCmdDataListRegisterChanged : public CMICmdBase { // Statics: public: // Required by the CMICmdFactory when registering *this command - static CMICmdBase *CreateSelf(void); + static CMICmdBase *CreateSelf(); // Methods: public: - /* ctor */ CMICmdCmdDataListRegisterChanged(void); + /* ctor */ CMICmdCmdDataListRegisterChanged(); // Overridden: public: // From CMICmdInvoker::ICmd - bool Execute(void) override; - bool Acknowledge(void) override; + bool Execute() override; + bool Acknowledge() override; // From CMICmnBase - /* dtor */ ~CMICmdCmdDataListRegisterChanged(void) override; + /* dtor */ ~CMICmdCmdDataListRegisterChanged() override; }; //++ ============================================================================ // Details: MI command class. MI commands derived from the command base class. // *this class implements MI command "data-read-memory-bytes". -// Gotchas: None. -// Authors: Illya Rudkin 30/05/2014. -// Changes: None. //-- class CMICmdCmdDataWriteMemoryBytes : public CMICmdBase { // Statics: public: // Required by the CMICmdFactory when registering *this command - static CMICmdBase *CreateSelf(void); + static CMICmdBase *CreateSelf(); // Methods: public: - /* ctor */ CMICmdCmdDataWriteMemoryBytes(void); + /* ctor */ CMICmdCmdDataWriteMemoryBytes(); // Overridden: public: // From CMICmdInvoker::ICmd - bool Execute(void) override; - bool Acknowledge(void) override; - bool ParseArgs(void) override; + bool Execute() override; + bool Acknowledge() override; + bool ParseArgs() override; // From CMICmnBase - /* dtor */ ~CMICmdCmdDataWriteMemoryBytes(void) override; + /* dtor */ ~CMICmdCmdDataWriteMemoryBytes() override; // Attributes: private: - const CMIUtilString m_constStrArgThread; // Not specified in MI spec but Eclipse gives this option. Not handled by command. const CMIUtilString m_constStrArgAddr; const CMIUtilString m_constStrArgContents; const CMIUtilString m_constStrArgCount; @@ -333,33 +299,29 @@ class CMICmdCmdDataWriteMemoryBytes : public CMICmdBase // Details: MI command class. MI commands derived from the command base class. // *this class implements MI command "data-read-memory". // Not specified in MI spec but Eclipse gives *this command. -// Gotchas: None. -// Authors: Illya Rudkin 02/05/2014. -// Changes: None. //-- class CMICmdCmdDataWriteMemory : public CMICmdBase { // Statics: public: // Required by the CMICmdFactory when registering *this command - static CMICmdBase *CreateSelf(void); + static CMICmdBase *CreateSelf(); // Methods: public: - /* ctor */ CMICmdCmdDataWriteMemory(void); + /* ctor */ CMICmdCmdDataWriteMemory(); // Overridden: public: // From CMICmdInvoker::ICmd - bool Execute(void) override; - bool Acknowledge(void) override; - bool ParseArgs(void) override; + bool Execute() override; + bool Acknowledge() override; + bool ParseArgs() override; // From CMICmnBase - /* dtor */ ~CMICmdCmdDataWriteMemory(void) override; + /* dtor */ ~CMICmdCmdDataWriteMemory() override; // Attributes: private: - const CMIUtilString m_constStrArgThread; // Not specified in MI spec but Eclipse gives this option. Not handled by command. const CMIUtilString m_constStrArgOffset; // Not specified in MI spec but Eclipse gives this option. const CMIUtilString m_constStrArgAddr; // Not specified in MI spec but Eclipse gives this option. const CMIUtilString m_constStrArgD; // Not specified in MI spec but Eclipse gives this option. @@ -381,20 +343,20 @@ class CMICmdCmdDataInfoLine : public CMICmdBase // Statics: public: // Required by the CMICmdFactory when registering *this command - static CMICmdBase *CreateSelf(void); + static CMICmdBase *CreateSelf(); // Methods: public: - /* ctor */ CMICmdCmdDataInfoLine(void); + /* ctor */ CMICmdCmdDataInfoLine(); // Overridden: public: // From CMICmdInvoker::ICmd - bool Execute(void) override; - bool Acknowledge(void) override; - bool ParseArgs(void) override; + bool Execute() override; + bool Acknowledge() override; + bool ParseArgs() override; // From CMICmnBase - /* dtor */ ~CMICmdCmdDataInfoLine(void) override; + /* dtor */ ~CMICmdCmdDataInfoLine() override; // Attributes: private: |