Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the configuration of how a memory check is added via the memory window #4131

Merged

Conversation

aldelaro5
Copy link
Member

@aldelaro5 aldelaro5 commented Aug 18, 2016

I am adding this feature because not only it allows the same options as when adding via the breakpoint list, but it actually is quicker when adding a single address instead of a region as memory check and you don't want some options (like read for example). It's basically still a quick add, but now it has the same options as when using the list.

The toggleMemCheck in debugInterface assumed that the memCheck would have read, write and log at on so to get thsi to work, I had to add the oiptions in the interface. The other solution would have been to add or remove them manually, but I felt this would have been too complicated. Plus, the method still toggles, it just can now set the options.

As for the UI, I kept the default behaviour like it used to be, but my only concern is it might be confusing when looking at the blue square which option was chosen. Thankfully, the breakpoint list shows them (you do have to workaround a bug when it doesn't update by adding a breakpoint or apply pr #4115 ), but it might be possible to simply change the color depending on the settings (or perhapd do the same in the breakpoint list by putting the letter flags?).

Here's how it would look for the GUI part:
screenshot from 2016-09-14 02-37-36


This change is Reviewable

@aldelaro5 aldelaro5 force-pushed the memoryViewer-memChecks-improvements branch 3 times, most recently from a3b99ea to b32c6d2 Compare August 18, 2016 23:04
@Helios747
Copy link
Contributor

@dolphin-emu-bot rebuild

1 similar comment
@aldelaro5
Copy link
Member Author

@dolphin-emu-bot rebuild

These are needed for the next commit. I had to modify the implementation of the DSP one too, but since it basically isn`t used, I don`t think it matters much.  These options only matters when adding one.
@aldelaro5 aldelaro5 force-pushed the memoryViewer-memChecks-improvements branch from b32c6d2 to 72c9201 Compare September 11, 2016 02:41
@aldelaro5
Copy link
Member Author

Now that I actually got this to pass linter (me being lazy), @lioncash care to review this for me? pretty old pr lol

@@ -47,7 +48,9 @@ enum
IDM_U32,
IDM_SEARCH,
IDM_ASCII,
IDM_HEX
IDM_HEX,
IDM_READ,

This comment was marked as off-topic.

…y window

There might be a better way to highlight the options when adding the memory check, but for now, this works and the breakpoint list reports the right settings anyway.
@aldelaro5 aldelaro5 force-pushed the memoryViewer-memChecks-improvements branch from 72c9201 to 72f1d99 Compare September 11, 2016 15:29
@aldelaro5
Copy link
Member Author

Review status: 0 of 9 files reviewed at latest revision, 1 unresolved discussion.


Source/Core/DolphinWX/Debugger/MemoryWindow.cpp, line 52 at r1 (raw file):

Previously, BhaaLseN (BhaaL) wrote…

I don't see you using that value anywhere?

Oops, it was leftover from old attempts. Done.

Comments from Reviewable

@phire
Copy link
Member

phire commented Sep 14, 2016

:lgtm:


Reviewed 8 of 9 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


Comments from Reviewable

@phire phire merged commit 4c004b6 into dolphin-emu:master Sep 14, 2016
@aldelaro5 aldelaro5 deleted the memoryViewer-memChecks-improvements branch September 15, 2016 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants