diff options
author | Roy Shi <royitaqi@users.noreply.github.com> | 2025-09-11 22:17:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-11 22:17:21 -0700 |
commit | 13daa1e6efdbdc322265fda7ad8f5b265d2ab4aa (patch) | |
tree | 3b3ec0f465fb6a5f240091ef289e8da8b65dfbab /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | df2a7a9ec9afbcc2d1ab87cdcb55059fc2a0aaa8 (diff) | |
download | llvm-13daa1e6efdbdc322265fda7ad8f5b265d2ab4aa.zip llvm-13daa1e6efdbdc322265fda7ad8f5b265d2ab4aa.tar.gz llvm-13daa1e6efdbdc322265fda7ad8f5b265d2ab4aa.tar.bz2 |
[lldb-dap] Add `debugAdapterEnv` for `attach` requests & improve regex (#157980)
# Changes
#153536 added a new debug configuration field called `debugAdapterEnv`
and enabled it in `launch.json` **for `launch` requests**. This patch
enables the same for **`attach` requests**.
This patch also improves the regex used in this field, i.e. shortens it
and fixes the double backslashes (`\\`) in `debug-adapter-factory.ts`
(note: the ones in `package.json` need the double backslashes).
# Test
Manually tested the following values in `attach` requests (so that we
are testing both changes at the same time):
```
// Accepted
"debugAdapterEnv": [
"AAA=BBB",
],
"debugAdapterEnv": [
"AAA=",
],
"debugAdapterEnv": [
"AAA",
],
// Rejected
"debugAdapterEnv": [
"=AAA",
],
"debugAdapterEnv": [
"=",
],
"debugAdapterEnv": [
"",
],
```
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions