tfile_target::close: trace_fd can't be -1
authorPedro Alves <palves@redhat.com>
Fri, 10 Jan 2020 20:05:50 +0000 (20:05 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 10 Jan 2020 20:05:50 +0000 (20:05 +0000)
commitc17e02e1b55b5e9cbdc6581f05bfec96dc8436f4
tree6f080d1a83ae57b3a12b1a7c246163126afbaaf3
parentab1ddbcf110a3f1ad45e3a346d2da98ffb833dec
tfile_target::close: trace_fd can't be -1

It's not possible to open a tfile target with an invalid trace_fd, and
it's not possible to close a closed target, so this early return is dead.

gdb/ChangeLog:
2020-01-10  Pedro Alves  <palves@redhat.com>

* tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
not -1.
gdb/ChangeLog
gdb/tracefile-tfile.c