diff options
author | Andrew Burgess <aburgess@redhat.com> | 2023-08-22 16:07:02 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2023-08-23 09:04:45 +0100 |
commit | f29ab2e0e350a4b382a1e4eb1b41c28564d83e94 (patch) | |
tree | 9ff441e52222dbe6f8c63fa8f27f640875b65fb8 /gdb/breakpoint.c | |
parent | 835f16daa77952015d1a97ae6eab48cc2ea14fb8 (diff) | |
download | fsf-binutils-gdb-f29ab2e0e350a4b382a1e4eb1b41c28564d83e94.zip fsf-binutils-gdb-f29ab2e0e350a4b382a1e4eb1b41c28564d83e94.tar.gz fsf-binutils-gdb-f29ab2e0e350a4b382a1e4eb1b41c28564d83e94.tar.bz2 |
gdb: add missing notify_breakpoint_modified call
The commit:
commit b080fe54fb3414b488b8ef323c6c50def061f918
Date: Tue Nov 8 12:32:51 2022 +0000
gdb: add inferior-specific breakpoints
introduced a bug in the function breakpoint_set_inferior. The above
commit includes this line:
gdb::observers::breakpoint_modified.notify (b);
when it should have instead used this line:
notify_breakpoint_modified (b);
The change to use notify_breakpoint_modified was introduced to GDB
after commit b080fe54fb34 was written, but before it was merged, and I
failed to update this part of the code during the rebase.
The consequence of this error is that the MI interpreter will not emit
breakpoint-modified notifications when breakpoint_set_inferior is
called.
In this commit I update the code to call notify_breakpoint_modified,
and add a test that checks the MI events are being emitted correctly
in this case.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index f88ca1c..f0f5328 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -1574,7 +1574,7 @@ breakpoint_set_inferior (struct breakpoint *b, int inferior) int old_inferior = b->inferior; b->inferior = inferior; if (old_inferior != inferior) - gdb::observers::breakpoint_modified.notify (b); + notify_breakpoint_modified (b); } /* See breakpoint.h. */ |