Make "print" and "compile print" support -OPT options
[deliverable/binutils-gdb.git] / gdb / compile / compile-c-support.c
index 3d2913cd14c347beba06d34a1ebf4c5eb0cace08..d1947da6570bc655f578e3eb87d98d462dd5ede0 100644 (file)
@@ -270,11 +270,11 @@ generate_register_struct (struct ui_file *stream, struct gdbarch *gdbarch,
 
              default:
                fprintf_unfiltered (stream,
-                                   "  unsigned char %s[%d]"
+                                   "  unsigned char %s[%s]"
                                    " __attribute__((__aligned__("
                                    "__BIGGEST_ALIGNMENT__)))",
                                    regname.c_str (),
-                                   TYPE_LENGTH (regtype));
+                                   pulongest (TYPE_LENGTH (regtype)));
              }
            fputs_unfiltered (";\n", stream);
          }
This page took 0.026005 seconds and 4 git commands to generate.