]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/style.exp
Style field names in "print"
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / style.exp
index 0457c3dc4ad0a61f0382720cbf07ef49aa34a01b..47ef8c93c7c09dc7acb1f664038eafe99c7fae78 100644 (file)
@@ -87,6 +87,13 @@ save_vars { env(TERM) } {
     # Somewhere should see the call to the function.
     gdb_test "disassemble main" "[style $hex address].*$func.*"
 
+    set ifield [style int_field variable]
+    set sfield [style string_field variable]
+    set efield [style e_field variable]
+    set evalue [style VALUE_TWO variable]
+    gdb_test "print struct_value" \
+       "\{$ifield = 23,.*$sfield = .*,.*$efield = $evalue.*"
+
     gdb_exit
     gdb_spawn