public List<SourceFileAddr> getAllSourceFileAddrInfo(DWARFCompilationUnit cu,
			BinaryReader reader) throws IOException {
		try (DWARFLineProgramExecutor lpe = getLineProgramexecutor(cu, reader)) {
			List<SourceFileAddr> results = new ArrayList<>();
			for (DWARFLineProgramState row : lpe.allRows()) {
				byte[] md5 = null;
				if (cu.getDWARFVersion() >= 5 && (row.file < cu.getLine().getNumFiles())) {
					md5 = cu.getLine().getFile(row.file).getMD5();
				}
				String filePath = getFilePath(row.file, true);
				if (filePath != null) {
					results.add(new SourceFileAddr(row.address, filePath, md5, row.line,
						row.isEndSequence));
				} else {
					cu.getProgram().getImportSummary().badSourceFileCount++;
				}
			}

			return results;
		}
	}
Version number, as read from the header.
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/line/DWARFLine.java