[EnvVar]Treat well-known debugging environment variables as lists (#34689)

* [EnvVar] Treat well-known debugging environment variables as lists

The following environment variables are semi-colon lists, like "PATH"

* _NT_SYMBOL_PATH
* _NT_ALT_SYMBOL_PATH
* _NT_SYMCACHE_PATH

Treat them as lists in the Environment Variable editor.

Windows Debugger paths are [documented as being semi-colon
delimited][0]. The [`_NT_SYMCACHE_PATH` is used by WPA][1], and it also
documented as being semi-colon delimited.

[0]: https://learn.microsoft.com/en-us/windows/win32/debug/symbol-paths
[1]: https://learn.microsoft.com/en-us/windows-hardware/test/wpt/loading-symbols

* [EnvVar] Add SYMCACHE to expected words list
This commit is contained in:
Christopher Warrington 2024-09-23 07:20:47 -07:00 committed by GitHub
parent 056fba0dcf
commit 688d7d9c85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -1565,6 +1565,7 @@ SWC
SWFO
SWP
SWRESTORE
SYMCACHE
SYMED
SYMOPT
SYNCMFT

View File

@ -64,7 +64,15 @@ namespace EnvironmentVariablesUILib.Models
private bool IsList()
{
List<string> listVariables = new() { "PATH", "PATHEXT", "PSMODULEPATH" };
List<string> listVariables = new()
{
"_NT_ALT_SYMBOL_PATH",
"_NT_SYMBOL_PATH",
"_NT_SYMCACHE_PATH",
"PATH",
"PATHEXT",
"PSMODULEPATH",
};
foreach (var name in listVariables)
{