diff options
| author | Ilia K <ki.stfu@gmail.com> | 2015-02-19 19:26:52 +0000 |
|---|---|---|
| committer | Ilia K <ki.stfu@gmail.com> | 2015-02-19 19:26:52 +0000 |
| commit | db9050fd495f564387aa3179d800c887e2cd9595 (patch) | |
| tree | da6ed31a7ad24a311a0aaaee32154ff6291e66c4 /lldb/tools/lldb-mi/MICmdCmdStack.h | |
| parent | c9a9c7a67344fc50c80cfc2cd78f4b1666a7483f (diff) | |
| download | bcm5719-llvm-db9050fd495f564387aa3179d800c887e2cd9595.tar.gz bcm5719-llvm-db9050fd495f564387aa3179d800c887e2cd9595.zip | |
Add -stack-select-frame command (MI)
Summary:
Add -stack-select-frame command + test.
All tests pass on OS X.
Reviewers: abidh, emaste, clayborg
Reviewed By: clayborg
Subscribers: lldb-commits, emaste, clayborg, abidh
Differential Revision: http://reviews.llvm.org/D7765
llvm-svn: 229901
Diffstat (limited to 'lldb/tools/lldb-mi/MICmdCmdStack.h')
| -rw-r--r-- | lldb/tools/lldb-mi/MICmdCmdStack.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lldb/tools/lldb-mi/MICmdCmdStack.h b/lldb/tools/lldb-mi/MICmdCmdStack.h index ec90481300e..affe9a53977 100644 --- a/lldb/tools/lldb-mi/MICmdCmdStack.h +++ b/lldb/tools/lldb-mi/MICmdCmdStack.h @@ -15,6 +15,7 @@ // CMICmdCmdStackListFrames interface. // CMICmdCmdStackListArguments interface. // CMICmdCmdStackListLocals interface. +// CMICmdCmdStackSelectFrame interface. // // 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 @@ -182,6 +183,36 @@ class CMICmdCmdStackListArguments : public CMICmdBase //++ ============================================================================ // Details: MI command class. MI commands derived from the command base class. +// *this class implements MI command "stack-select-frame". +//-- +class CMICmdCmdStackSelectFrame : public CMICmdBase +{ + // Statics: + public: + // Required by the CMICmdFactory when registering *this command + static CMICmdBase *CreateSelf(void); + + // Methods: + public: + /* ctor */ CMICmdCmdStackSelectFrame(void); + + // Overridden: + public: + // From CMICmdInvoker::ICmd + virtual bool Execute(void); + virtual bool Acknowledge(void); + virtual bool ParseArgs(void); + // From CMICmnBase + /* dtor */ virtual ~CMICmdCmdStackSelectFrame(void); + + // Attributes: + private: + bool m_bFrameInvalid; // True = yes invalid frame, false = ok + const CMIUtilString m_constStrArgFrame; +}; + +//++ ============================================================================ +// Details: MI command class. MI commands derived from the command base class. // *this class implements MI command "stack-list-locals". // Gotchas: None. // Authors: Illya Rudkin 24/03/2014. |

