This is the mail archive of the gdb-prs@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]

[Bug rust/21466] better printing of unsized types


https://sourceware.org/bugzilla/show_bug.cgi?id=21466

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e6cf65f283b8be44014fad0ad0aebfbcc71fceac

commit e6cf65f283b8be44014fad0ad0aebfbcc71fceac
Author: Tom Tromey <tom@tromey.com>
Date:   Sun May 21 17:00:10 2017 -0600

    Print Rust unsized array types a bit more nicely

    It's a bit difficult to create an unsized array type in Rust, but if
    you do, right now ptype will show something like "[u8; ]".  It really
    should print "[u8]", though, which is what this patch implements.

    This is part of PR 21466.

    Built and regtested on x86-64 Fedora 25.  I'm checking this in.

    ChangeLog
    2017-05-21  Tom Tromey  <tom@tromey.com>

        PR rust/21466:
        * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
        arrays as "[T]", not "[T; ]".

    testsuite/ChangeLog
    2017-05-21  Tom Tromey  <tom@tromey.com>

        PR rust/21466:
        * gdb.rust/unsized.exp: New file.
        * gdb.rust/unsized.rs: New file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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