Fix to ensure that Qt hex editor gets updated at each breakpoint.
This commit is contained in:
parent
9d2acd6931
commit
d13ef4cdbe
|
@ -2756,6 +2756,9 @@ void ConsoleDebugger::debugStepBackCB(void)
|
||||||
fceuWrapperLock();
|
fceuWrapperLock();
|
||||||
FCEUD_TraceLoggerBackUpInstruction();
|
FCEUD_TraceLoggerBackUpInstruction();
|
||||||
updateWindowData();
|
updateWindowData();
|
||||||
|
hexEditorUpdateMemoryValues(true);
|
||||||
|
hexEditorRequestUpdateAll();
|
||||||
|
lastBpIdx = BREAK_TYPE_STEP;
|
||||||
fceuWrapperUnLock();
|
fceuWrapperUnLock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4269,6 +4272,8 @@ void FCEUD_DebugBreakpoint( int bpNum )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
hexEditorUpdateMemoryValues(true);
|
||||||
|
hexEditorRequestUpdateAll();
|
||||||
|
|
||||||
printf("Breakpoint Hit: %i \n", bpNum );
|
printf("Breakpoint Hit: %i \n", bpNum );
|
||||||
|
|
||||||
|
|
|
@ -4107,11 +4107,11 @@ int hexEditorOpenFromDebugger( int mode, int addr )
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
// This function must be called from within the emulation thread
|
// This function must be called from within the emulation thread
|
||||||
void hexEditorUpdateMemoryValues(void)
|
void hexEditorUpdateMemoryValues( bool force )
|
||||||
{
|
{
|
||||||
std::list <HexEditorDialog_t*>::iterator it;
|
std::list <HexEditorDialog_t*>::iterator it;
|
||||||
|
|
||||||
if ( !memNeedsCheck )
|
if ( !memNeedsCheck && !force )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -354,7 +354,7 @@ class HexEditorDialog_t : public QDialog
|
||||||
|
|
||||||
int hexEditorNumWindows(void);
|
int hexEditorNumWindows(void);
|
||||||
void hexEditorRequestUpdateAll(void);
|
void hexEditorRequestUpdateAll(void);
|
||||||
void hexEditorUpdateMemoryValues(void);
|
void hexEditorUpdateMemoryValues(bool force = false);
|
||||||
void hexEditorLoadBookmarks(void);
|
void hexEditorLoadBookmarks(void);
|
||||||
void hexEditorSaveBookmarks(void);
|
void hexEditorSaveBookmarks(void);
|
||||||
int hexEditorOpenFromDebugger( int mode, int addr );
|
int hexEditorOpenFromDebugger( int mode, int addr );
|
||||||
|
|
Loading…
Reference in New Issue