51 lines
1.4 KiB
Diff
51 lines
1.4 KiB
Diff
|
http://sourceware.org/ml/gdb-patches/2014-02/msg00158.html
|
||
|
Subject: [patch] testsuite: Fix "ERROR: no fileid for"
|
||
|
|
||
|
|
||
|
--azLHFNyN32YCQGCU
|
||
|
Content-Type: text/plain; charset=us-ascii
|
||
|
Content-Disposition: inline
|
||
|
|
||
|
Hi,
|
||
|
|
||
|
a35cfb4007cee8cb84106412cd17f4e12f13345b is the first bad commit
|
||
|
commit a35cfb4007cee8cb84106412cd17f4e12f13345b
|
||
|
Author: Maciej W. Rozycki <macro@codesourcery.com>
|
||
|
Date: Thu Oct 24 23:32:30 2013 +0100
|
||
|
|
||
|
$ runtest gdb.base/solib-disc.exp
|
||
|
Running ./gdb.base/solib-disc.exp ...
|
||
|
ERROR: no fileid for host1
|
||
|
[...]
|
||
|
|
||
|
|
||
|
Jan
|
||
|
|
||
|
--azLHFNyN32YCQGCU
|
||
|
Content-Type: text/plain; charset=us-ascii
|
||
|
Content-Disposition: inline; filename="gdbfinish.patch"
|
||
|
|
||
|
gdb/testsuite/
|
||
|
2014-02-06 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
|
||
|
Fix "ERROR: no fileid for" in the testsuite.
|
||
|
* lib/gdb.exp (gdb_finish): Check gdb_spawn_id.
|
||
|
|
||
|
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
|
||
|
index 533b81b..5c53cdf 100644
|
||
|
--- a/gdb/testsuite/lib/gdb.exp
|
||
|
+++ b/gdb/testsuite/lib/gdb.exp
|
||
|
@@ -3708,7 +3708,8 @@ proc gdb_finish { } {
|
||
|
global cleanfiles
|
||
|
|
||
|
# Give persistent gdbserver a chance to terminate before GDB is killed.
|
||
|
- if {[info exists gdbserver_reconnect_p] && $gdbserver_reconnect_p} {
|
||
|
+ if {[info exists gdbserver_reconnect_p] && $gdbserver_reconnect_p
|
||
|
+ && [info exists gdb_spawn_id]} {
|
||
|
send_gdb "kill\n";
|
||
|
gdb_expect 10 {
|
||
|
-re "y or n" {
|
||
|
|
||
|
--azLHFNyN32YCQGCU--
|
||
|
|