mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 18:20:34 +02:00
FpDebug: Make Pointer deref work without item size. (In case size is not avail, or too big)
git-svn-id: trunk@61920 -
This commit is contained in:
parent
ac8e91f785
commit
d7a8a70916
@ -2106,7 +2106,7 @@ begin
|
|||||||
|
|
||||||
ti := TypeInfo.TypeInfo;
|
ti := TypeInfo.TypeInfo;
|
||||||
{$PUSH}{$R-}{$Q-} // TODO: check overflow
|
{$PUSH}{$R-}{$Q-} // TODO: check overflow
|
||||||
if ti <> nil then
|
if (ti <> nil) and (AIndex <> 0) then
|
||||||
AIndex := AIndex * ti.Size;
|
AIndex := AIndex * ti.Size;
|
||||||
addr := GetDerefAddress;
|
addr := GetDerefAddress;
|
||||||
if not IsTargetAddr(addr) then begin
|
if not IsTargetAddr(addr) then begin
|
||||||
|
Loading…
Reference in New Issue
Block a user