This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: linux-mips-low.c:102: error: 'FPR_BASE' was not declared in this scope
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Slobodan Vidovic <vidovic dot slobodan at yahoo dot com>
- Cc: GDB <gdb at sourceware dot org>
- Date: Tue, 7 Mar 2017 15:20:55 +0000
- Subject: Re: linux-mips-low.c:102: error: 'FPR_BASE' was not declared in this scope
- Authentication-results: sourceware.org; auth=none
- References: <464461614.343295.1488896429095.ref@mail.yahoo.com> <464461614.343295.1488896429095@mail.yahoo.com>
On Tue, Mar 7, 2017 at 2:20 PM, Slobodan Vidovic via gdb
<gdb@sourceware.org> wrote:
> Hi, I'm trying to cross compile gdbserver for mips platform but Im getting an error, so after
>
> $ ./configure --host=mips-linux
>
> I'm getting
>
> ./include -I./../gnulib/import -Ibuild-gnulib-gdbserver/import -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wno-sign-compare -Wno-write-strings -Wformat-nonliteral -DGDBSERVER -c -o linux-mips-low.o -MT linux-mips-low.o -MMD -MP -MF .deps/linux-mips-low.Tpo linux-mips-low.c
> linux-mips-low.c:102: error: 'FPR_BASE' was not declared in this scope
What is your compiler?
We define it in gdb/mips-linux-tdep.h,
/* 0 - 31 are integer registers, 32 - 63 are fp registers. */
#define FPR_BASE 32
but I don't know why is that.
--
Yao (齐尧)