-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[lldb] python-bindings: fix SBTarget.get_target_watchpoints()
#82295
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
[lldb] python-bindings: fix SBTarget.get_target_watchpoints()
#82295
Conversation
@llvm/pr-subscribers-lldb Author: None (nikitalita) ChangesFixes erroneous usage of Full diff: https://github.com/llvm/llvm-project/pull/82295.diff 1 Files Affected:
diff --git a/lldb/bindings/interface/SBTargetExtensions.i b/lldb/bindings/interface/SBTargetExtensions.i
index c80dadfc0c5ca5..d756a351a810ab 100644
--- a/lldb/bindings/interface/SBTargetExtensions.i
+++ b/lldb/bindings/interface/SBTargetExtensions.i
@@ -172,7 +172,7 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTarget, lldb::eDescriptionLevelBrief)
'''An accessor function that returns a list() that contains all watchpoints in a lldb.SBtarget object.'''
watchpoints = []
for idx in range(self.GetNumWatchpoints()):
- bkpts.append(self.GetWatchpointAtIndex(idx))
+ watchpoints.append(self.GetWatchpointAtIndex(idx))
return watchpoints
modules = property(get_modules_array, None, doc='''A read only property that returns a list() of lldb.SBModule objects contained in this target. This list is a list all modules that the target currently is tracking (the main executable and all dependent shared libraries).''')
|
|
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.
LGTM
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.
LGTM. Let me know if you need someone to land this for you (and if you want to set your e-mail address to public before that).
I do need someone to land this for me. People keep asking me that on this repo; Is there a way for me to apply for write access or something?
I don’t want to get an inbox full of spam, so I’d rather not. |
https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access
That's fair, though that means that you will not get notifications when bots fail so you'll need to actively monitor them yourself. |
Fixes erroneous usage of
bkpts
instead ofwatchpoints
(probably introduced from copying and pastingget_target_bkpts()
).