def get_current_stack():
    call_stack = []
    for line in pykd.dbgCommand("k").splitlines()[1:]:
        try:
            _, ret_addr, sym = line.split()
            _ = int(ret_addr, 16)
        except __HOLE__:
            continue
        call_stack.append(sym)
    return call_stack
dataset/ETHPy150Open blackberry/ALF/lib/dbgmin/scripts/WinDBGMemoryLimit.py/get_current_stack