This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Handle dereferencing Rust trait objects
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 16 Nov 2017 16:40:31 +0000
- Subject: Re: [RFA] Handle dereferencing Rust trait objects
- Authentication-results: sourceware.org; auth=none
- References: <20171115212403.8639-1-tom@tromey.com> <87o9o38c5k.fsf@tromey.com>
On 11/15/2017 09:28 PM, Tom Tromey wrote:
>>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
>
> Tom> Objects that are referenced via a trait can't currently be inspected by
> Tom> gdb. This patch implements the Rust equivalent of "set print object".
>
> I forgot a couple of details.
>
> The Rust compiler patch is here:
>
> https://github.com/rust-lang/rust/pull/45897
>
> It should go in soon.
>
> I wasn't sure if I ought to xfail the new tests. I have the impression
> that I'm the only person who runs the Rust gdb tests, but I'm not
> actually certain.
I run the rust tests with whatever's the rust compiler that comes
with Fedora:
$ rustc --version
rustc 1.13.0 (2c6933acc 2016-11-07)
I assume others that run Fedora do the same, since I assume
the instructions to set up for gdb testing on Fedora pull
in rustc [1]. So I guess the bots are testing rust too?
(I'm still on F23, should really upgrade...)
[1] https://sourceware.org/gdb/wiki/BuildBot#Fedora-specific_instructions
Thanks,
Pedro Alves