diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-23 21:25:46 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-07-17 12:18:53 -0600 |
commit | 0807ab7b88fa5ffb138ba1ee22b33d26e239de2f (patch) | |
tree | 6402a1b4ade428cb8779fe777d1678ef0a8c30a7 /gdb/tui/tui-hooks.c | |
parent | 9ad7fdef7c72b2aca0398ce8e63b89e560873807 (diff) | |
download | gdb-0807ab7b88fa5ffb138ba1ee22b33d26e239de2f.zip gdb-0807ab7b88fa5ffb138ba1ee22b33d26e239de2f.tar.gz gdb-0807ab7b88fa5ffb138ba1ee22b33d26e239de2f.tar.bz2 |
Remove deleted breakpoint from TUI display
PR tui/24722 points out that deleting a breakpoint does not cause the
"b" to be removed from the breakpoint display. The issue here was
that the breakpoint still exists at the moment the breakpoint-deleted
observer is notified. This fixes the problem by specially handling
the case where a breakpoint is being removed.
gdb/ChangeLog
2019-07-17 Tom Tromey <tom@tromey.com>
PR tui/24722:
* tui/tui-winsource.h (tui_update_all_breakpoint_info)
(tui_update_breakpoint_info): Add "being_deleted" parameter.
* tui/tui-winsource.c (tui_update_source_window_as_is): Update.
(tui_update_all_breakpoint_info): Add "being_deleted" parameter.
(tui_update_breakpoint_info): Likewise.
* tui/tui-hooks.c (tui_event_create_breakpoint)
(tui_event_delete_breakpoint, tui_event_modify_breakpoint):
Update.
Diffstat (limited to 'gdb/tui/tui-hooks.c')
-rw-r--r-- | gdb/tui/tui-hooks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c index 9bac4a8..7101053 100644 --- a/gdb/tui/tui-hooks.c +++ b/gdb/tui/tui-hooks.c @@ -91,7 +91,7 @@ tui_register_changed (struct frame_info *frame, int regno) static void tui_event_create_breakpoint (struct breakpoint *b) { - tui_update_all_breakpoint_info (); + tui_update_all_breakpoint_info (nullptr); } /* Breakpoint deletion hook. @@ -99,13 +99,13 @@ tui_event_create_breakpoint (struct breakpoint *b) static void tui_event_delete_breakpoint (struct breakpoint *b) { - tui_update_all_breakpoint_info (); + tui_update_all_breakpoint_info (b); } static void tui_event_modify_breakpoint (struct breakpoint *b) { - tui_update_all_breakpoint_info (); + tui_update_all_breakpoint_info (nullptr); } /* Refresh TUI's frame and register information. This is a hook intended to be |