This is the mail archive of the gdb@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: linux-mips-low.c:102: error: 'FPR_BASE' was not declared in this scope


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 (齐尧)


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