diff options
author | Tom Tromey <tromey@adacore.com> | 2022-01-05 10:42:25 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-01-06 07:54:30 -0700 |
commit | 5220f61a22a0c1a84403725532d6359aaeb3d2fa (patch) | |
tree | 160b393a372d1b5860d44742735a1ea117c8304b /gdb/language.c | |
parent | d8504344d476f90bffca815b33b69fd778677478 (diff) | |
download | gdb-5220f61a22a0c1a84403725532d6359aaeb3d2fa.zip gdb-5220f61a22a0c1a84403725532d6359aaeb3d2fa.tar.gz gdb-5220f61a22a0c1a84403725532d6359aaeb3d2fa.tar.bz2 |
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.
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/language.c b/gdb/language.c index 0e6a1a4..0846b3e 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -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 |