binutils-gdb/gdb/testsuite/gdb.rust
Tom Tromey 8880f2a9cb Handle sizeof(type) in Rust
PR rust/21764 notes that "sizeof" does not work correctly for all types
in Rust.  The bug turns out to be an error in the conversion of the AST
to gdb expressions.  This patch fixes the bug and also avoids generating
incorrect expressions in another case.

Tested on the buildbot.  I'm checking this in.

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

	PR rust/21764:
	* rust-exp.y (convert_ast_to_expression): Add "want_type"
	parameter.
	<UNOP_SIZEOF>: Split into separate case.
	<UNOP_VAR_VALUE>: Handle want_type.  Add error case.

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

	PR rust/21764:
	* gdb.rust/simple.exp: Add tests.
2017-07-14 12:30:56 -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 Handle sizeof(type) in Rust 2017-07-14 12:30:56 -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