]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: make deprecated_show_value_hack use its ui_file parameter
authorSébastien Darche <sdarche@efficios.com>
Mon, 29 Sep 2025 14:50:48 +0000 (10:50 -0400)
committerSébastien Darche <sdarche@efficios.com>
Wed, 8 Oct 2025 20:00:33 +0000 (16:00 -0400)
commitb091f85b80de2d94a0703d86c1424b1f34fffc47
treef6073c93b2aaea8ba64dcc3996da65a9dd798f9c
parent890bc1b7f5b156d57e86154cf333d4c5714f3a03
gdb: make deprecated_show_value_hack use its ui_file parameter

If a setting does not provide a "show" function, we fall back to the
deprecated_show_value_hack function to print the value in a generic
way. The current version ignores the `file` parameter specifying the
output file in favor of always using gdb_stdout.

To make things consistent with how the values are printed using a
regular show command, the proposed change makes the function use the
ui_file parameter it receives (even though do_show_command passes
gdb_stdout).

Co-Authored-By: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I54028ed654a1fa4d955e6e46f979472c8d98ace9
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/cli/cli-setshow.c