Skip to content

Commit 34116a8

Browse files
committed
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.
1 parent 9981e29 commit 34116a8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

gdb/tui/tui-regs.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ tui_register_format (frame_info_ptr frame, int regnum)
9191

9292
/* Expand tabs into spaces, since ncurses on MS-Windows doesn't. */
9393
tab_expansion_file stream;
94-
95-
scoped_restore save_pagination
96-
= make_scoped_restore (&pagination_enabled, false);
97-
scoped_restore save_stdout
98-
= make_scoped_restore (&gdb_stdout, &stream);
99-
10094
gdbarch_print_registers_info (gdbarch, &stream, frame, regnum, 1);
10195

10296
/* Remove the possible \n. */

0 commit comments

Comments
 (0)