FpDebugger (native): Fix for setting a breakpoint on the current execution-point

git-svn-id: trunk@46122 -
This commit is contained in:
joost 2014-09-03 20:16:53 +00:00
parent 142838fb9f
commit 851695cec4

View File

@ -648,6 +648,11 @@ function TDbgProcess.AddBreak(const ALocation: TDbgPtr): TDbgBreakpoint;
begin
Result := OSDbgClasses.DbgBreakpointClass.Create(Self, ALocation);
FBreakMap.Add(ALocation, Result);
if (GetInstructionPointerRegisterValue=ALocation) and not assigned(FCurrentBreakpoint) then
begin
FCurrentBreakpoint := Result;
Result.ResetBreak;
end;
end;
constructor TDbgProcess.Create(const AName: string; const AProcessID, AThreadID: Integer; AOnLog: TOnLog);