mirror of
https://github.com/holub/mame
synced 2025-06-06 21:03:47 +03:00
Watchpoint fixes (segfaults, wpclear not clearing) (nw)
This commit is contained in:
parent
bad31ea61c
commit
d5d82fa30a
@ -2885,9 +2885,9 @@ device_debug::watchpoint::watchpoint(device_debug* debugInterface,
|
|||||||
m_notifier = m_space.add_change_notifier([this](read_or_write mode) {
|
m_notifier = m_space.add_change_notifier([this](read_or_write mode) {
|
||||||
if (m_enabled)
|
if (m_enabled)
|
||||||
{
|
{
|
||||||
if (u32(mode) & u32(read_or_write::READ))
|
if (u32(mode) & u32(m_type) & u32(read_or_write::READ))
|
||||||
m_phr->remove();
|
m_phr->remove();
|
||||||
if (u32(mode) & u32(read_or_write::WRITE))
|
if (u32(mode) & u32(m_type) & u32(read_or_write::WRITE))
|
||||||
m_phw->remove();
|
m_phw->remove();
|
||||||
install(mode);
|
install(mode);
|
||||||
}
|
}
|
||||||
@ -2896,6 +2896,10 @@ device_debug::watchpoint::watchpoint(device_debug* debugInterface,
|
|||||||
|
|
||||||
device_debug::watchpoint::~watchpoint()
|
device_debug::watchpoint::~watchpoint()
|
||||||
{
|
{
|
||||||
|
if (m_phr)
|
||||||
|
m_phr->remove();
|
||||||
|
if (m_phw)
|
||||||
|
m_phw->remove();
|
||||||
m_space.remove_change_notifier(m_notifier);
|
m_space.remove_change_notifier(m_notifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user