Add per-unit obstack
[deliverable/binutils-gdb.git] / gdb / extension-priv.h
index 2af2dede6939690162693c2279541703371823f0..c35671013d9ca146b3f24660baf06bf91f626111 100644 (file)
@@ -254,6 +254,13 @@ struct extension_language_ops
      struct type *obj_type,
      const char *method_name,
      std::vector<xmethod_worker_up> *dm_vec);
+
+  /* Colorize a source file.  NAME is the source file's name, and
+     CONTENTS is the contents of the file.  This should either return
+     colorized (using ANSI terminal escapes) version of the contents,
+     or an empty option.  */
+  gdb::optional<std::string> (*colorize) (const std::string &name,
+                                         const std::string &contents);
 };
 
 /* State necessary to restore a signal handler to its previous value.  */
This page took 0.027411 seconds and 4 git commands to generate.