@Override
	public boolean canAnalyze(Program program) {

		boolean isGcc =
			program.getCompilerSpec().getCompilerSpecID().getIdAsString().equalsIgnoreCase("gcc");

		boolean isDefault = program.getCompilerSpec()
				.getCompilerSpecID()
				.getIdAsString()
				.equalsIgnoreCase("default");

		if (!isGcc && !isDefault) {
			return false;
		}

		boolean hasEHFrameHeader =
			hasBlock(program, EhFrameHeaderSection.EH_FRAME_HEADER_BLOCK_NAME);

		boolean hasEHFrame = hasBlock(program, EhFrameSection.EH_FRAME_BLOCK_NAME);

		boolean hasDebugFrame =
			hasBlockWithPrefix(program, DebugFrameSection.DEBUG_FRAME_BLOCK_NAME);

		return hasEHFrame || hasEHFrameHeader || hasARMSection(program) || hasDebugFrame;
	}
Creates an analyzer for marking up the GCC exception handling information.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/exceptionhandlers/gcc/GccExceptionAnalyzer.java