Jump to content

DBG_C_ClearWatch

From EDM2
Revision as of 12:14, 10 March 2020 by Ak120 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Debug Command 25 - Clear Watchpoint Command

Parameters
  • Pid= Process ID of debuggee
  • Cmd= DBG_C_ClearWatch
  • Index= Watchpoint ID Number
Returns

This command clears a currently set or hit watchpoint.

If the watchpoint is not currently set, an error is returned.

If a debugger wishes to move a watchpoint from one location to another, it should clear the old watchpoint before setting the new one, to free any resources used by currently set watchpoints.

The watchpoint will be cleared even if it is currently hit, and a notification is pending. To prevent missing the watchpoint hit in this way, you should issue the DBG_C_Stop command just before clearing the watchpoint, to pick up any pending watchpoint hit notifications.