From 836956bc9ed68b63cdf4cffe08656eb26f3ba3b7 Mon Sep 17 00:00:00 2001 From: xwx1135370 Date: Tue, 4 Jun 2024 19:07:55 +0800 Subject: [PATCH] [R&D][Doc][LLDB] Update LLDB Debugging Guide Issue:https://gitee.com/openharmony/third_party_llvm-project/issues/I9UZKY?from=project-issue Signed-off-by: xwx1135370 --- lldb/README.md | 9 ++------- lldb/README_zh.md | 11 +++-------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/lldb/README.md b/lldb/README.md index f850d688d985..0c9e7b280f8a 100644 --- a/lldb/README.md +++ b/lldb/README.md @@ -3,7 +3,7 @@ # 1. Introduction to LLDB -Low Lever Debugger (LLDB) is a next-generation high-performance debugger. It is developed based on [LLVM15.0.4](https://github.com/llvm/llvm-project/releases/tag/llvmorg-15.0.4) and supports debugging on the home screen and OpenHarmony devices or emulators. +Low Level Debugger (LLDB) is a next-generation high-performance debugger. It is developed based on [LLVM15.0.4](https://github.com/llvm/llvm-project/releases/tag/llvmorg-15.0.4) and supports debugging on the home screen and OpenHarmony devices or emulators. > **NOTE** > @@ -20,12 +20,6 @@ LLDB is in the following path of the SDK: **\ohos-sdk\\\[system]\native\llvm. The following uses the Windows platform as an example: -- Method 1 - - Obtain the SDK for Windows, place `lldb.exe`, `liblldb.dll`, and `libpython3.10.dll` in the `**\ohos-sdk\windows\native\llvm\bin` directory on a disk, and run `lldb.exe`. - -- Method 2 - Decompress the SDK and run `lldb.exe` in the `**\ohos-sdk\windows\native\llvm\bin` directory. During remote debugging, `lldb-server` and `lldb` must be used together. @@ -47,6 +41,7 @@ During remote debugging, `lldb-server` and `lldb` must be used together. > | windows | Tools for the Windows platform. | > | linux | Tools for the Linux platform. | > | darwin | Tools for the macOS platform. | +> | ohos | Tools for the OHOS platform. | > > The tools for the macOS platform is further classified into the x86_64 tools and ARM64 tools. `mac-sdk-full` and `mac-sdk-public` apply to the x86_64 architecture. `mac-sdk-m1-full` and `mac-sdk-m1-public` apply to the ARM64 architecture. > diff --git a/lldb/README_zh.md b/lldb/README_zh.md index 28f56e6e21a4..3baf0d9462f6 100644 --- a/lldb/README_zh.md +++ b/lldb/README_zh.md @@ -3,7 +3,7 @@ # 1. LLDB工具介绍 -LLDB(Low Lever Debugger)是新一代高性能调试器。当前Openharmony主干分支的LLDB工具是在[llvm15.0.4](https://github.com/llvm/llvm-project/releases/tag/llvmorg-15.0.4)基础上适配演进出来的工具。支持在桌面和Openharmony设备或模拟器上调试。 +LLDB(Low Level Debugger)是新一代高性能调试器。当前OpenHarmony主干分支的LLDB工具是在[llvm15.0.4](https://github.com/llvm/llvm-project/releases/tag/llvmorg-15.0.4)基础上适配演进出来的工具。支持在桌面和Openharmony设备或模拟器上调试。 > **说明** > @@ -20,12 +20,6 @@ LLDB工具在SDK中的路径:**\ohos-sdk\\\[system]\native\llvm。 下面以windows平台使用方式举例 -- 方法一 - - 获取windows的SDK,将\**\ohos-sdk\windows\native\llvm\bin目录下的lldb.exe、liblldb.dll和libpython3.10.dll放在磁盘某个位置,运行lldb.exe即可。 - -- 方法二 - 解压sdk,直接在LLDB工具所在路径\**\ohos-sdk\windows\native\llvm\bin运行lldb.exe即可。 远程调试时需要lldb-server和lldb配合使用。 @@ -47,6 +41,7 @@ LLDB工具在SDK中的路径:**\ohos-sdk\\\[system]\native\llvm。 > | windows | 适用于windows平台的工具 | > | linux | 适用于linux平台的工具 | > | darwin | 适用于Mac平台的工具 | +> | ohos | 适用于ohos平台的工具| > > Mac平台的工具有arm64架构和x86_64架构区分。可根据”组件形态“进行区分,其中mac-sdk-full和mac-sdk-public的适用于x86_64架构。mac-sdk-m1-full和mac-sdk-m1-public的适用于arm64架构。 > @@ -1576,7 +1571,7 @@ WorkingDir: /data/local/tmp > > debug版本so的调试参考hap包调试即可。 -## 4.3 Openharmony服务启动调试 +## 4.3 OpenHarmony服务启动调试 > **注意** > -- Gitee