You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a much simpler solution for issue #21: we reload DisasmViewer code window when we enter break state. A bit of a waste of resources, but the impact is negligible.
I feel obligated to thank you so much for this fix.
It follows the KISS principle
It passed my "trial by fire" test for this problem. I'll describe it here:
The use case is: to debug two simultaneous sessions of an MSX-DOS game side by side. One session runs the original game, the other runs an enhanced version you've been working. You're trying to compare when one of the two is misbehaving (either an original bug that was fixed, or something that worked and there's a new bug that you introduced).
You don't have the original source code of the game. This is all hacking/reverse engineering.
What was being tried:
a) MSX-DOS executables are all loaded at 0x0100.
b) Most DOS games load a succession of executables for each part of the game
c) You place a breakpoint at 0x0100 to check when each of the executable is being started
d) Going back and forth from the openMSX App that is running the original game and the openMSX App running the patched game
What was a nightmare:
a) The debugger didn't notice that a new MSX-DOS executable was loaded at 0x0100. The code from any of the previous executable was usually shown. The developer stepped for many incorrect instructions puzzled by the misbehavior before realizing that the Z80 instructions being shown were all bogus
b) The same problem occurred when disconnecting form one openMSX App and connecting to the other
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There seems to be a much simpler solution for issue #21: we reload
DisasmViewercode window when we enter break state. A bit of a waste of resources, but the impact is negligible.