char* myqttd_support_get_backtrace ( MyQttdCtx ctx,
int  pid 
)

Allows to get process backtrace (including all threads) of the given process id.

Parameters
ctxThe context where the operation is implemented.
pidThe process id for which the backtrace is requested. Use getpid () to get current process id.
Returns
A newly allocated string containing the path to the file where the backtrace was generated or NULL if it fails.

References error, msg, myqttd_runtime_datadir(), and myqttd_runtime_tmpdir().