Readding support for breaking into the debugger

This commit is contained in:
Nathan Woods 2014-04-13 17:41:07 +00:00
parent 46769cf6b2
commit ad0e62a58a
2 changed files with 17 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include "ui/barcode.h"
#include "softlist.h"
#include "cheat.h"
#include "debugger.h"
//**************************************************************************
@ -185,6 +186,10 @@ void ui_emu_menubar::build_file_menu()
paste_menu.set_enabled(machine().ui().can_paste());
}
// debug
if (machine().debug_flags & DEBUG_FLAG_ENABLED)
file_menu.append("Break into debugger", &ui_emu_menubar::debugger_break, *this, IPT_UI_TOGGLE_DEBUG);
// pause
menu_item &pause_menu = file_menu.append("Pause", &running_machine::toggle_pause, machine(), IPT_UI_PAUSE);
pause_menu.set_checked(machine().paused());
@ -646,3 +651,14 @@ void ui_emu_menubar::set_throttle_rate(float throttle_rate)
if (throttle_rate != 0.0)
machine().video().set_throttle_rate(throttle_rate);
}
//-------------------------------------------------
// debugger_break
//-------------------------------------------------
void ui_emu_menubar::debugger_break()
{
::debugger_break(machine());
}

View File

@ -54,6 +54,7 @@ private:
bool has_images();
void set_throttle_rate(float throttle_rate);
void start_menu(ui_menu *menu);
void debugger_break();
// template methods
template<class _Menu>