mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-10 10:03:37 +08:00
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.
This commit is contained in:
parent
72c61a0d1e
commit
3d230f7174
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2015-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* gdb.python/py-frame.exp (test Frame.read_register(rip)): Use
|
||||
|
@ -76,6 +76,7 @@ gdb_test "python print (\"'\" + str(p\[0\]) + \"'\")" "'$gdb_prompt_fail '" \
|
||||
gdb_exit
|
||||
|
||||
if {![can_spawn_for_attach]} {
|
||||
set GDBFLAGS $saved_gdbflags
|
||||
return 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user