gdb.trace: Fix write_inferior_data_ptr on 32-bit big-endian machines.