mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 14:56:00 +02:00
FpDebug: test, fixed for pascal parser new context
(cherry picked from commit 35b94fb26f
)
This commit is contained in:
parent
e935913516
commit
182c0aa557
@ -38,10 +38,12 @@ procedure TTestPascalParser.CreateExpr(t: string; ExpValid: Boolean;
|
|||||||
SkipExpValid: Boolean);
|
SkipExpValid: Boolean);
|
||||||
var
|
var
|
||||||
s: String;
|
s: String;
|
||||||
ctx: TFpDbgLocationContext; // TFpDbgSimpleLocationContext
|
ctx: TFpDbgSimpleLocationContext;
|
||||||
sc: TFpDbgSymbolScope;
|
sc: TFpDbgSymbolScope;
|
||||||
|
mm: TFpDbgMemManager;
|
||||||
begin
|
begin
|
||||||
ctx := TFpDbgLocationContext.Create();
|
mm := TFpDbgMemManager.Create(nil, nil, nil, nil);
|
||||||
|
ctx := TFpDbgSimpleLocationContext.Create(mm, 0, 8, 0, 0);
|
||||||
sc := TFpDbgSymbolScope.Create(ctx);
|
sc := TFpDbgSymbolScope.Create(ctx);
|
||||||
FreeAndNil(CurrentTestExprObj);
|
FreeAndNil(CurrentTestExprObj);
|
||||||
CurrentTestExprText := t;
|
CurrentTestExprText := t;
|
||||||
|
Loading…
Reference in New Issue
Block a user