This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix CRISv32 compilation
- From: Ricard Wanderlof <ricard dot wanderlof at axis dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Tue, 3 Sep 2013 09:45:02 +0200
- Subject: Re: [PATCH] Fix CRISv32 compilation
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 00 dot 1308301512140 dot 10770 at lnxricardw dot se dot axis dot com> <5224CAE7 dot 9090309 at redhat dot com>
On Mon, 2 Sep 2013, Pedro Alves wrote:
On 08/30/2013 02:12 PM, Ricard Wanderlof wrote:
2013-08-30 Ricard Wanderlof <ricardw@axis.com>
gdbserver
* linux-crisv32-low.c: Fix compilation errors.
Write:
* linux-crisv32-low.c (elf_gregset_t): Delete typedef.
(initialize_low_arch): Call init_registers_crisv32 rather than
init_register_crisv32.
OK with that change.
Ok with me. Thanks for the update. Should I resubmit the patch ?
(I can't see how the typedef was breaking the build though)
With the typedef left in, I get
crisv32-axis-linux-gnu-gcc -isystem
/home/ricardw/P3301-head/target/crisv32-axis-linux-gnu/include -isystem
/home/ricardw/P3301-head/target/crisv32-axis-linux-gnu/usr/include -g -O2
-I. -I. -I./../common -I./../regformats -I./../ -I./../../include
-I./../gnulib/import -Ibuild-gnulib-gdbserver/import -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-char-subscripts -Wempty-body -Werror -DGDBSERVER -c -o
linux-crisv32-low.o -MT linux-crisv32-low.o -MMD -MP -MF
.deps/linux-crisv32-low.Tpo linux-crisv32-low.c
linux-crisv32-low.c:372: error: conflicting types for 'elf_gregset_t'
/home/ricardw/P3301-head/target/crisv32-axis-linux-gnu/include/asm/elf.h:36:
error: previous declaration of 'elf_gregset_t' was here
when building gdbserver using the target compiler.
/Ricard
--
Ricard Wolf WanderlÃf ricardw(at)axis.com
Axis Communications AB, Lund, Sweden www.axis.com
Phone +46 46 272 2016 Fax +46 46 13 61 30