MCPcopy Create free account
hub / github.com/facebook/chisel / evaluateCStringExpression

Function evaluateCStringExpression

fbchisellldbbase.py:167–178  ·  view source on GitHub ↗
(expression, printErrors=True)

Source from the content-addressed store, hash-verified

165
166
167def evaluateCStringExpression(expression, printErrors=True):
168 ret = evaluateExpression(expression, printErrors)
169
170 process = lldb.debugger.GetSelectedTarget().GetProcess()
171 error = lldb.SBError()
172 ret = process.ReadCStringFromMemory(int(ret, 16), 256, error)
173 if error.Success():
174 return ret
175 else:
176 if printErrors:
177 print(error)
178 return None
179
180
181RETURN_MACRO = """

Callers

nothing calls this directly

Calls 1

evaluateExpressionFunction · 0.85

Tested by

no test coverage detected