Allow indexing of &str in Rust
authorTom Tromey <tom@tromey.com>
Mon, 2 Oct 2017 18:15:52 +0000 (12:15 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 2 Oct 2017 20:06:43 +0000 (14:06 -0600)
commit01af5e0d09ac9c621e7b280f44a2c7ef55784493
treebd93b3095baf09f76ecf92cf5d5e8f818482676f
parent888e3ddb20f541220f18709fce832ad0163c3e71
Allow indexing of &str in Rust

rust_slice_type_p was not recognizing &str as a slice type, so indexing
into (or making a slice of) a slice was not working.

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

* rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.

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

* gdb.rust/simple.exp: Test index of slice.
gdb/ChangeLog
gdb/rust-lang.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.rust/simple.exp
This page took 0.036102 seconds and 4 git commands to generate.