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


Since gdb 5.3 define NUM_REGS as 90, should this also be defined in
mips_stubs as 90 also? Instead 107?


----- Original Message -----
From: "Mark Salter" <msalter at redhat dot com>
To: <t dot michals at attbi dot com>
Cc: <nickg at ecoscentric dot com>; <jifl at ecoscentric dot com>;
<ecos-discuss at sources dot redhat dot com>
Sent: Friday, February 28, 2003 8:03 AM
Subject: Re: [ECOS] MIPS32 gdb vectors question


> >>>>> Tim Michals writes:
>
> > Mark,
> > Here's the latest output..., this dump is after a modification to eCOS
>
>
> > Tracing the code out in gdb5.3
> > - 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?
>
> No. The packet length should also include FPU regs even if the
> CPU doesn't have them.
>
> > If I change mips-stub.h to #if defined(CYGPKG_HAL_MIPS_GDB_REPORT_CP0)
> > #define NUMREGS   37
> > #else
> > #define NUMREGS    37
> > #endif
>
> This shouldn't be necessary. Your version of GDB should expect 90 regs:
>
>  gdb/config/mips/tm-mips.h:
>
>    #ifndef NUM_REGS
>    #define NUM_REGS 90
>    #endif
>
> And NUM_REGS should not be defined before this point.
>
> --Mark
>



-- 
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]