https://github.com/nikitalita created 
https://github.com/llvm/llvm-project/pull/82295

Fixes erroneous usage of `bkpts` instead of `watchpoints` (probably introduced 
from copying and pasting `get_target_bkpts()`).

>From 17b15c7ca7c62dad1011e7920e3d06e8e09f6808 Mon Sep 17 00:00:00 2001
From: nikitalita <69168929+nikital...@users.noreply.github.com>
Date: Mon, 19 Feb 2024 17:20:31 -0800
Subject: [PATCH] [lldb] bindings: fix SBTarget.get_target_watchpoints

---
 lldb/bindings/interface/SBTargetExtensions.i | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to