Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 00/11] Cleanup deprecated_*_hooks in defs.h
@ 2017-02-28 14:50 Philipp Rudo
  2017-02-28 14:50 ` [PATCH 11/11] Remove deprecated_print_frame_info_listing_hook Philipp Rudo
                   ` (12 more replies)
  0 siblings, 13 replies; 17+ messages in thread
From: Philipp Rudo @ 2017-02-28 14:50 UTC (permalink / raw)
  To: gdb-patches; +Cc: arnez

Hi everybody

this series cleans up several hooks in defs.h which were deprecated in 2004
(9a4105ab).  Most of these hooks are no longer used and can be removed without
problem.

The last patch of this series contains a minor cange for TUI.  According to
the comment in tui/tui-hooks.c:tui_install_hooks the hook is only used to
check if TUI is active.  Thus directly checking tui_active should do the
trick.  A quick test does not show any change of behavior.  Nevertheless it
would be better if somebody with more experience on TUI takes a closer look.

After this series only two deprecated hooks remain in defs.h
(deprecated_show_load_progress and deprecated_query_hook). Both of them are
still used in the MI interpreter.  It would be nice if somebody with
experience on MI could take a look at them.

Philipp


Philipp Rudo (11):
  Remove unused deprecated_{pre|post}_add_symbol_hook
  Remove unused deprecated_ui_loop_hook
  Remove unused deprecated_warning_hook
  Remove unused deprecated_interactive_hook
  Remove unused deprecated_readline{_begin|_end}_hook
  Remove unused deprecated_context_hook
  Remove unused deprecated_target_wait_hook
  Remove unused deprecated_{attach|detach}_hook
  Remove unused deprecated_call_command_hook
  Remove unused deprecated_ui_load_progress_hook
  Remove deprecated_print_frame_info_listing_hook

 gdb/cli/cli-script.c | 21 +++------------
 gdb/complaints.c     |  2 --
 gdb/defs.h           | 26 -------------------
 gdb/infcmd.c         |  7 -----
 gdb/infrun.c         | 26 +++++--------------
 gdb/interps.c        |  9 -------
 gdb/remote-sim.c     |  3 ---
 gdb/ser-base.c       | 13 ----------
 gdb/ser-tcp.c        | 11 +-------
 gdb/ser-unix.c       | 15 -----------
 gdb/serial.h         |  5 +---
 gdb/stack.c          | 42 +++++++++++++-----------------
 gdb/symfile.c        | 25 ++++--------------
 gdb/target.c         |  3 ---
 gdb/top.c            | 72 +---------------------------------------------------
 gdb/tui/tui-hooks.c  | 19 --------------
 gdb/utils.c          | 36 ++++++++++----------------
 gdb/windows-nat.c    | 10 --------
 18 files changed, 48 insertions(+), 297 deletions(-)

-- 
2.8.4


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-03-01 22:17 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-28 14:50 [PATCH 00/11] Cleanup deprecated_*_hooks in defs.h Philipp Rudo
2017-02-28 14:50 ` [PATCH 11/11] Remove deprecated_print_frame_info_listing_hook Philipp Rudo
2017-02-28 14:50 ` [PATCH 06/11] Remove unused deprecated_context_hook Philipp Rudo
2017-02-28 14:50 ` [PATCH 08/11] Remove unused deprecated_{attach|detach}_hook Philipp Rudo
2017-02-28 14:50 ` [PATCH 03/11] Remove unused deprecated_warning_hook Philipp Rudo
2017-02-28 14:50 ` [PATCH 10/11] Remove unused deprecated_ui_load_progress_hook Philipp Rudo
2017-02-28 14:50 ` [PATCH 09/11] Remove unused deprecated_call_command_hook Philipp Rudo
2017-02-28 14:50 ` [PATCH 02/11] Remove unused deprecated_ui_loop_hook Philipp Rudo
2017-02-28 14:50 ` [PATCH 01/11] Remove unused deprecated_{pre|post}_add_symbol_hook Philipp Rudo
2017-02-28 14:50 ` [PATCH 05/11] Remove unused deprecated_readline{_begin|_end}_hook Philipp Rudo
2017-02-28 15:28 ` [PATCH 00/11] Cleanup deprecated_*_hooks in defs.h Tom Tromey
2017-02-28 15:52   ` Simon Marchi
2017-03-01  9:11     ` Philipp Rudo
2017-03-01 22:17       ` Yao Qi
2017-02-28 18:01 ` [PATCH 04/11] Remove unused deprecated_interactive_hook Philipp Rudo
2017-02-28 19:37 ` [PATCH 00/11] Cleanup deprecated_*_hooks in defs.h Keith Seitz
2017-02-28 19:45 ` [PATCH 07/11] Remove unused deprecated_target_wait_hook Philipp Rudo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox