aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/style.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/testsuite/gdb.base/style.c
parentae9150ce9e8a0c181590975a6a4770638aafc630 (diff)
downloadgdb-334381ea466c4735fe533a9864991b862c094b60.zip
gdb-334381ea466c4735fe533a9864991b862c094b60.tar.gz
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/testsuite/gdb.base/style.c')
-rw-r--r--gdb/testsuite/gdb.base/style.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/style.c b/gdb/testsuite/gdb.base/style.c
index 59707b3..6a7934f 100644
--- a/gdb/testsuite/gdb.base/style.c
+++ b/gdb/testsuite/gdb.base/style.c
@@ -34,6 +34,13 @@ struct some_struct
struct some_struct struct_value = { 23, "skidoo", VALUE_TWO };
+struct just_bitfield
+{
+ unsigned int field : 3;
+};
+
+struct just_bitfield just_bitfield_value = { 4 };
+
int some_called_function (void)
{
return 0;