llvm-project/lldb
Alexandre Perez eb3136f022 Fix debugserver translation check
Currently, debugserver has a test to check if it was launched in
translation. The intent was to cover the case where an x86_64
debugserver attempts to control an arm64/arm64e process, returning
an error. However, this check also covers the case where users
are attaching to an x86_64 process, exiting out before attempting
to hand off control to the translated debugserver at
`/Library/Apple/usr/libexec/oah/debugserver`.

This diff delays the debugserver translation check until after
determining whether to hand off control to
`/Library/Apple/usr/libexec/oah/debugserver`. Only when the
process is not translated and thus has not been handed off do we
check if the debugserver is translated, erroring out in that case.

Reviewed By: jasonmolenda

Differential Revision: https://reviews.llvm.org/D124814
2022-05-05 11:31:23 -07:00
..
bindings [lldb] Add Python bindings to print stack traces on crashes. 2022-04-07 11:21:02 -07:00
cmake [lldb] [CMake] Disable GCC's -Wstringop-truncation warning. NFC. 2022-04-07 12:09:01 +03:00
docs [trace][intelpt] Support system-wide tracing [1] - Add a method for accessing the list of logical core ids 2022-05-02 08:48:49 -07:00
examples [lldb/crashlog] Parse thread fields and pass it to crashlog scripted process 2022-03-25 14:59:50 -07:00
include/lldb [lldb] use one shared ThreadPool and task groups 2022-05-04 06:18:20 +02:00
packages/Python/lldbsuite [lldb] Use shutil.which instead of distutils find_executable 2022-04-29 08:41:34 +00:00
resources [lldb] Remove stale LLDB-Info.plist 2021-01-08 10:12:16 -08:00
scripts Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
source [lldb] Fix ppc64 detection in lldb 2022-05-05 09:22:02 +02:00
test [lldb] Fix ppc64 detection in lldb 2022-05-05 09:22:02 +02:00
third_party/Python/module [lldb][NFC] Inclusive language: replace master/slave names for ptys 2021-11-12 10:54:18 -06:00
tools Fix debugserver translation check 2022-05-05 11:31:23 -07:00
unittests Update the CFA to use $sp when $fp is restored on arm64 2022-05-04 14:54:17 -07:00
utils [lldb] Match test dependencies name to other LLVM projects. 2021-05-21 00:10:27 -07:00
.clang-format
.clang-tidy [LLDB] Applying clang-tidy modernize-use-override over LLDB 2022-04-22 13:29:47 -07:00
.gitignore
CMakeLists.txt [cmake] Make include(GNUInstallDirs) always below project(..) 2022-01-20 18:59:17 +00:00
CODE_OWNERS.txt [CODE OWNERS] Add wallace as code owner 2022-01-12 12:36:30 -08:00
LICENSE.TXT
use_lldb_suite_root.py