From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3245 invoked by alias); 25 Nov 2005 22:33:56 -0000 Received: (qmail 3158 invoked by uid 22791); 25 Nov 2005 22:33:55 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 25 Nov 2005 22:33:53 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jAPMXpq6029676 for ; Fri, 25 Nov 2005 17:33:51 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jAPMXoV07965; Fri, 25 Nov 2005 17:33:50 -0500 Received: from [172.16.24.50] (bluegiant.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id jAPMXnSY012503; Fri, 25 Nov 2005 17:33:49 -0500 Message-ID: <4387914C.1000404@redhat.com> Date: Sat, 26 Nov 2005 00:05:00 -0000 From: Michael Snyder User-Agent: Mozilla Thunderbird (X11/20050322) MIME-Version: 1.0 To: GDB Patches , Daniel Jacobowitz Subject: [RFA] Run follow-fork tests on Linux Content-Type: multipart/mixed; boundary="------------010308030806010106040606" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00476.txt.bz2 This is a multi-part message in MIME format. --------------010308030806010106040606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 173 This allows the tests "foll-fork" and "foll-vfork" to run on Linux, where they mostly pass. A little more verbose output from linux-nat.c will fix the remaining failures. --------------010308030806010106040606 Content-Type: text/plain; name="testfork" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="testfork" Content-length: 1676 2005-11-25 Michael Snyder * gdb.base/foll-fork.exp: Run if istarget linux. Add PASS cases for linux. * gdb.base/foll-vfork.exp: Run if istarget linux. Index: gdb.base/foll-vfork.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/foll-vfork.exp,v retrieving revision 1.3 diff -p -r1.3 foll-vfork.exp *** gdb.base/foll-vfork.exp 11 Dec 2002 02:04:45 -0000 1.3 --- gdb.base/foll-vfork.exp 25 Nov 2005 22:30:44 -0000 *************** if { [gdb_compile "${srcdir}/${subdir}/ *** 55,61 **** # Until "set follow-fork-mode" and "catch vfork" are implemented on # other targets... # ! if ![istarget "hppa*-hp-hpux*"] then { continue } --- 55,61 ---- # Until "set follow-fork-mode" and "catch vfork" are implemented on # other targets... # ! if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-pc-linux*"]} then { continue } *************** proc vfork_parent_follow_to_bp {} { *** 109,115 **** } send_gdb "continue\n" gdb_expect { ! -re ".*Detaching after fork from process.*Breakpoint.*18.*$gdb_prompt "\ {pass "vfork parent follow, to bp"} -re "$gdb_prompt $" {fail "vfork parent follow, to bp"} timeout {fail "(timeout) vfork parent follow, to bp" } --- 109,115 ---- } send_gdb "continue\n" gdb_expect { ! -re ".*Detaching after fork from.*Breakpoint.*18.*$gdb_prompt "\ {pass "vfork parent follow, to bp"} -re "$gdb_prompt $" {fail "vfork parent follow, to bp"} timeout {fail "(timeout) vfork parent follow, to bp" } --------------010308030806010106040606--