devans | 8 Aug 2012 23:17
Favicon

src/gdb ChangeLog eval.c expprint.c testsuite/ ...

CVSROOT:	/cvs/src
Module name:	src
Changes by:	devans <at> sourceware.org	2012-08-08 21:17:05

Modified files:
	gdb            : ChangeLog eval.c expprint.c 
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.base: exprs.exp 
Added files:
	gdb/testsuite/gdb.base: debug-expr.c debug-expr.exp 
	gdb/testsuite/gdb.cp: debug-expr.exp 

Log message:
	* eval.c (evaluate_subexp_standard): Fix thinko in handling
	UNOP_MEMVAL_TYPE.
	* expprint.c (print_subexp_standard, case OP_TYPE): New.
	(print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
	(print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
	(print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
	(print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
	(dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
	elt.
	(dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
	(dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
	(dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
	(dump_prefix_expression): Handle OP_TYPE.
	
	testsuite/
	* gdb.base/debug-expr.c: New file.
	* gdb.base/debug-expr.exp: New file.
(Continue reading)


Gmane