Skip to content

Commit dc5dfc1

Browse files
authored
[lldb] python-bindings: fix SBTarget.get_target_watchpoints() (#82295)
Fixes erroneous usage of `bkpts` instead of `watchpoints` (probably introduced from copying and pasting `get_target_bkpts()`).
1 parent 0339ce0 commit dc5dfc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/bindings/interface/SBTargetExtensions.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ STRING_EXTENSION_LEVEL_OUTSIDE(SBTarget, lldb::eDescriptionLevelBrief)
172172
'''An accessor function that returns a list() that contains all watchpoints in a lldb.SBtarget object.'''
173173
watchpoints = []
174174
for idx in range(self.GetNumWatchpoints()):
175-
bkpts.append(self.GetWatchpointAtIndex(idx))
175+
watchpoints.append(self.GetWatchpointAtIndex(idx))
176176
return watchpoints
177177

178178
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).''')

0 commit comments

Comments
 (0)