DBG+GUI: FIXEZZ
This commit is contained in:
parent
5795fdc771
commit
e1fc0926a4
|
@ -414,6 +414,7 @@ void DebugUpdateGui(duint disasm_addr, bool stack)
|
||||||
strcat_s(threadName, " ");
|
strcat_s(threadName, " ");
|
||||||
sprintf_s(title, GuiTranslateText(QT_TRANSLATE_NOOP("DBG", "File: %s - PID: %X - %sThread: %s%X%s")), szBaseFileName, fdProcessInfo->dwProcessId, modtext, threadName, currentThreadId, threadswitch);
|
sprintf_s(title, GuiTranslateText(QT_TRANSLATE_NOOP("DBG", "File: %s - PID: %X - %sThread: %s%X%s")), szBaseFileName, fdProcessInfo->dwProcessId, modtext, threadName, currentThreadId, threadswitch);
|
||||||
GuiUpdateWindowTitle(title);
|
GuiUpdateWindowTitle(title);
|
||||||
|
GuiUpdateDisassemblyView();
|
||||||
GuiUpdateRegisterView();
|
GuiUpdateRegisterView();
|
||||||
GuiUpdateThreadView();
|
GuiUpdateThreadView();
|
||||||
GuiUpdatePatches();
|
GuiUpdatePatches();
|
||||||
|
|
|
@ -1591,7 +1591,7 @@ void Disassembly::prepareDataRange(dsint startRva, dsint endRva, const std::func
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
if(wAddr >= endRva)
|
if(wAddr > endRva)
|
||||||
break;
|
break;
|
||||||
wAddrPrev = wAddr;
|
wAddrPrev = wAddr;
|
||||||
auto wInst = DisassembleAt(wAddr);
|
auto wInst = DisassembleAt(wAddr);
|
||||||
|
|
|
@ -1833,15 +1833,15 @@ static void setupMenuCustomizationHelper(QMenu* parentMenu, QList<QAction*> & st
|
||||||
|
|
||||||
void MainWindow::setupMenuCustomization()
|
void MainWindow::setupMenuCustomization()
|
||||||
{
|
{
|
||||||
mFileMenuStrings.append(reinterpret_cast<QAction* const&>("File"));
|
mFileMenuStrings.append(reinterpret_cast<QAction* const &>("File"));
|
||||||
setupMenuCustomizationHelper(ui->menuFile, mFileMenuStrings);
|
setupMenuCustomizationHelper(ui->menuFile, mFileMenuStrings);
|
||||||
mDebugMenuStrings.append(reinterpret_cast<QAction* const&>("Debug"));
|
mDebugMenuStrings.append(reinterpret_cast<QAction* const &>("Debug"));
|
||||||
setupMenuCustomizationHelper(ui->menuDebug, mDebugMenuStrings);
|
setupMenuCustomizationHelper(ui->menuDebug, mDebugMenuStrings);
|
||||||
mOptionsMenuStrings.append(reinterpret_cast<QAction* const&>("Option"));
|
mOptionsMenuStrings.append(reinterpret_cast<QAction* const &>("Option"));
|
||||||
setupMenuCustomizationHelper(ui->menuOptions, mOptionsMenuStrings);
|
setupMenuCustomizationHelper(ui->menuOptions, mOptionsMenuStrings);
|
||||||
mHelpMenuStrings.append(reinterpret_cast<QAction* const&>("Help"));
|
mHelpMenuStrings.append(reinterpret_cast<QAction* const &>("Help"));
|
||||||
setupMenuCustomizationHelper(ui->menuHelp, mHelpMenuStrings);
|
setupMenuCustomizationHelper(ui->menuHelp, mHelpMenuStrings);
|
||||||
mViewMenuStrings.append(reinterpret_cast<QAction* const&>("View"));
|
mViewMenuStrings.append(reinterpret_cast<QAction* const &>("View"));
|
||||||
setupMenuCustomizationHelper(ui->menuView, mViewMenuStrings);
|
setupMenuCustomizationHelper(ui->menuView, mViewMenuStrings);
|
||||||
onMenuCustomized();
|
onMenuCustomized();
|
||||||
Config()->registerMainMenuStringList(&mFileMenuStrings);
|
Config()->registerMainMenuStringList(&mFileMenuStrings);
|
||||||
|
|
Loading…
Reference in New Issue