mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 01:16:18 +02:00
FPDebug: clean up / fix array len
git-svn-id: trunk@44209 -
This commit is contained in:
parent
c2935704dd
commit
799ade039d
@ -1941,7 +1941,7 @@ begin
|
||||
then begin
|
||||
Addr.Address := Addr.Address - 4;
|
||||
if MemManager.ReadSignedInt(Addr, 4, i) then begin
|
||||
Result := Integer(i);
|
||||
Result := Integer(i)+1;
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
|
@ -410,9 +410,14 @@ function PrintPasValue(out APrintedValue: String; AResValue: TDbgSymbolValue;
|
||||
s: String;
|
||||
t: TDbgSymbol;
|
||||
i: Integer;
|
||||
v: QWord;
|
||||
begin
|
||||
s := ResTypeName;
|
||||
APrintedValue := '$'+IntToHex(AResValue.AsCardinal, AnAddrSize);
|
||||
v := AResValue.AsCardinal;
|
||||
if v = 0 then
|
||||
APrintedValue := 'nil'
|
||||
else
|
||||
APrintedValue := '$'+IntToHex(AResValue.AsCardinal, AnAddrSize);
|
||||
if s <> '' then
|
||||
APrintedValue := s + '(' + APrintedValue + ')';
|
||||
|
||||
|
@ -1186,7 +1186,7 @@ begin
|
||||
end;
|
||||
if AStackFrame = 0 then begin
|
||||
Result := t.Address;
|
||||
DebugLn(['Returning addr from Threads', dbgs(Result)]);
|
||||
//DebugLn(['Returning addr from Threads', dbgs(Result)]);
|
||||
exit;
|
||||
end;
|
||||
|
||||
@ -1202,7 +1202,7 @@ begin
|
||||
end;
|
||||
|
||||
Result := f.Address;
|
||||
DebugLn(['Returning addr from frame', dbgs(Result)]);
|
||||
//DebugLn(['Returning addr from frame', dbgs(Result)]);
|
||||
|
||||
end;
|
||||
|
||||
@ -1231,11 +1231,11 @@ begin
|
||||
(FLastContext[AStackFrame - FlastStackFrame] <> nil) and
|
||||
(FLastContext[AStackFrame - FlastStackFrame].Address = Addr)
|
||||
then begin
|
||||
DebugLn('******* cached contex <<<<<<<<<<<');
|
||||
Result := FLastContext[AStackFrame - FlastStackFrame];
|
||||
exit;
|
||||
end;
|
||||
|
||||
DebugLn(['* FDwarfInfo.FindContext ', dbgs(Addr)]);
|
||||
Result := FDwarfInfo.FindContext(Addr);
|
||||
|
||||
FLastThread := AThreadId;
|
||||
|
Loading…
Reference in New Issue
Block a user