diff options
author | Tom de Vries <tdevries@suse.de> | 2021-09-06 17:47:08 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-09-06 17:47:08 +0200 |
commit | 69e8e0afee9afa9e328147237ce5e11b85c84012 (patch) | |
tree | 4fc3f317f7c2f633f36f07d99c54a2ce9ac040f1 /gdb/python/python-internal.h | |
parent | d9a2066df4a7a4d09b4db3d3ae5da40d3098d99f (diff) | |
download | binutils-69e8e0afee9afa9e328147237ce5e11b85c84012.zip binutils-69e8e0afee9afa9e328147237ce5e11b85c84012.tar.gz binutils-69e8e0afee9afa9e328147237ce5e11b85c84012.tar.bz2 |
[gdb/testsuite] Handle eof in gdb_internal_error_resync
Before commit 5a20fadc841 the test-case
gdb.dwarf2/locexpr-data-member-location.exp fails like this:
...
FAIL: gdb.dwarf2/locexpr-data-member-location.exp: running to bar in runto \
(GDB internal error)
ERROR: : spawn id exp9 not open
while executing
"expect {
-i exp9 -timeout 10
-re "Quit this debugging session\\? \\(y or n\\) $" {
send_gdb "n\n" answer
incr count
}
-re "Create ..."
("uplevel" body line 1)
invoked from within
"uplevel $body" NONE : spawn id exp9 not open
ERROR: Could not resync from internal error (timeout)
...
Fix the:
...
ERROR: : spawn id exp9 not open
...
by handling eof in gdb_internal_error_resync, such that we have instead:
...
FAIL: gdb.dwarf2/locexpr-data-member-location.exp: running to bar in runto \
(GDB internal error)
ERROR: Could not resync from internal error (eof)
...
Tested on x86_64-linux.
Diffstat (limited to 'gdb/python/python-internal.h')
0 files changed, 0 insertions, 0 deletions