mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-25 16:09:17 +02:00
fpdebug: prevent crash if breakpoint at address already exists (can happen if line info is not read correct / generics?)
git-svn-id: trunk@49000 -
This commit is contained in:
parent
88dd20916e
commit
44de4b4034
@ -650,6 +650,11 @@ end;
|
||||
|
||||
function TDbgProcess.AddBreak(const ALocation: TDbgPtr): TDbgBreakpoint;
|
||||
begin
|
||||
if FBreakMap.HasId(ALocation) then begin
|
||||
debugln(['TDbgProcess.AddBreak breakpoint already exists at ', dbgs(ALocation)]);
|
||||
Result := nil;
|
||||
exit;
|
||||
end;
|
||||
Result := OSDbgClasses.DbgBreakpointClass.Create(Self, ALocation);
|
||||
FBreakMap.Add(ALocation, Result);
|
||||
if (GetInstructionPointerRegisterValue=ALocation) and not assigned(FCurrentBreakpoint) then
|
||||
|
Loading…
Reference in New Issue
Block a user