Source code for mcgdb.model.task.environment.p2012.npm.capture.iface.push_buffer

import mcgdb
from mcgdb.toolbox.target import my_archi

from mcgdb.model.task.environment.p2012.capture import mind

[docs]class PushBuffer_Push_Breakpoint(mcgdb.capture.FunctionBreakpoint): func_type = mcgdb.capture.FunctionTypes.comm_func def __init__(self, location): mcgdb.capture.FunctionBreakpoint.__init__(self, location)
[docs] def prepare_before (self): itf = mind.get_interface_from_inside() if itf is None: return itf.do_push() return (False, False, None)
[docs] def get_parameters(self): "Push (buffer)" data = {} return data
[docs]class PushBuffer_WaitTransfers_Breakpoint(mcgdb.capture.FunctionBreakpoint): func_type = mcgdb.capture.FunctionTypes.comm_func def __init__(self, location): mcgdb.capture.FunctionBreakpoint.__init__(self, location)
[docs] def prepare_before (self): itf = p2012_mon.get_interface_from_inside() if itf is None: return itf.do_waitTransfers() return (False, True, itf)
[docs] def prepare_after(self, itf): itf.finish_waitTransfers()