* gdbinit.in: Turn off pagination for the skip commands, restore
it to previous state afterwards.
From-SVN: r267581
+2019-01-04 Jakub Jelinek <jakub@redhat.com>
+
+ * gdbinit.in: Turn off pagination for the skip commands, restore
+ it to previous state afterwards.
+
2019-01-04 Sam Tebbs <sam.tebbs@arm.com>
PR gcc/87763
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
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")