]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/p-valprint.c
Based on a previous patch form Michal Ludvig:
[thirdparty/binutils-gdb.git] / gdb / p-valprint.c
index 72be1f508c411f252778bc97dba0255c7ecc9d24..9eef4f7d9a0cfc0eee22fa226e82d2413f96e536 100644 (file)
@@ -1,6 +1,7 @@
 /* Support for printing Pascal values for GDB, the GNU debugger.
 
-   Copyright (C) 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003, 2005, 2006
+   Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -359,6 +360,13 @@ pascal_val_print (struct type *type, const gdb_byte *valaddr,
        }
       break;
 
+    case TYPE_CODE_FLAGS:
+      if (format)
+         print_scalar_formatted (valaddr + embedded_offset, type, format, 0, stream);
+      else
+       val_print_type_code_flags (type, valaddr + embedded_offset, stream);
+      break;
+
     case TYPE_CODE_FUNC:
       if (format)
        {