mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 16:20:35 +02:00
FpDebug: Fix FindProcSymbol, always search all CompilationUnits
git-svn-id: trunk@61516 -
This commit is contained in:
parent
610d8c6e98
commit
96ba76e670
@ -3254,34 +3254,19 @@ begin
|
||||
|
||||
Iter := TMapIterator.Create(CU.FAddressMap);
|
||||
try
|
||||
if Iter.EOM
|
||||
then begin
|
||||
if MinMaxSet
|
||||
then Exit // minmaxset and no procs defined ???
|
||||
else Continue;
|
||||
end;
|
||||
|
||||
if not Iter.Locate(AAddress)
|
||||
then begin
|
||||
if not Iter.BOM
|
||||
then Iter.Previous;
|
||||
|
||||
if Iter.BOM
|
||||
then begin
|
||||
if MinMaxSet
|
||||
then Exit // minmaxset and no proc @ minpc ???
|
||||
else Continue;
|
||||
end;
|
||||
then Continue;
|
||||
end;
|
||||
|
||||
// iter is at the closest defined address before AAddress
|
||||
Info := Iter.DataPtr;
|
||||
if AAddress > Info^.EndPC
|
||||
then begin
|
||||
if MinMaxSet
|
||||
then Exit // minmaxset and no proc @ maxpc ???
|
||||
else Continue;
|
||||
end;
|
||||
then Continue;
|
||||
|
||||
// TDbgDwarfProcSymbol
|
||||
Result := Cu.DwarfSymbolClassMap.CreateProcSymbol(CU, Iter.DataPtr, AAddress);
|
||||
|
Loading…
Reference in New Issue
Block a user