Merge pull request #2926 from vadosnaprimer/debughlp_html

Command to print all debugger help to html file
This commit is contained in:
R. Belmont 2017-12-14 19:09:48 -05:00 committed by GitHub
commit 0971e20baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 416 additions and 296 deletions

View File

@ -137,6 +137,7 @@ debugger_commands::debugger_commands(running_machine& machine, debugger_cpu& cpu
/* add all the commands */
m_console.register_command("help", CMDFLAG_NONE, 0, 0, 1, std::bind(&debugger_commands::execute_help, this, _1, _2));
m_console.register_command("html", CMDFLAG_NONE, 0, 0, 0, std::bind(&debugger_commands::execute_html, this, _1, _2));
m_console.register_command("print", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, std::bind(&debugger_commands::execute_print, this, _1, _2));
m_console.register_command("printf", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, std::bind(&debugger_commands::execute_printf, this, _1, _2));
m_console.register_command("logerror", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, std::bind(&debugger_commands::execute_logerror, this, _1, _2));
@ -553,6 +554,19 @@ void debugger_commands::execute_help(int ref, const std::vector<std::string> &pa
}
/*-------------------------------------------------
execute_html - generate debughelp.html
-------------------------------------------------*/
void debugger_commands::execute_html(int ref, const std::vector<std::string> &params)
{
if (debug_generate_html())
m_console.printf("debughelp.html has been successfully created.\n");
else
m_console.printf("Error creating debughelp.html.");
}
/*-------------------------------------------------
execute_print - execute the print command
-------------------------------------------------*/

View File

@ -93,6 +93,7 @@ private:
void execute_trace_internal(int ref, const std::vector<std::string> &params, bool trace_over);
void execute_help(int ref, const std::vector<std::string> &params);
void execute_html(int ref, const std::vector<std::string> &params);
void execute_print(int ref, const std::vector<std::string> &params);
void execute_printf(int ref, const std::vector<std::string> &params);
void execute_logerror(int ref, const std::vector<std::string> &params);

File diff suppressed because it is too large Load Diff

View File

@ -20,5 +20,6 @@
/* help management */
const char * debug_get_help(const char *tag);
bool debug_generate_html();
#endif // MAME_EMU_DEBUG_DEBUGHLP_H