This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix s390 GNU/Linux gdb and gdbserver builds
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 21 Apr 2016 07:15:01 -0400
- Subject: [binutils-gdb] Fix s390 GNU/Linux gdb and gdbserver builds
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 3451269c4128c4b74f4614d9781cb75207c5ee34 ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 3451269c4128c4b74f4614d9781cb75207c5ee34
Fix s390 GNU/Linux gdb and gdbserver builds
Now that gdb/gdbserver compile as C++ programs by default, the s390
GNU/Linux build started failing with:
In file included from ../../src/gdb/common/common-defs.h:64:0,
from ../../src/gdb/defs.h:28,
from ../../src/gdb/s390-linux-nat.c:22:
../../src/gdb/s390-linux-nat.c: In function void fetch_regset(regcache*, int, int, int, const regset*):
../../src/gdb/../include/libiberty.h:711:38: error: invalid conversion from void* to gdb_byte* {aka unsigned char*} [-fpermissive]
# define alloca(x) __builtin_alloca(x)
^
../../src/gdb/s390-linux-nat.c:297:19: note: in expansion of macro alloca
gdb_byte *buf = alloca (regsize);
^
etc.
gdb/ChangeLog:
2016-04-21 Pedro Alves <palves@redhat.com>
* s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
void * instead of gdb_byte *.
gdb/gdbserver/ChangeLog:
2016-04-21 Pedro Alves <palves@redhat.com>
* linux-s390-low.c (s390_collect_ptrace_register)
(s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
add casts.
(s390_check_regset): Use void * instead of gdb_byte *.
- Follow-Ups:
- Failures on Fedora-i686, branch master *** BREAKAGE ***
- Failures on AIX-POWER7-plain, branch master *** BREAKAGE ***
- Failures on Fedora-x86_64-m32, branch master
- Failures on Fedora-x86_64-native-gdbserver-m32, branch master
- Failures on Fedora-s390x-m64, branch master
- Failures on Debian-x86_64-native-extended-gdbserver-m64, branch master
- Failures on Debian-i686, branch master
- Failures on Debian-i686-native-extended-gdbserver, branch master
- Failures on Fedora-ppc64be-cc-with-index, branch master
- Failures on Fedora-ppc64le-native-extended-gdbserver-m64, branch master