aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2025-01-23 13:03:29 +0100
committerGitHub <noreply@github.com>2025-01-23 13:03:29 +0100
commit3ea2b546a8d17014d3ecf05356ecfaadf26ed846 (patch)
tree4fda5ff0842b3dd120e3c9d12111246d5aff74ab /lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
parent636bc72f672712cb848729c0f130d8b42c86f1cb (diff)
downloadllvm-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