Fix two latent Rust bugs
authorTom Tromey <tom@tromey.com>
Fri, 24 Apr 2020 21:35:01 +0000 (15:35 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 24 Apr 2020 21:35:02 +0000 (15:35 -0600)
commit8c87a4527f5102b124ad0128894b1195d80eef73
tree4fded124417a1e193d6eaeae241d5d94e66f4530
parent787de330ee1471389cad1975eae65e566ad00448
Fix two latent Rust bugs

Two methods on general_symbol_info did not handle the language_rust
case.  I don't think these problems can be noticed with the current
code (which is why the bugs went unnoticed), but a future patch will
change this.

gdb/ChangeLog
2020-04-24  Tom Tromey  <tom@tromey.com>

* symtab.c (general_symbol_info::natural_name)
(general_symbol_info::demangled_name): Check for language_rust.
gdb/ChangeLog
gdb/symtab.c