!436 LOS_Panic接口中增加需要增加LOS_BackTrace(),方便定位主动异常位置

Merge pull request !436 from zhangfanfan2/master
This commit is contained in:
openharmony_ci 2021-12-02 04:05:33 +00:00 committed by Gitee
commit 1c9703b049
1 changed files with 3 additions and 0 deletions

View File

@ -89,6 +89,9 @@ LITE_OS_SEC_TEXT_INIT VOID LOS_Panic(const CHAR *fmt, ...)
va_start(ap, fmt);
PRINT_ERR(fmt, ap);
va_end(ap);
#if (LOSCFG_BACKTRACE_TYPE != 0)
LOS_BackTrace();
#endif
HalSysExit();
}