binutils-gdb/gdb/testsuite/gdb.rust
Tom Tromey e6cf65f283 Print Rust unsized array types a bit more nicely
It's a bit difficult to create an unsized array type in Rust, but if
you do, right now ptype will show something like "[u8; ]".  It really
should print "[u8]", though, which is what this patch implements.

This is part of PR 21466.

Built and regtested on x86-64 Fedora 25.  I'm checking this in.

ChangeLog
2017-05-21  Tom Tromey  <tom@tromey.com>

	PR rust/21466:
	* rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
	arrays as "[T]", not "[T; ]".

testsuite/ChangeLog
2017-05-21  Tom Tromey  <tom@tromey.com>

	PR rust/21466:
	* gdb.rust/unsized.exp: New file.
	* gdb.rust/unsized.rs: New file.
2017-05-21 17:02:16 -06:00
..
expr.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
generics.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
generics.rs update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
methods.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
methods.rs update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
modules.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
modules.rs update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
simple.exp Fix test failure with Rust 1.18 and 1.19 2017-05-18 17:40:29 -06:00
simple.rs update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
unsized.exp Print Rust unsized array types a bit more nicely 2017-05-21 17:02:16 -06:00
unsized.rs Print Rust unsized array types a bit more nicely 2017-05-21 17:02:16 -06:00
watch.exp Use watchpoint's language when re-parsing expression 2017-05-19 21:23:16 -06:00
watch.rs Use watchpoint's language when re-parsing expression 2017-05-19 21:23:16 -06:00