diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-04-04 13:54:51 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-04-04 13:54:51 +0000 |
commit | 91d91ceba446057965ee71a3e7e48a1b4aed6af0 (patch) | |
tree | 44c0569791707ddb550c24f7f28c9861f8e65b2c /gdb/breakpoint.c | |
parent | 6d1ad4017d19f84be912592fa42088d50686bb4a (diff) | |
download | gdb-91d91ceba446057965ee71a3e7e48a1b4aed6af0.zip gdb-91d91ceba446057965ee71a3e7e48a1b4aed6af0.tar.gz gdb-91d91ceba446057965ee71a3e7e48a1b4aed6af0.tar.bz2 |
gdb/
* breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
* breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 46a50b9..c6f2e29 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2963,36 +2963,6 @@ bpstat_find_breakpoint (bpstat bsp, struct breakpoint *breakpoint) 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 |