mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 15:05:19 +00:00
Fix several issues related to AOT debug (#1492)
This commit is contained in:
parent
edaff3c6ec
commit
1eedde7c33
|
@ -3,7 +3,7 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _ELF_PARSERE_H_
|
#ifndef _ELF_PARSER_H_
|
||||||
#define _ELF_PARSER_H_
|
#define _ELF_PARSER_H_
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ Then you can use lldb commands to debug your applications. Please refer to [lldb
|
||||||
1. Build lldb (assume you have already built llvm)
|
1. Build lldb (assume you have already built llvm)
|
||||||
``` bash
|
``` bash
|
||||||
cd ${WAMR_ROOT}/core/deps/llvm/build
|
cd ${WAMR_ROOT}/core/deps/llvm/build
|
||||||
cmake . -DLLVM_ENABLE_PROJECTS="clang;lldb"
|
cmake ../llvm -DLLVM_ENABLE_PROJECTS="clang;lldb" -DLLDB_INCLUDE_TESTS=OFF
|
||||||
make -j $(nproc)
|
make -j $(nproc)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,7 @@ if (WAMR_BUILD_DEBUG_AOT EQUAL 1)
|
||||||
include_directories(${LLVM_BUILD_BINARY_DIR}/tools/lldb/include)
|
include_directories(${LLVM_BUILD_BINARY_DIR}/tools/lldb/include)
|
||||||
endif()
|
endif()
|
||||||
link_directories(${LLVM_LIBRARY_DIRS})
|
link_directories(${LLVM_LIBRARY_DIRS})
|
||||||
find_library(lib_lldb NAMES lldb HINTS ${LLVM_LIBRARY_DIRS})
|
find_library(lib_lldb NAMES lldb HINTS ${LLVM_LIBRARY_DIRS} REQUIRED)
|
||||||
message(STATUS "find lldb ${LLDB_ALL_PLUGINS} in: ${LLVM_LIBRARY_DIRS}")
|
message(STATUS "find lldb ${LLDB_ALL_PLUGINS} in: ${LLVM_LIBRARY_DIRS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user