aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
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/infrun.c
parentc72348e3b48cbb0843f6f91e3577dfc6e61eb3d3 (diff)
downloadgdb-f5928702044db6274a7dd652de5c428b3e29948b.zip
gdb-f5928702044db6274a7dd652de5c428b3e29948b.tar.gz
gdb-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/infrun.c')
-rw-r--r--gdb/infrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index d00a989..fa68ab8 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1297,7 +1297,7 @@ follow_exec (ptid_t ptid, const char *exec_file_target)
/* We've followed the inferior through an exec. Therefore, the
inferior has essentially been killed & reborn. */
- breakpoint_init_inferior (inf_execd);
+ breakpoint_init_inferior (current_inferior (), inf_execd);
gdb::unique_xmalloc_ptr<char> exec_file_host
= exec_file_find (exec_file_target, nullptr);
@@ -3819,7 +3819,7 @@ init_wait_for_inferior (void)
{
/* These are meaningless until the first time through wait_for_inferior. */
- breakpoint_init_inferior (inf_starting);
+ breakpoint_init_inferior (current_inferior (), inf_starting);
clear_proceed_status (0);