summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2014-01-10 20:02:58 +0100
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:24 +0900
commit0e9ae1679f41d6b2be49933907725a1dc4a7dfee (patch)
treec89fea5a71775c4808fa54f579e71a319da05629
parent8d1dc2a818ecc9ec5c777691b55bde4e62e6d5b4 (diff)
downloadltrace-0e9ae1679f41d6b2be49933907725a1dc4a7dfee.tar.gz
ltrace-0e9ae1679f41d6b2be49933907725a1dc4a7dfee.tar.bz2
ltrace-0e9ae1679f41d6b2be49933907725a1dc4a7dfee.zip
Drop unused function enable_all_breakpoints
-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;