From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Yao Qi <yao@codesourcery.com>
Subject: Re: [patch] XFAIL gdb.cp/mb-inline.exp conditionaly
Date: Wed, 22 Jun 2011 15:38:00 -0000 [thread overview]
Message-ID: <201106221638.30062.pedro@codesourcery.com> (raw)
In-Reply-To: <4DF8BEEF.5010308@codesourcery.com>
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
next prev parent reply other threads:[~2011-06-22 15:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-16 6:17 Yao Qi
2011-06-22 15:38 ` Pedro Alves [this message]
2011-06-23 9:21 ` Yao Qi
2011-06-23 10:28 ` Pedro Alves
2011-06-23 13:40 ` Yao Qi
2011-06-23 14:00 ` Pedro Alves
2011-06-23 10:37 ` Pedro Alves
2011-06-23 14:41 ` Yao Qi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201106221638.30062.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=yao@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox