gpt4 book ai didi

c++ - 为了便于阅读,在 GDB 上缩写 C++ 模板?

转载 作者:行者123 更新时间:2023-11-30 03:30:55 26 4
gpt4 key购买 nike

当列表太长时,我想截断/缩写模板。例如:

0x219f524c <HPHP::jit::DfsWalker::dfs<HPHP::jit::PostorderWalker::dfs(Post) [with Post = HPHP::jit::vasm_lower(HPHP::jit::Vunit&, Vlower) [with Vlower = HPHP::jit::(anonymous namespace)::lowerForPPC64(HPHP::jit::Vunit&)::<lambda(const HPHP::jit::VLS&, HPHP::jit::Vinstr&, HPHP::jit::Vlabel, size_t)>]::<lambda(HPHP::jit::Vlabel)>]::<lambda(HPHP::jit::Vlabel)>, HPHP::jit::vasm_lower(HPHP::jit::Vunit&, Vlower) [with Vlower = HPHP::jit::(anonymous namespace)::lowerForPPC64(HPHP::jit::Vunit&)::<lambda(const HPHP::jit::VLS&, HPHP::jit::Vinstr&, HPHP::jit::Vlabel, size_t)>]::<lambda(HPHP::jit::Vlabel)> >(HPHP::jit::Vlabel, HPHP::jit::<lambda(HPHP::jit::Vlabel)>)+412>:    addi    r30,r30,4
0x219f5250 <HPHP::jit::DfsWalker::dfs<HPHP::jit::PostorderWalker::dfs(Post) [with Post = HPHP::jit::vasm_lower(HPHP::jit::Vunit&, Vlower) [with Vlower = HPHP::jit::(anonymous namespace)::lowerForPPC64(HPHP::jit::Vunit&)::<lambda(const HPHP::jit::VLS&, HPHP::jit::Vinstr&, HPHP::jit::Vlabel, size_t)>]::<lambda(HPHP::jit::Vlabel)>]::<lambda(HPHP::jit::Vlabel)>, HPHP::jit::vasm_lower(HPHP::jit::Vunit&, Vlower) [with Vlower = HPHP::jit::(anonymous namespace)::lowerForPPC64(HPHP::jit::Vunit&)::<lambda(const HPHP::jit::VLS&, HPHP::jit::Vinstr&, HPHP::jit::Vlabel, size_t)>]::<lambda(HPHP::jit::Vlabel)> >(HPHP::jit::Vlabel, HPHP::jit::<lambda(HPHP::jit::Vlabel)>)+416>: cmpld cr7,r28,r9
0x219f5254 <HPHP::jit::DfsWalker::dfs<HPHP::jit::PostorderWalker::dfs(Post) [with Post = HPHP::jit::vasm_lower(HPHP::jit::Vunit&, Vlower) [with Vlower = HPHP::jit::(anonymous namespace)::lowerForPPC64(HPHP::jit::Vunit&)::<lambda(const HPHP::jit::VLS&, HPHP::jit::Vinstr&, HPHP::jit::Vlabel, size_t)>]::<lambda(HPHP::jit::Vlabel)>]::<lambda(HPHP::jit::Vlabel)>, HPHP::jit::vasm_lower(HPHP::jit::Vunit&, Vlower) [with Vlower = HPHP::jit::(anonymous namespace)::lowerForPPC64(HPHP::jit::Vunit&)::<lambda(const HPHP::jit::VLS&, HPHP::jit::Vinstr&, HPHP::jit::Vlabel, size_t)>]::<lambda(HPHP::jit::Vlabel)> >(HPHP::jit::Vlabel, HPHP::jit::<lambda(HPHP::jit::Vlabel)>)+420>: bne cr7,0x219f5220 <HPHP::jit::DfsWalker::dfs<HPHP::jit::PostorderWalker::dfs(Post) [with Post = HPHP::jit::vasm_lower(HPHP::jit::Vunit&, Vlower) [with Vlower = HPHP::jit::(anonymous namespace)::lowerForPPC64(HPHP::jit::Vunit&)::<lambda(const HPHP::jit::VLS&, HPHP::jit::Vinstr&, HPHP::jit::Vlabel, size_t)>]::<lambda(HPHP::jit::Vlabel)>]::<lambda(HPHP::jit::Vlabel)>, HPHP::jit::vasm_lower(HPHP::jit::Vunit&, Vlower) [with Vlower = HPHP::jit::(anonymous namespace)::lowerForPPC64(HPHP::jit::Vunit&)::<lambda(const HPHP::jit::VLS&, HPHP::jit::Vinstr&, HPHP::jit::Vlabel, size_t)>]::<lambda(HPHP::jit::Vlabel)> >(HPHP::jit::Vlabel, HPHP::jit::<lambda(HPHP::jit::Vlabel)>)+368>
0x219f5258 <HPHP::jit::DfsWalker::dfs<HPHP::jit::PostorderWalker::dfs(Post) [with Post = HPHP::jit::vasm_lower(HPHP::jit::Vunit&, Vlower) [with Vlower = HPHP::jit::(anonymous namespace)::lowerForPPC64(HPHP::jit::Vunit&)::<lambda(const HPHP::jit::VLS&, HPHP::jit::Vinstr&, HPHP::jit::Vlabel, size_t)>]::<lambda(HPHP::jit::Vlabel)>]::<lambda(HPHP::jit::Vlabel)>, HPHP::jit::vasm_lower(HPHP::jit::Vunit&, Vlower) [with Vlower = HPHP::jit::(anonymous namespace)::lowerForPPC64(HPHP::jit::Vunit&)::<lambda(const HPHP::jit::VLS&, HPHP::jit::Vinstr&, HPHP::jit::Vlabel, size_t)>]::<lambda(HPHP::jit::Vlabel)> >(HPHP::jit::Vlabel, HPHP::jit::<lambda(HPHP::jit::Vlabel)>)+424>: ld r10,0(r27)

任何更适合我的屏幕的东西都会更好。特别是因为当换行时我完全错过了说明。

建议:

0x219f524c <HPHP::jit::DfsWalker::dfs<[...]>)+412>:    addi    r30,r30,4
0x219f5250 <HPHP::jit::DfsWalker::dfs<[...]>)+416>: cmpld cr7,r28,r9
0x219f5254 <HPHP::jit::DfsWalker::dfs<[...]>)+420>: bne cr7,0x219f5220 <HPHP::jit::DfsWalker::dfs<[...]>)+368>
0x219f5258 <HPHP::jit::DfsWalker::dfs<[...]>)+424>: ld r10,0(r27)

我不希望它成为默认模板,但就我而言,我并不关心一直使用哪个模板。

最佳答案

作为解决方法,可以使用以下选项来隐藏整个符号: set print max-symbolic-offset <max-offset>docs 中所述, 其中<max-offset>是一个整数。

关于c++ - 为了便于阅读,在 GDB 上缩写 C++ 模板?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44637910/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com