Previous 199869 Revisions Next

r35088 Tuesday 17th February, 2015 at 07:09:50 UTC by Vasantha Crabb
Try not to crash on hard reset
[src/osd/modules/debugger]debugosx.m

trunk/src/osd/modules/debugger/debugosx.m
r243599r243600
5454         [m_console release];
5555   }
5656
57   virtual int init()
58   {
59      return 0;
60   }
57   virtual int init();
58   virtual void exit();
6159
62   virtual void exit()
63   {
64   }
65
6660   virtual void init_debugger(running_machine &machine);
6761   virtual void wait_for_debugger(device_t &device, bool firststop);
6862   virtual void debugger_update();
r243599r243600
7569MODULE_DEFINITION(DEBUG_OSX, debugger_osx)
7670
7771//============================================================
72//  debugger_osx::init
73//============================================================
74
75int debugger_osx::init()
76{
77   return 0;
78}
79
80//============================================================
81//  debugger_osx::exit
82//============================================================
83
84void 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//============================================================
78100//  debugger_osx::init_debugger
79101//============================================================
80102
81103void debugger_osx::init_debugger(running_machine &machine)
82104{
83    m_machine = &machine;
105   m_machine = &machine;
84106}
85107
86108//============================================================
r243599r243600
94116      m_console = [[MAMEDebugConsole alloc] initWithMachine:*m_machine];
95117
96118   // make sure the debug windows are visible
97   if (firststop) {
119   if (firststop)
120   {
98121      NSDictionary *info = [NSDictionary dictionaryWithObjectsAndKeys:[NSValue valueWithPointer:&device],
99122                                                      @"MAMEDebugDevice",
100123                                                      [NSValue valueWithPointer:m_machine],


Previous 199869 Revisions Next


© 1997-2024 The MAME Team