This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Re: m68k-coff SP changing



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.

> 
> Any insight appreciated.  Thanks.

See above.

> - Nick

Toshi



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