diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 260c35a22a..37aac9a99f 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -9,6 +9,10 @@ https://github.com/microsoft/clrmd d724947392626b66e39b525998a8817447d50380 + + https://github.com/dotnet/dotnet + 78061f4bcc414fa2054be6237b1fd3813d8edf6b + diff --git a/eng/Versions.props b/eng/Versions.props index 8e96ea5ed8..fd71110c9a 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -56,7 +56,7 @@ 6.0.0 5.0.1 - 2.0.0-beta5.25210.1 + 2.0.0-beta7.25365.101 5.0.0 4.5.1 8.0.1 diff --git a/src/Microsoft.Diagnostics.DebugServices.Implementation/CommandService.cs b/src/Microsoft.Diagnostics.DebugServices.Implementation/CommandService.cs index 89b9a609bd..14251ece7c 100644 --- a/src/Microsoft.Diagnostics.DebugServices.Implementation/CommandService.cs +++ b/src/Microsoft.Diagnostics.DebugServices.Implementation/CommandService.cs @@ -276,7 +276,6 @@ private sealed class CommandGroup { private Command _rootCommand; private readonly Dictionary _commandHandlers = new(); - private readonly ParseResult _emptyParseResult; /// /// Create an instance of the command processor; @@ -285,10 +284,6 @@ private sealed class CommandGroup public CommandGroup(string commandPrompt = null) { _rootCommand = new Command(commandPrompt); - - // The actual ParseResult.Empty() has a bug in it where it tries to get the executable name - // and nothing is returned under lldb on Linux causing an index out of range exception. - _emptyParseResult = _rootCommand.Parse(Array.Empty()); } /// @@ -300,15 +295,7 @@ public CommandGroup(string commandPrompt = null) /// parsing error internal bool Execute(IReadOnlyList commandLine, IServiceProvider services) { - IConsoleService consoleService = services.GetService(); - CommandLineConfiguration configuration = new(_rootCommand) - { - Output = new ConsoleServiceWrapper(consoleService.Write), - Error = new ConsoleServiceWrapper(consoleService.WriteError) - }; - - // Parse the command line and invoke the command - ParseResult parseResult = configuration.Parse(commandLine); + ParseResult parseResult = _rootCommand.Parse(commandLine); if (parseResult.Errors.Count > 0) { @@ -433,14 +420,18 @@ internal void CreateCommand(Type type, CommandAttribute commandAttribute, Func