* server.c (process_serial_event): Add support for Z0 and Z1 packet.

* target.h (target_ops): Comment for *_watchpoint to make it clear
the functions can get types '0' and '1'.
This commit is contained in:
Aleksandar Ristovski
2009-06-23 15:12:44 +00:00
parent 0639a6f662
commit c631402292
3 changed files with 50 additions and 53 deletions

View File

@@ -216,10 +216,11 @@ struct target_ops
/* Insert and remove a hardware watchpoint.
Returns 0 on success, -1 on failure and 1 on unsupported.
The type is coded as follows:
2 = write watchpoint
3 = read watchpoint
4 = access watchpoint
*/
'0' - software-breakpoint
'1' - hardware-breakpoint
'2' - write watchpoint
'3' - read watchpoint
'4' - access watchpoint */
int (*insert_watchpoint) (char type, CORE_ADDR addr, int len);
int (*remove_watchpoint) (char type, CORE_ADDR addr, int len);