This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv. PATCH 1/1] Fix build breakage
- From: Walfred Tedeschi <walfred dot tedeschi at intel dot com>
- To: palves at redhat dot com, eliz at gnu dot org, brobecker at adacore dot com
- Cc: gdb-patches at sourceware dot org, Walfred Tedeschi <walfred dot tedeschi at intel dot com>
- Date: Tue, 9 Feb 2016 11:24:18 +0100
- Subject: [obv. PATCH 1/1] Fix build breakage
- Authentication-results: sourceware.org; auth=none
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*.
---
gdb/gdbserver/linux-x86-low.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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;
--
2.1.4