aboutsummaryrefslogtreecommitdiff
path: root/gdb/typeprint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-05-15 08:31:42 -0600
committerTom Tromey <tom@tromey.com>2021-09-23 09:19:56 -0600
commit334381ea466c4735fe533a9864991b862c094b60 (patch)
tree9766fe59b5c0133a3f8a9aa3fd2ef333540274fe /gdb/typeprint.c
parentae9150ce9e8a0c181590975a6a4770638aafc630 (diff)
downloadfsf-binutils-gdb-334381ea466c4735fe533a9864991b862c094b60.zip
fsf-binutils-gdb-334381ea466c4735fe533a9864991b862c094b60.tar.gz
fsf-binutils-gdb-334381ea466c4735fe533a9864991b862c094b60.tar.bz2
Style the "XXX" text in ptype/o
This patch changes gdb to use the 'highlight' style on the "XXX" text in the output of ptype/o.
Diffstat (limited to 'gdb/typeprint.c')
-rw-r--r--gdb/typeprint.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 0776f63..ed39141 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -104,12 +104,18 @@ print_offset_data::maybe_print_hole (struct ui_file *stream,
unsigned int hole_bit = hole % TARGET_CHAR_BIT;
if (hole_bit > 0)
- fprintf_filtered (stream, "/* XXX %2u-bit %-7s */\n", hole_bit,
- for_what);
+ {
+ fprintf_styled (stream, highlight_style.style (),
+ "/* XXX %2u-bit %-7s */", hole_bit, for_what);
+ fputs_filtered ("\n", stream);
+ }
if (hole_byte > 0)
- fprintf_filtered (stream, "/* XXX %2u-byte %-7s */\n", hole_byte,
- for_what);
+ {
+ fprintf_styled (stream, highlight_style.style (),
+ "/* XXX %2u-byte %-7s */", hole_byte, for_what);
+ fputs_filtered ("\n", stream);
+ }
}
}