diff options
author | David Spickett <david.spickett@linaro.org> | 2025-09-09 09:30:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-09 09:30:29 +0100 |
commit | 157e88637475b831e175b75f30cab9dd63eaeae1 (patch) | |
tree | 97f5369c1a007a3b610f1bd9e4ed75de757d2618 /clang/lib/CodeGen/CGClass.cpp | |
parent | db8cad0c8d00a691d1365e9b2962a7f2f4ff0890 (diff) | |
download | llvm-157e88637475b831e175b75f30cab9dd63eaeae1.zip llvm-157e88637475b831e175b75f30cab9dd63eaeae1.tar.gz llvm-157e88637475b831e175b75f30cab9dd63eaeae1.tar.bz2 |
[lldb][test] Prevent TestqOffsets.py picking up host binaries (#157432)
Due to a fallback in GDBRemoteCommunicationClient.cpp, on Linux we will
assume a PID of 1 if the remote does not respond in some way that tells
us the real PID.
So if PID 1 happened to be a process that the current user could read,
we would try to debug that instead. On my current machine, PID 1 was
sshd run by root so we would ignore it. If I changed the fallback to
some process ID run by my user, the test would fail.
To prevent this, select the remote-linux platform before creating the
target. This means we won't attempt any host lookups.
Fixes #155895
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
0 files changed, 0 insertions, 0 deletions