]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add Rust support to source highlighting
authorTom Tromey <tom@tromey.com>
Mon, 24 Jun 2019 22:02:47 +0000 (16:02 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 19 Aug 2019 16:17:27 +0000 (10:17 -0600)
commitd806ea2d0ef362fcddd2c1659f537b68aa114203
tree98a15b8aa7aa4a70d552bb115a60a465478f8ec7
parentc1a5d03a89a455d79f025c66dce83342de4d26ce
Add Rust support to source highlighting

Currently, no release of GNU Source Highlight supports Rust.  However,
I've checked in a patch to do so there, and I plan to make a new
release sometime this summer.

This patch prepares gdb for that by adding support for Rust to the
source highlighting code.

Because Source Highlight will throw an exception if the language is
unrecognized, this also changes gdb to ignore exceptions here.  This
will cause gdb to fall back to un-highlighted source text.

This updates gdb's configure script to reject the combination of
Source Highlight and -static-libstdc++.  This is done because it's not
possible to use -static-libstdc++ and then catch exceptions from a
shared library.

Tested with the current and development versions of Source Highlight.

gdb/ChangeLog
2019-08-19  Tom Tromey  <tom@tromey.com>

* configure: Rebuild.
* configure.ac: Disallow the combination of -static-libstdc++ and
source highlight.
* source-cache.c (get_language_name): Handle rust.
(source_cache::get_source_lines): Ignore highlighting exceptions.
gdb/ChangeLog
gdb/configure
gdb/configure.ac
gdb/source-cache.c