Implement dumping
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:14 +0000 (07:28 -0700)
commitde401988aeac56a8478f61cde1b35e961742317b
tree5025ecd1df35aae4520e8d6da3bf8e840762792d
parente2803273a078950d0895de245cdc5375f362a8c5
Implement dumping

This patch implements the dumping methods for tuple_holding_operation.
A number of overloads are used.  Note that no default case is given.
This approach makes it simple to detect when a new overload is needed
-- compilation will fail.  (There is an example of this in a later
patch in the series.)

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

* expprint.c (expr::dump_for_expression): New functions.
* expop.h (dump_for_expression): New overloads.
(tuple_holding_operation::dump, tuple_holding_operation::do_dump):
Update.
gdb/ChangeLog
gdb/expop.h
gdb/expprint.c
This page took 0.071682 seconds and 4 git commands to generate.