public void setFunction(Function func, Address entry, DecompileDebug dbg) {
		cachedFunction = func;
		undefinedBody = null;
		if (func instanceof UndefinedFunction) {
			undefinedBody = new AddressSet(func.getBody());
		}
		funcEntry = entry;
		debug = dbg;
		if (debug != null) {
			debug.setPcodeDataTypeManager(dtmanage);
		}
		nativeMessage = null; // Clear last message
		lastPseudoInstructionBlock = null;
		if (pseudoDisassembler != null) {
			pseudoDisassembler.resetDisassemblerContext();
		}
	}
Establish function and debug context for next decompilation

@param func is the function to be decompiled
@param entry is the function's entry address
@param dbg is the debugging context (or null)
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileCallback.java