This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] Invalid file I/O file handles when the target closes
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 10 Apr 2018 11:11:43 +0100
- Subject: [PATCH 0/2] Invalid file I/O file handles when the target closes
Found this little easily-splittable piece on my multi-target branch,
thought I'd send it out.
On the branch, we can connect to multiple remote servers
simultaneously. Each remote connection is managed by a separate
heap-allocated target_ops instance. The change from a single global
remote target_ops heap-allocated target_ops instances exposed the
problem fixed in patch #2.
Pedro Alves (2):
C++ify fileio_fh_t, replace VEC with std::vector
File I/O file handles after target closes
gdb/remote.c | 3 +-
gdb/target.c | 108 ++++++++++++++++++++++++++++++++++++++---------------------
2 files changed, 70 insertions(+), 41 deletions(-)
--
2.14.3