equal
deleted
inserted
replaced
88 } |
88 } |
89 |
89 |
90 TypeTranslator = SameEndianessTypeTranslator |
90 TypeTranslator = SameEndianessTypeTranslator |
91 |
91 |
92 # Construct debugger natively supported types |
92 # Construct debugger natively supported types |
93 DebugTypesSize = dict([(key, sizeof(t)) for key, (t, p, u) in SameEndianessTypeTranslator.iteritems() if t is not None]) |
93 DebugTypesSize = dict([(key, sizeof(t)) for key, (t, p, u) in SameEndianessTypeTranslator.iteritems() if t is not None]) |
94 |
94 |
95 |
95 |
96 def UnpackDebugBuffer(buff, indexes): |
96 def UnpackDebugBuffer(buff, indexes): |
97 res = [] |
97 res = [] |
98 buffoffset = 0 |
98 buffoffset = 0 |
99 buffsize = len(buff) |
99 buffsize = len(buff) |
100 buffptr = cast(ctypes.pythonapi.PyString_AsString(id(buff)), c_void_p).value |
100 buffptr = cast(ctypes.pythonapi.PyString_AsString(id(buff)), c_void_p).value |
101 for iectype in indexes: |
101 for iectype in indexes: |
102 c_type, unpack_func, pack_func = \ |
102 c_type, unpack_func, pack_func = \ |