PR c++/9065:
authorTom Tromey <tromey@redhat.com>
Mon, 15 Apr 2013 17:36:14 +0000 (17:36 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 15 Apr 2013 17:36:14 +0000 (17:36 +0000)
commit6e72ca205c018b9906fa2047ffb1be7f546e0643
treef3a97011f1f148c9d0609bf241e87ef54e32779d
parent715c6909e29a233406d54739976bb8674fa6b836
PR c++/9065:
* NEWS: Update.
* breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
* c-exp.y (TYPEID): New token.
(exp): Add new TYPEID productions.
(ident_tokens): Add "typeid".
* cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
* cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
(struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
* eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
* expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
case.
* gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
(build_std_type_info_type, gnuv3_get_typeid_type)
(gnuv3_get_typeid): New functions.
(init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
new fields on ABI object.
* parse.c (operator_length_standard) <OP_TYPEID>: New case.
* std-operator.def (OP_TYPEID): New.
gdb/testsuite
* gdb.cp/typeid.cc: New file.
* gdb.cp/typeid.exp: New file.
14 files changed:
gdb/ChangeLog
gdb/NEWS
gdb/breakpoint.c
gdb/c-exp.y
gdb/cp-abi.c
gdb/cp-abi.h
gdb/eval.c
gdb/expprint.c
gdb/gnu-v3-abi.c
gdb/parse.c
gdb/std-operator.def
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/typeid.cc [new file with mode: 0644]
gdb/testsuite/gdb.cp/typeid.exp [new file with mode: 0644]