(expression, printErrors=True)
| 165 | |
| 166 | |
| 167 | def 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 | |
| 181 | RETURN_MACRO = """ |
nothing calls this directly
no test coverage detected