]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/eval.c
PR c++/9197:
authorTom Tromey <tromey@redhat.com>
Mon, 25 Mar 2013 17:26:18 +0000 (17:26 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 25 Mar 2013 17:26:18 +0000 (17:26 +0000)
commitfce632b6dc97eaa7e9f10f5c2c7dd8fd55931a51
tree06761cf79babc8913eb2efe76b35859518a5148a
parentf6f0e17bc3616a0e976b250e361bdd61bbffc6e8
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.
gdb/ChangeLog
gdb/eval.c
gdb/expression.h
gdb/opencl-lang.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/m-static.cc
gdb/testsuite/gdb.cp/m-static.exp