From b9ddfb0efa55af8bc0cca72f27b15c7fc8f46c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Fri, 11 Aug 2023 02:30:39 +0000 Subject: [PATCH] update zh-cn/application-dev/dfx/cppcrash-guidelines.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 葛亚芳 --- zh-cn/application-dev/dfx/cppcrash-guidelines.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zh-cn/application-dev/dfx/cppcrash-guidelines.md b/zh-cn/application-dev/dfx/cppcrash-guidelines.md index 33e34e3c0c..c4b7fa6e15 100644 --- a/zh-cn/application-dev/dfx/cppcrash-guidelines.md +++ b/zh-cn/application-dev/dfx/cppcrash-guidelines.md @@ -103,3 +103,9 @@ Thread name:crasher <- 异常线程名 范例中的崩溃故障是由赋值给一块不可写的区域导致的,代码行为dfx_crasher.c文件的57行,修改后可以避免发生此崩溃。\ 另外,使用addr2line后,如果得出的行号看起来不是很正确,可以考虑对地址进行微调(如减1),或者考虑关闭一些编译优化,已知使用LTO的二进制可能无法正确获得行号。 + +## 相关实例 + +针对故障日志获取,有以下相关实力可供参考: + +- [故障日志获取(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-3.2-Release/code/BasicFeature/DFX/FaultLogger) \ No newline at end of file -- GitLab