Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: fnf@redhat.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Fix several problems with the gdb.arch/gdb1291.exp test
Date: Wed, 11 Feb 2004 01:17:00 -0000	[thread overview]
Message-ID: <20040211011715.GA11122@nevyn.them.org> (raw)
In-Reply-To: <200402101807.37718.fnf@ninemoons.com>

On Tue, Feb 10, 2004 at 06:07:37PM -0700, Fred Fish wrote:
> There are several problems with the current gdb1291 test:
> 
> (1) Compilation with -O2 is required to expose the originally reported
> bug.
> 
> (2) A gcc bug (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14022)
> interferes with properly testing for the reported bug.  The original
> test was apparently modified to use an ASM to avoid having part of it
> optimized away when using -O2.
> 
> (3) The test case has DOS style line separators for no apparent good
> reason.
> 
> (4) The test case doesn't verify that reducing the local variable size
> to less than or equal to 256 bytes makes the problem go away.  Not
> strictly necessary, but useful to have confirmed to ensure that we are
> getting accurate test results.
> 
> This patch fixes the above issues and also causes the failure to be
> logged as:
> 
>   KFAIL: gdb.arch/gdb1291.exp: backtrace with local variable larger than 256 bytes (PRMS: gdb/1291)
> 
> instead of just a regular FAIL.
> 
> -Fred

Sorry, not OK.  There are at least three problems:
 - You have changed what is being tested.  You are now testing the
   dwarf2 unwinder, not the prologue unwinder.
 - You are compiling an empty function with -O2 and expecting the
   result to have some meaning.  GCC will someday, hopefully soon,
   remove the unused stack allocation.  Then we won't be testing
   anything at all.
 - You've added a kfail pattern for PR 1291 that doesn't match the
   description in the PR; the less than 256 bytes case shouldn't
   be a kfail.

I recommend writing the whole test in assembly instead; this is
gdb.arch, after all.  We don't want to be sensitive to GCC bugs.


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2004-02-11  1:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-11  1:07 Fred Fish
2004-02-11  1:17 ` Daniel Jacobowitz [this message]
2004-02-11  1:28   ` Fred Fish
2004-02-11  2:11     ` Fred Fish
2004-02-12  1:11     ` Fred Fish

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=20040211011715.GA11122@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=fnf@redhat.com \
    --cc=gdb-patches@sources.redhat.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