gdb/
authorYao Qi <yao@codesourcery.com>
Tue, 27 Nov 2012 07:59:12 +0000 (07:59 +0000)
committerYao Qi <yao@codesourcery.com>
Tue, 27 Nov 2012 07:59:12 +0000 (07:59 +0000)
commit5edf51feeade2be8b6ab6d49507a6023a6d9a176
tree77f3999c0747055349be11ed3119d56037e78a7a
parentca242aadec5ec762ae852ae80b67772302c534b8
gdb/
2012-11-27  Daniel Jacobowitz  <dan@codesourcery.com>
    Yao Qi  <yao@codesourcery.com>

* eval.c (evaluate_subexp_standard): Add handling of
TYPE_CODE_MEMBERPTR when calling functions.  Correct the
result of ptype for calling a TYPE_CODE_METHODPTR.

gdb/testsuite/
2012-11-27  Daniel Jacobowitz  <dan@codesourcery.com>

* gdb.cp/member-ptr.cc (class Diamond): Add func_ptr.
(func): New function.
(main): Initialize diamond.func_ptr and add diamond_pfunc_ptr.
* gdb.cp/member-ptr.exp: Add new tests for ptype and for
pointers to members with pointer-to-function type.
gdb/ChangeLog
gdb/eval.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/member-ptr.cc
gdb/testsuite/gdb.cp/member-ptr.exp