开发者

Get a stack trace of specific thread using gdb

开发者 https://www.devze.com 2023-02-07 11:30 出处:网络
From inside C++ application, I want to call gdb to print stack trace of the current thread only. This can be used to get stack trace for a开发者_运维百科ssert like macro from inside application.

From inside C++ application, I want to call gdb to print stack trace of the current thread only.

This can be used to get stack trace for a开发者_运维百科ssert like macro from inside application. Gdb gives detailed stack trace which is highly complicated to achive "by hand":

How it can be done?

0

精彩评论

暂无评论...
验证码 换一张
取 消