koutheir/libcxx-pretty-printers

std::queue pretty printing does not work anymore

koutheir opened this issue · 2 comments

The pretty printing for std::queue does not work anymore.

The commit 4518026 solves some of the issues, but GDB still complains because the static const value __deque_iterator::__block_size is optimized out by the C++ compiler. __deque_iterator::__block_size is needed in order to print std::deque instances and other containers that use std::deque under the hood, such as std::queue.

The __deque_iterator::__block_size constant is defined as equal to __deque_block_size::value which is defined (depending on some template types) as:

static const _DiffType value = sizeof(_ValueType) < 256 ? 4096 / sizeof(_ValueType) : 16;

For the moment, I don't see how to solve this issue.

This repository has been moved to codeberg.org.