Loading

摘要: 背景 一个C++节点,希望再coredump的时候打印调用堆栈信息而不是直接给出core文件。 实现 使用boost::stacktrace::stacktrace()展示调用栈,依靠signal进行捕捉。 代码 #include <iostream> #include <string> #incl 阅读全文
posted @ 2024-01-02 14:30 azureology 阅读(1070) 评论(0) 推荐(0)