summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-10-11 14:45:17 +0100
committerPedro Alves <palves@redhat.com>2017-10-11 14:45:17 +0100
commit458ca1d02e47db0af0e22d524df0e4b88fc54b6e (patch)
tree9bb4ce9dfed8b9b707288c0f9b6925df5a574e4c /gdb/breakpoint.c
parent905014d7205d4f171c5cabf695fe1ec3da9b33d3 (diff)
Garbage collect reattach_breakpoints
Not used anywhere. gdb/ChangeLog: 2017-10-11 Pedro Alves <palves@redhat.com> * breakpoint.c (reattach_breakpoints): Delete. * breakpoint.h (reattach_breakpoints): Delete.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 9997d3fc82..13f0ba0ec0 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3152,42 +3152,6 @@ remove_breakpoints_pid (int pid)
return 0;
}
-int
-reattach_breakpoints (int pid)
-{
- struct bp_location *bl, **blp_tmp;
- int val;
- int dummy1 = 0, dummy2 = 0, dummy3 = 0;
- struct inferior *inf;
- struct thread_info *tp;
-
- tp = any_live_thread_of_process (pid);
- if (tp == NULL)
- return 1;
-
- inf = find_inferior_pid (pid);
-
- scoped_restore save_inferior_ptid = make_scoped_restore (&inferior_ptid);
- inferior_ptid = tp->ptid;
-
- string_file tmp_error_stream;
-
- ALL_BP_LOCATIONS (bl, blp_tmp)
- {
- if (bl->pspace != inf->pspace)
- continue;
-
- if (bl->inserted)
- {
- bl->inserted = 0;
- val = insert_bp_location (bl, &tmp_error_stream, &dummy1, &dummy2, &dummy3);
- if (val != 0)
- return val;
- }
- }
- return 0;
-}
-
static int internal_breakpoint_number = -1;
/* Set the breakpoint number of B, depending on the value of INTERNAL.