mirror of
https://github.com/holub/mame
synced 2025-06-19 02:38:56 +03:00
Merge pull request #2926 from vadosnaprimer/debughlp_html
Command to print all debugger help to html file
This commit is contained in:
commit
0971e20baf
@ -137,6 +137,7 @@ debugger_commands::debugger_commands(running_machine& machine, debugger_cpu& cpu
|
|||||||
|
|
||||||
/* add all the commands */
|
/* 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("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("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("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));
|
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> ¶ms)
|
||||||
|
{
|
||||||
|
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
|
execute_print - execute the print command
|
||||||
-------------------------------------------------*/
|
-------------------------------------------------*/
|
||||||
|
@ -93,6 +93,7 @@ private:
|
|||||||
void execute_trace_internal(int ref, const std::vector<std::string> ¶ms, bool trace_over);
|
void execute_trace_internal(int ref, const std::vector<std::string> ¶ms, bool trace_over);
|
||||||
|
|
||||||
void execute_help(int ref, const std::vector<std::string> ¶ms);
|
void execute_help(int ref, const std::vector<std::string> ¶ms);
|
||||||
|
void execute_html(int ref, const std::vector<std::string> ¶ms);
|
||||||
void execute_print(int ref, const std::vector<std::string> ¶ms);
|
void execute_print(int ref, const std::vector<std::string> ¶ms);
|
||||||
void execute_printf(int ref, const std::vector<std::string> ¶ms);
|
void execute_printf(int ref, const std::vector<std::string> ¶ms);
|
||||||
void execute_logerror(int ref, const std::vector<std::string> ¶ms);
|
void execute_logerror(int ref, const std::vector<std::string> ¶ms);
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -20,5 +20,6 @@
|
|||||||
|
|
||||||
/* help management */
|
/* help management */
|
||||||
const char * debug_get_help(const char *tag);
|
const char * debug_get_help(const char *tag);
|
||||||
|
bool debug_generate_html();
|
||||||
|
|
||||||
#endif // MAME_EMU_DEBUG_DEBUGHLP_H
|
#endif // MAME_EMU_DEBUG_DEBUGHLP_H
|
||||||
|
Loading…
Reference in New Issue
Block a user