diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectFrame.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 23954dd..e5d14d6 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 [] |