Make gdb.lookup_typename work for Rust types
authorTom Tromey <tom@tromey.com>
Thu, 13 Jul 2017 21:03:27 +0000 (15:03 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 14 Jul 2017 16:16:39 +0000 (10:16 -0600)
commit65547233e04b32e087f74f8f5e9d3ffb6fe2c198
treeeab7e58cd431d01c48bce4ac30e00b1a98c62e4e
parent8f14146e1317b7b416ce298fad1a4f3d1ccbeb2b
Make gdb.lookup_typename work for Rust types

PR rust/21763 points out that gdb.lookup_typename does not work properly
for (some) Rust types.  I tracked this down to a missing case in
symbol_matches_domain.

Tested by the buildbot.

2017-07-14  Tom Tromey  <tom@tromey.com>

PR rust/21763:
* symtab.c (symbol_matches_domain): Add language_rust to special
case.
* rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
treat LOC_TYPEDEF symbols as variables.

2017-07-14  Tom Tromey  <tom@tromey.com>

* gdb.rust/simple.exp: Add regression test for PR rust/21763.
gdb/ChangeLog
gdb/rust-exp.y
gdb/symtab.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.rust/simple.exp