summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
author Andrew Gardner <andrew-gardner@users.noreply.github.com>2008-12-22 04:51:20 +0000
committer Andrew Gardner <andrew-gardner@users.noreply.github.com>2008-12-22 04:51:20 +0000
commit2485660bfd0e93bb2813a46fb5fc859ead02f0e5 (patch)
tree9bf1299b271ea1a9823012342a4de5fcc38e219a /src/osd
parent6be42cb8501652cf5a0c0bba0fa233a536e79d2b (diff)
Fixes 'run to cursor' and 'toggle breakpoint' operations in the win32 debugger. [Andrew Gardner]
(It was doing a double-shift for CPUs with a address shift) (The bpset command seems to occasionally behave oddly for cpus with address shifts as well. Didn't figure that problem out in the few minutes i looked at it.)
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/windows/debugwin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/windows/debugwin.c b/src/osd/windows/debugwin.c
index 4f4d4f69947..b837ec07795 100644
--- a/src/osd/windows/debugwin.c
+++ b/src/osd/windows/debugwin.c
@@ -2201,7 +2201,7 @@ static int disasm_handle_command(debugwin_info *info, WPARAM wparam, LPARAM lpar
const address_space *space = disasm_view_get_current_subview(info->view[0].view)->space;
if (debug_cpu_get_visible_cpu(info->machine) == space->cpu)
{
- offs_t address = memory_byte_to_address(space, disasm_view_get_selected_address(info->view[0].view));
+ offs_t address = disasm_view_get_selected_address(info->view[0].view);
sprintf(command, "go %X", address);
debug_console_execute_command(info->machine, command, 1);
}
@@ -2214,7 +2214,7 @@ static int disasm_handle_command(debugwin_info *info, WPARAM wparam, LPARAM lpar
const address_space *space = disasm_view_get_current_subview(info->view[0].view)->space;
if (debug_cpu_get_visible_cpu(info->machine) == space->cpu)
{
- offs_t address = memory_byte_to_address(space, disasm_view_get_selected_address(info->view[0].view));
+ offs_t address = disasm_view_get_selected_address(info->view[0].view);
cpu_debug_data *cpuinfo = cpu_get_debug_data(space->cpu);
debug_cpu_breakpoint *bp;
INT32 bpindex = -1;