public void getCPoolRef(String rec, long[] refs) {
		StringBuilder buf = new StringBuilder();
		buf.append("<ref");
		SpecXmlUtils.encodeUnsignedIntegerAttribute(buf, "a", refs[0]);
		long val = 0;
		if (refs.length > 1) {
			val = refs[1];
		}
		SpecXmlUtils.encodeUnsignedIntegerAttribute(buf, "b", val);
		buf.append("/>\n");
		buf.append(rec);
		cpool.add(buf.toString());
	}
This routine collects all the context register changes across the
body of the function. Right now we only get the context at the
beginning of the function because its difficult to tell where the
context changes.
@param debugStream is the stream being written to
@throws IOException for any i/o error
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileDebug.java