#97, watchpoints, stop reason is function of watch type

This commit is contained in:
Basile Burg 2016-10-28 16:19:12 +02:00
parent 8e513f8b52
commit 25cf416369
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 5 additions and 3 deletions

View File

@ -1568,13 +1568,15 @@ begin
begin
reason := val.AsString;
if (reason = 'breakpoint-hit') or (reason = 'end-stepping-range') or
(reason = 'watchpoint-trigger') then
if (reason = 'breakpoint-hit') or (reason = 'end-stepping-range')
or (reason = 'watchpoint-trigger') or (reason = 'access-watchpoint-trigger')
or (reason = 'read-watchpoint-trigger') then
begin
case reason of
'breakpoint-hit': brkreason := dbBreakPoint;
'end-stepping-range': brkreason := dbStep;
'watchpoint-trigger': brkreason:= dbWatch;
'watchpoint-trigger', 'access-watchpoint-trigger', 'read-watchpoint-trigger':
brkreason:= dbWatch;
end;
if brkreason = dbWatch then
begin