mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 19:40:06 +02:00
IdeDebugger: fix detecting if current watch was freed.
(cherry picked from commit 5192cd95d9
)
This commit is contained in:
parent
7df430ba84
commit
d20c0908d8
@ -557,6 +557,7 @@ type
|
||||
const AThreadId: Integer;
|
||||
const AStackFrame: Integer
|
||||
);
|
||||
destructor Destroy; override;
|
||||
procedure Assign(AnOther: TWatchValue); override;
|
||||
property Watch: TIdeWatch read GetWatch;
|
||||
|
||||
@ -4596,6 +4597,13 @@ begin
|
||||
FStackFrame := AStackFrame;
|
||||
end;
|
||||
|
||||
destructor TIdeWatchValue.Destroy;
|
||||
begin
|
||||
inc(DbgStateChangeCounter);
|
||||
if DbgStateChangeCounter = high(DbgStateChangeCounter) then DbgStateChangeCounter := 0;
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
procedure TIdeWatchValue.Assign(AnOther: TWatchValue);
|
||||
begin
|
||||
inherited Assign(AnOther);
|
||||
|
Loading…
Reference in New Issue
Block a user