summaryrefslogtreecommitdiff
path: root/binaryurp
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2021-12-02 11:57:40 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2022-06-08 11:31:59 +0200
commit4a3510781f8355eb49d3fdbc44d0d4e27da1bb8e (patch)
tree724065d45de1d414dc8c992faca60d9a5e42a97a /binaryurp
parent25f83bb81ac6bc043b31f2eb8d9614ddac3ff232 (diff)
gdb: BigPtrArrayPrinter gets confused by libstdc++ std::unique_ptr
It looks like this in libstdc++: <BigPtrArray> = { m_ppInf = { _M_t = { <std::__uniq_ptr_impl<BlockInfo*, std::default_delete<BlockInfo* []> >> = { _M_t = { <std::_Tuple_impl<0, BlockInfo**, std::default_delete<BlockInfo* []> >> = { <std::_Tuple_impl<1, std::default_delete<BlockInfo* []> >> = { <std::_Head_base<1, std::default_delete<BlockInfo* []>, true>> = { _M_head_impl = {<No data fields>} }, <No data fields>}, <std::_Head_base<0, BlockInfo**, false>> = { _M_head_impl = 0x567fd20 }, <No data fields>}, <No data fields>} }, <No data fields>} }, Note there are 2 _M_head_impl members, and somehow gdb 11.1-2.fc34 picks the wrong one. A manual cast to std::_Head_base<0, BlockInfo**, false> seems to help. Change-Id: I1332c2fc6eb2661d417fd92a73aed977bbb1dcea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126220 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> (cherry picked from commit c9267ca4fa7fa94a1bf79320bec54428a6ad4804)
Diffstat (limited to 'binaryurp')
0 files changed, 0 insertions, 0 deletions