diff options
author | Walfred Tedeschi <walfred.tedeschi@intel.com> | 2016-02-09 11:26:13 +0100 |
---|---|---|
committer | Walfred Tedeschi <walfred.tedeschi@intel.com> | 2016-02-09 11:26:13 +0100 |
commit | 222cab58b7ed37df6e01dacb0932f400a2588137 (patch) | |
tree | 86fc345d9b40f23704a7ad2d995369386672ecf8 | |
parent | 2ea53e003163338a403d5afbb2046cafb8f3abe9 (diff) | |
download | gdb-222cab58b7ed37df6e01dacb0932f400a2588137.zip gdb-222cab58b7ed37df6e01dacb0932f400a2588137.tar.gz gdb-222cab58b7ed37df6e01dacb0932f400a2588137.tar.bz2 |
Fix build breakage
Add a cast to reinterpret a void* as a gdb_byte*.
2016-02-09 Walfred Tedeschi <walfred.tedeschi@intel.com>
gdb/gdbserver/ChangeLog:
* linux-x86-low.c (x86_siginfo_fixup): Add cast to gdb_byte*.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/linux-x86-low.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index e0da782..8f6207e 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2016-02-09 Walfred Tedeschi <walfred.tedeschi@intel.com> + + * linux-x86-low.c (x86_siginfo_fixup): Add cast to gdb_byte*. + 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index ff51a95..f32bd5d 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c @@ -690,12 +690,12 @@ x86_siginfo_fixup (siginfo_t *native, void *inf, int direction) /* Is the inferior 32-bit? If so, then fixup the siginfo object. */ if (!is_64bit_tdesc ()) - return amd64_linux_siginfo_fixup_common (native, inf, direction, - FIXUP_32); + return amd64_linux_siginfo_fixup_common (native, (gdb_byte *) inf, + direction, FIXUP_32); /* No fixup for native x32 GDB. */ else if (!is_elf64 && sizeof (void *) == 8) - return amd64_linux_siginfo_fixup_common (native, inf, direction, - FIXUP_X32); + return amd64_linux_siginfo_fixup_common (native, (gdb_byte *) inf, + direction, FIXUP_X32); #endif return 0; |