Previous 199869 Revisions Next

r33940 Thursday 18th December, 2014 at 07:27:14 UTC by Fabrice Bellet
debug: dont update asm view in the start_hook()

The curpc can be in the middle of an instruction being decoded, so
it is not pertinent to recompute the disassembly starting from
this address.
[src/emu/debug]debugcpu.c debugvw.c debugvw.h

trunk/src/emu/debug/debugcpu.c
r242451r242452
17311731      // check for periodic updates
17321732      if (&m_device == global->visiblecpu && osd_ticks() > global->last_periodic_update_time + osd_ticks_per_second()/4)
17331733      {
1734         m_device.machine().debug_view().update_all();
1734         m_device.machine().debug_view().update_all_except(DVT_DISASSEMBLY);
17351735         m_device.machine().debug_view().flush_osd_updates();
17361736         global->last_periodic_update_time = osd_ticks();
17371737      }
trunk/src/emu/debug/debugvw.c
r242451r242452
398398
399399
400400//-------------------------------------------------
401//  update_all_except - force all views to refresh
402//  except one
403//-------------------------------------------------
404
405void debug_view_manager::update_all_except(debug_view_type type)
406{
407   // loop over each view and force an update
408   for (debug_view *view = m_viewlist; view != NULL; view = view->next())
409      if (type == DVT_NONE || type != view->type())
410         view->force_update();
411}
412
413
414//-------------------------------------------------
401415//  update_all - force all views to refresh
402416//-------------------------------------------------
403417
trunk/src/emu/debug/debugvw.h
r242451r242452
240240
241241   // update helpers
242242   void update_all(debug_view_type type = DVT_NONE);
243   void update_all_except(debug_view_type type = DVT_NONE);
243244   void flush_osd_updates();
244245
245246private:


Previous 199869 Revisions Next


© 1997-2024 The MAME Team