Fix several issues related to AOT debug (#1492)

This commit is contained in:
YAMAMOTO Takashi 2022-09-16 13:06:46 +09:00 committed by GitHub
parent edaff3c6ec
commit 1eedde7c33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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>
@ -24,4 +24,4 @@ get_text_section(void *buf, uint64_t *offset, uint64_t *size);
} }
#endif #endif
#endif #endif

View File

@ -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)
``` ```

View File

@ -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()