Skip to content

[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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lldb/bindings/interface/SBTargetExtensions.i
Original file line number Diff line number Diff line change
Expand Up @@ -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).''')
Expand Down