From 35a5722c7b3938cf26a03aed4c5387f550d8ac3e Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 4 Jan 2019 18:56:47 +0100 Subject: [PATCH] gdbinit.in: Turn off pagination for the skip commands, restore it to previous state afterwards. * gdbinit.in: Turn off pagination for the skip commands, restore it to previous state afterwards. From-SVN: r267581 --- gcc/ChangeLog | 5 +++++ gcc/gdbinit.in | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ce5bed40770..c0dae2513db 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-01-04 Jakub Jelinek + + * gdbinit.in: Turn off pagination for the skip commands, restore + it to previous state afterwards. + 2019-01-04 Sam Tebbs PR gcc/87763 diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index 71ca2648efd..e16c3c8ef87 100644 --- a/gcc/gdbinit.in +++ b/gcc/gdbinit.in @@ -219,6 +219,11 @@ macro define __null 0 macro define input_line expand_location(input_location).line macro define input_filename expand_location(input_location).file +# Remember previous pagination status and turn it off, so that +# the messages for skip commands don't require pagination. +python __gcc_prev_pagination=gdb.parameter("pagination") +set pagination off + # Gracefully handle aborts in functions used from gdb. set unwindonsignal on @@ -276,3 +281,6 @@ skip PATTERN skip INSN_LOCATION skip INSN_HAS_LOCATION skip JUMP_LABEL_AS_INSN + +# Restore pagination to the previous state. +python if __gcc_prev_pagination: gdb.execute("set pagination on") -- 2.30.2