-
Notifications
You must be signed in to change notification settings - Fork 256
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
Make accessing Debugger registers more ergonomic #997
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #997 +/- ##
==========================================
+ Coverage 81.12% 84.04% +2.92%
==========================================
Files 140 140
Lines 4753 4752 -1
==========================================
+ Hits 3856 3994 +138
+ Misses 897 758 -139
Continue to review full report at Codecov.
|
424f96a
to
415fe95
Compare
415fe95
to
d6c7393
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.
Otherwise the idea looks fine...
self.base = base | ||
|
||
def __getitem__(self, reg): | ||
return getattr(self.debugger, '%s%d' % (self.base, reg)) |
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.
Why are you doing this in _cptbox
? Maybe you should move this into AdvancedDebugger
instead.
Agree on Quantum's comment, otherwise looks good. |
No description provided.