trunk/src/osd/modules/debugger/debugosx.m
| r243599 | r243600 | |
| 54 | 54 | [m_console release]; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | | virtual int init() |
| 58 | | { |
| 59 | | return 0; |
| 60 | | } |
| 57 | virtual int init(); |
| 58 | virtual void exit(); |
| 61 | 59 | |
| 62 | | virtual void exit() |
| 63 | | { |
| 64 | | } |
| 65 | | |
| 66 | 60 | virtual void init_debugger(running_machine &machine); |
| 67 | 61 | virtual void wait_for_debugger(device_t &device, bool firststop); |
| 68 | 62 | virtual void debugger_update(); |
| r243599 | r243600 | |
| 75 | 69 | MODULE_DEFINITION(DEBUG_OSX, debugger_osx) |
| 76 | 70 | |
| 77 | 71 | //============================================================ |
| 72 | // debugger_osx::init |
| 73 | //============================================================ |
| 74 | |
| 75 | int debugger_osx::init() |
| 76 | { |
| 77 | return 0; |
| 78 | } |
| 79 | |
| 80 | //============================================================ |
| 81 | // debugger_osx::exit |
| 82 | //============================================================ |
| 83 | |
| 84 | void debugger_osx::exit() |
| 85 | { |
| 86 | if (m_console) |
| 87 | { |
| 88 | NSDictionary *info = [NSDictionary dictionaryWithObject:[NSValue valueWithPointer:m_machine] |
| 89 | forKey:@"MAMEDebugMachine"]; |
| 90 | [[NSNotificationCenter defaultCenter] postNotificationName:MAMEHideDebuggerNotification |
| 91 | object:m_console |
| 92 | userInfo:info]; |
| 93 | [m_console release]; |
| 94 | m_console = nil; |
| 95 | m_machine = NULL; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | //============================================================ |
| 78 | 100 | // debugger_osx::init_debugger |
| 79 | 101 | //============================================================ |
| 80 | 102 | |
| 81 | 103 | void debugger_osx::init_debugger(running_machine &machine) |
| 82 | 104 | { |
| 83 | | m_machine = &machine; |
| 105 | m_machine = &machine; |
| 84 | 106 | } |
| 85 | 107 | |
| 86 | 108 | //============================================================ |
| r243599 | r243600 | |
| 94 | 116 | m_console = [[MAMEDebugConsole alloc] initWithMachine:*m_machine]; |
| 95 | 117 | |
| 96 | 118 | // make sure the debug windows are visible |
| 97 | | if (firststop) { |
| 119 | if (firststop) |
| 120 | { |
| 98 | 121 | NSDictionary *info = [NSDictionary dictionaryWithObjectsAndKeys:[NSValue valueWithPointer:&device], |
| 99 | 122 | @"MAMEDebugDevice", |
| 100 | 123 | [NSValue valueWithPointer:m_machine], |