This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: MIPS32 gdb vectors question
"Tim Michals" <t dot michals at attbi dot com> writes:
> Tracing the code out in gdb3.2
> - the issue is the number of registers in gdb it is defined as PC_REGNUM 37
> (tm-mips.h)
> In mips-tdep.c in gdb source
>
> 764 mips_read_pc (ptid_t ptid)
> - 765 {
> - 766 return read_signed_register_pid (PC_REGNUM, ptid);
> - 767 }
>
> - In mips-regs.h it is 107, hence the packet length?
>
> If I change mips-stub.h to #if defined(CYGPKG_HAL_MIPS_GDB_REPORT_CP0)
> #define NUMREGS 37
> #else
> #define NUMREGS 37
> #endif
>
> GDB works.
>
At a guess it looks like your tools are not expecting the FP registers
to be reported since these go from offset 38 up.
You should be able to just build a newer version of GDB -- 5.3 is what
we are using now.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss