This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: FAILing new testcase for -fdebug-types-section [Re: [RFC - Python scripting] New methods Symtab.global_block and Symtab.static_block (docs included)]


On Fri, May 4, 2012 at 11:34 PM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> Hi Siva,
>
> by using -fdebug-types-section one gets:
>
> runtest CC_FOR_TARGET="gcc -gdwarf-4 -fdebug-types-section -g0" CXX_FOR_TARGET="g++ -gdwarf-4 -fdebug-types-section -g0" gdb.python/py-symtab.exp
>
> ?python print "simple_struct" in static_symbols
> -True
> -(gdb) PASS: gdb.python/py-symtab.exp: Test simple_struct in static symbols
> +False
> +(gdb) FAIL: gdb.python/py-symtab.exp: Test simple_struct in static symbols

I think the attached patch should eliminate this failure.  Can you
also test on your side to eliminate GCC version differences (I do not
think it matters, but I want to double check)?  All that I did is to
remove 'simple_struct' and its test, and add a static function and a
test for it.

testsuite:
2012-05-05  Siva Chandra Reddy  <sivachandra@gmail.com>

        * py-symbol.c (simple_struct): Remove
        (static_func): New static func
        * py-symtab.exp: Remove test to test presence of 'simple_struct'
        in STATIC_BLOCK, add test to test presence of 'static_func' in
        STATIC_BLOCK.

Thanks,
Siva Chandra

Attachment: test_fix_patch_v1.txt
Description: Text document


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