Compare commits
No commits in common. "f278552b4ce089e3f57a0906f884dd48eb049da1" and "ef066994486fc158de653e92ea2f94640a66ddc9" have entirely different histories.
f278552b4c
...
ef06699448
18
README.en.md
18
README.en.md
@ -1,8 +1,24 @@
|
||||
# lldb
|
||||
|
||||
#### Description
|
||||
The LLDB project builds on libraries provided by LLVM and Clang to provide a great native debugger. It uses the Clang ASTs and expression parser, LLVM JIT, LLVM disassembler, etc so that it provides an experience that "just works". It is also blazing fast and much more memory efficient than GDB at loading symbols.
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
|
||||
20
README.md
20
README.md
@ -1,7 +1,25 @@
|
||||
# lldb
|
||||
|
||||
#### 介绍
|
||||
The LLDB project builds on libraries provided by LLVM and Clang to provide a great native debugger. It uses the Clang ASTs and expression parser, LLVM JIT, LLVM disassembler, etc so that it provides an experience that "just works". It is also blazing fast and much more memory efficient than GDB at loading symbols.
|
||||
{**以下是码云平台说明,您可以替换此简介**
|
||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
|
||||
Binary file not shown.
122
lldb.spec
122
lldb.spec
@ -1,34 +1,17 @@
|
||||
%undefine __cmake_in_source_build
|
||||
%bcond_without bisheng_autotuner
|
||||
Name: lldb
|
||||
Version: 10.0.1
|
||||
Release: 1
|
||||
Summary: Next generation high-performance debugger
|
||||
|
||||
Name: lldb
|
||||
Version: 17.0.6
|
||||
Release: 3
|
||||
Summary: Next generation high-performance debugger
|
||||
License: NCSA
|
||||
URL: http://lldb.llvm.org/
|
||||
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
|
||||
|
||||
License: NCSA
|
||||
URL: http://lldb.llvm.org/
|
||||
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
|
||||
BuildRequires: cmake llvm-devel = %{version} llvm-test = %{version} clang-devel = %{version}
|
||||
BuildRequires: ncurses-devel swig llvm-static = %{version} libffi-devel zlib-devel
|
||||
BuildRequires: libxml2-devel libedit-devel python3-lit
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
BuildRequires: clang
|
||||
BuildRequires: llvm-devel = %{version}
|
||||
BuildRequires: llvm-test = %{version}
|
||||
BuildRequires: clang-devel = %{version}
|
||||
BuildRequires: clang-tools-extra = %{version}
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: swig
|
||||
BuildRequires: llvm-static = %{version}
|
||||
BuildRequires: libffi-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: libedit-devel
|
||||
BuildRequires: python3-lit
|
||||
BuildRequires: multilib-rpm-config
|
||||
|
||||
Requires: python3-lldb
|
||||
Requires: python3-lldb
|
||||
|
||||
%description
|
||||
LLDB is a next generation, high-performance debugger. It is built as a set
|
||||
@ -37,20 +20,17 @@ larger LLVM Project, such as the Clang expression parser and LLVM
|
||||
disassembler.
|
||||
|
||||
%package devel
|
||||
Summary: Development header files for LLDB
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Summary: Development header files for LLDB
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The package contains header files for the LLDB debugger.
|
||||
|
||||
%package -n python3-lldb
|
||||
%{?python_provide:%python_provide python3-lldb}
|
||||
Summary: Python module for LLDB
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
Requires: python3-six
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
BuildRequires: llvm-cmake-utils = %{version}
|
||||
Summary: Python module for LLDB
|
||||
BuildRequires: python3-devel
|
||||
Requires: python3-six
|
||||
|
||||
%description -n python3-lldb
|
||||
The package contains the LLDB Python module.
|
||||
@ -60,43 +40,42 @@ The package contains the LLDB Python module.
|
||||
|
||||
%build
|
||||
|
||||
mkdir -p _build
|
||||
cd _build
|
||||
|
||||
# Python version detection is broken
|
||||
LDFLAGS="%{build_ldflags} -lpthread -ldl"
|
||||
LDFLAGS="%{__global_ldflags} -lpthread -ldl"
|
||||
|
||||
CFLAGS="%{optflags} -Wno-error=format-security"
|
||||
CXXFLAGS="%{optflags} -Wno-error=format-security"
|
||||
|
||||
%cmake \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||
-DLLVM_CONFIG:FILEPATH=/usr/bin/llvm-config-%{__isa_bits} \
|
||||
\
|
||||
-DLLDB_DISABLE_CURSES:BOOL=OFF \
|
||||
-DLLDB_DISABLE_LIBEDIT:BOOL=OFF \
|
||||
-DLLDB_DISABLE_PYTHON:BOOL=OFF \
|
||||
%cmake .. \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||
-DLLVM_CONFIG:FILEPATH=/usr/bin/llvm-config-%{__isa_bits} \
|
||||
\
|
||||
-DLLDB_DISABLE_CURSES:BOOL=OFF \
|
||||
-DLLDB_DISABLE_LIBEDIT:BOOL=OFF \
|
||||
-DLLDB_DISABLE_PYTHON:BOOL=OFF \
|
||||
%if 0%{?__isa_bits} == 64
|
||||
-DLLVM_LIBDIR_SUFFIX=64 \
|
||||
-DLLVM_LIBDIR_SUFFIX=64 \
|
||||
%else
|
||||
-DLLVM_LIBDIR_SUFFIX= \
|
||||
-DLLVM_LIBDIR_SUFFIX= \
|
||||
%endif
|
||||
%if %{with bisheng_autotuner}
|
||||
-DLLVM_ENABLE_AUTOTUNER=ON \
|
||||
%endif
|
||||
\
|
||||
-DPYTHON_EXECUTABLE:STRING=%{__python3} \
|
||||
-DPYTHON_VERSION_MAJOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.major)") \
|
||||
-DPYTHON_VERSION_MINOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.minor)") \
|
||||
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
||||
-DCLANG_LINK_CLANG_DYLIB=ON \
|
||||
-DLLVM_COMMON_CMAKE_UTILS=%{_datadir}/llvm/cmake \
|
||||
-DLLVM_LIT_ARGS="-sv \
|
||||
--path %{_libdir}/llvm" \
|
||||
\
|
||||
-DPYTHON_EXECUTABLE:STRING=%{__python3} \
|
||||
-DPYTHON_VERSION_MAJOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.major)") \
|
||||
-DPYTHON_VERSION_MINOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.minor)") \
|
||||
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
||||
-DCLANG_LINK_CLANG_DYLIB=ON \
|
||||
-DLLVM_LIT_ARGS="-sv \
|
||||
--path %{_libdir}/llvm" \
|
||||
|
||||
%cmake_build
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
cd _build
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
# remove static libraries
|
||||
rm -fv %{buildroot}%{_libdir}/*.a
|
||||
@ -109,8 +88,9 @@ ln -vsf "../../../${liblldb}" %{buildroot}%{python3_sitearch}/lldb/_lldb.so
|
||||
# remove bundled six.py
|
||||
rm -f %{buildroot}%{python3_sitearch}/six.*
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%license LICENSE.TXT
|
||||
%{_bindir}/lldb*
|
||||
%{_libdir}/liblldb.so.*
|
||||
%{_libdir}/liblldbIntelFeatures.so.*
|
||||
@ -123,23 +103,7 @@ rm -f %{buildroot}%{python3_sitearch}/six.*
|
||||
%{python3_sitearch}/lldb
|
||||
|
||||
%changelog
|
||||
* Wed Nov 13 2024 Funda Wang <fundawang@yeah.net> - 17.0.6-3
|
||||
- adopt to new cmake macro
|
||||
|
||||
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-2
|
||||
- Add BiSheng Autotuner support.
|
||||
|
||||
* Mon Dec 4 2023 zhoujing <zhoujing@huawei.com> 17.0.6-1
|
||||
- upgrade lldb to 17.0.6
|
||||
|
||||
* Mon Jul 17 2023 cf-zhao <zhaochuanfeng@huawei.com> 15.0.7-1
|
||||
- upgrade lldb to 15.0.7
|
||||
|
||||
* Thu Jan 06 2022 Chen Chen <chen_aka_jan@163.com> - 12.0.1-1
|
||||
- upgrade lldb to 12.0.1
|
||||
|
||||
* Mon Oct 12 2020 wangxiao <wangxiao65@huawei.com> - 10.0.1-1
|
||||
- upgrade lldb to 10.0.1
|
||||
|
||||
* Mon Dec 2 2019 likexin <likexin@huawei.com> 7.0.0-2
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user