Gdb: Could not find function named 'alloc::string::String::as_str'

I tried get something better then array of MaybeUninit<u8> when I debug
program with ArrayString.

So in rust-gdb I print:

(gdb) p s.as_str()

and got Could not find function named 'arrayvec::array_string::ArrayString<20>::as_str'.

The interesting part that the same for std::String:

(gdb) p s.as_str()

Could not find function named 'alloc::string::String::as_str'

Is this some issues with debug information that emit rustc ?

I use

[profile.dev]
debug = "full"

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.