Source code for mcgdb.model.task.environment.p2012.pedf.capture.Pedf_Deploy

import gdb

import mcgdb
from mcgdb import toolbox
from mcgdb.toolbox.target import my_archi
from mcgdb.model.task import representation

[docs]class PedfDeploy(mcgdb.capture.FunctionBreakpoint): func_type = mcgdb.capture.FunctionTypes.define_func def __init__(self, spec): mcgdb.capture.FunctionBreakpoint.__init__(self, spec)
[docs] def prepare_before (self): return (False, True, None)
[docs] def prepare_after (self, data): representation.complete_interface_mapping() if toolbox.catchable.state("initialized"): my_gdb.push_stop_request("[Stopped after PEDF initialization]") return True
[docs]def enable(): toolbox.catchable.register("initialized") PedfDeploy("pedf_deploy")