diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:55:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:55:28 +0000 |
commit | e81d9d49145e432d917eea3a70d2ae74dcad1d89 (patch) | |
tree | 9ed5e1a91f242e2cb5911577356e487a55c01b78 /tools/lldb-mi/MICmdCmdSupportList.cpp | |
parent | 85d8ef8f1f0e0e063a8571944302be2d2026f823 (diff) |
Notes
Diffstat (limited to 'tools/lldb-mi/MICmdCmdSupportList.cpp')
-rw-r--r-- | tools/lldb-mi/MICmdCmdSupportList.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/tools/lldb-mi/MICmdCmdSupportList.cpp b/tools/lldb-mi/MICmdCmdSupportList.cpp index 6cf4b0b533bca..06d63612de6eb 100644 --- a/tools/lldb-mi/MICmdCmdSupportList.cpp +++ b/tools/lldb-mi/MICmdCmdSupportList.cpp @@ -22,7 +22,7 @@ // Return: None. // Throws: None. //-- -CMICmdCmdSupportListFeatures::CMICmdCmdSupportListFeatures(void) +CMICmdCmdSupportListFeatures::CMICmdCmdSupportListFeatures() { // Command factory matches this name with that received from the stdin stream m_strMiCmd = "list-features"; @@ -38,7 +38,7 @@ CMICmdCmdSupportListFeatures::CMICmdCmdSupportListFeatures(void) // Return: None. // Throws: None. //-- -CMICmdCmdSupportListFeatures::~CMICmdCmdSupportListFeatures(void) +CMICmdCmdSupportListFeatures::~CMICmdCmdSupportListFeatures() { } @@ -52,7 +52,7 @@ CMICmdCmdSupportListFeatures::~CMICmdCmdSupportListFeatures(void) // Throws: None. //-- bool -CMICmdCmdSupportListFeatures::Execute(void) +CMICmdCmdSupportListFeatures::Execute() { // Do nothing @@ -69,10 +69,15 @@ CMICmdCmdSupportListFeatures::Execute(void) // Throws: None. //-- bool -CMICmdCmdSupportListFeatures::Acknowledge(void) +CMICmdCmdSupportListFeatures::Acknowledge() { - const CMICmnMIValueConst miValueConst("data-read-memory-bytes"); - const CMICmnMIValueList miValueList(miValueConst); + // Declare supported features here + const CMICmnMIValueConst miValueConst1("data-read-memory-bytes"); + const CMICmnMIValueConst miValueConst2("exec-run-start-option"); + // Some features may depend on host and/or target, decide what to add below + CMICmnMIValueList miValueList(true); + miValueList.Add(miValueConst1); + miValueList.Add(miValueConst2); const CMICmnMIValueResult miValueResult("features", miValueList); const CMICmnMIResultRecord miRecordResult(m_cmdData.strMiCmdToken, CMICmnMIResultRecord::eResultClass_Done, miValueResult); m_miResultRecord = miRecordResult; @@ -89,7 +94,7 @@ CMICmdCmdSupportListFeatures::Acknowledge(void) // Throws: None. //-- CMICmdBase * -CMICmdCmdSupportListFeatures::CreateSelf(void) +CMICmdCmdSupportListFeatures::CreateSelf() { return new CMICmdCmdSupportListFeatures(); } |