Re: linux-mips-low.c:102: error: 'FPR_BASE' was not declared in this scope
Yao Qi <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAH=s-POYivYmwr3gPLoRQjp0Qquhb3X8FB5tRJ74VNEau+MBYg@mail.gmail.com> |
On Tue, Mar 7, 2017 at 2:20 PM, Slobodan Vidovic via gdb <[email protected]> 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 (齐尧)