Get call stack.
More...
#include <StackTrace.h>
|
QStringList | GetStack (uint index, unsigned int max_frames) |
| Print a demangled stack backtrace of the caller function to FILE* out.
|
|
Get call stack.
Definition at line 16 of file StackTrace.h.
◆ CCallTrace()
RabbitCommon::CCallTrace::CCallTrace |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
- Parameters
-
hMainThread | Main(UI) thread id. If you are use ShowCoreDialog(). The call must be in the main(UI) thread. |
◆ GetStack() [1/2]
QStringList RabbitCommon::CCallTrace::GetStack |
( |
uint |
index, |
|
|
unsigned int |
max_frames |
|
) |
| |
|
private |
Print a demangled stack backtrace of the caller function to FILE* out.
~/english resolve addresses into strings containing "filename(function+address)", this array must be free()-ed
~/chinese 接受 backtrace 返回的 buffer 和 size, 将每一个函数地址通过符号表进行翻译,生成一个包含函数名, 内部指令偏移和实际返回地址的字符串, 并返回一个malloc出来的字符串数组,用户需要手工释放数组本身, 但是数组的每一个指针本身则不必被用户释放
Definition at line 301 of file StackTrace.cpp.
◆ GetStack() [2/2]
QString RabbitCommon::CCallTrace::GetStack |
( |
uint |
index = 5 | ) |
|
◆ m_hMainThread
Qt::HANDLE RabbitCommon::CCallTrace::m_hMainThread |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/RabbitCommon/RabbitCommon/Src/CoreDump/StackTrace.h
- /home/runner/work/RabbitCommon/RabbitCommon/Src/CoreDump/StackTrace.cpp