summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/mem-break.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2010-03-24 21:11:25 +0000
committerPedro Alves <pedro@codesourcery.com>2010-03-24 21:11:25 +0000
commit9f958a99b58d8c6bbecefd3390a19003c5a5fa40 (patch)
tree2c7e7b898f27807c0daaee8f3db388b871335fa8 /gdb/gdbserver/mem-break.h
parent9dcf5e86d3ceed89776ab03ca0d3b5bb79459d0d (diff)
downloadgdb-9f958a99b58d8c6bbecefd3390a19003c5a5fa40.tar.gz
* 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 2b880342d5d..2953d030d86 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. */