From d993e290c9829e84cb4f342d043db2c1147bb88a Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 25 Jun 2009 22:13:53 +0000 Subject: * server.c (process_serial_event): Re-return unsupported, not error, if the type isn't recognized. Re-allow supporting only insert or remove packets. Also call require_running for breakpoints. Add missing break statement to default case. Tidy. * target.h (struct target_ops): Rename insert_watchpoint to insert_point, and remove_watchpoint to remove_point. * linux-low.h (struct linux_target_ops): Likewise. * linux-low.c (linux_insert_watchpoint): Rename to ... (linux_insert_point): ... this. Adjust. (linux_remove_watchpoint): Rename to ... (linux_remove_point): ... this. Adjust. (linux_target_ops): Adjust. * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ... (cris_insert_point): ... this. (cris_remove_watchpoint): Rename to ... (cris_remove_point): ... this. (the_low_target): Adjust. --- gdb/gdbserver/linux-low.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gdb/gdbserver/linux-low.h') diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h index a23945a..8369db9 100644 --- a/gdb/gdbserver/linux-low.h +++ b/gdb/gdbserver/linux-low.h @@ -80,9 +80,10 @@ struct linux_target_ops int decr_pc_after_break; int (*breakpoint_at) (CORE_ADDR pc); - /* Watchpoint related functions. See target.h for comments. */ - int (*insert_watchpoint) (char type, CORE_ADDR addr, int len); - int (*remove_watchpoint) (char type, CORE_ADDR addr, int len); + /* Breakpoint and watchpoint related functions. See target.h for + comments. */ + int (*insert_point) (char type, CORE_ADDR addr, int len); + int (*remove_point) (char type, CORE_ADDR addr, int len); int (*stopped_by_watchpoint) (void); CORE_ADDR (*stopped_data_address) (void); -- cgit v1.1