gdb: remove gen_ret_current_ui_field_ptr
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 21 Nov 2019 14:32:15 +0000 (09:32 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 21 Nov 2019 14:32:15 +0000 (09:32 -0500)
commit87fb00ea229f69a659ea044588b88bec03ae3a9c
treee6b9a29e88d72ebc9e8109c35e481494c417b433
parente19511a60cda301feacdb6244375363b08dccf7d
gdb: remove gen_ret_current_ui_field_ptr

I think it would be clearer to not use gen_ret_current_ui_field_ptr to
generate the implementation of current_ui_gdb_stdout_ptr et al.  It
doesn't save much code, but adds a layer of complexity for the reader.
Plus, it doesn't work well with IDEs, for example if you ask to find all
usages the m_gdb_stdout field.

gdb/ChangeLog:

* top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
(current_ui_gdb_stdin_ptr): Likewise.
(current_ui_gdb_stderr_ptr): Likewise.
(current_ui_gdb_stdlog_ptr): Likewise.
(current_ui_current_uiout_ptr): Likewise.
(gen_ret_current_ui_field_ptr): Remove.

Change-Id: I86f821c9d119453701caedf0e47124ccddfbab2d
gdb/ChangeLog
gdb/top.c
This page took 0.041503 seconds and 4 git commands to generate.