gdb.trace: Fix write_inferior_data_ptr on 32-bit big-endian machines.
authorMarcin Kościelnicki <koriakin@0x04.net>
Fri, 22 Jan 2016 13:25:02 +0000 (14:25 +0100)
committerMarcin Kościelnicki <koriakin@0x04.net>
Fri, 22 Jan 2016 14:03:47 +0000 (15:03 +0100)
commit99e8eb11cfcdde8cba6755ed4613c3cb079dfaa4
tree3688c8cb80ceaedd69b47088ba15e675603be667
parent1ac78c044471fa65b952c2e5c47dcf4d0ccf9b79
gdb.trace: Fix write_inferior_data_ptr on 32-bit big-endian machines.

Noticed and tested on 31-bit s390.  This bug caused completely broken
fast tracepoints.

gdb/gdbserver/ChangeLog:

* tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
it works properly on big-endian machines where sizeof (CORE_ADDR)
!= sizeof (void *).
gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c