Previous 199869 Revisions Next

r18030 Wednesday 19th September, 2012 at 21:11:39 UTC by Wilbert Pol
OSX compile fixes (nw)
[src/osd/sdl]debugosx.m

trunk/src/osd/sdl/debugosx.m
r18029r18030
887887
888888@implementation MAMEDisassemblyView
889889
890- (device_debug::breakpoint *)findBreakpointAtAddress:(offs_t)address inAddressSpace:(address_space *)space {
891   device_debug         *cpuinfo = space->device().debug();
890- (device_debug::breakpoint *)findBreakpointAtAddress:(offs_t)address inAddressSpace:(address_space &)space {
891   device_debug         *cpuinfo = space.device().debug();
892892   device_debug::breakpoint   *bp;
893893   for (bp = cpuinfo->breakpoint_first(); (bp != NULL) && (address != bp->address()); bp = bp->next()) {}
894894   return bp;
r18029r18030
10901090
10911091- (IBAction)debugToggleBreakpoint:(id)sender {
10921092   if (view->cursor_visible()) {
1093      address_space *space = downcast<const debug_view_disasm_source *>(view->source())->space();
1094      if (!useConsole || (debug_cpu_get_visible_cpu(*machine) == &space->device())) {
1093      address_space &space = downcast<const debug_view_disasm_source *>(view->source())->space();
1094      if (!useConsole || (debug_cpu_get_visible_cpu(*machine) == &space.device())) {
10951095         offs_t            address = downcast<debug_view_disasm *>(view)->selected_address();
10961096         device_debug::breakpoint *bp = [self findBreakpointAtAddress:address inAddressSpace:space];
10971097
r18029r18030
11051105            debug_console_execute_command(*machine, [command UTF8String], 1);
11061106         } else {
11071107            if (bp == NULL)
1108               space->device().debug()->breakpoint_set(address, NULL, NULL);
1108               space.device().debug()->breakpoint_set(address, NULL, NULL);
11091109            else
1110               space->device().debug()->breakpoint_clear(bp->index());
1110               space.device().debug()->breakpoint_clear(bp->index());
11111111         }
11121112      }
11131113   }
r18029r18030
11161116
11171117- (IBAction)debugToggleBreakpointEnable:(id)sender {
11181118   if (view->cursor_visible()) {
1119      address_space *space = downcast<const debug_view_disasm_source *>(view->source())->space();
1120      if (!useConsole || (debug_cpu_get_visible_cpu(*machine) == &space->device())) {
1119      address_space &space = downcast<const debug_view_disasm_source *>(view->source())->space();
1120      if (!useConsole || (debug_cpu_get_visible_cpu(*machine) == &space.device())) {
11211121         offs_t            address = downcast<debug_view_disasm *>(view)->selected_address();
11221122         device_debug::breakpoint *bp = [self findBreakpointAtAddress:address inAddressSpace:space];
11231123
r18029r18030
11301130                  command = [NSString stringWithFormat:@"bpenable %X", (unsigned)bp->index()];
11311131               debug_console_execute_command(*machine, [command UTF8String], 1);
11321132            } else {
1133               space->device().debug()->breakpoint_enable(bp->index(), !bp->enabled());
1133               space.device().debug()->breakpoint_enable(bp->index(), !bp->enabled());
11341134            }
11351135         }
11361136      }
r18029r18030
11401140
11411141- (IBAction)debugRunToCursor:(id)sender {
11421142   if (view->cursor_visible()) {
1143      address_space *space = downcast<const debug_view_disasm_source *>(view->source())->space();
1144      if (debug_cpu_get_visible_cpu(*machine) == &space->device()) {
1143      address_space &space = downcast<const debug_view_disasm_source *>(view->source())->space();
1144      if (debug_cpu_get_visible_cpu(*machine) == &space.device()) {
11451145         offs_t address = downcast<debug_view_disasm *>(view)->selected_address();
11461146         if (useConsole) {
11471147            NSString *command = [NSString stringWithFormat:@"go 0x%lX", (unsigned long)address];

Previous 199869 Revisions Next


© 1997-2024 The MAME Team