Use ui_file_as_string in gdb/rust-lang.c
authorPedro Alves <palves@redhat.com>
Tue, 8 Nov 2016 15:26:46 +0000 (15:26 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 8 Nov 2016 15:26:46 +0000 (15:26 +0000)
commit5698084a7303c45fdc94fb44c47355413b271562
tree2133525dbe0f1424fc0292cadc4ad23eb1fdc057
parentaf1fe7b3b87de27d84a82d4f44b937c2800205ff
Use ui_file_as_string in gdb/rust-lang.c

gdb/ChangeLog:
2016-11-08  Pedro Alves  <palves@redhat.com>
    Tom Tromey  <tom@tromey.com>

* rust-lang.c (struct disr_info) <name>: Now a std::string.
(rust_get_disr_info): Use ui_file_as_string and adjust to use
std::string.
(rust_val_print): Adjust to use std::string.
gdb/ChangeLog
gdb/rust-lang.c