diff options
author | Pavel Labath <pavel@labath.sk> | 2025-01-23 13:03:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-23 13:03:29 +0100 |
commit | 3ea2b546a8d17014d3ecf05356ecfaadf26ed846 (patch) | |
tree | 4fda5ff0842b3dd120e3c9d12111246d5aff74ab /lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp | |
parent | 636bc72f672712cb848729c0f130d8b42c86f1cb (diff) | |
download | llvm-3ea2b546a8d17014d3ecf05356ecfaadf26ed846.zip llvm-3ea2b546a8d17014d3ecf05356ecfaadf26ed846.tar.gz llvm-3ea2b546a8d17014d3ecf05356ecfaadf26ed846.tar.bz2 |
[lldb/windows] Make "anonymous" pipe names more unique (#123905)
Using a "random" name for an "anonymous" pipe seems to be the state of
the art on windows (according to stack overflow, new windows versions
may have something better, but it involves calling kernel APIs directly
and generally a lot of dark magic).
The problem with the current method was that is does not produce unique
names if one has two copies of the pipe code in the same process, which
is what happened with #120457 (because liblldb only exposes the public
api, and we've started using the pipe code in lldb-dap as well).
This patch works around the problem by adding the address of the counter
variable to the pipe name.
Replicating the multiple-copies setup in a test would be very difficult,
which is why I'm not adding a test for this scenario.
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp')
0 files changed, 0 insertions, 0 deletions