mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 11:29:29 +02:00
DBG: disassembler, changed(fixed) prefetch policy
git-svn-id: trunk@28260 -
This commit is contained in:
parent
d8e607cb2e
commit
8a9ae3f278
@ -527,12 +527,12 @@ begin
|
||||
PadFront := 5;
|
||||
PadEnd := 5;
|
||||
if ALine < FTopLine
|
||||
then PadFront := 25
|
||||
else PadEnd := 25;
|
||||
then PadFront := 20
|
||||
else PadEnd := 20;
|
||||
FTopLine := ALine;
|
||||
if (FDisassembler <> nil)
|
||||
and ( (FDisassembler.CountBefore < Max(0, -(FTopLine - PadFront)))
|
||||
or (FDisassembler.CountAfter < Max(0, FTopLine + FLineCount + 1 + PadEnd)) )
|
||||
and ( (FDisassembler.CountBefore < Max(0, -(FTopLine - 1)))
|
||||
or (FDisassembler.CountAfter < Max(0, FTopLine + FLineCount + 2)) )
|
||||
then FDisassembler.PrepareRange(FLocation, Max(0, -(FTopLine - PadFront)), Max(0, FTopLine + FLineCount + 1 + PadEnd));
|
||||
UpdateLineData;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user