binutils-gdb/gdb/testsuite/gdb.dlang
Iain Buclaw f5e6296e21 [D] Fix crash when debug expression enabled.
While casting works as expected with expression debugging turned off,
this seems to be an indication that the D language parser function is
doing something wrong in the building of the expression.

Without changing the grammar, using UNOP_CAST_TYPE is the right thing to
do here, as the TypeExp handler has already wrapped the type around a
pair of OP_TYPE opcodes.

gdb/ChangeLog:

	* d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.

gdb/testsuite/ChangeLog:

	* gdb.dlang/debug-expr.exp: New file.
2017-01-08 11:20:56 +01:00
..
circular.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
circular.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
debug-expr.exp [D] Fix crash when debug expression enabled. 2017-01-08 11:20:56 +01:00
demangle.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
expression.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
primitive-types.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
properties.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00