-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Debugger: Add Saved Addresses tab widget for bookmarking memory addresses #10518
Conversation
RTTI is disabled in our builds, but |
2b50c16
to
79beee6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
79beee6
to
b71a098
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good otherwise.
I know we were discussing whether to serialize this information in a JSON file, I'm guessing that is out of scope for this PR? Just wanted to check before merging.
Adds a tab widget to the debugger that allows saving/bookmarking memory addresses and giving them labels/descriptions for convenience. Includes the ability to jump back to memory addresses from the Saved Addresses tab, and adding Saved Addresses from memory search search results context menu and the memory view context menu. Also supports importing and exporting the saved addresses as CSV format.
…w tab Previously when double clicking a memory search result it would go to the address but not switch to the memory view tab if the user wasn't already on it. Now it ensures the user moves to the memory view widget, as this is almost always going to be the user's intention.
Adds const to variables that could use them but currently don't and replaces 256 literal uses with Qt::UserRole to be clear what it is for and how this number is used as currently it's a bit confusing.
b71a098
to
612fc86
Compare
Yeah, I was thinking to merge this in and then will add the serialization/debugger settings as a followup. Thanks for checking 👍 |
All good! Thanks for the PR :) |
Description of Changes
Adds the ability to save memory addresses to a newly added
Saved Addresses
tab widget in the debugger.Works as a way to bookmark memory addresses and allow jumping back to saved addresses.
Adds the ability to add memory addresses as a Saved Addresses from the Memory Search results list context menu and
Memory View
context menu. Also allows exporting and importing the Saved Addresses in CSV format so that users can save/restore their addresses.Additional changes
Memory View
. Previously it would change the address but stay on the same widget (thus not showing the address to the user).256
as a literal in place ofQt::UserRole
to make it more clear what it's purpose is/where the number stems from.CpuWidget.cpp
.Rationale behind Changes
Helps making keeping track of memory addresses/search results easier by allowing the user to give labels/descriptions and immediately jump back to that address in the
Memory View
orDisassembly View
.This makes it easier to juggle between different memory addresses and remembering details about each, and being able to quickly compare different areas of memory.
Suggested Testing Steps
Saved Addresses
context menu; memory search result context menu; andMemory View
context menu.Memory View
tab takes you to theMemory View
tab.