diff options
author | Tom Tromey <tom@tromey.com> | 2018-10-02 16:44:47 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-10-02 19:30:19 -0600 |
commit | 2398abf8bca3563ddab4bd41c710af8027fe2919 (patch) | |
tree | 423b0f1a7b0fb13d128171b905ba8a74d9fdf06e | |
parent | 53c30c89d160e83ba3870693a9b32363c6811ede (diff) | |
download | binutils-2398abf8bca3563ddab4bd41c710af8027fe2919.zip binutils-2398abf8bca3563ddab4bd41c710af8027fe2919.tar.gz binutils-2398abf8bca3563ddab4bd41c710af8027fe2919.tar.bz2 |
Use pulongest in aarch64-linux-tdep.c
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.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/aarch64-linux-tdep.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 70e8c79..e239f20 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index e55b1a7..f296207 100644 --- a/gdb/aarch64-linux-tdep.c +++ b/gdb/aarch64-linux-tdep.c @@ -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; |