Previous 199869 Revisions Next

r35160 Friday 20th February, 2015 at 19:44:12 UTC by Vasantha Crabb
Make the (watch|break)points notify correctly in response to clicks
[src/emu/debug]dvbpoints.c dvbpoints.h dvwpoints.c dvwpoints.h

trunk/src/emu/debug/dvbpoints.c
r243671r243672
7373
7474
7575//-------------------------------------------------
76//  view_notify - handle notification of updates
77//  to cursor changes
78//-------------------------------------------------
79
80void debug_view_breakpoints::view_notify(debug_view_notification type)
81{
82}
83
84
85//-------------------------------------------------
86//  view_char - handle a character typed within
87//  the current view
88//-------------------------------------------------
89
90void debug_view_breakpoints::view_char(int chval)
91{
92}
93
94
95//-------------------------------------------------
9676//  view_click - handle a mouse click within the
9777//  current view
9878//-------------------------------------------------
r243671r243672
134114      device_debug::breakpoint** bpList = NULL;
135115      const int numBPs = breakpoints(SORT_NONE, bpList);
136116
137      const int bpIndex = pos.y-1;
117      const int bpIndex = pos.y - 1;
138118      if (bpIndex > numBPs || bpIndex < 0)
139119         return;
140120
r243671r243672
147127      delete[] bpList;
148128   }
149129
150   view_update();
130   begin_update();
131   m_update_pending = true;
132   end_update();
151133}
152134
153135
r243671r243672
331313
332314//-------------------------------------------------
333315//  view_update - update the contents of the
334//  disassembly view
316//  breakpoints view
335317//-------------------------------------------------
336318
337319void debug_view_breakpoints::view_update()
trunk/src/emu/debug/dvbpoints.h
r243671r243672
5858protected:
5959   // view overrides
6060   virtual void view_update();
61   virtual void view_notify(debug_view_notification type);
62   virtual void view_char(int chval);
6361   virtual void view_click(const int button, const debug_view_xy& pos);
6462
6563private:
6664   // internal helpers
6765   void enumerate_sources();
68   bool recompute(offs_t pc, int startline, int lines);
6966   void pad_astring_to_length(astring& str, int len);
7067   int breakpoints(SortMode sort, device_debug::breakpoint**& bpList);
7168
trunk/src/emu/debug/dvwpoints.c
r243671r243672
7272
7373
7474//-------------------------------------------------
75//  view_notify - handle notification of updates
76//  to cursor changes
77//-------------------------------------------------
78
79void debug_view_watchpoints::view_notify(debug_view_notification type)
80{
81}
82
83
84//-------------------------------------------------
85//  view_char - handle a character typed within
86//  the current view
87//-------------------------------------------------
88
89void debug_view_watchpoints::view_char(int chval)
90{
91}
92
93
94//-------------------------------------------------
9575//  view_click - handle a mouse click within the
9676//  current view
9777//-------------------------------------------------
r243671r243672
141121      device_debug::watchpoint** wpList = NULL;
142122      const int numWPs = watchpoints(SORT_NONE, wpList);
143123
144      const int wpIndex = pos.y-1;
124      const int wpIndex = pos.y - 1;
145125      if (wpIndex > numWPs || wpIndex < 0)
146126         return;
147127
r243671r243672
154134      delete[] wpList;
155135   }
156136
157   view_update();
137   begin_update();
138   m_update_pending = true;
139   end_update();
158140}
159141
160142
r243671r243672
387369
388370//-------------------------------------------------
389371//  view_update - update the contents of the
390//  disassembly view
372//  watchpoints view
391373//-------------------------------------------------
392374
393375void debug_view_watchpoints::view_update()
trunk/src/emu/debug/dvwpoints.h
r243671r243672
6262protected:
6363   // view overrides
6464   virtual void view_update();
65   virtual void view_notify(debug_view_notification type);
66   virtual void view_char(int chval);
6765   virtual void view_click(const int button, const debug_view_xy& pos);
6866
6967private:
7068   // internal helpers
7169   void enumerate_sources();
72   bool recompute(offs_t pc, int startline, int lines);
7370   void pad_astring_to_length(astring& str, int len);
7471   int watchpoints(SortMode sort, device_debug::watchpoint**& bpList);
7572


Previous 199869 Revisions Next


© 1997-2024 The MAME Team