DBG C ClearWatch: Difference between revisions
Appearance
Created page with "Debug Command 25 - Clear Watchpoint Command ;Parameters *Pid= Process ID of debuggee *Cmd= DBG_C_ClearWatch *Index= Watchpoint ID Number ;Returns This command clears ..." |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Debug Command 25 - Clear Watchpoint Command | Debug Command 25 - Clear Watchpoint Command | ||
;Parameters | ;Parameters | ||
*Pid= Process ID of debuggee | *Pid= Process ID of debuggee | ||
*Cmd= DBG_C_ClearWatch | *Cmd= DBG_C_ClearWatch | ||
*Index= Watchpoint ID Number | *Index= Watchpoint ID Number | ||
;Returns | ;Returns | ||
This command clears a currently set or hit watchpoint. | |||
If the watchpoint is not currently set, an error is returned. | |||
If the watchpoint | 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. | |||
[[Category:Debug Command]] | |||
[[Category: | |||
{{DISPLAYTITLE:DBG_C_ClearWatch}} | {{DISPLAYTITLE:DBG_C_ClearWatch}} |
Latest revision as of 12:14, 10 March 2020
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.