Make gdb.mi/mi-dprintf.exp use $inferior_spawn_id
authorPedro Alves <palves@redhat.com>
Wed, 29 Jul 2015 10:09:45 +0000 (11:09 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 29 Jul 2015 10:09:45 +0000 (11:09 +0100)
commit58789a917b7eed57c5200ec0a4d8a2fc44efc64c
treed691db39d4d84d8ae990727febcd989aad1f8e4b
parente8376742bdba233d14cfbff91776be065ae27587
Make gdb.mi/mi-dprintf.exp use $inferior_spawn_id

gdb/testsuite/ChangeLog:
2015-07-29  Pedro Alves  <palves@redhat.com>

* gdb.mi/mi-dprintf.exp (mi_expect_dprintf): New procedure,
factore out from mi_continue_dprintf.  For call-style dprintfs,
expect dprintf output out of $inferior_spawn_id.
(mi_continue_dprintf): Use mi_expect_dprintf.
* gdb.mi/mi-dprintf.c: Include "../lib/unbuffer_output.c".
(main): Call gdb_unbuffer_output.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-dprintf.exp