aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2022-06-22 17:03:50 +0100
committerPedro Alves <pedro@palves.net>2022-06-24 19:49:08 +0100
commit5227abd299c632f66505f827cd221fe4bd7f4d0d (patch)
tree401d497c2f2940b2761af9d2dacd8167310981b9 /binutils/dwarf.c
parent86be3050a64c7317754b5682e1a2b6a91f4e3f03 (diff)
downloadgdb-5227abd299c632f66505f827cd221fe4bd7f4d0d.zip
gdb-5227abd299c632f66505f827cd221fe4bd7f4d0d.tar.gz
gdb-5227abd299c632f66505f827cd221fe4bd7f4d0d.tar.bz2
Eliminate TUI/CLI observers duplication
For historical reasons, the CLI and the TUI observers are basically exact duplicates, except for the downcast: cli: struct cli_interp *cli = as_cli_interp (interp); tui: struct interp *tui = as_tui_interp (interp); and how they get at the interpreter's ui_out: cli: cli->cli_uiout tui: tui->interp_ui_out () Since interp_ui_out() is a virtual method that also works for the CLI interpreter, and, both the CLI and the TUI interpreters inherit from the same base class (cli_interp_base), we can convert the CLI observers to cast to cli_interp_base instead and use interp_ui_out() too. With that, the CLI observers will work for the TUI interpreter as well. This lets us completely eliminate the TUI observers. That's what this commit does. Change-Id: Iaf6cf12dfa200ed3ab203a895a72b69dfedbd6e0
Diffstat (limited to 'binutils/dwarf.c')
0 files changed, 0 insertions, 0 deletions