mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 01:11:38 +02:00
fpdebug: range checks
git-svn-id: trunk@49030 -
This commit is contained in:
parent
24d973001c
commit
7e4cfe0aea
@ -133,6 +133,7 @@ begin
|
|||||||
SymbolArr:=PDbgImageSectionEx(p)^.Sect.RawData;
|
SymbolArr:=PDbgImageSectionEx(p)^.Sect.RawData;
|
||||||
SymbolStr:=PDbgImageSectionEx(ps)^.Sect.RawData;
|
SymbolStr:=PDbgImageSectionEx(ps)^.Sect.RawData;
|
||||||
SymbolCount := PDbgImageSectionEx(p)^.Sect.Size div sizeof(TImageSymbol);
|
SymbolCount := PDbgImageSectionEx(p)^.Sect.Size div sizeof(TImageSymbol);
|
||||||
|
{$PUSH}{$R-} // SymbolArr may be more than maxSmallInt
|
||||||
for i := 0 to SymbolCount-1 do
|
for i := 0 to SymbolCount-1 do
|
||||||
begin
|
begin
|
||||||
begin
|
begin
|
||||||
@ -154,6 +155,7 @@ begin
|
|||||||
AfpSymbolInfo.AddObject(SymbolName, TObject(PtrUInt(SymbolArr^[i].Value+ImageBase+FCodeBase)));
|
AfpSymbolInfo.AddObject(SymbolName, TObject(PtrUInt(SymbolArr^[i].Value+ImageBase+FCodeBase)));
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
|
{$POP}
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user