From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43398 invoked by alias); 10 Apr 2018 10:11:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 43002 invoked by uid 89); 10 Apr 2018 10:11:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-7.3 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2 autolearn=ham version=3.3.2 spammy=servers X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Apr 2018 10:11:47 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6DB23406F890 for ; Tue, 10 Apr 2018 10:11:46 +0000 (UTC) Received: from localhost.localdomain (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1C85E2024CA4 for ; Tue, 10 Apr 2018 10:11:45 +0000 (UTC) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/2] Invalid file I/O file handles when the target closes Date: Tue, 10 Apr 2018 10:11:00 -0000 Message-Id: <20180410101145.18136-1-palves@redhat.com> X-SW-Source: 2018-04/txt/msg00173.txt.bz2 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