From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31861 invoked by alias); 9 Oct 2011 18:17:13 -0000 Received: (qmail 31849 invoked by uid 22791); 9 Oct 2011 18:17:13 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_BJ 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; Sun, 09 Oct 2011 18:16:58 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p99IGw9O009653 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 9 Oct 2011 14:16:58 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p99IGtsh013908 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 9 Oct 2011 14:16:57 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p99IGt9T004285; Sun, 9 Oct 2011 20:16:55 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p99IGsVB004284; Sun, 9 Oct 2011 20:16:54 +0200 Date: Sun, 09 Oct 2011 18:17:00 -0000 From: Jan Kratochvil To: Kevin Pouget Cc: Tom Tromey , gdb-patches@sourceware.org Subject: [patch] gdb.python/py-events.exp: Disable multi-inferior for gdbserver [Re: Regression (or a new FAIL?): gdb.python/py-events.exp] Message-ID: <20111009181654.GA4629@host1.jankratochvil.net> References: <20111005121524.GA28249@host1.jankratochvil.net> <20111005141522.GA4395@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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: 2011-10/txt/msg00226.txt.bz2 On Wed, 05 Oct 2011 16:55:28 +0200, Kevin Pouget wrote: > what do you want me to do with that, certainly fill a bug report, > shall I change anything in my patch? I realized gdbserver supports multi-inferior by attaching each new inferior but it does not yet support (=remote.c ignores) `set detach-on-fork off' at all. Therefore proposing the patch below. I will check it in in some time. Thanks, Jan gdb/testsuite/ 2011-10-09 Jan Kratochvil * gdb.python/py-events.exp: New comment for `set detach-on-fork off'. (inferior 2, Inferior 2 terminated.): Run them only if not remote. --- a/gdb/testsuite/gdb.python/py-events.exp +++ b/gdb/testsuite/gdb.python/py-events.exp @@ -53,6 +53,7 @@ gdb_breakpoint "main" {temporary} gdb_test "run" ".*event type: new_objfile.*new objfile name.*" "New objfile notification" +# Ignored for [is_remote target]. gdb_test_no_output "set detach-on-fork off" "" gdb_test "Test_Events" "Event testers registered." @@ -75,8 +76,10 @@ gdb_test "continue" ".*event type: continue.* .*exit code: 12.* .*exit inf: 1.*" "Inferior 1 terminated." -gdb_test "inferior 2" ".*Switching to inferior 2.*" -gdb_test "continue" ".*event type: continue.* +if ![is_remote target] { + gdb_test "inferior 2" ".*Switching to inferior 2.*" + gdb_test "continue" ".*event type: continue.* .*event type: exit.* .*exit code: 12.* .*exit inf: 2.*" "Inferior 2 terminated." +}