From 1285ce8629b37f800bf21731ee7c7a8b1b8d0233 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 30 Dec 2021 10:29:03 -0700 Subject: Always call the wrap_here method This changes all existing calls to wrap_here to call the method on the appropriate ui_file instead. The choice of ui_file is determined by context. --- gdb/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/main.c') diff --git a/gdb/main.c b/gdb/main.c index 6b312f8..8f944d8 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -1121,7 +1121,7 @@ captured_main_1 (struct captured_main_args *context) if (print_version) { print_gdb_version (gdb_stdout, false); - wrap_here (0); + gdb_stdout->wrap_here (0); printf_filtered ("\n"); exit (0); } @@ -1135,7 +1135,7 @@ captured_main_1 (struct captured_main_args *context) if (print_configuration) { print_gdb_configuration (gdb_stdout); - wrap_here (0); + gdb_stdout->wrap_here (0); printf_filtered ("\n"); exit (0); } @@ -1151,7 +1151,7 @@ captured_main_1 (struct captured_main_args *context) print_gdb_version (gdb_stdout, true); if (symarg) printf_filtered (".."); - wrap_here (0); + gdb_stdout->wrap_here (0); printf_filtered ("\n"); gdb_flush (gdb_stdout); /* Force to screen during slow operations. */ @@ -1172,7 +1172,7 @@ captured_main_1 (struct captured_main_args *context) print_gdb_version (gdb_stdout, true); if (symarg) printf_filtered (".."); - wrap_here (0); + gdb_stdout->wrap_here (0); printf_filtered ("\n"); gdb_flush (gdb_stdout); /* Force to screen during slow operations. */ -- cgit v1.1