From fce632b6dc97eaa7e9f10f5c2c7dd8fd55931a51 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 25 Mar 2013 17:26:18 +0000 Subject: PR c++/9197: * opencl-lang.c (evaluate_subexp_opencl) : Use value_struct_elt, not lookup_struct_elt_type. * eval.c (evaluate_subexp_standard) : Use value_struct_elt, not lookup_struct_elt_type. * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment. gdb/testsuite * gdb.cp/m-static.exp: Add constructor ptype tests. * gdb.cp/m-static.cc (single_constructor): New class. (main): Make instance of single_constructor. --- gdb/expression.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gdb/expression.h') diff --git a/gdb/expression.h b/gdb/expression.h index 6b96b12..9252dd2 100644 --- a/gdb/expression.h +++ b/gdb/expression.h @@ -128,7 +128,10 @@ enum noside type (inaccuracy: anything that is listed as being in a register in the function in which it was - declared will be lval_register). */ + declared will be lval_register). + Ideally this would not even read + target memory, but currently it + does in many situations. */ }; extern struct value *evaluate_subexp_standard -- cgit v1.1