mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
Avoid crash in language_info
language_info calls:
show_language_command (NULL, 1, NULL, NULL);
... "knowing" that show_language_command does not use its ui_file
parameter. However, this was changed in commit 7514a661
("Consistently Use ui_file parameter to show callbacks").
This patch changes language_info to pass a ui_file.
It took a while to write the test -- this function is only called when
'verbose' is on and when switching the "expected" language in auto
mode.
This commit is contained in:
@@ -384,7 +384,7 @@ language_info ()
|
||||
|
||||
expected_language = current_language;
|
||||
printf_filtered (_("Current language: %s\n"), language);
|
||||
show_language_command (NULL, 1, NULL, NULL);
|
||||
show_language_command (gdb_stdout, 1, NULL, NULL);
|
||||
}
|
||||
|
||||
/* This page contains functions for the printing out of
|
||||
|
||||
Reference in New Issue
Block a user