diff options
| author | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2015-04-29 08:18:41 +0000 |
|---|---|---|
| committer | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2015-04-29 08:18:41 +0000 |
| commit | fda237d09fbe88371e1255acef92fe451201bedc (patch) | |
| tree | ac862707691be727941d789406f5970670237b90 /lldb/tools/lldb-mi/MICmdCmdStack.h | |
| parent | 119998dbf14f97fdc4d52fdb4bd182f9fc0d9bb4 (diff) | |
| download | bcm5719-llvm-fda237d09fbe88371e1255acef92fe451201bedc.tar.gz bcm5719-llvm-fda237d09fbe88371e1255acef92fe451201bedc.zip | |
Add support for -stack-list-variables.
This command is able to list both local variables and stack arguments for a specific thread/frame.
Args are denoted with 'arg="1"'.
Patch from Chuck Ries.
llvm-svn: 236090
Diffstat (limited to 'lldb/tools/lldb-mi/MICmdCmdStack.h')
| -rw-r--r-- | lldb/tools/lldb-mi/MICmdCmdStack.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lldb/tools/lldb-mi/MICmdCmdStack.h b/lldb/tools/lldb-mi/MICmdCmdStack.h index 732df0240e2..f5b02976f3e 100644 --- a/lldb/tools/lldb-mi/MICmdCmdStack.h +++ b/lldb/tools/lldb-mi/MICmdCmdStack.h @@ -214,6 +214,42 @@ class CMICmdCmdStackListLocals : public CMICmdBase //++ ============================================================================ // Details: MI command class. MI commands derived from the command base class. +// *this class implements MI command "stack-list-variables". +//-- +class CMICmdCmdStackListVariables : public CMICmdBase +{ + // Statics: +public: + // Required by the CMICmdFactory when registering *this command + static CMICmdBase *CreateSelf(void); + + // Methods: +public: + /* ctor */ CMICmdCmdStackListVariables(void); + + // Overridden: +public: + // From CMICmdInvoker::ICmd + virtual bool Execute(void); + virtual bool Acknowledge(void); + virtual bool ParseArgs(void); + // From CMICmnBase + /* dtor */ virtual ~CMICmdCmdStackListVariables(void); + + // Attributes +private: + bool m_bThreadInvalid; // True = yes invalid thread, false = thread object valid + CMICmnMIValueList m_miValueList; + const CMIUtilString m_constStrArgThread; + const CMIUtilString m_constStrArgFrame; + const CMIUtilString m_constStrArgPrintValues; + const CMIUtilString m_constStrArgNoValues; + const CMIUtilString m_constStrArgAllValues; + const CMIUtilString m_constStrArgSimpleValues; +}; + +//++ ============================================================================ +// Details: MI command class. MI commands derived from the command base class. // *this class implements MI command "stack-select-frame". //-- class CMICmdCmdStackSelectFrame : public CMICmdBase |

