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: [RFA] Handle dereferencing Rust trait objects


On 11/16/2017 11:13 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
> 
> Tom> I wasn't sure if I ought to xfail the new tests.  I have the impression
> Tom> that I'm the only person who runs the Rust gdb tests, but I'm not
> Tom> actually certain.
> 
> Pedro> I run the rust tests with whatever's the rust compiler that comes
> Pedro> with Fedora:
> 
> Thanks for doing that.
> 
> I'm not sure what my options are for the test.  I could probably predict
> what version of rustc will have the patches -- but this also requires a
> patched LLVM, and while both the upstream LLVM and rust-llvm have the
> patch, people are free to build against other versions (and I don't know
> what the distros do in particular).

Dunno.  Maybe do something like gdb.arch/altivec-abi.exp, using readelf
to look for some DWARf tag:

    if { "$force_abi" == "auto" } {
        # If the toolchain does not record attributes, skip auto-ABI tests.
        set readelf_program [gdb_find_readelf]
        set result [catch "exec $readelf_program -A $binfile" output]

        if {$result == 0 && ![regexp Tag_GNU_Power_ABI_Vector $output]} {
            untested "ABI not marked"
            return
        }
    }

Thanks,
Pedro Alves


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