binutils-gdb/gdb/testsuite/gdb.rust
Tom Tromey cd61a1453e Special case "&str" in Rust parser
"&str" is an important type in Rust -- it's the type of string
literals.  However, the compiler puts it in the DWARF in a funny way.
The slice itself is present and named "&str".  However, the Rust
parser doesn't look for types with names like this, but instead tries
to construct them from components.  In this case it tries to make a
pointer-to-"str" -- but "str" isn't always available, and in any case
that wouldn't yield the best result.

This patch adds a special case for &str.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=22251
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
2023-05-17 11:47:16 -06:00
..
completion.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
completion.rs gdb: fix crash during command completion 2023-03-20 16:05:20 +00:00
dwindex.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
dwindex.rs
expr.exp gdb/rust: fix crash for expression debug with strings 2023-05-10 14:53:41 +01:00
finish.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
finish.rs
fnfield.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
fnfield.rs
generics.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
generics.rs
main-crash.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
main.rs Fix crash in inside_main_func 2023-03-13 14:12:07 -06:00
methods.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
methods.rs
modules.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
modules.rs
onetwoeight.exp Add 128-bit integer support to the Rust parser 2023-04-17 10:43:06 -06:00
onetwoeight.rs Use gdb_gmp for scalar arithmetic 2023-03-27 08:20:29 -06:00
pp.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
pp.py
pp.rs
rawids.exp Introduce rust_at_least helper proc 2023-03-29 10:13:12 -06:00
rawids.rs
rust-start.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
rust-style.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
rust-style.rs
simple.exp Special case "&str" in Rust parser 2023-05-17 11:47:16 -06:00
simple.rs
traits.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
traits.rs
unicode.exp Introduce rust_at_least helper proc 2023-03-29 10:13:12 -06:00
unicode.rs
union.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
union.rs
unsized.exp Introduce rust_at_least helper proc 2023-03-29 10:13:12 -06:00
unsized.rs
watch.exp [gdb/testsuite] Allow gdb.rust/expr.exp without rust compiler 2023-03-28 10:22:48 +02:00
watch.rs