summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug
diff options
context:
space:
mode:
author Andrew Gardner <andrew-gardner@users.noreply.github.com>2013-01-24 17:06:42 +0000
committer Andrew Gardner <andrew-gardner@users.noreply.github.com>2013-01-24 17:06:42 +0000
commitba61a286f382eb9268a6f455365fad9546274e75 (patch)
tree67bd86940e57fbe7951907733be3b3c5b6234383 /src/emu/debug
parent183b9f0638ba3da0f1b1871334ae0cf0b30fb9a1 (diff)
QT Debugger improvements [Andrew Gardner]
- Save and load window locations. - Preliminary work on "run and hide" and "hard reset" (don't crash on one of my copmilers but do on another - more work to do!) - Fixed color when cursor is the same as PC in debug view. - Closing the main window now shuts down the machine (same as quit) - Help now wraps to the log window size.
Diffstat (limited to 'src/emu/debug')
-rw-r--r--src/emu/debug/debugcmd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c
index ad9ff5f7e47..e864126a34f 100644
--- a/src/emu/debug/debugcmd.c
+++ b/src/emu/debug/debugcmd.c
@@ -258,7 +258,7 @@ void debug_command_init(running_machine &machine)
}
/* add all the commands */
- debug_console_register_command(machine, "help", CMDFLAG_NONE, 0, 0, 1, execute_help);
+ debug_console_register_command(machine, "help", CMDFLAG_NONE, 0, 0, 2, execute_help);
debug_console_register_command(machine, "print", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, execute_print);
debug_console_register_command(machine, "printf", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, execute_printf);
debug_console_register_command(machine, "logerror", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, execute_logerror);
@@ -643,8 +643,14 @@ static void execute_help(running_machine &machine, int ref, int params, const ch
{
if (params == 0)
debug_console_printf_wrap(machine, 80, "%s\n", debug_get_help(""));
- else
+ else if (params == 1)
debug_console_printf_wrap(machine, 80, "%s\n", debug_get_help(param[0]));
+ else if (params == 2)
+ {
+ UINT64 width;
+ debug_command_parameter_number(machine, param[1], &width);
+ debug_console_printf_wrap(machine, (int)width, "%s\n", debug_get_help(param[0]));
+ }
}