mirror of
https://github.com/holub/mame
synced 2025-04-24 01:11:11 +03:00
Don't assume a watch point exists for the address space passed to watchpoint_update_flags(), which fixes the hotspot command. (nw)
This commit is contained in:
parent
1e4d09f337
commit
8a12dd4dc6
@ -2715,14 +2715,15 @@ void device_debug::watchpoint_update_flags(address_space &space)
|
||||
|
||||
// see if there are any enabled breakpoints
|
||||
bool enablewrite = false;
|
||||
for (watchpoint *wp = m_wplist[space.spacenum()]; wp != nullptr; wp = wp->m_next)
|
||||
if (wp->m_enabled)
|
||||
{
|
||||
if (wp->m_type & WATCHPOINT_READ)
|
||||
enableread = true;
|
||||
if (wp->m_type & WATCHPOINT_WRITE)
|
||||
enablewrite = true;
|
||||
}
|
||||
if (space.spacenum() < int(m_wplist.size()))
|
||||
for (watchpoint *wp = m_wplist[space.spacenum()]; wp != nullptr; wp = wp->m_next)
|
||||
if (wp->m_enabled)
|
||||
{
|
||||
if (wp->m_type & WATCHPOINT_READ)
|
||||
enableread = true;
|
||||
if (wp->m_type & WATCHPOINT_WRITE)
|
||||
enablewrite = true;
|
||||
}
|
||||
|
||||
// push the flags out globally
|
||||
space.enable_read_watchpoints(enableread);
|
||||
|
Loading…
Reference in New Issue
Block a user