Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] testsuite: Fix "ERROR: no fileid for"
@ 2014-02-06 20:58 Jan Kratochvil
  2014-02-06 22:09 ` Maciej W. Rozycki
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Kratochvil @ 2014-02-06 20:58 UTC (permalink / raw)
  To: gdb-patches; +Cc: Maciej W. Rozycki

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

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

[-- Attachment #2: gdbfinish.patch --]
[-- Type: text/plain, Size: 715 bytes --]

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" {

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-16 20:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-06 20:58 [patch] testsuite: Fix "ERROR: no fileid for" Jan Kratochvil
2014-02-06 22:09 ` Maciej W. Rozycki
2014-02-07 15:10   ` Jan Kratochvil
2014-02-16 18:10     ` Jan Kratochvil
2014-02-16 20:45       ` Maciej W. Rozycki
2014-02-16 20:51         ` [commit] " Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox