aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectFrame.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2022-09-06 13:24:21 -0700
committerJim Ingham <jingham@apple.com>2022-09-06 13:24:21 -0700
commit9690308f78b26df8461f5ac1cb5ba83344254e55 (patch)
tree23dac2914df83af315004d8c148611dd410e3866 /lldb/source/Commands/CommandObjectFrame.cpp
parentedea4a349d04972783d74d00af9245768d6b586e (diff)
downloadllvm-9690308f78b26df8461f5ac1cb5ba83344254e55.zip
llvm-9690308f78b26df8461f5ac1cb5ba83344254e55.tar.gz
llvm-9690308f78b26df8461f5ac1cb5ba83344254e55.tar.bz2
Fix another place were we suggest lldb.target in a Frame Recognizer.
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp3
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 []