gdbinit.in: Turn off pagination for the skip commands, restore it to previous state...
authorJakub Jelinek <jakub@redhat.com>
Fri, 4 Jan 2019 17:56:47 +0000 (18:56 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 4 Jan 2019 17:56:47 +0000 (18:56 +0100)
* gdbinit.in: Turn off pagination for the skip commands, restore
it to previous state afterwards.

From-SVN: r267581

gcc/ChangeLog
gcc/gdbinit.in

index ce5bed407709923f422c209add71341e5fbd16c3..c0dae2513db861b9e658c57a440729a4353efd45 100644 (file)
@@ -1,3 +1,8 @@
+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
index 71ca2648efdaf892906331645df57da9b51fd8fc..e16c3c8ef87256675c974f84309547f14fce13d0 100644 (file)
@@ -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")