gdb.python/py-prompt.exp: restore GDBFLAGS
authorPedro Alves <palves@redhat.com>
Mon, 12 Jan 2015 17:10:06 +0000 (17:10 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 12 Jan 2015 17:10:06 +0000 (17:10 +0000)
commit3d230f71746e0b33376f8b9bca914cc5d980997a
treed5018c211db115c1ba5d387827016a2fb29d115f
parent72c61a0d1ef445f99305859b66450da60ec6e0cb
gdb.python/py-prompt.exp: restore GDBFLAGS

The previous change to py-prompt.exp made it return without restoring
GDBFLAGS, resulting in breaking the following tests:

  $ make check RUNTESTFLAGS="--target_board=native-gdbserver --directory=gdb.python"
  ...
  Running src/gdb/testsuite/gdb.python/py-prompt.exp ...
  Running src/gdb/testsuite/gdb.python/py-section-script.exp ...
  ERROR: (timeout) GDB never initialized after 10 seconds.
  ERROR: no fileid for gdbuild
  ERROR: Couldn't send python print ('test') to GDB.
  ERROR: no fileid for gdbuild
  ERROR: Couldn't send python print (sys.version_info[0]) to GDB.
  ERROR: no fileid for gdbuild
  ERROR: Couldn't send python print (sys.version_info[1]) to GDB.
  ERROR: no fileid for gdbuild
  ERROR: no fileid for gdbuild
  ...

gdb/testsuite/
2015-01-12  Pedro Alves  <palves@redhat.com>

* gdb.python/py-prompt.exp: When the board can't spawn for attach,
restore GDBFLAGS before returning.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-prompt.exp