FpDebug: test, fixed for pascal parser new context

(cherry picked from commit 35b94fb26f)
This commit is contained in:
Martin 2024-11-10 22:53:47 +01:00
parent e935913516
commit 182c0aa557

View File

@ -38,10 +38,12 @@ procedure TTestPascalParser.CreateExpr(t: string; ExpValid: Boolean;
SkipExpValid: Boolean);
var
s: String;
ctx: TFpDbgLocationContext; // TFpDbgSimpleLocationContext
ctx: TFpDbgSimpleLocationContext;
sc: TFpDbgSymbolScope;
mm: TFpDbgMemManager;
begin
ctx := TFpDbgLocationContext.Create();
mm := TFpDbgMemManager.Create(nil, nil, nil, nil);
ctx := TFpDbgSimpleLocationContext.Create(mm, 0, 8, 0, 0);
sc := TFpDbgSymbolScope.Create(ctx);
FreeAndNil(CurrentTestExprObj);
CurrentTestExprText := t;