trunk/src/emu/debug/dvbpoints.c
| r243671 | r243672 | |
| 73 | 73 | |
| 74 | 74 | |
| 75 | 75 | //------------------------------------------------- |
| 76 | | // view_notify - handle notification of updates |
| 77 | | // to cursor changes |
| 78 | | //------------------------------------------------- |
| 79 | | |
| 80 | | void 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 | | |
| 90 | | void debug_view_breakpoints::view_char(int chval) |
| 91 | | { |
| 92 | | } |
| 93 | | |
| 94 | | |
| 95 | | //------------------------------------------------- |
| 96 | 76 | // view_click - handle a mouse click within the |
| 97 | 77 | // current view |
| 98 | 78 | //------------------------------------------------- |
| r243671 | r243672 | |
| 134 | 114 | device_debug::breakpoint** bpList = NULL; |
| 135 | 115 | const int numBPs = breakpoints(SORT_NONE, bpList); |
| 136 | 116 | |
| 137 | | const int bpIndex = pos.y-1; |
| 117 | const int bpIndex = pos.y - 1; |
| 138 | 118 | if (bpIndex > numBPs || bpIndex < 0) |
| 139 | 119 | return; |
| 140 | 120 | |
| r243671 | r243672 | |
| 147 | 127 | delete[] bpList; |
| 148 | 128 | } |
| 149 | 129 | |
| 150 | | view_update(); |
| 130 | begin_update(); |
| 131 | m_update_pending = true; |
| 132 | end_update(); |
| 151 | 133 | } |
| 152 | 134 | |
| 153 | 135 | |
| r243671 | r243672 | |
| 331 | 313 | |
| 332 | 314 | //------------------------------------------------- |
| 333 | 315 | // view_update - update the contents of the |
| 334 | | // disassembly view |
| 316 | // breakpoints view |
| 335 | 317 | //------------------------------------------------- |
| 336 | 318 | |
| 337 | 319 | void debug_view_breakpoints::view_update() |
trunk/src/emu/debug/dvbpoints.h
| r243671 | r243672 | |
| 58 | 58 | protected: |
| 59 | 59 | // view overrides |
| 60 | 60 | virtual void view_update(); |
| 61 | | virtual void view_notify(debug_view_notification type); |
| 62 | | virtual void view_char(int chval); |
| 63 | 61 | virtual void view_click(const int button, const debug_view_xy& pos); |
| 64 | 62 | |
| 65 | 63 | private: |
| 66 | 64 | // internal helpers |
| 67 | 65 | void enumerate_sources(); |
| 68 | | bool recompute(offs_t pc, int startline, int lines); |
| 69 | 66 | void pad_astring_to_length(astring& str, int len); |
| 70 | 67 | int breakpoints(SortMode sort, device_debug::breakpoint**& bpList); |
| 71 | 68 | |
trunk/src/emu/debug/dvwpoints.c
| r243671 | r243672 | |
| 72 | 72 | |
| 73 | 73 | |
| 74 | 74 | //------------------------------------------------- |
| 75 | | // view_notify - handle notification of updates |
| 76 | | // to cursor changes |
| 77 | | //------------------------------------------------- |
| 78 | | |
| 79 | | void 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 | | |
| 89 | | void debug_view_watchpoints::view_char(int chval) |
| 90 | | { |
| 91 | | } |
| 92 | | |
| 93 | | |
| 94 | | //------------------------------------------------- |
| 95 | 75 | // view_click - handle a mouse click within the |
| 96 | 76 | // current view |
| 97 | 77 | //------------------------------------------------- |
| r243671 | r243672 | |
| 141 | 121 | device_debug::watchpoint** wpList = NULL; |
| 142 | 122 | const int numWPs = watchpoints(SORT_NONE, wpList); |
| 143 | 123 | |
| 144 | | const int wpIndex = pos.y-1; |
| 124 | const int wpIndex = pos.y - 1; |
| 145 | 125 | if (wpIndex > numWPs || wpIndex < 0) |
| 146 | 126 | return; |
| 147 | 127 | |
| r243671 | r243672 | |
| 154 | 134 | delete[] wpList; |
| 155 | 135 | } |
| 156 | 136 | |
| 157 | | view_update(); |
| 137 | begin_update(); |
| 138 | m_update_pending = true; |
| 139 | end_update(); |
| 158 | 140 | } |
| 159 | 141 | |
| 160 | 142 | |
| r243671 | r243672 | |
| 387 | 369 | |
| 388 | 370 | //------------------------------------------------- |
| 389 | 371 | // view_update - update the contents of the |
| 390 | | // disassembly view |
| 372 | // watchpoints view |
| 391 | 373 | //------------------------------------------------- |
| 392 | 374 | |
| 393 | 375 | void debug_view_watchpoints::view_update() |
trunk/src/emu/debug/dvwpoints.h
| r243671 | r243672 | |
| 62 | 62 | protected: |
| 63 | 63 | // view overrides |
| 64 | 64 | virtual void view_update(); |
| 65 | | virtual void view_notify(debug_view_notification type); |
| 66 | | virtual void view_char(int chval); |
| 67 | 65 | virtual void view_click(const int button, const debug_view_xy& pos); |
| 68 | 66 | |
| 69 | 67 | private: |
| 70 | 68 | // internal helpers |
| 71 | 69 | void enumerate_sources(); |
| 72 | | bool recompute(offs_t pc, int startline, int lines); |
| 73 | 70 | void pad_astring_to_length(astring& str, int len); |
| 74 | 71 | int watchpoints(SortMode sort, device_debug::watchpoint**& bpList); |
| 75 | 72 | |