llvm-capstone/lldb
Alex Langford 695f7821e2 [lldb_test_suite] Fix lldb test suite targeting remote Android
Summary:
Fixed `Android.rules` for running test suite on remote android
- the build configuration is not compatible with ndk structure, change it to link to static libc++
- generally clang should be able to use libc++ and will link against the right library, but some libc++ installations require the user manually link libc++abi.
- add flag `-lc++abi` to fix the test binary build failure

Added `skipIfTargetAndroid` `skipUnlessTargetAndroid` for better test support
- the `skipIfPlatform` method will ask `lldbplatformutil.getPlatform()` for platform info which is actually the os type, and //Android// is not os type but environment
- create this function to handle the android target condition

**To Run Test on Remote Android**
1 start lldb-server on your devices
2 run lldb-dotest with following configuration:
`./lldb-dotest --out-of-tree-debugserver --arch aarch64 --platform-name remote-android --platform-url connect://localhost:12345 --platform-working-dir /data/local/tmp/ --compiler your/ndk/clang`

Reviewers: xiaobai, labath

Reviewed By: labath

Subscribers: labath, javed.absar, kristof.beyls, srhines, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D64118

llvm-svn: 365561
2019-07-09 21:35:58 +00:00
..
cmake [CMake] Polish a comment 2019-07-09 10:29:07 +00:00
docs [Docs] Replace SVN revisions with lldb versions 2019-07-09 21:21:45 +00:00
examples [crashlog] Fix a mismatch between bytes and strings. 2019-07-09 01:05:12 +00:00
include/lldb [lldb] Fix two more issues in Windows following rL365226: Change LaunchThread interface to return an expected 2019-07-08 21:17:58 +00:00
lit [DWARF] Add one more type unit test 2019-07-02 07:57:08 +00:00
lldb.xcodeproj Remove install-headers 2019-07-08 21:53:22 +00:00
lldb.xcworkspace Remove lldb-perf 2019-07-08 21:38:34 +00:00
packages/Python/lldbsuite [lldb_test_suite] Fix lldb test suite targeting remote Android 2019-07-09 21:35:58 +00:00
resources [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
scripts [swig] Don't mess with swig internals. 2019-07-02 22:18:35 +00:00
source [lldb, windows] Include WindowsError instead of ErrorHandling in ThreadLauncher 2019-07-09 18:41:31 +00:00
test [CMake] Folder structure for generated Xcode project to cover more targets 2019-05-28 09:29:05 +00:00
third_party/Python/module [lldb/thirdparty] Remove unneeded files, asked by Jonas. 2019-03-12 20:41:36 +00:00
tools Remove install-headers 2019-07-08 21:53:22 +00:00
unittests Add a sanity check to the domain socket tests. 2019-06-27 16:45:23 +00:00
utils [CMake] Fix lldb-dotest for single-config generators in standalone builds 2019-06-13 17:35:43 +00:00
.arcconfig
.clang-format
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [CMake] LLDB.framework tools handling 2019-05-29 11:26:06 +00:00
CODE_OWNERS.txt
INSTALL.txt Fix build URL in new LLDB website 2019-05-01 09:55:00 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py