Added code to save symbolic debug preferences in Qt debugger.
This commit is contained in:
parent
cbb1aeae4a
commit
08def74ceb
|
@ -666,21 +666,25 @@ QMenuBar *ConsoleDebugger::buildMenuBar(void)
|
||||||
symMenu->addSeparator();
|
symMenu->addSeparator();
|
||||||
|
|
||||||
// Symbols -> Symbolic Debug
|
// Symbols -> Symbolic Debug
|
||||||
|
g_config->getOption( "SDL.DebuggerShowSymNames", &opt );
|
||||||
|
|
||||||
act = new QAction(tr("&Symbolic Debug"), this);
|
act = new QAction(tr("&Symbolic Debug"), this);
|
||||||
//act->setShortcut(QKeySequence( tr("F7") ) );
|
//act->setShortcut(QKeySequence( tr("F7") ) );
|
||||||
act->setStatusTip(tr("&Symbolic Debug"));
|
act->setStatusTip(tr("&Symbolic Debug"));
|
||||||
act->setCheckable(true);
|
act->setCheckable(true);
|
||||||
act->setChecked(true);
|
act->setChecked(opt);
|
||||||
connect( act, SIGNAL(triggered(bool)), this, SLOT(symbolDebugEnableCB(bool)) );
|
connect( act, SIGNAL(triggered(bool)), this, SLOT(symbolDebugEnableCB(bool)) );
|
||||||
|
|
||||||
symMenu->addAction(act);
|
symMenu->addAction(act);
|
||||||
|
|
||||||
// Symbols -> Symbolic Debug
|
// Symbols -> Register Names
|
||||||
|
g_config->getOption( "SDL.DebuggerShowRegNames", &opt );
|
||||||
|
|
||||||
act = new QAction(tr("&Register Names"), this);
|
act = new QAction(tr("&Register Names"), this);
|
||||||
//act->setShortcut(QKeySequence( tr("F7") ) );
|
//act->setShortcut(QKeySequence( tr("F7") ) );
|
||||||
act->setStatusTip(tr("&Register Names"));
|
act->setStatusTip(tr("&Register Names"));
|
||||||
act->setCheckable(true);
|
act->setCheckable(true);
|
||||||
act->setChecked(true);
|
act->setChecked(opt);
|
||||||
connect( act, SIGNAL(triggered(bool)), this, SLOT(registerNameEnableCB(bool)) );
|
connect( act, SIGNAL(triggered(bool)), this, SLOT(registerNameEnableCB(bool)) );
|
||||||
|
|
||||||
symMenu->addAction(act);
|
symMenu->addAction(act);
|
||||||
|
@ -2316,11 +2320,15 @@ void ConsoleDebugger::displayROMoffsetCB( bool value )
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void ConsoleDebugger::symbolDebugEnableCB( bool value )
|
void ConsoleDebugger::symbolDebugEnableCB( bool value )
|
||||||
{
|
{
|
||||||
|
g_config->setOption( "SDL.DebuggerShowSymNames", value );
|
||||||
|
|
||||||
asmView->setSymbolDebugEnable(value);
|
asmView->setSymbolDebugEnable(value);
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void ConsoleDebugger::registerNameEnableCB( bool value )
|
void ConsoleDebugger::registerNameEnableCB( bool value )
|
||||||
{
|
{
|
||||||
|
g_config->setOption( "SDL.DebuggerShowRegNames", value );
|
||||||
|
|
||||||
asmView->setRegisterNameEnable(value);
|
asmView->setRegisterNameEnable(value);
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
@ -4402,6 +4410,8 @@ QAsmView::QAsmView(QWidget *parent)
|
||||||
|
|
||||||
g_config->getOption( "SDL.AsmShowByteCodes" , &showByteCodes );
|
g_config->getOption( "SDL.AsmShowByteCodes" , &showByteCodes );
|
||||||
g_config->getOption( "SDL.AsmShowRomOffsets", &displayROMoffsets );
|
g_config->getOption( "SDL.AsmShowRomOffsets", &displayROMoffsets );
|
||||||
|
g_config->getOption( "SDL.DebuggerShowSymNames", &symbolicDebugEnable );
|
||||||
|
g_config->getOption( "SDL.DebuggerShowRegNames", ®isterNameEnable );
|
||||||
|
|
||||||
calcFontData();
|
calcFontData();
|
||||||
|
|
||||||
|
|
|
@ -590,6 +590,8 @@ InitConfig()
|
||||||
config->addOption("SDL.AsmSyntaxColorPC", "");
|
config->addOption("SDL.AsmSyntaxColorPC", "");
|
||||||
config->addOption("SDL.AsmShowByteCodes", 0);
|
config->addOption("SDL.AsmShowByteCodes", 0);
|
||||||
config->addOption("SDL.AsmShowRomOffsets", 0);
|
config->addOption("SDL.AsmShowRomOffsets", 0);
|
||||||
|
config->addOption("SDL.DebuggerShowSymNames", 1);
|
||||||
|
config->addOption("SDL.DebuggerShowRegNames", 1);
|
||||||
|
|
||||||
// Code Data Logger Options
|
// Code Data Logger Options
|
||||||
config->addOption("autoSaveCDL" , "SDL.AutoSaveCDL", 1);
|
config->addOption("autoSaveCDL" , "SDL.AutoSaveCDL", 1);
|
||||||
|
|
Loading…
Reference in New Issue