From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26435 invoked by alias); 25 Oct 2012 17:42:03 -0000 Received: (qmail 26426 invoked by uid 22791); 25 Oct 2012 17:42:01 -0000 X-SWARE-Spam-Status: No, hits=-7.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 25 Oct 2012 17:41:54 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9PHfrBg013286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 25 Oct 2012 13:41:53 -0400 Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q9PHfqpL019894 for ; Thu, 25 Oct 2012 13:41:53 -0400 Subject: [PATCH 0/8] Fix PR gdb/14766; cleanup foll-vfork.exp and extend it. To: gdb-patches@sourceware.org From: Pedro Alves Date: Thu, 25 Oct 2012 17:42:00 -0000 Message-ID: <20121025174002.13324.8164.stgit@brno.lan> User-Agent: StGit/0.16 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2012-10/txt/msg00504.txt.bz2 Running the whole testsuite with single-step forced and using software single-step on amd64 (that's quite painful, but catches a lot of interesting corner cases) revealed gdb/14766 (I no longer off hand remember the details of why that triggers there, but that's unimportant). This series fixes that PR. It starts by modernizing foll-vfork.exp, and then extending it to cover more cases, exposing the bug on hardware step targets (like amd64 GNU/Linux). I've kept the tests patches split by incremental logical changes, as otherwise the test additions/changes combined would be incompreensible and look like a complete rewrite. Barring objections, comments, etc., I'll commit this after a short while. Tested on amd64 Fedora 17. --- Pedro Alves (8): foll-vfork.exp: Modernize. foll-vfork.exp: Don't hard code line numbers. foll-vfork.exp: Expose more testing on non-HP/UX targets foll-vfork.c/vforked-prog.c: Add copyright headers. foll-vfork.exp: Use with_test_prefix. foll-vfork.exp: Clean restart gdb before each test procedure. foll-vfork.exp: Also test following vfork when the child exits. Fix PR gdb/14766 - vfork child exit with "set follow-fork-mode child" broken. -- Pedro Alves