aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-crisv32-low.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-06-25 22:13:53 +0000
committerPedro Alves <palves@redhat.com>2009-06-25 22:13:53 +0000
commitd993e290c9829e84cb4f342d043db2c1147bb88a (patch)
tree13600a03aa96bdb020c97124ac605e3af7dee2ff /gdb/gdbserver/linux-crisv32-low.c
parentf3a5f1de542b6920ab36db2b181006b6ff82ca2a (diff)
downloadgdb-d993e290c9829e84cb4f342d043db2c1147bb88a.zip
gdb-d993e290c9829e84cb4f342d043db2c1147bb88a.tar.gz
gdb-d993e290c9829e84cb4f342d043db2c1147bb88a.tar.bz2
* 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.
Diffstat (limited to 'gdb/gdbserver/linux-crisv32-low.c')
-rw-r--r--gdb/gdbserver/linux-crisv32-low.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/gdbserver/linux-crisv32-low.c b/gdb/gdbserver/linux-crisv32-low.c
index 0838b65..25304e5 100644
--- a/gdb/gdbserver/linux-crisv32-low.c
+++ b/gdb/gdbserver/linux-crisv32-low.c
@@ -137,7 +137,7 @@ cris_write_data_breakpoint (int bp, unsigned long start, unsigned long end)
}
static int
-cris_insert_watchpoint (char type, CORE_ADDR addr, int len)
+cris_insert_point (char type, CORE_ADDR addr, int len)
{
int bp;
unsigned long bp_ctrl;
@@ -220,7 +220,7 @@ cris_insert_watchpoint (char type, CORE_ADDR addr, int len)
}
static int
-cris_remove_watchpoint (char type, CORE_ADDR addr, int len)
+cris_remove_point (char type, CORE_ADDR addr, int len)
{
int bp;
unsigned long bp_ctrl;
@@ -375,8 +375,8 @@ struct linux_target_ops the_low_target = {
cris_reinsert_addr,
0,
cris_breakpoint_at,
- cris_insert_watchpoint,
- cris_remove_watchpoint,
+ cris_insert_point,
+ cris_remove_point,
cris_stopped_by_watchpoint,
cris_stopped_data_address,
};