From 1bdf8d272a32d161e11c96984bf3614de3210003 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Mon, 30 Nov 2020 12:01:14 +1100 Subject: frontend: Lua engine improvements. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added methods for enabling and disabling breakpoints and watchpoints, and made debugger views update when breakpoints/watchpoints are manipulated from Lua. Made breakpoints and watchpoints objects rather than tables. (It’s not possible to enable/disable a breakpoint or watchpoint from the object itself, you have to go through its owners' debug interface.) Exposed more device_t members for dealing with child/sibling tags and devices. Also provided a way to get regions/shares/banks from a device using relative tags rather than going through the memory manager with absolute tags. --- src/emu/debug/debugcpu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/emu/debug/debugcpu.cpp') diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 3c325d3a841..e91a7801b3c 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -1669,7 +1669,7 @@ void device_debug::breakpoint_update_flags() break; } - if ( ! ( m_flags & DEBUG_FLAG_LIVE_BP ) ) + if (!(m_flags & DEBUG_FLAG_LIVE_BP)) { // see if there are any enabled registerpoints for (debug_registerpoint &rp : *m_rplist) @@ -1677,6 +1677,7 @@ void device_debug::breakpoint_update_flags() if (rp.m_enabled) { m_flags |= DEBUG_FLAG_LIVE_BP; + break; } } } -- cgit v1.2.3