summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/osx/debugwindowhandler.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger/osx/debugwindowhandler.m')
-rw-r--r--src/osd/modules/debugger/osx/debugwindowhandler.m12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/osd/modules/debugger/osx/debugwindowhandler.m b/src/osd/modules/debugger/osx/debugwindowhandler.m
index ba0a0d83351..924208a33cd 100644
--- a/src/osd/modules/debugger/osx/debugwindowhandler.m
+++ b/src/osd/modules/debugger/osx/debugwindowhandler.m
@@ -14,8 +14,6 @@
#import "debugcommandhistory.h"
#import "debugview.h"
-#include "debug/debugcpu.h"
-
//============================================================
// NOTIFICATIONS
@@ -128,6 +126,14 @@ NSString *const MAMEAuxiliaryDebugWindowWillCloseNotification = @"MAMEAuxiliaryD
}
++ (device_debug::breakpoint *)findBreakpointAtAddress:(offs_t)address forDevice:(device_t &)device {
+ device_debug *const cpuinfo = device.debug();
+ device_debug::breakpoint *bp = cpuinfo->breakpoint_first();
+ while ((bp != NULL) && (address != bp->address())) bp = bp->next();
+ return bp;
+}
+
+
- (id)initWithMachine:(running_machine &)m title:(NSString *)t {
if (!(self = [super init]))
return nil;
@@ -421,4 +427,4 @@ NSString *const MAMEAuxiliaryDebugWindowWillCloseNotification = @"MAMEAuxiliaryD
return NO;
}
-@end \ No newline at end of file
+@end