diff options
author | Tom Tromey <tromey@redhat.com> | 2013-03-25 17:26:18 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-03-25 17:26:18 +0000 |
commit | 1f8a1ced4eefa4c6052a3e4566781527373eff45 (patch) | |
tree | 8845b0f8810d3350597c40e1b9b0574b7b7c092d /gdb/expression.h | |
parent | 39b93559981072aa31534d1a5496fa920e8fa694 (diff) | |
download | gdb-1f8a1ced4eefa4c6052a3e4566781527373eff45.tar.gz |
PR c++/9197:
* opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
value_struct_elt, not lookup_struct_elt_type.
* eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
STRUCTOP_PTR>: 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.
Diffstat (limited to 'gdb/expression.h')
-rw-r--r-- | gdb/expression.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/expression.h b/gdb/expression.h index 6b96b12a783..9252dd25ef9 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 |