[gdb/build] Fix build breaker in gdb/cli/cli-logging.c
authorTom de Vries <tdevries@suse.de>
Tue, 4 Jan 2022 09:24:36 +0000 (10:24 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 4 Jan 2022 09:24:36 +0000 (10:24 +0100)
commitf1e044bbb627d6176c01136ef3ba60f1bd35e2a3
tree585e76f92491a0493480028e5e9e7f57117c6cea
parent125ff8197df74cd3108e36d271267c798cd0e15f
[gdb/build] Fix build breaker in gdb/cli/cli-logging.c

Fix build breaker in gdb/cli/cli-logging.c:
...
gdb/cli/cli-logging.c: In function \
  ‘void show_logging_enabled(ui_file*, int, cmd_list_element*, const char*)’:
gdb/gdbsupport/gdb_locale.h:28:28: error: cannot convert ‘char*’ to ‘ui_file*’
   28 | # define _(String) gettext (String)
      |                    ~~~~~~~~^~~~~~~~
      |                            |
      |                            char*
gdb/cli/cli-logging.c:202:25: note: in expansion of macro ‘_’
  202 |     fprintf_unfiltered (_("on: Logging is enabled.\n"));
      |                         ^
...

Build and tested on x86_64-linux.

Fixes: 45aec4e5ed8 ("[gdb/cli] Improve show logging output")
gdb/cli/cli-logging.c