문제

I am doing some debugging of an application that uses boost::spirit. This means that backtraces are very deep and that many of the intermediate layers have function names that take several pages to print. The length of the function names makes examining the backtrace difficult. How can I have gdb limit the length of a function name to 1 or 2 lines? I'd still like the see the full path to the file and line number, but I don't need four pages of template parameters!

도움이 되었습니까?

해결책

I don't think it can be done directly right now. I think it would be a reasonable feature.

However, you can write your own implementation of "bt" in Python and then apply whatever transforms you like. This isn't actually very hard.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top