mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 02:59:21 +02:00
FpDebug, fpdumpdwarf: partial fix compilation
git-svn-id: trunk@61721 -
This commit is contained in:
parent
c25bbdfbc0
commit
a8233705f3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user