This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: m68k-coff SP changing
- To: Toshi Morita <tm2 at best dot com>
- Subject: Re: m68k-coff SP changing
- From: Nick Papadonis <npapadon at yahoo dot com>
- Date: 04 Apr 2001 10:31:24 -0400
- cc: binutils at sourceware dot cygnus dot com
- Organization: None
- References: <200104040624.XAA26221@shell14.ba.best.com>
Toshi Morita <tm2@best.com> writes:
> Nick Papadonis <npapadon@yahoo.com> wrote:
>
> > Richard Henderson <rth@redhat.com> writes:
> >
> > > On Tue, Apr 03, 2001 at 12:13:28PM -0400, Nick Papadonis wrote:
> > > > Does anyone know why the following instructions change my SP?
> > > > My target is m68k-coff.
> > >
> > > No. You've not given us enough to reproduce the problem.
> > >
> > >
> > > r~
> > >
> >
> > Here is my test case. Compile, and step through. Examine the stack
> > pointer. My target is a m68331 MCU. The exception vectors are all
> > NULL except for RESET - INIT SP and RESET - INIT PC.
> >
>
> I think you're forgetting the GDB stub. It needs an exception vector
> to single-step.
>
> I suspect you're not saving and restoring registers properly in
> the GDB stub, because your stack is being depressed on each instruction.
>
> It could be another exception such as an interrupt, though.
The GDB stub is in the BDI not the 68331 board.
Thanks.
- Nick