def functionPreambleExpressionForSelf()

in fbchisellldbobjcruntimehelpers.py [0:0]


def functionPreambleExpressionForSelf():
    import re

    arch = currentArch()
    expressionForSelf = None
    if arch == "i386":
        expressionForSelf = "*(id*)($esp+4)"
    elif arch == "x86_64":
        expressionForSelf = "(id)$rdi"
    elif arch == "arm64":
        expressionForSelf = "(id)$x0"
    elif re.match(r"^armv.*$", arch):
        expressionForSelf = "(id)$r0"
    return expressionForSelf