aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/bruiser.h
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-05-06 18:11:27 +0000
committerbloodstalker <thabogre@gmail.com>2017-05-06 18:11:27 +0000
commit34eaad54dfa8b2499a955aa64b057b0ebaf56461 (patch)
treef116b14bd61a85aed19f3ef04078279c4c294df8 /bruiser/bruiser.h
parentadded inital support for auto translation of function declarations (diff)
downloadmutator-34eaad54dfa8b2499a955aa64b057b0ebaf56461.tar.gz
mutator-34eaad54dfa8b2499a955aa64b057b0ebaf56461.zip
added a help structure along with minor additions/changes
Diffstat (limited to '')
-rw-r--r--bruiser/bruiser.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/bruiser/bruiser.h b/bruiser/bruiser.h
index 7d32da9..cdb5141 100644
--- a/bruiser/bruiser.h
+++ b/bruiser/bruiser.h
@@ -72,6 +72,27 @@ namespace bruiser
enum class M0_ERR {M0_ERROR_CODES};
#undef X
/**********************************************************************************************************************/
+struct help
+{
+ std::string name;
+ std::string proto;
+ std::string descr;
+ std::string protoprefix;
+ std::string retval;
+};
+
+help CMDHelp[] ={
+ {"help", "", "display general help", "", ""},
+ {"quit", "", "quit bruiser", "", ""},
+ {"exit", "", "quit bruiser", "", ""},
+ {"m0", "", "bruiser reads the report generated by mutator-lvl0", "", ""},
+ {"hijack", "hijack main", "runs a specific matcher that replaces the main with a new main", "", ""},
+ {"clear", "", "clears the terminal", "", ""},
+ {"shell", "", "opens up a bash shell inside bruiser", "", ""},
+ {"history", "", "prints bruiser's history", "", ""},
+ {"!", "", "prints the command from history", "", ""}
+};
+/**********************************************************************************************************************/
/**
* @brief This class handles the logging for bruiser.
*/
@@ -169,7 +190,11 @@ class SearchM0
void Debug(void)
{
+ if (!RootPointer->NoChildren())
+ {
+ const XMLElement* XMLE [[maybe_unused]] = RootPointer->FirstChildElement();
+ }
}
private: