From 4a032ab057e23eab83936dab1afffe9850487271 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Mon, 29 Nov 2010 16:23:20 +0000 Subject: [PATCH] Fix F4 shortcut so it explicitly labels the address as a number by preceding it with "0x". This allows F4 to work properly, for example, on the 68000 stepping to address a6, which also happens to be a register name. --- src/osd/sdl/debugwin.c | 2 +- src/osd/windows/debugwin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/sdl/debugwin.c b/src/osd/sdl/debugwin.c index be42bdb2c9f..212815a49bb 100644 --- a/src/osd/sdl/debugwin.c +++ b/src/osd/sdl/debugwin.c @@ -1126,7 +1126,7 @@ void on_run_to_cursor_activate(GtkWidget *win) if (debug_cpu_get_visible_cpu(info->machine) == disasm->view->source()->device()) { offs_t address = downcast(disasm->view)->selected_address(); - command.printf("go %X", address); + command.printf("go 0x%X", address); debug_console_execute_command(info->machine, command, 1); } } diff --git a/src/osd/windows/debugwin.c b/src/osd/windows/debugwin.c index f75d34daf12..3839d95ee88 100644 --- a/src/osd/windows/debugwin.c +++ b/src/osd/windows/debugwin.c @@ -2252,7 +2252,7 @@ static int disasm_handle_command(debugwin_info *info, WPARAM wparam, LPARAM lpar if (dasmview->cursor_visible() && debug_cpu_get_visible_cpu(info->machine) == dasmview->source()->device()) { offs_t address = dasmview->selected_address(); - sprintf(command, "go %X", address); + sprintf(command, "go 0x%X", address); debug_console_execute_command(info->machine, command, 1); } return 1;