diff options
author | Pedro Alves <palves@redhat.com> | 2015-07-29 11:09:39 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-07-29 11:09:39 +0100 |
commit | 8396d2cdf4b013b237bf8cca306bbec602bdbb72 (patch) | |
tree | 3327dc627827aefff0196e17eb08a1377f55a77a /gdb/mips-linux-nat.c | |
parent | 2051d61f76bc009f42d094e57fa0e7114fb23a4e (diff) | |
download | binutils-8396d2cdf4b013b237bf8cca306bbec602bdbb72.zip binutils-8396d2cdf4b013b237bf8cca306bbec602bdbb72.tar.gz binutils-8396d2cdf4b013b237bf8cca306bbec602bdbb72.tar.bz2 |
Make gdb.base/dprintf.exp use gdb_test_stdio
This one needed a larger revamp. The issue is that the "info
breakpoints" test at the bottom of the file is broken on targets that
can do both server-side dprintf, and inferior I/O, because then
neither the breakpoint numbers match nor the "already hit N times"
output.
Address that by making the test restart gdb from scratch when
switching between dprintf styles. Test groups are factored into
procedures, and we now use with_test_prefix. While we're changing
test messages, lowercase a few test messages, and then while at it,
modernize a couple things here and there.
gdb/testsuite/ChangeLog:
2015-07-29 Pedro Alves <palves@redhat.com>
* gdb.base/dprintf.exp: Use standard_testfile. Change
prepare_for_testing call.
(srcfile): Don't set.
(restart): New procedure.
(test_dprintf): New procecure, use to continue over dprintfs.
(test_call, test_agent): New procedures, tests moved here.
Restart gdb and recreate dprintfs. Adjust expected output.
Diffstat (limited to 'gdb/mips-linux-nat.c')
0 files changed, 0 insertions, 0 deletions