[Lldb-commits] [lldb] 9690308 - Fix another place were we suggest lldb.target in a Frame Recognizer.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 6 13:24:54 PDT 2022


Author: Jim Ingham
Date: 2022-09-06T13:24:21-07:00
New Revision: 9690308f78b26df8461f5ac1cb5ba83344254e55

URL: https://github.com/llvm/llvm-project/commit/9690308f78b26df8461f5ac1cb5ba83344254e55
DIFF: https://github.com/llvm/llvm-project/commit/9690308f78b26df8461f5ac1cb5ba83344254e55.diff

LOG: Fix another place were we suggest lldb.target in a Frame Recognizer.

Added: 
    

Modified: 
    lldb/source/Commands/CommandObjectFrame.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index 23954dd3c9fdc..e5d14d641b8a8 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -814,7 +814,8 @@ functions 'read', 'write' and 'close' follows:
     def get_recognized_arguments(self, frame):
       if frame.name in ["read", "write", "close"]:
         fd = frame.EvaluateExpression("$arg1").unsigned
-        value = lldb.target.CreateValueFromExpression("fd", "(int)%d" % fd)
+        target = frame.thread.process.target
+        value = target.CreateValueFromExpression("fd", "(int)%d" % fd)
         return [value]
       return []
 


        


More information about the lldb-commits mailing list