This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix for gdb.python/python-value with gcc-4.3.1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]