From: Yao Qi <yao@codesourcery.com>
To: gdb-patches@sourceware.org
Subject: Re: [RFA 7/8] New port: TI C6x: test case fixes
Date: Sun, 14 Aug 2011 16:24:00 -0000 [thread overview]
Message-ID: <4E47F696.4040406@codesourcery.com> (raw)
In-Reply-To: <4E428FFE.9060109@codesourcery.com>
On 08/10/2011 10:04 PM, Yao Qi wrote:
>>> >> diff --git a/gdb/testsuite/gdb.base/savedregs.exp b/gdb/testsuite/gdb.base/savedregs.exp
>>> >> index eeee0ff..4408137 100644
>>> >> --- a/gdb/testsuite/gdb.base/savedregs.exp
>>> >> +++ b/gdb/testsuite/gdb.base/savedregs.exp
>>> >> @@ -84,6 +84,14 @@ proc process_saved_regs { current inner outer } {
>>> >> # Sigtramp frames don't yet print <signal trampoline>.
>>> >> set pat "Stack frame at .* Saved registers:.*"
>>> >> }
>>> >> + thrower {
>>> >> + if { [istarget tic6x-*-*] } {
>>> >> + # On tic6x, there is no register saved in function thrower.
>>> >> + set pat "Stack frame at .* in $func .*"
>>> >> + } else {
>>> >> + set pat "Stack frame at .* in $func .* Saved registers:.*"
>>> >> + }
>> >
>> > Why are you special-casing tic6x here? Is the architecture really
>> > that special that there are no saved registers? I suspect it isn't
>> > and that this can happen on other architectures as well, depending on
>> > how much optimization the compiler is doing.
> Leave tic6x alone at first, it is the test case's problem here to expect
> "save registers in a frame", because it is possible there is no register
> saved on a certain frame. IMO, tic6x port exposes such problem, and my
> fix in this patch is to make tests "more generally useful". If we see
> "no registers saved" on other ports, we can put these targets together
> in this condition checking, like,
>
> if { [istarget tic6x-*-*] || [istarget foo-*-*] || [istarget bar-*-*]} {
> # On tic6x/foo/bar, there is no register saved in function thrower.
> set pat "Stack frame at .* in $func .*"
> } else {
> set pat "Stack frame at .* in $func .* Saved registers:.*"
> }
>
The patch of test cases fix is checked in, except for this chunk.
http://sourceware.org/ml/gdb-cvs/2011-08/msg00072.html
--
Yao (é½å°§)
prev parent reply other threads:[~2011-08-14 16:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-20 2:12 Yao Qi
2011-07-25 11:37 ` Yao Qi
2011-08-09 14:22 ` Pedro Alves
2011-08-09 15:03 ` Yao Qi
2011-08-09 15:17 ` Mark Kettenis
2011-08-09 15:25 ` Yao Qi
2011-08-10 12:28 ` Mark Kettenis
2011-08-10 14:05 ` Yao Qi
2011-08-14 16:24 ` Yao Qi [this message]
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=4E47F696.4040406@codesourcery.com \
--to=yao@codesourcery.com \
--cc=gdb-patches@sourceware.org \
/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