aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2007-03-27 23:01:00 +0000
committerPedro Alves <palves@redhat.com>2007-03-27 23:01:00 +0000
commit8671a17bde87f6c694c718771d3ef17f3287a41b (patch)
treed360739d7a1ad716ecbe1f5de6f921f4e8159a90 /gdb/breakpoint.h
parentbce7165daae97585d93ac28361576feebcc80721 (diff)
downloadgdb-8671a17bde87f6c694c718771d3ef17f3287a41b.zip
gdb-8671a17bde87f6c694c718771d3ef17f3287a41b.tar.gz
gdb-8671a17bde87f6c694c718771d3ef17f3287a41b.tar.bz2
* breakpoint.c (bpstat_num): Add int *num parameter.
* breakpoint.h (bpstat_num): Likewise. * infcmd.c (continue_command): Adjust to new bpstat_num interface. (program_info): Likewise.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 9eebfc8..1230f49 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -562,12 +562,15 @@ extern int bpstat_have_active_hw_watchpoints (void);
return means print the frame as well as the source line). */
extern enum print_stop_action bpstat_print (bpstat);
-/* Return the breakpoint number of the first breakpoint we are stopped
+/* 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
anything but further calls to bpstat_num).
- Return 0 if passed a bpstat which does not indicate any breakpoints. */
-extern int bpstat_num (bpstat *);
+ Return 0 if passed a bpstat which does not indicate any breakpoints.
+ Return -1 if stopped at a breakpoint that has been deleted since
+ we set it.
+ Return 1 otherwise. */
+extern int bpstat_num (bpstat *, int *);
/* Perform actions associated with having stopped at *BSP. Actually, we just
use this for breakpoint commands. Perhaps other actions will go here