diff options
author | Andrew Burgess <aburgess@redhat.com> | 2021-10-25 21:27:20 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2021-11-25 10:14:50 +0000 |
commit | 43077a23745f77e69bcd84b0b3b2559c5e4e1df4 (patch) | |
tree | b79ca5e5c564e844426729cdab2379fa0c89615b /gdb/tui | |
parent | c6a6aad52d9e839d6a84ac31cabe2b7e1a2a31a0 (diff) | |
download | gdb-43077a23745f77e69bcd84b0b3b2559c5e4e1df4.zip gdb-43077a23745f77e69bcd84b0b3b2559c5e4e1df4.tar.gz gdb-43077a23745f77e69bcd84b0b3b2559c5e4e1df4.tar.bz2 |
gdb: rename source_styling_changed observer
In a later commit I plan to add disassembler styling. In the same way
that we have a source_styling_changed observer I would need to add a
disassembler_styling_changed observer.
However, currently, these observers would only be notified from
cli-style.c:set_style_enabled, and observed in tui-winsource.c,
tui_source_window::style_changed, as a result, having two observers
seems unnecessary right now, so, in this commit, I plan to rename
source_styling_changed to just styling_changed, then, in the later
commit, when disassembler styling is added, I can use the same
observer for both source styling, and disassembler styling.
There should be no user visible changes after this commit.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-winsource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 955b689..e2ab87e 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -292,14 +292,14 @@ tui_source_window_base::tui_source_window_base () m_start_line_or_addr.loa = LOA_ADDRESS; m_start_line_or_addr.u.addr = 0; - gdb::observers::source_styling_changed.attach + gdb::observers::styling_changed.attach (std::bind (&tui_source_window::style_changed, this), m_observable, "tui-winsource"); } tui_source_window_base::~tui_source_window_base () { - gdb::observers::source_styling_changed.detach (m_observable); + gdb::observers::styling_changed.detach (m_observable); } /* See tui-data.h. */ |