summaryrefslogtreecommitdiffstats
path: root/src/emu/debug/debugcmd.cpp
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2017-12-14 19:09:48 -0500
committer GitHub <noreply@github.com>2017-12-14 19:09:48 -0500
commit0971e20bafa8d93b78d85fda441783857a38de27 (patch)
tree7cba9ffe48eddb6a09e8f4e3314c9527e0292a1b /src/emu/debug/debugcmd.cpp
parent7ccdfe186f7bfb998e6e048bd00d2b3d77b7f6eb (diff)
parent4feda9bf3ea36f141d6885f9f670217c6054d888 (diff)
Merge pull request #2926 from vadosnaprimer/debughlp_html
Command to print all debugger help to html file
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r--src/emu/debug/debugcmd.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp
index 1b48be30e1f..6c1db21dba6 100644
--- a/src/emu/debug/debugcmd.cpp
+++ b/src/emu/debug/debugcmd.cpp
@@ -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));
@@ -554,6 +555,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
-------------------------------------------------*/