This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH c++ 4/5] mips: fix void*/gdb_byte* compilation errors
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>, gdb-patches at sourceware dot org
- Date: Thu, 22 Oct 2015 11:54:31 +0100
- Subject: Re: [PATCH c++ 4/5] mips: fix void*/gdb_byte* compilation errors
- Authentication-results: sourceware.org; auth=none
- References: <1444538238-7468-1-git-send-email-simon dot marchi at polymtl dot ca> <1444538238-7468-4-git-send-email-simon dot marchi at polymtl dot ca>
On 10/11/2015 05:37 AM, Simon Marchi wrote:
> The error in mips64_linux_get_longjmp_target is fixed by changing "buf"
> to be a gdb_byte*, as usual. supply_32bit_reg and mips64_fill_gregset
> do some more complicated things however, so it's safer just to add the
> explicit cast and avoid changing the code too much.
>
> gdb/ChangeLog:
>
> * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
> buf to gdb_byte*.
> (supply_32bit_reg): Add cast.
> (mips64_fill_gregset): Likewise.
OK.
Thanks,
Pedro Alves