FpDebug, fpdumpdwarf: partial fix compilation

git-svn-id: trunk@61721 -
This commit is contained in:
martin 2019-08-18 13:43:42 +00:00
parent c25bbdfbc0
commit a8233705f3

View File

@ -41,11 +41,12 @@ uses
var var
n, idx: Integer; n, idx: Integer;
Dwarf: TDbgDwarf; Dwarf: TFpDwarfInfo;
AbbrevDecoder: TDwarfAbbrevDecoder; AbbrevDecoder: TDwarfAbbrevDecoder;
StatementDecoder: TDwarfStatementDecoder; StatementDecoder: TDwarfStatementDecoder;
FrameDecoder: TVerboseDwarfCallframeDecoder; FrameDecoder: TVerboseDwarfCallframeDecoder;
Loader: TDbgImageLoader; Loader: TDbgImageLoader;
ImageLoaderList: TDbgImageLoaderList;
begin begin
if ParamCount < 1 if ParamCount < 1
@ -57,8 +58,10 @@ begin
DebugLogger.FindOrRegisterLogGroup('FPDBG_DWARF_VERBOSE')^.Enabled := True; DebugLogger.FindOrRegisterLogGroup('FPDBG_DWARF_VERBOSE')^.Enabled := True;
Loader := TDbgImageLoader.Create(ParamStr(1)); Loader := TDbgImageLoader.Create(ParamStr(1));
ImageLoaderList := TDbgImageLoaderList.Create(True);
Loader.AddToLoaderList(ImageLoaderList);
Dwarf := TDbgDwarf.Create(Loader); Dwarf := TFpDwarfInfo.Create(ImageLoaderList);
n := Dwarf.LoadCompilationUnits; n := Dwarf.LoadCompilationUnits;
for idx := 0 to n - 1 do for idx := 0 to n - 1 do
begin begin