This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix siginfo C++ build error


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]