Fix another place were we suggest lldb.target in a Frame Recognizer.
authorJim Ingham <jingham@apple.com>
Tue, 6 Sep 2022 20:24:21 +0000 (13:24 -0700)
committerJim Ingham <jingham@apple.com>
Tue, 6 Sep 2022 20:24:21 +0000 (13:24 -0700)
lldb/source/Commands/CommandObjectFrame.cpp

index 23954dd..e5d14d6 100644 (file)
@@ -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 []