Remove a use of pagination_enabled

I noticed that the TUI temporarily sets pagination_enabled and
gdb_stdout in one spot.  However, I don't believe these settings are
necessary here, as a ui_file is passed to
gdbarch_print_registers_info.  This patch removes these settings.
This commit is contained in:
Tom Tromey 2023-01-28 08:23:52 -07:00
parent 9981e299e1
commit 34116a8a2d

View file

@ -91,12 +91,6 @@ tui_register_format (frame_info_ptr frame, int regnum)
/* Expand tabs into spaces, since ncurses on MS-Windows doesn't. */
tab_expansion_file stream;
scoped_restore save_pagination
= make_scoped_restore (&pagination_enabled, false);
scoped_restore save_stdout
= make_scoped_restore (&gdb_stdout, &stream);
gdbarch_print_registers_info (gdbarch, &stream, frame, regnum, 1);
/* Remove the possible \n. */