Add support for untagged unions in Rust
authorManish Goregaokar <manish@mozilla.com>
Sat, 29 Oct 2016 01:00:43 +0000 (18:00 -0700)
committerManish Goregaokar <manish@mozilla.com>
Thu, 3 Nov 2016 22:45:14 +0000 (15:45 -0700)
commitb96645f1a1e6084ed6a20ddf615bdc4d2487a9c9
tree36f7a4fc6e83da312fda6f3811929b21efcafee4
parent51a789c3bf3d9b04d3d81493fda7f2514ae43add
Add support for untagged unions in Rust

2016-10-28  Manish Goregaokar  <manish@mozilla.com>

gdb/ChangeLog:
    * rust-lang.c (rust_union_is_untagged): Add function to
    check if a union is an untagged unioni
    (rust_val_print): Handle printing of untagged union values
    (rust_print_type): Handle printing of untagged union types
    (rust_evaluate_subexp): Handle evaluating field
    access on untagged unions
gdb/ChangeLog
gdb/rust-lang.c