aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/mem-break.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-03-24 21:11:25 +0000
committerPedro Alves <palves@redhat.com>2010-03-24 21:11:25 +0000
commit414a389f5cf051cbf7792d1b7fcd78632f133193 (patch)
treed7362d86c2543ec467e6e9ad527f4cf24f9a36e6 /gdb/gdbserver/mem-break.h
parent8c9a6790ddff5c6f7ae365a477882dbc9d1b3f6d (diff)
downloadgdb-414a389f5cf051cbf7792d1b7fcd78632f133193.zip
gdb-414a389f5cf051cbf7792d1b7fcd78632f133193.tar.gz
gdb-414a389f5cf051cbf7792d1b7fcd78632f133193.tar.bz2
* mem-break.c (enum bkpt_type): New.
(struct breakpoint): New field `type'. (set_breakpoint_at): Change return type to struct breakpoint pointer. Set type to `other_breakpoint' by default. (delete_breakpoint): Rewrite, supporting more than one breakpoint in the breakpoint list. (delete_reinsert_breakpoints): Only delete reinsert breakpoints. (reinsert_breakpoint): Rename to ... (reinsert_raw_breakpoint): ... this. (reinsert_breakpoints_at): Adjust. * mem-break.h (struct breakpoint): Declare. (set_breakpoint_at): Change return type to struct breakpoint pointer.
Diffstat (limited to 'gdb/gdbserver/mem-break.h')
-rw-r--r--gdb/gdbserver/mem-break.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/gdbserver/mem-break.h b/gdb/gdbserver/mem-break.h
index 2b88034..2953d03 100644
--- a/gdb/gdbserver/mem-break.h
+++ b/gdb/gdbserver/mem-break.h
@@ -23,6 +23,7 @@
#define MEM_BREAK_H
/* Breakpoints are opaque. */
+struct breakpoint;
/* Returns TRUE if breakpoints are supported on this target. */
@@ -41,8 +42,8 @@ int breakpoint_inserted_here (CORE_ADDR addr);
it is hit. HANDLER should return 1 if the breakpoint
should be deleted, 0 otherwise. */
-void set_breakpoint_at (CORE_ADDR where,
- int (*handler) (CORE_ADDR));
+struct breakpoint *set_breakpoint_at (CORE_ADDR where,
+ int (*handler) (CORE_ADDR));
/* Delete a breakpoint previously inserted at ADDR with
set_breakpoint_at. */