This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Remove dead code: bpstat_find_step_resume_breakpoint
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 4 Apr 2010 15:56:05 +0200
- Subject: [obv] Remove dead code: bpstat_find_step_resume_breakpoint
Hi,
last call of bpstat_find_step_resume_breakpoint has been removed by:
[RFC: 1/9] No context-switching in all-stop mode
http://sourceware.org/ml/gdb-patches/2008-08/msg00441.html
http://sourceware.org/ml/gdb-cvs/2008-09/msg00087.html
a2fa66f408a58f949dd521f2238aa1db3609c442
Checked-in.
Thanks,
Jan
http://sourceware.org/ml/gdb-cvs/2010-04/msg00028.html
--- src/gdb/ChangeLog 2010/04/02 15:21:38 1.11567
+++ src/gdb/ChangeLog 2010/04/04 13:54:42 1.11568
@@ -1,3 +1,8 @@
+2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
+ * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
+
2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf2read.c (read_namespace_type): Use common "return set_die_type"
--- src/gdb/breakpoint.c 2010/04/02 01:18:35 1.475
+++ src/gdb/breakpoint.c 2010/04/04 13:54:51 1.476
@@ -2963,36 +2963,6 @@
return NULL;
}
-/* Find a step_resume breakpoint associated with this bpstat.
- (If there are multiple step_resume bp's on the list, this function
- will arbitrarily pick one.)
-
- It is an error to use this function if BPSTAT doesn't contain a
- step_resume breakpoint.
-
- See wait_for_inferior's use of this function. */
-struct breakpoint *
-bpstat_find_step_resume_breakpoint (bpstat bsp)
-{
- int current_thread;
-
- gdb_assert (bsp != NULL);
-
- current_thread = pid_to_thread_id (inferior_ptid);
-
- for (; bsp != NULL; bsp = bsp->next)
- {
- if ((bsp->breakpoint_at != NULL)
- && (bsp->breakpoint_at->owner->type == bp_step_resume)
- && (bsp->breakpoint_at->owner->thread == current_thread
- || bsp->breakpoint_at->owner->thread == -1))
- return bsp->breakpoint_at->owner;
- }
-
- internal_error (__FILE__, __LINE__, _("No step_resume breakpoint found."));
-}
-
-
/* Put in *NUM the breakpoint number of the first breakpoint we are stopped
at. *BSP upon return is a bpstat which points to the remaining
breakpoints stopped at (but which is not guaranteed to be good for
--- src/gdb/breakpoint.h 2010/04/02 01:18:34 1.114
+++ src/gdb/breakpoint.h 2010/04/04 13:54:51 1.115
@@ -651,17 +651,6 @@
/* Find the bpstat associated with a breakpoint. NULL otherwise. */
bpstat bpstat_find_breakpoint (bpstat, struct breakpoint *);
-/* Find a step_resume breakpoint associated with this bpstat.
- (If there are multiple step_resume bp's on the list, this function
- will arbitrarily pick one.)
-
- It is an error to use this function if BPSTAT doesn't contain a
- step_resume breakpoint.
-
- See wait_for_inferior's use of this function.
- */
-extern struct breakpoint *bpstat_find_step_resume_breakpoint (bpstat);
-
/* Nonzero if a signal that we got in wait() was due to circumstances
explained by the BS. */
/* Currently that is true if we have hit a breakpoint, or if there is