Skip to content

Commit

Permalink
Prevent stripping of format specifiers from -exec commands. (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
gareth-rees committed Feb 25, 2022
1 parent a109b93 commit 05f513f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/MIDebugEngine/Engine.Impl/Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,12 @@ public enum NodeType
private string StripFormatSpecifier(string exp, out string formatSpecifier)
{
formatSpecifier = null; // will be used with -var-set-format

if (EngineUtils.IsConsoleExecCmd(exp, out string _, out string _))
{
return exp;
}

int lastComma = exp.LastIndexOf(',');
if (lastComma <= 0)
return exp;
Expand Down

0 comments on commit 05f513f

Please sign in to comment.