Fix to ensure that Qt hex editor gets updated at each breakpoint.

This commit is contained in:
mjbudd77 2021-08-19 23:06:54 -04:00
parent 9d2acd6931
commit d13ef4cdbe
3 changed files with 8 additions and 3 deletions

View File

@ -2756,6 +2756,9 @@ void ConsoleDebugger::debugStepBackCB(void)
fceuWrapperLock();
FCEUD_TraceLoggerBackUpInstruction();
updateWindowData();
hexEditorUpdateMemoryValues(true);
hexEditorRequestUpdateAll();
lastBpIdx = BREAK_TYPE_STEP;
fceuWrapperUnLock();
}
}
@ -4269,6 +4272,8 @@ void FCEUD_DebugBreakpoint( int bpNum )
}
}
}
hexEditorUpdateMemoryValues(true);
hexEditorRequestUpdateAll();
printf("Breakpoint Hit: %i \n", bpNum );

View File

@ -4107,11 +4107,11 @@ int hexEditorOpenFromDebugger( int mode, int addr )
}
//----------------------------------------------------------------------------
// This function must be called from within the emulation thread
void hexEditorUpdateMemoryValues(void)
void hexEditorUpdateMemoryValues( bool force )
{
std::list <HexEditorDialog_t*>::iterator it;
if ( !memNeedsCheck )
if ( !memNeedsCheck && !force )
{
return;
}

View File

@ -354,7 +354,7 @@ class HexEditorDialog_t : public QDialog
int hexEditorNumWindows(void);
void hexEditorRequestUpdateAll(void);
void hexEditorUpdateMemoryValues(void);
void hexEditorUpdateMemoryValues(bool force = false);
void hexEditorLoadBookmarks(void);
void hexEditorSaveBookmarks(void);
int hexEditorOpenFromDebugger( int mode, int addr );