Use std::string in Rust code
authorTom Tromey <tom@tromey.com>
Fri, 3 Feb 2017 03:58:12 +0000 (20:58 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 3 Feb 2017 04:25:11 +0000 (21:25 -0700)
commit03c85b11b07452f2d7341b405a7fe70c74226505
tree3d87dc1f816b12136c8d84ad0bb23647330b7617
parent73dceb99fa57b79e83a6ed80aaad49d0e3e7da66
Use std::string in Rust code

This changes a couple of spots in the Rust support to use std::string.
In one spot this removes some manual memory management; in the other
spot this allows the removal of a call to xstrdup.

2017-02-02  Tom Tromey  <tom@tromey.com>

* rust-lang.h (rust_crate_for_block): Update.
* rust-lang.c (rust_crate_for_block): Return std::string.
(rust_get_disr_info): Use std:;string, not
gdb::unique_xmalloc_ptr.
* rust-exp.y (crate_name): Update.
gdb/ChangeLog
gdb/rust-exp.y
gdb/rust-lang.c
gdb/rust-lang.h
This page took 0.025283 seconds and 4 git commands to generate.