diff options
author | Pedro Alves <pedro@palves.net> | 2025-07-25 17:43:52 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2025-07-25 17:58:39 +0100 |
commit | 6d654864d9408d47dfac98358307796d4eade70b (patch) | |
tree | 0dfdc5a68f99f2b17932ace58dd40f5f2d3448a3 | |
parent | c75f4b5c34e4aaec804c32cd44a4cfb0ce32fdfc (diff) | |
download | binutils-6d654864d9408d47dfac98358307796d4eade70b.zip binutils-6d654864d9408d47dfac98358307796d4eade70b.tar.gz binutils-6d654864d9408d47dfac98358307796d4eade70b.tar.bz2 |
gdb: Convert gdb/mingw-hdep.c to INIT_GDB_FILE
I noticed that my MinGW GDB did not have the "maint set
console-translation-mode" command, even though the code to register it
is in gdb/mingw-hdep.c.
The problem is that gdb/mingw-hdep.c is not using INIT_GDB_FILE. This
fixes it.
Change-Id: I3aa305c517e100d4733b391a110a1b20b89fdb7f
-rw-r--r-- | gdb/mingw-hdep.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/mingw-hdep.c b/gdb/mingw-hdep.c index 481bd41..a4e9cf5 100644 --- a/gdb/mingw-hdep.c +++ b/gdb/mingw-hdep.c @@ -493,10 +493,7 @@ show_maint_console_translation_mode (struct ui_file *file, int from_tty, console_translation_mode.c_str ()); } -extern void _initialize_mingw_hdep (); - -void -_initialize_mingw_hdep () +INIT_GDB_FILE (mingw_hdep) { add_setshow_string_cmd ("console-translation-mode", class_maintenance, |