summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcpu.cpp
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2015-11-15 13:07:26 +0100
committer ImJezze <jezze@gmx.net>2015-11-15 13:07:26 +0100
commit5200f15ace282ad246bd38af900472db353ba241 (patch)
tree93532e9717e2284223243dcba1ffddeff479e790 /src/emu/debug/debugcpu.cpp
parent2844aa7b02e3e76abc6e6707ebba0d6fa1c092be (diff)
parent15f6df6d66146007b7052d5efaa4513cdfd4ac79 (diff)
Merge remote-tracking branch 'remotes/mamedev/master'
Diffstat (limited to 'src/emu/debug/debugcpu.cpp')
-rw-r--r--src/emu/debug/debugcpu.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp
index 37d451ca0fb..8f399a1117a 100644
--- a/src/emu/debug/debugcpu.cpp
+++ b/src/emu/debug/debugcpu.cpp
@@ -12,7 +12,6 @@
#include "emuopts.h"
#include "osdepend.h"
#include "debugcpu.h"
-#include "debugcmd.h"
#include "debugcon.h"
#include "express.h"
#include "debugvw.h"
@@ -2378,7 +2377,7 @@ int device_debug::watchpoint_set(address_space &space, int type, offs_t address,
bool device_debug::watchpoint_clear(int index)
{
// scan the list to see if we own this breakpoint
- for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); spacenum++)
+ for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); ++spacenum)
for (watchpoint **wp = &m_wplist[spacenum]; *wp != NULL; wp = &(*wp)->m_next)
if ((*wp)->m_index == index)
{
@@ -2402,7 +2401,7 @@ bool device_debug::watchpoint_clear(int index)
void device_debug::watchpoint_clear_all()
{
// clear the head until we run out
- for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); spacenum++)
+ for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); ++spacenum)
while (m_wplist[spacenum] != NULL)
watchpoint_clear(m_wplist[spacenum]->index());
}
@@ -2416,7 +2415,7 @@ void device_debug::watchpoint_clear_all()
bool device_debug::watchpoint_enable(int index, bool enable)
{
// scan the list to see if we own this watchpoint
- for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); spacenum++)
+ for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); ++spacenum)
for (watchpoint *wp = m_wplist[spacenum]; wp != NULL; wp = wp->next())
if (wp->m_index == index)
{
@@ -2438,7 +2437,7 @@ bool device_debug::watchpoint_enable(int index, bool enable)
void device_debug::watchpoint_enable_all(bool enable)
{
// apply the enable to all watchpoints we own
- for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); spacenum++)
+ for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); ++spacenum)
for (watchpoint *wp = m_wplist[spacenum]; wp != NULL; wp = wp->next())
watchpoint_enable(wp->index(), enable);
}