]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
gdb/testsuite: Handle targets with lots of registers
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sun, 8 Apr 2018 23:18:34 +0000 (00:18 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 4 May 2018 14:38:18 +0000 (15:38 +0100)
commit11859c310cd6b6fd892337a5ee1d36921e6d08d8
tree6062e4e6ee68c47033c384e85059f33e5b3956b2
parentbf27f0e2c76839af8524e053cca271934150a90c
gdb/testsuite: Handle targets with lots of registers

In gdb.base/maint.exp a test calls 'maint print registers'.  If the
target has lots of registers this may overflow expect's buffers,
causing the test to fail.

After this commit we process the output line at a time until we get back
to the GDB prompt, this should prevent buffer overrun while still
testing that the command works as required.

gdb/testsuite/ChangeLog:

* gdb.base/maint.exp: Process output from 'maint print registers'
line at a time.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/maint.exp