[PATCH] Print type name when printing Rust slice

Tom Tromey tom@tromey.com
Tue Apr 2 17:44:10 GMT 2024


>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:

Tom> The recent change to how unsized Rust values are printed included a
Tom> small regression from past behavior.  Previously, a slice's type would
Tom> be printed, like:

Tom>     (gdb) print slice
Tom>     $80 = &[i32] [3]

Tom> The patch changed this to just

Tom>     (gdb) print slice
Tom>     $80 = [3]

Tom> This patch restores the previous behavior.

Oops, I almost forgot about this one.
I'm checking it in now.

Tom


More information about the Gdb-patches mailing list