Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从 C++ 应用程序内部,我想调用 gdb 仅打印当前线程的堆栈跟踪。
这可用于从应用程序内部获取断言之类的宏的堆栈跟踪。Gdb 提供了详细的堆栈跟踪,“手动”实现非常复杂:
怎么做?