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(-)