diff options
Diffstat (limited to 'gdb/extension-priv.h')
-rw-r--r-- | gdb/extension-priv.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/extension-priv.h b/gdb/extension-priv.h index a38f104..cde64a2 100644 --- a/gdb/extension-priv.h +++ b/gdb/extension-priv.h @@ -1,7 +1,7 @@ /* Private implementation details of interface between gdb and its extension languages. - Copyright (C) 2014-2024 Free Software Foundation, Inc. + Copyright (C) 2014-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -262,12 +262,13 @@ struct extension_language_ops 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, + /* Colorize a source file. NAME is the source file's name, CONTENTS is the + contents of the file, and LANG is the language. This should either + return colorized (using ANSI terminal escapes) version of the contents, or an empty option. */ std::optional<std::string> (*colorize) (const std::string &name, - const std::string &contents); + const std::string &contents, + enum language lang); /* Colorize a single line of disassembler output, CONTENT. This should either return colorized (using ANSI terminal escapes) version of the |