[PATCH] Fix siginfo C++ build error

Sergio Durigan Junior sergiodj@redhat.com
Tue Feb 9 02:27:00 GMT 2016


On Monday, February 08 2016, Simon Marchi wrote:

> Change the signature of gdbserver's siginfo_fixup functions so that it's
> in line with gdb's.  This gets rid of the following build error in C++:
>
>   /home/emaisin/src/binutils-gdb/gdb/gdbserver/linux-x86-low.c: In function ‘int x86_siginfo_fixup(siginfo_t*, void*, int)’:
>   /home/emaisin/src/binutils-gdb/gdb/gdbserver/linux-x86-low.c:694:21: error: invalid conversion from ‘void*’ to ‘gdb_byte* {aka unsigned char*}’ [-fpermissive]
>                FIXUP_32);
>                        ^
>   In file included from /home/emaisin/src/binutils-gdb/gdb/gdbserver/linux-x86-low.c:31:0:
>   /home/emaisin/src/binutils-gdb/gdb/gdbserver/../nat/amd64-linux-siginfo.h:52:5: error:   initializing argument 2 of ‘int amd64_linux_siginfo_fixup_common(siginfo_t*, gdb_byte*, int, amd64_siginfo_fixup_mode)’ [-fpermissive]
>    int amd64_linux_siginfo_fixup_common (siginfo_t *native, gdb_byte *inf,
>        ^
>   /home/emaisin/src/binutils-gdb/gdb/gdbserver/linux-x86-low.c:698:20: error: invalid conversion from ‘void*’ to ‘gdb_byte* {aka unsigned char*}’ [-fpermissive]
>              FIXUP_X32);
>                       ^
>   In file included from /home/emaisin/src/binutils-gdb/gdb/gdbserver/linux-x86-low.c:31:0:
>   /home/emaisin/src/binutils-gdb/gdb/gdbserver/../nat/amd64-linux-siginfo.h:52:5: error:   initializing argument 2 of ‘int amd64_linux_siginfo_fixup_common(siginfo_t*, gdb_byte*, int, amd64_siginfo_fixup_mode)’ [-fpermissive]
>    int amd64_linux_siginfo_fixup_common (siginfo_t *native, gdb_byte *inf,
>        ^

This has been broken since February 2nd.  The commit that caused this
was:

  <http://gdb-build.sergiodj.net/builders/Fedora-x86_64-cxx-build-m64/builds/1869>

Walfred, out of curiosity, did you receive an e-mail from the BuildBot
about this breakage?

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/



More information about the Gdb-patches mailing list