summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--breakpoint.h1
-rw-r--r--breakpoints.c21
2 files changed, 0 insertions, 22 deletions
diff --git a/breakpoint.h b/breakpoint.h
index 3c9de9e..95964a8 100644
--- a/breakpoint.h
+++ b/breakpoint.h
@@ -150,7 +150,6 @@ int delete_breakpoint(struct process *proc, struct breakpoint *bp);
/* XXX some of the following belongs to proc.h/proc.c. */
struct breakpoint *address2bpstruct(struct process *proc, void *addr);
-void enable_all_breakpoints(struct process *proc);
void disable_all_breakpoints(struct process *proc);
int breakpoints_init(struct process *proc);
diff --git a/breakpoints.c b/breakpoints.c
index ebb22d6..947cb71 100644
--- a/breakpoints.c
+++ b/breakpoints.c
@@ -372,27 +372,6 @@ breakpoint_library(const struct breakpoint *bp)
}
static enum callback_status
-enable_bp_cb(arch_addr_t *addr, struct breakpoint **bpp, void *data)
-{
- struct process *proc = data;
- debug(DEBUG_FUNCTION, "enable_bp_cb(pid=%d)", proc->pid);
- if ((*bpp)->enabled)
- enable_breakpoint(proc, *bpp);
- return CBS_CONT;
-}
-
-void
-enable_all_breakpoints(struct process *proc)
-{
- debug(DEBUG_FUNCTION, "enable_all_breakpoints(pid=%d)", proc->pid);
-
- debug(1, "Enabling breakpoints for pid %u...", proc->pid);
- if (proc->breakpoints != NULL)
- DICT_EACH(proc->breakpoints, arch_addr_t, struct breakpoint *,
- NULL, enable_bp_cb, proc);
-}
-
-static enum callback_status
disable_bp_cb(arch_addr_t *addr, struct breakpoint **bpp, void *data)
{
struct process *proc = data;