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.
This commit is contained in:
Aaron Giles 2010-11-29 16:23:20 +00:00
parent 6aea3af6c1
commit 4a032ab057
2 changed files with 2 additions and 2 deletions

View File

@ -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<debug_view_disasm *>(disasm->view)->selected_address();
command.printf("go %X", address);
command.printf("go 0x%X", address);
debug_console_execute_command(info->machine, command, 1);
}
}

View File

@ -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;