diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/source-cache.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d14a093..5ed91a8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2018-12-28 Tom Tromey <tom@tromey.com> + * source-cache.c (get_language_name): Conditionally compile. + +2018-12-28 Tom Tromey <tom@tromey.com> + * jit.c (free_objfile_data): Only delete breakpoint if non-null. 2018-12-28 Tom Tromey <tom@tromey.com> diff --git a/gdb/source-cache.c b/gdb/source-cache.c index 5685180..f171552 100644 --- a/gdb/source-cache.c +++ b/gdb/source-cache.c @@ -108,6 +108,8 @@ source_cache::extract_lines (const struct source_text &text, int first_line, return false; } +#ifdef HAVE_SOURCE_HIGHLIGHT + /* Return the Source Highlight language name, given a gdb language LANG. Returns NULL if the language is not known. */ @@ -160,6 +162,8 @@ get_language_name (enum language lang) return nullptr; } +#endif /* HAVE_SOURCE_HIGHLIGHT */ + /* See source-cache.h. */ bool |