This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/8] gdb.trace: Fix write_inferior_data_ptr on 32-bit big-endian machines.
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: koriakin at 0x04 dot net (Marcin KoÅcielnicki)
- Cc: gdb-patches at sourceware dot org, koriakin at 0x04 dot net, palves at redhat dot com
- Date: Tue, 26 Jan 2016 14:32:14 +0100 (CET)
- Subject: Re: [PATCH 1/8] gdb.trace: Fix write_inferior_data_ptr on 32-bit big-endian machines.
- Authentication-results: sourceware.org; auth=none
Marcin KoÃ?cielnicki wrote:
> * 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 *).
This is the same problem that was detected on PowerPC here:
https://sourceware.org/ml/gdb-patches/2015-03/msg00996.html
Unfortunately that patch, while approved, never got committed. It still
seems to be the better solution, since now there's two basically identical
routines write_inferior_data_ptr and write_inferior_data_pointer for no
particular reason ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com