diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2018-04-09 00:18:34 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2018-05-04 15:38:18 +0100 |
commit | 11859c310cd6b6fd892337a5ee1d36921e6d08d8 (patch) | |
tree | 6062e4e6ee68c47033c384e85059f33e5b3956b2 /gdb/remote.c | |
parent | bf27f0e2c76839af8524e053cca271934150a90c (diff) | |
download | gdb-11859c310cd6b6fd892337a5ee1d36921e6d08d8.zip gdb-11859c310cd6b6fd892337a5ee1d36921e6d08d8.tar.gz gdb-11859c310cd6b6fd892337a5ee1d36921e6d08d8.tar.bz2 |
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.
Diffstat (limited to 'gdb/remote.c')
0 files changed, 0 insertions, 0 deletions