FPDebug: resolve compile issue with circular unit

git-svn-id: trunk@43293 -
This commit is contained in:
martin 2013-10-20 16:42:33 +00:00
parent 718a99efdd
commit 4a14f0fd45

View File

@ -33,6 +33,7 @@
}
unit FpDbgClasses;
{$mode objfpc}{$H+}
interface
uses
@ -136,8 +137,8 @@ type
FAddress: TDbgPtr;
FSize: Integer;
function GetSymbolType: TDbgSymbolType; inline;
function GetKind: TDbgSymbolKind; inline;
function GetSymbolType: TDbgSymbolType; //inline;
function GetKind: TDbgSymbolKind; //inline;
function GetName: String;
function GetSize: Integer;
function GetAddress: TDbgPtr;
@ -327,8 +328,8 @@ function dbgs(ADbgSymbolKind: TDbgSymbolKind): String; overload;
implementation
//uses
// FpDbgDwarf;
uses
FpDbgDwarf;
procedure LogLastError;
begin
@ -439,8 +440,8 @@ procedure TDbgInstance.LoadInfo;
begin
FLoader := TDbgImageLoader.Create(FModuleHandle);
assert(false, 'fpc will not compile this');
//FDbgInfo := TDbgDwarf.Create(FLoader);
//TDbgDwarf(FDbgInfo).LoadCompilationUnits;
FDbgInfo := TDbgDwarf.Create(FLoader);
TDbgDwarf(FDbgInfo).LoadCompilationUnits;
end;
function TDbgInstance.RemoveBreak(const AFileName: String; ALine: Cardinal): Boolean;