aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-02-07 11:53:20 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2024-02-09 11:09:55 -0500
commitf5928702044db6274a7dd652de5c428b3e29948b (patch)
treed9dcee9a90e719976e46c90cd4242baf1edbb361 /gdb/breakpoint.h
parentc72348e3b48cbb0843f6f91e3577dfc6e61eb3d3 (diff)
downloadbinutils-f5928702044db6274a7dd652de5c428b3e29948b.zip
binutils-f5928702044db6274a7dd652de5c428b3e29948b.tar.gz
binutils-f5928702044db6274a7dd652de5c428b3e29948b.tar.bz2
gdb: add inferior parameter to breakpoint_init_inferior
By inspection, I believe that breakpoint_init_inferior doesn't call anything that relies on the current program space or inferior. So, add an inferior parameter, to make the current inferior / program space references bubble up one level. Change-Id: Ib07b7a6d360e324f6ae1aa502dd314b8cce421b7 Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index e7bebed..8530a71 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -1515,7 +1515,17 @@ extern struct breakpoint *clone_momentary_breakpoint (struct breakpoint *bpkt);
extern void set_ignore_count (int, int, int);
-extern void breakpoint_init_inferior (enum inf_context);
+/* Clear the "inserted" flag in all breakpoint locations of INF's program space
+ and delete any breakpoints which should go away between runs of the program.
+
+ Plus other such housekeeping that has to be done for breakpoints
+ between runs.
+
+ Note: this function gets called at the end of a run (by
+ generic_mourn_inferior) and when a run begins (by
+ init_wait_for_inferior). */
+
+extern void breakpoint_init_inferior (inferior *inf, inf_context context);
extern void breakpoint_auto_delete (bpstat *);