Allow really large fortran array bounds: TYPE_LENGTH to ULONGEST
[deliverable/binutils-gdb.git] / gdb / symmisc.c
index 5ff66bd6251976728fb7cddbd2bacd4b8e8ed1ee..0220b42749e9df98bfddd35f9da28d8d9a4903f1 100644 (file)
@@ -583,8 +583,8 @@ print_symbol (struct gdbarch *gdbarch, struct symbol *symbol,
            unsigned i;
            struct type *type = check_typedef (SYMBOL_TYPE (symbol));
 
-           fprintf_filtered (outfile, "const %u hex bytes:",
-                             TYPE_LENGTH (type));
+           fprintf_filtered (outfile, "const %s hex bytes:",
+                             pulongest (TYPE_LENGTH (type)));
            for (i = 0; i < TYPE_LENGTH (type); i++)
              fprintf_filtered (outfile, " %02x",
                                (unsigned) SYMBOL_VALUE_BYTES (symbol)[i]);
This page took 0.024908 seconds and 4 git commands to generate.