From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 8AD483858D1E; Tue, 14 Feb 2023 21:03:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8AD483858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676408599; bh=M9Fe9ThJR0qZHN9GR/P3FxGctuHOSU00X9l5dkQRQ+Q=; h=From:To:Subject:Date:From; b=m/Og1owHaocj/U7YIPPSe+nU4UxmHl659yoF4zWrBzryhhCASq1BIzdnq1Jom99Na kFPRwS5KQvamaLg/3aW7q2ZBRLtSz/NTmr23Wh9tbQYTvy6i+GWx8t/mwf0Gr2I+ao iIeWr4bfKwbVsXQjrUa4hgKIfqPVHtjobdI6g7D0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove a use of pagination_enabled X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 9981e299e13ae7c4f3e23bb44b0ab5e3785c043c X-Git-Newrev: 34116a8a2d0f46c23cf0e4d1c0842e1bea827ab2 Message-Id: <20230214210319.8AD483858D1E@sourceware.org> Date: Tue, 14 Feb 2023 21:03:19 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D34116a8a2d0f= 46c23cf0e4d1c0842e1bea827ab2 commit 34116a8a2d0f46c23cf0e4d1c0842e1bea827ab2 Author: Tom Tromey Date: Sat Jan 28 08:23:52 2023 -0700 Remove a use of pagination_enabled =20 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. Diff: --- gdb/tui/tui-regs.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 3e794aed224..50a238401df 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) =20 /* Expand tabs into spaces, since ncurses on MS-Windows doesn't. */ tab_expansion_file stream; - - scoped_restore save_pagination - =3D make_scoped_restore (&pagination_enabled, false); - scoped_restore save_stdout - =3D make_scoped_restore (&gdb_stdout, &stream); - gdbarch_print_registers_info (gdbarch, &stream, frame, regnum, 1); =20 /* Remove the possible \n. */