aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-28 08:23:52 -0700
committerTom Tromey <tom@tromey.com>2023-02-14 13:54:44 -0700
commit34116a8a2d0f46c23cf0e4d1c0842e1bea827ab2 (patch)
treed0584088c126faede8f30ddc4caf585a277c224d /gdb/tui
parent9981e299e13ae7c4f3e23bb44b0ab5e3785c043c (diff)
downloadgdb-34116a8a2d0f46c23cf0e4d1c0842e1bea827ab2.zip
gdb-34116a8a2d0f46c23cf0e4d1c0842e1bea827ab2.tar.gz
gdb-34116a8a2d0f46c23cf0e4d1c0842e1bea827ab2.tar.bz2
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.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-regs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 3e794ae..50a2384 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -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. */