diff options
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r-- | gdb/rust-lang.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index 79f1331..cef0a9c 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -37,6 +37,7 @@ #include <algorithm> #include <string> #include <vector> +#include "cli/cli-style.h" /* See rust-lang.h. */ @@ -473,7 +474,9 @@ rust_print_enum (struct type *type, int embedded_offset, if (rust_empty_enum_p (type)) { /* Print the enum type name here to be more clear. */ - fprintf_filtered (stream, _("%s {<No data fields>}"), TYPE_NAME (type)); + fprintf_filtered (stream, _("%s {%p[<No data fields>%p]}"), + TYPE_NAME (type), + metadata_style.style ().ptr (), nullptr); return; } |