Use pulongest in aarch64-linux-tdep.c
authorTom Tromey <tom@tromey.com>
Tue, 2 Oct 2018 22:44:47 +0000 (16:44 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 3 Oct 2018 01:30:19 +0000 (19:30 -0600)
I tried a build on macOS today and it failed due to a mismatch between
the printf format and the type in aarch64-linux-tdep.c.  This patch
fixes the problem by using pulongest and %s rather than %ld.

gdb/ChangeLog
2018-10-02  Tom Tromey  <tom@tromey.com>

* aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.

gdb/ChangeLog
gdb/aarch64-linux-tdep.c

index 70e8c79ce9dc55352b62dfa4aac427d269d38813..e239f201fada6ad27a71fcdd6daefc6fc827650b 100644 (file)
@@ -1,3 +1,7 @@
+2018-10-02  Tom Tromey  <tom@tromey.com>
+
+       * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
+
 2018-10-02  John Darrington <john@darrington.wattle.id.au>
 
        * NEWS: Mention changed commands.
index e55b1a726ff184499f2f17de352939a6daf2928d..f2962075c51b47bce2cd234fa11e9910aa45b195 100644 (file)
@@ -247,8 +247,8 @@ aarch64_linux_sigframe_init (const struct tramp_frame *self,
            vq = sve_vq_from_vl (extract_unsigned_integer (buf, 2, byte_order));
 
            if (vq != tdep->vq)
-             error (_("Invalid vector length in signal frame %d vs %ld."), vq,
-                    tdep->vq);
+             error (_("Invalid vector length in signal frame %d vs %s."), vq,
+                    pulongest (tdep->vq));
 
            if (size >= AARCH64_SVE_CONTEXT_SIZE (vq))
              sve_regs = section + AARCH64_SVE_CONTEXT_REGS_OFFSET;
This page took 0.032206 seconds and 4 git commands to generate.