This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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: MIPS32 gdb vectors question


sorry for the confusion, I'm getting gcc 3.2 an gdb versions confused.  I'm
using the latest gdb 5.3.  If you look at the screen dumps, it is gdb 5.3.

You are not seeing the same issue?

----- Original Message -----
From: "Nick Garnett" <nickg at ecoscentric dot com>
To: "Tim Michals" <t dot michals at attbi dot com>
Cc: "Jonathan Larmour" <jifl at eCosCentric dot com>;
<ecos-discuss at sources dot redhat dot com>
Sent: Friday, February 28, 2003 4:22 AM
Subject: Re: [ECOS] 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


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