-
-#include "log.h"
-#include "command.h"
-
-#include <string.h>
-#include <stdlib.h>
-
-reg_arch_type_t *reg_arch_types = NULL;
-
-reg_t* register_get_by_name(reg_cache_t *first, char *name, int search_all)
+#include <helper/log.h>
+
+/**
+ * @file
+ * Holds utilities to work with register caches.
+ *
+ * OpenOCD uses machine registers internally, and exposes them by name
+ * to Tcl scripts. Sets of related registers are grouped into caches.
+ * For example, a CPU core will expose a set of registers, and there
+ * may be separate registers associated with debug or trace modules.
+ */
+
+struct reg *register_get_by_name(struct reg_cache *first,
+ const char *name, bool search_all)