Implement C++ cast operations
authorTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:27:57 +0000 (07:27 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:28:24 +0000 (07:28 -0700)
commitd9ad79d8800c18b70e90e9672b5085246e4fd537
tree6d1fee1571632b148e4175b9307e2b29b2c88ef1
parent292382f47ef08c5ec3292c612f737fe4b312c9f1
Implement C++ cast operations

This adds class cxx_cast_operation, which is used to implement the C++
dynamic_cast and reinterpret_cast operations.

gdb/ChangeLog
2021-03-08  Tom Tromey  <tom@tromey.com>

* expop.h (cxx_cast_ftype): New typedef.
(cxx_cast_operation): New template.
(dynamic_cast_operation, reinterpret_cast_operation): New
typedefs.
gdb/ChangeLog
gdb/expop.h