diff options
author | Philipp Fent <fent@in.tum.de> | 2022-09-06 23:24:29 +0200 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-09-14 19:17:36 +0100 |
commit | 93257ed603d72b58bb2616da5b63c4c6737f424b (patch) | |
tree | ed328dd30a6f419c667f2bfeca785288fced5ce9 /gcc/fortran | |
parent | 3c85c1188579bee9c6f8b8f5223daf49b772e594 (diff) | |
download | gcc-93257ed603d72b58bb2616da5b63c4c6737f424b.zip gcc-93257ed603d72b58bb2616da5b63c4c6737f424b.tar.gz gcc-93257ed603d72b58bb2616da5b63c4c6737f424b.tar.bz2 |
libstdc++: Add pretty printer for std::stringstreams
To display (o-,i-)stringstreams in the common case, we just print the
underlying stringbuf, without the many ios_base members. In the
unconventional case that the underlying streambuf was redirected, we
report the redirected target.
Signed-off-by: Philipp Fent <fent@in.tum.de>
libstdc++-v3/ChangeLog:
* python/libstdcxx/v6/printers.py (access_streambuf_ptrs):
New helper function.
(StdStringBufPrinter, StdStringStreamPrinter): New printers.
(build_libstdcxx_dictionary): Register stringstream printers.
* testsuite/libstdc++-prettyprinters/debug.cc: Check string
streams.
* testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
* testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions