From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5914 invoked by alias); 16 Nov 2015 23:53:21 -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 5902 invoked by uid 89); 16 Nov 2015 23:53:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 16 Nov 2015 23:53:20 +0000 Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id 297B734085B; Mon, 16 Nov 2015 23:53:18 +0000 (UTC) Date: Mon, 16 Nov 2015 23:53:00 -0000 From: Mike Frysinger To: Kevin Buettner Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] PPC sim: Don't close file descriptors 0, 1, or 2 Message-ID: <20151116235317.GF31395@vapier.lan> Mail-Followup-To: Kevin Buettner , gdb-patches@sourceware.org References: <20151116145807.4aedd84f@pinnacle.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vA66WO2vHvL/CRSR" Content-Disposition: inline In-Reply-To: <20151116145807.4aedd84f@pinnacle.lan> X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00329.txt.bz2 --vA66WO2vHvL/CRSR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-length: 432 On 16 Nov 2015 14:58, Kevin Buettner wrote: > This occurs because the powerpc simulator closes, on behalf of the > testcase, the file descriptors associated with stdin, stdout, and > stderr. GDB still needs these descriptors to communicate with the > user or, in this case, with the testing framework. special casing this logic in the sim looks wrong to me. why is the testcase itself trying to close stdin/stdout/stderr ? -mike --vA66WO2vHvL/CRSR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWSmxtAAoJEEFjO5/oN/WB7IAP/3dlQTsrIRwjfQID8ItFwArP V0bmn5CT+XS5DNfJvEmhJtWcXRm0JVWo2pgwajD1b/bxTifCVZBzLvN9gv1c1eLo NDOSZuTridgGaNZSJrdkfNBIyR2khn76dX5HkIvMmLCNW/PaLD5F9wracnfyzZ9M BYTBLzBSfqkdBbOeomvr9Yt3TDIdL6u4aUX7vPxR7NPkrw0KQAMWZDnehs8T4it5 KeO/4s2FpyKjr6O+Y8kuwwISye2jraCRKXEqlL2Tk319l+AypXTKAQvV/qBrDQtP 4AijMHC4AtQ2sfei0u1ZmS8AULZMosZUTNb/2wMaRTuOwT1PdRgqMNY75XSN6oOY HxOKg/ysYh76aWN+ER4DV8QSx0PbiJVAEBt4rkClnWA7tKKcMCI0C3ZEQYPRnkc8 /PIz9raOepUJ+JaY63rZLxWUm52tZRXnvsnKJWA/Z4ToWpaRtksSJX51NhinFbIq uGnqFllC+cBmSEspYtMBoQuJhKjKgcFY23K8eR0JDT1cjayxsgBl0cmfwblPkgl/ uG9AzEN65OhlfvLH9Q4TQlFQIIOHqL/8X2P3iVo9a2OvJnzM2gQtZ8Er21hU9ftG bBf92ow6ROcx6BYBonxV33ylsvqxpGK71WVeP3FlpP1TtC6peR4UKePZVxhPlJ45 pBEBLJnCvIZ2zgJOmA48 =sgxn -----END PGP SIGNATURE----- --vA66WO2vHvL/CRSR--