From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2310 invoked by alias); 22 Jun 2011 15:38:55 -0000 Received: (qmail 2299 invoked by uid 22791); 22 Jun 2011 15:38:54 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 22 Jun 2011 15:38:33 +0000 Received: (qmail 12856 invoked from network); 22 Jun 2011 15:38:32 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 22 Jun 2011 15:38:32 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [patch] XFAIL gdb.cp/mb-inline.exp conditionaly Date: Wed, 22 Jun 2011 15:38:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-8-generic; KDE/4.6.2; x86_64; ; ) Cc: Yao Qi References: <4DF8BEEF.5010308@codesourcery.com> In-Reply-To: <4DF8BEEF.5010308@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201106221638.30062.pedro@codesourcery.com> 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-06/txt/msg00308.txt.bz2 On Wednesday 15 June 2011 15:17:19, Yao Qi wrote: > In mb-inline.exp, breakpoint 1.2 is disabled, re-run program, and make > sure breakpoint 1.2 is still disabled and program will not hit it. The > pre-condition is new inferior created by re-run is loaded at the exactly > same address as previous one. However, it is not true on some systems, > such as uclinux. > > On uclinux, new inferior is created on the different address, so status > of breakpoint location (enabled or disabled) will not be kept during > breakpoint updates. breakpoint 1.2 become enabled, instead of disabled. > This will make this FAIL, > > FAIL: gdb.cp/mb-inline.exp: continue with disabled breakpoint 1.2 > Why not do "info breakpoints", and parse the output, checking if the breakpoint is really disabled? If it is not, no point issuing the continue. The breakpoint was set by line number, and we're reloading the session the same both times. Why does breakpoint 1.2 become enabled (and I'm guessing that breakpoint 1.1 becomes disabled)? > This patch is to address this issue. After this patch, in my uclinux > port, the test result is like this, > > # of expected passes 9 > # of expected failures 1 > > but, some times, we can get 10 PASSes, because the new inferior may be > created/loaded on the same address as previous one. > > Note that I also considered to use setup_xfail for uclinux target, but > we may get a XPASS, so I didn't write patch in that way. > > OK for mainline? > > -- Pedro Alves