[PATCH 0/2] Invalid file I/O file handles when the target closes

Simon Marchi simon.marchi@polymtl.ca
Wed Apr 11 03:33:00 GMT 2018


On 2018-04-10 06:11, Pedro Alves wrote:
> 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(-)

Makes sense to me.

Simon



More information about the Gdb-patches mailing list