aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2014-02-16 21:49:40 +0100
committerJan Kratochvil <jan.kratochvil@redhat.com>2014-02-16 21:49:40 +0100
commit0b10be4faf97396c88746f932b55bc3d2fb2d907 (patch)
treee59b2b1304416b3c11d6cae3303b548cdb3095dd /bfd
parent6e03f3da7df9ec3c2852d50d4c4039dc80d606f6 (diff)
downloadgdb-0b10be4faf97396c88746f932b55bc3d2fb2d907.zip
gdb-0b10be4faf97396c88746f932b55bc3d2fb2d907.tar.gz
gdb-0b10be4faf97396c88746f932b55bc3d2fb2d907.tar.bz2
Fix "ERROR: no fileid for" in the testsuite.
If GDB has crashed then gdb_spawn_id still exists (although it does not work). So my patch does not change anything. And also currently it will leave the stale gdbserver running anyway. In general if gdb_spawn_id does not exist then send_gdb + gdb_expect just do not make sense anyway. So this patch just prevents the error in such case. The killing of stale gdbserver could be improved multiple ways (also as suggested by Pedro in the original thread) but that is IMO outside of the scope of this patch. Apparently if there is no good response from GDB then gdb_finish() should try to call gdb_start just to kill that gdbserver, IIUC. gdb/testsuite/ 2014-02-16 Jan Kratochvil <jan.kratochvil@redhat.com> Fix "ERROR: no fileid for" in the testsuite. * lib/gdb.exp (gdb_finish): Check gdb_spawn_id. Message-ID: <20140206205814.GA18495@host2.jankratochvil.net>
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions