binutils-gdb/gdb/testsuite/gdb.rust
Tom Tromey 73fc52c4cc Handle TYPE_CODE_PTR when printing Rust types
This changes the Rust type printers to handle TYPE_CODE_PTR.  The
current approach is not ideal, because currently the code can't
distinguish between mut and const, or between pointers and references.
(These are debuginfo deficiencies, for which there are rustc bugs on
file.)

Meanwhile, this at least clears up the case seen in PR rust/23625.

Tested on x86-64 Fedora 28.  The nightly compiler gives the best
results, but I regression-tested with stable and beta as well.

gdb/ChangeLog
2018-11-16  Tom Tromey  <tom@tromey.com>

	PR rust/23625:
	* rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.

gdb/testsuite/ChangeLog
2018-11-19  Tom Tromey  <tom@tromey.com>

	PR rust/23625:
	* gdb.rust/simple.exp: Add ptype test.  Update expected output.
	* gdb.rust/expr.exp: Update expected output.  Change one test.
2018-11-19 11:19:01 -07:00
..
expr.exp Handle TYPE_CODE_PTR when printing Rust types 2018-11-19 11:19:01 -07:00
generics.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
generics.rs Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
methods.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
methods.rs Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
modules.exp Fix qualified name lookup for Rust 2018-01-19 15:30:28 -07:00
modules.rs Fix qualified name lookup for Rust 2018-01-19 15:30:28 -07:00
simple.exp Handle TYPE_CODE_PTR when printing Rust types 2018-11-19 11:19:01 -07:00
simple.rs Fix gdb.rust/simple.rs for more recent compilers 2018-11-19 11:07:07 -07:00
traits.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
traits.rs Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
unsized.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
unsized.rs Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
watch.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
watch.rs Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00