[binutils-gdb] gdb/testsuite: Handle targets with lots of registers
sergiodj+buildbot@sergiodj.net
sergiodj+buildbot@sergiodj.net
Fri May 4 15:01:00 GMT 2018
*** TEST RESULTS FOR COMMIT 11859c310cd6b6fd892337a5ee1d36921e6d08d8 ***
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Branch: master
Commit: 11859c310cd6b6fd892337a5ee1d36921e6d08d8
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.
More information about the Gdb-testers
mailing list