This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: [patch] Fix for gdb.python/python-value with gcc-4.3.1
- From: "Paul Pluzhnikov" <ppluzhnikov at google dot com>
- To: "Tom Tromey" <tromey at redhat dot com>
- Cc: archer at sourceware dot org
- Date: Tue, 14 Oct 2008 13:16:38 -0700
- Subject: Re: [patch] Fix for gdb.python/python-value with gcc-4.3.1
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta;t=1224015401; bh=vsLFLMYfwZjH60AughjL4bmLIcI=;h=DomainKey-Signature:Message-ID:Date:From:To:Subject:Cc: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-Disposition:References; b=Tij7g2/BHPBCjHNQPFLIQM9l8ddOoHPRaWeys4GoF4rieSVRq2Xy+zvjcv+p7VpGUk9BE/PIvNn0IVJ1rcue+Q==
- Domainkey-signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns;h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;b=qDW+I7InRG2PdOjgp83CBXvxTV0q3wMMe2GO5zJyIdpvf5Iyv/PFHQO0YZQT9B/vsZhWC1FHEzh84x2ZKFN92w==
- References: <20081014195521.839833A6AF4@localhost> <m3tzbfey7a.fsf@fleche.redhat.com>
On Tue, Oct 14, 2008 at 1:08 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:
>
> Paul> 2008-10-14 Paul Pluzhnikov <ppluzhnikov@google.com>
> Paul> * gdb.python/python-value.c: Prevent gcc from optimizing argv[] out.
>
> This is fine by me. We'll probably need to modify it again if we ever
> run the test suite with -O, but that is no big deal.
There are many other failures if run with '-O':
Running ../../../gdb/testsuite/gdb.python/python-value.exp ...
FAIL: gdb.python/python-value.exp: continue to breakpoint: break to
inspect struct and union
FAIL: gdb.python/python-value.exp: print s
FAIL: gdb.python/python-value.exp: access element inside struct using
8-bit string name
FAIL: gdb.python/python-value.exp: access element inside struct using
unicode name
FAIL: gdb.python/python-value.exp: print argv
FAIL: gdb.python/python-value.exp: dereference value
FAIL: gdb.python/python-value.exp: verify dereferenced value
This test case just isn't structured for -O.
Committed as above.
--
Paul Pluzhnikov